:root{--ink:#17201d;--muted:#68726e;--paper:#f4f1e8;--card:#fffdf7;--line:#ddd9cd;--green:#1d5b48;--lime:#d8ef66;--orange:#e97038;--shadow:0 20px 60px rgba(23,32,29,.10)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Microsoft YaHei','PingFang SC',Arial,sans-serif;min-height:100vh}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid var(--line);background:rgba(244,241,232,.9);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ink);color:var(--lime);font:700 22px Arial}.brand strong,.brand small{display:block}.brand strong{font-size:16px}.brand small{font-size:11px;color:var(--muted);letter-spacing:.1em}.identity{font-size:13px;background:var(--card);border:1px solid var(--line);padding:9px 14px;border-radius:30px}.dot{display:inline-block;width:7px;height:7px;background:#4fad74;border-radius:50%;margin-right:8px}.container{max-width:1180px;margin:auto;padding:62px 24px 80px}.hero{display:grid;grid-template-columns:1.5fr .7fr;gap:70px;align-items:end;padding:35px 0 72px}.eyebrow{font:700 11px Arial;letter-spacing:.22em;color:var(--green)}h1{font-size:clamp(42px,6vw,78px);line-height:1.04;letter-spacing:-.055em;margin:15px 0 22px}h1 em{font-style:normal;color:var(--green)}.hero p{max-width:630px;color:var(--muted);font-size:17px;line-height:1.9}.balance-card{background:var(--green);color:#fff;border-radius:6px 48px 6px 6px;padding:34px;min-height:210px;box-shadow:var(--shadow);position:relative;overflow:hidden}.balance-card:after{content:'T';position:absolute;right:-10px;bottom:-55px;color:rgba(255,255,255,.06);font:700 180px Arial}.balance-card span,.balance-card small{display:block;opacity:.75}.balance-card strong{display:block;color:var(--lime);font:700 76px Arial;line-height:1.1;margin:12px 0}.panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 8px 30px rgba(23,32,29,.04)}.entry-panel{max-width:720px;margin:0 auto 45px;text-align:center}.entry-panel p,.notice p{color:var(--muted)}.inline-form{display:flex;gap:10px;margin-top:20px}.notice{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:45px;border-left:5px solid var(--orange)}.notice p{margin:5px 0 0}.library-head{display:flex;align-items:end;justify-content:space-between;margin:12px 0 25px}.library-head h2,.section-title h2,.panel h2{font-size:27px;margin:5px 0}.search{display:flex;align-items:center;gap:8px;background:var(--card);border:1px solid var(--line);padding:0 15px;border-radius:12px;width:290px}.search input{border:0;background:transparent;padding:13px 0;outline:0;width:100%}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.course-card{background:var(--card);border:1px solid var(--line);border-radius:17px;overflow:hidden;transition:.25s;animation:rise .5s both;animation-delay:var(--delay)}.course-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}@keyframes rise{from{opacity:0;transform:translateY(12px)}}.course-cover{height:185px;background:var(--green);color:#fff;padding:23px;position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.course-cover:after{content:'';position:absolute;width:180px;height:180px;border:45px solid var(--lime);border-radius:50%;right:-85px;bottom:-90px;opacity:.9}.course-cover span{font-size:11px;letter-spacing:.18em;opacity:.7}.course-cover b{font-size:24px;max-width:75%;line-height:1.4;z-index:1}.course-cover i{position:absolute;right:18px;top:17px;font:700 13px Arial;font-style:normal;color:var(--lime)}.course-body{padding:22px}.course-meta{display:flex;gap:10px;color:var(--muted);font-size:11px;letter-spacing:.08em}.course-body h3{font-size:19px;margin:12px 0 8px}.course-body>p{font-size:13px;color:var(--muted);height:42px;line-height:1.65;overflow:hidden}.course-foot{display:flex;align-items:end;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px;margin-top:18px}.price strong{display:block;color:var(--orange);font:700 25px Arial}.price small{color:var(--muted)}.btn{border:0;border-radius:10px;padding:11px 18px;font:600 14px inherit;cursor:pointer;transition:.18s;white-space:nowrap}.btn:hover{transform:translateY(-1px);filter:brightness(.96)}.btn:disabled{opacity:.55;cursor:wait}.btn.primary{background:var(--lime);color:var(--ink)}.btn.dark{background:var(--ink);color:#fff}.btn.ghost{background:transparent;border:1px solid var(--line)}.btn.wide{width:100%;padding:14px}.btn.small{font-size:12px;padding:8px 12px}input,textarea{font:inherit;color:var(--ink)}input:not([type=checkbox]),textarea{width:100%;border:1px solid var(--line);background:#fff;padding:12px 13px;border-radius:9px;outline:0}input:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(29,91,72,.1)}label{display:block;font-size:13px;font-weight:600}label input,label textarea{margin-top:7px}dialog{border:0;padding:0;background:transparent}dialog::backdrop{background:rgba(14,22,19,.66);backdrop-filter:blur(5px)}.dialog-card{background:var(--card);border-radius:22px;padding:34px;width:min(440px,calc(100vw - 30px));position:relative;box-shadow:var(--shadow)}.dialog-card h3{font-size:24px;margin:15px 0 7px}.dialog-card>p{color:var(--muted);font-size:14px;line-height:1.6;margin-bottom:22px}.dialog-card label{margin:14px 0}.dialog-card>small{display:block;color:var(--muted);font-size:11px;text-align:center;margin-top:13px;line-height:1.5}.dialog-close{position:absolute;right:18px;top:15px;border:0;background:transparent;font-size:27px;color:var(--muted);cursor:pointer}.dialog-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--lime);font-size:23px;font-weight:700}.dialog-icon.key{font-size:13px}.error{color:#bd3c2e;font-size:13px;min-height:20px;margin:7px 0}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);opacity:0;background:var(--ink);color:#fff;padding:12px 20px;border-radius:10px;z-index:50;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.bad{background:#a53329}.empty{grid-column:1/-1;text-align:center;padding:65px;color:var(--muted);border:1px dashed var(--line);border-radius:16px}.hidden{display:none!important}footer{max-width:1180px;margin:auto;padding:30px 24px 50px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}footer a{color:var(--muted)}
/* admin */.admin-container{max-width:1180px;margin:auto;padding:52px 24px 80px}.admin-login{max-width:450px;margin:50px auto}.admin-login h1{font-size:48px}.admin-login p{color:var(--muted);line-height:1.7}.admin-login form{margin-top:25px}.admin-login .btn{margin-top:8px}.admin-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.admin-heading h1{font-size:48px;margin-bottom:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stats>div{background:var(--ink);color:#fff;border-radius:15px;padding:22px}.stats span{display:block;font-size:12px;opacity:.65}.stats strong{display:block;font:700 36px Arial;color:var(--lime);margin-top:5px}.admin-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:20px;margin-bottom:20px}.admin-page .panel{margin-bottom:20px}.section-title{display:flex;align-items:center;justify-content:space-between}.table-wrap{overflow:auto;margin-top:17px}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:var(--muted);font-size:11px;letter-spacing:.06em;padding:10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #e9e6dc;vertical-align:top}td small{display:block;color:var(--muted);max-width:300px;margin-top:4px}.link-btn{border:0;background:transparent;color:var(--green);font:600 12px inherit;padding:3px 8px 3px 0;cursor:pointer}.mini-form{display:grid;grid-template-columns:1fr 1fr 100px auto;gap:8px;padding:15px;background:#f1eee5;border-radius:12px;margin-top:12px}.upload-panel label{margin:12px 0}.two-cols{display:grid;grid-template-columns:120px 1fr;gap:12px}.muted{color:var(--muted);font-size:12px}.positive{color:#20814e;font-weight:700}.negative{color:#bd3c2e;font-weight:700}.switch-row{display:flex;align-items:center;gap:10px;color:var(--muted)}.switch-row input{display:none}.switch-row i{display:block;width:43px;height:24px;border-radius:20px;background:#bbb;position:relative;transition:.2s}.switch-row i:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;left:3px;top:3px;transition:.2s}.switch-row input:checked+i{background:var(--green)}.switch-row input:checked+i:after{left:22px}
@media(max-width:850px){.hero{grid-template-columns:1fr;gap:25px}.balance-card{min-height:160px}.course-grid{grid-template-columns:repeat(2,1fr)}.admin-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.mini-form{grid-template-columns:1fr 1fr}.admin-heading{align-items:flex-start;gap:22px;flex-direction:column}}@media(max-width:560px){.topbar{height:68px;padding:0 16px}.identity{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container,.admin-container{padding:35px 16px 60px}.hero{padding:10px 0 45px}.hero h1{font-size:46px}.course-grid{grid-template-columns:1fr}.library-head{align-items:stretch;flex-direction:column;gap:15px}.search{width:100%}.notice,.inline-form{align-items:stretch;flex-direction:column}.stats{grid-template-columns:1fr 1fr}.admin-heading h1{font-size:40px}.mini-form,.two-cols{grid-template-columns:1fr}.brand small{display:none}}



/* customer app shell */
.customer-page{--sidebar-width:252px;--accountbar-height:112px;background:#f3f8f7;color:#17201d;overflow-x:hidden}
.customer-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);z-index:30;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e5ece9;box-shadow:8px 0 30px rgba(22,55,47,.035)}
.sidebar-brand{height:112px;display:flex;align-items:center;gap:13px;padding:0 28px;border-bottom:1px solid #edf1ef;text-decoration:none;color:#16201d}
.sidebar-brand .brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#21b8aa,#2678e8);color:#fff;box-shadow:0 8px 20px rgba(34,160,155,.22)}
.sidebar-brand strong,.sidebar-brand small{display:block}.sidebar-brand strong{font-size:19px;letter-spacing:.02em}.sidebar-brand small{margin-top:4px;font-size:11px;color:#8b9692;letter-spacing:.08em}
.sidebar-caption{padding:28px 30px 11px;color:#9aa5a1;font-size:11px;font-weight:700;letter-spacing:.14em}
.category-nav{display:flex;flex-direction:column;gap:6px;padding:0 16px}
.category-item{width:100%;height:48px;display:flex;align-items:center;gap:13px;padding:0 15px;border:0;border-radius:12px;background:transparent;color:#596560;font:500 16px 'Microsoft YaHei','PingFang SC',Arial,sans-serif;text-align:left;cursor:pointer;transition:.18s}
.category-item:hover{background:#f2f8f6;color:#0c8f7f}.category-item.active{background:#e9f8f5;color:#089a88;font-weight:700;box-shadow:inset 3px 0 #12a995}
.nav-icon{width:25px;height:25px;display:grid;place-items:center;border:1px solid currentColor;border-radius:7px;font:700 12px Arial;opacity:.82}
.sidebar-bottom{margin-top:auto;height:62px;display:flex;align-items:center;gap:9px;padding:0 30px;border-top:1px solid #edf1ef;color:#8b9692;font-size:12px}.status-dot{width:8px;height:8px;border-radius:50%;background:#2bb976;box-shadow:0 0 0 4px rgba(43,185,118,.11)}
.customer-topbar{position:fixed;left:var(--sidebar-width);right:0;top:0;height:var(--accountbar-height);z-index:25;display:flex;align-items:center;background:rgba(255,255,255,.96);border-bottom:1px solid #e5ece9;backdrop-filter:blur(14px)}
.page-title{width:238px;min-width:238px;padding:0 28px}.page-title strong,.page-title small{display:block}.page-title strong{font-size:26px}.page-title small{margin-top:6px;color:#89948f;font-size:13px;white-space:nowrap}
.account-strip{height:100%;min-width:0;flex:1;display:grid;grid-template-columns:1fr 1fr 1.45fr 1.2fr .65fr 145px}
.account-cell{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:0 20px;border-left:1px solid #edf1ef}
.account-cell span{color:#7f8d88;font-size:13px;margin-bottom:8px}.account-cell strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-cell.points-cell{background:#f1fbf8}.account-cell.points-cell strong{font:700 30px Arial;color:#079a87}
.customer-main{min-height:100vh;margin-left:var(--sidebar-width);padding:calc(var(--accountbar-height) + 44px) 42px 0}
.content-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;max-width:1440px;margin:0 auto 28px}.content-intro h1{margin:8px 0 8px;font-size:34px;letter-spacing:-.03em}.content-intro p{margin:0;color:#7b8782;font-size:14px}.content-intro .search{width:310px;flex:none;background:#fff;border-color:#dfe8e5;border-radius:13px;box-shadow:0 8px 26px rgba(29,91,72,.05)}
.customer-page .panel,.customer-page .course-card{background:#fff;border-color:#e0e9e6}.customer-page .entry-panel,.customer-page .notice{max-width:1440px;margin-left:auto;margin-right:auto}.customer-page .notice{margin-bottom:26px}.customer-page .course-grid{max-width:1440px;margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.customer-page .course-card{border-radius:18px;box-shadow:0 9px 30px rgba(30,79,67,.045)}.customer-page .course-card:hover{box-shadow:0 18px 45px rgba(30,79,67,.11)}
.customer-page .course-cover{background:linear-gradient(145deg,#108f81,#176b61)}.customer-page .course-cover:after{border-color:#82e4c8;opacity:.5}.customer-page .course-cover i{color:#baf4e3}.customer-page .btn.primary{background:#17ad99;color:#fff}.customer-page .btn.dark{background:#20312d}.customer-page .price strong{color:#0a9a87}
.customer-page .empty{background:#fff;border-color:#d9e5e1;min-height:190px;display:grid;place-items:center}.customer-footer{max-width:1440px;margin:42px auto 0;padding:24px 0 34px;border-top:1px solid #dfe8e5;display:flex;justify-content:space-between;color:#8a9691;font-size:12px}.customer-footer a{color:#8a9691}
.customer-page .toast{z-index:80}
select{font:inherit;color:var(--ink);width:100%;border:1px solid var(--line);background:#fff;padding:12px 13px;border-radius:9px;outline:0}select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(29,91,72,.1)}label select{margin-top:7px}
@media(max-width:1180px){.customer-page{--sidebar-width:220px}.sidebar-brand{padding:0 20px}.category-nav{padding:0 12px}.page-title{width:170px;min-width:170px;padding:0 18px}.account-cell{padding:0 13px}.customer-main{padding-left:28px;padding-right:28px}.customer-page .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.customer-page{--sidebar-width:178px;--accountbar-height:198px}.sidebar-brand{padding:0 16px}.sidebar-brand .brand-mark{width:38px;height:38px;flex:none}.sidebar-brand strong{font-size:16px}.sidebar-brand small{font-size:9px}.sidebar-caption{padding:20px 20px 9px}.category-nav{padding:0 10px}.category-item{height:46px;padding:0 11px;font-size:14px;gap:9px}.nav-icon{width:25px;height:25px;flex:none}.sidebar-bottom{padding:0 18px}.customer-topbar{align-items:stretch}.page-title{display:none}.account-strip{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,1fr)}.account-cell{padding:0 12px}.account-cell:nth-child(3),.account-cell:nth-child(4),.account-cell:nth-child(5),.account-action{border-top:1px solid #edf1ef}.account-cell:nth-child(3){grid-column:1/-1}.customer-main{padding-top:calc(var(--accountbar-height) + 28px);padding-left:22px;padding-right:22px}.content-intro{align-items:stretch;flex-direction:column}.content-intro .search{width:100%}.customer-page .course-grid{grid-template-columns:1fr}}
@media(max-width:560px){.customer-page{--sidebar-width:148px;--accountbar-height:220px}.sidebar-brand{padding:0 11px}.sidebar-brand strong{font-size:14px}.sidebar-brand small{display:none}.sidebar-caption{padding-left:16px}.category-nav{padding:0 7px}.category-item{height:44px;padding:0 8px;font-size:13px}.nav-icon{width:23px;height:23px}.sidebar-bottom{padding:0 12px;font-size:10px}.account-cell{padding:0 9px}.customer-main{padding-left:12px;padding-right:12px}.content-intro h1{font-size:27px}.customer-footer{align-items:flex-start;gap:8px;flex-direction:column}}

.account-action{display:flex;align-items:center;justify-content:center;padding:0 16px;border-left:1px solid #edf1ef}
.reset-password-btn{border:1px solid #9fdacf;background:#eefaf7;color:#087f71;border-radius:11px;padding:11px 17px;font:700 14px 'Microsoft YaHei','PingFang SC',Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:.18s}
.reset-password-btn:hover{background:#0da28f;border-color:#0da28f;color:#fff;transform:translateY(-1px)}
.reset-mail-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px;padding:10px 12px;margin:-6px 0 16px;border-radius:10px;background:#f3f7f6;color:#697570;font-size:13px}
.reset-mail-row .link-btn{padding:5px 0;white-space:nowrap}.reset-success{color:#16825e}.reset-failed{color:#bd3c2e}
.development-code{padding:13px 14px;margin:-4px 0 16px;border:1px solid #f0cc85;background:#fff8e9;border-radius:11px}.development-code b,.development-code small{display:block}.development-code b{font-size:12px;color:#946414}.development-code code{display:block;margin:8px 0;padding:10px;background:#fff;border:1px dashed #d9a94f;border-radius:7px;font-size:14px;word-break:break-all;user-select:all}.development-code small{color:#8b7753;line-height:1.5}
.reset-dialog-card{width:min(500px,calc(100vw - 30px))}
.client-form{grid-template-columns:1fr 1fr 1.4fr 150px 100px auto}
@media(max-width:1180px){.page-title{width:190px;min-width:190px}.account-strip{grid-template-columns:1fr 1fr 1.35fr 1.1fr .6fr 125px}.account-cell{padding:0 12px}.account-cell strong{font-size:16px}.reset-password-btn{padding:10px 12px}}
@media(max-width:820px){.account-action{padding:0 10px}.reset-password-btn{width:100%;padding:9px 8px}.account-cell span{font-size:12px}.account-cell strong{font-size:16px}.client-form{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.account-cell strong{font-size:14px}.account-cell span{font-size:11px}.reset-mail-row{align-items:flex-start;flex-direction:column}}
.client-form .date-field{display:flex;flex-direction:column;justify-content:center;gap:4px;color:var(--muted);font-size:11px}.client-form .date-field input{padding:9px 10px;color:var(--ink)}
/* enlarged reset-password dialog */
.reset-dialog-card{width:min(560px,calc(100vw - 28px));padding:38px 34px 34px}
.reset-dialog-card h3{font-size:30px;line-height:1.25;margin:18px 0 10px}
.reset-dialog-card>p{font-size:16px;line-height:1.75;margin-bottom:24px}
.reset-dialog-card label{font-size:16px;line-height:1.5;margin:18px 0}
.reset-dialog-card input:not([type=checkbox]){font-size:17px;padding:14px 15px;border-radius:10px;margin-top:8px}
.reset-dialog-card .reset-mail-row{font-size:15px;line-height:1.55;min-height:50px;padding:13px 14px;margin-bottom:20px}
.reset-dialog-card .reset-mail-row .link-btn{font-size:14px}
.reset-dialog-card .btn.wide{font-size:16px;padding:15px 18px;margin-top:8px}
.reset-dialog-card .dialog-close{right:16px;top:13px;width:44px;height:44px;border-radius:50%;font-size:34px;line-height:1}
.reset-dialog-card .dialog-close:hover{background:#edf1ee;color:var(--ink)}
.reset-dialog-card .error{font-size:14px;line-height:1.5}
@media(max-width:560px){.reset-dialog-card{padding:30px 22px 24px}.reset-dialog-card h3{font-size:26px}.reset-dialog-card>p{font-size:15px}.reset-dialog-card label{font-size:15px}.reset-dialog-card input:not([type=checkbox]){font-size:16px}.reset-dialog-card .reset-mail-row{font-size:14px}}
/* reference-grade typography */
:root{--font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",sans-serif;--ink:#111827;--muted:#4b5563}
html{font-family:var(--font-sans);font-size:16px;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
body,button,input,textarea,select{font-family:var(--font-sans)}
body{font-size:16px;line-height:1.5;color:var(--ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
button,input,textarea,select{font-size:16px;line-height:1.5}
h1,h2,h3,h4,strong,b{letter-spacing:0;text-rendering:optimizeLegibility}
.sidebar-title{font-size:14px;font-weight:700;color:#374151}
.category-item{font-size:17px;font-weight:600;line-height:1.4}
.page-title strong{font-size:19px;font-weight:700}
.page-title span{font-size:14px;color:#4b5563}
.account-cell span{font-size:14px;font-weight:500;color:#4b5563;line-height:1.35}
.account-cell strong{font-size:18px;font-weight:650;line-height:1.4;color:#111827}
.customer-main h1{letter-spacing:0;line-height:1.2}
.library-head p,.customer-main>.muted{font-size:16px;line-height:1.7;color:#4b5563}
.search input{font-size:16px;line-height:1.5}
.course-meta{font-size:13px;font-weight:500;line-height:1.5;color:#4b5563}
.course-body h3{font-size:21px;font-weight:700;line-height:1.45;color:#111827}
.course-body>p{font-size:15px;line-height:1.7;color:#4b5563;height:auto;min-height:51px}
.price small,.course-foot small{font-size:13px;line-height:1.5;color:#4b5563}
.btn{font-family:var(--font-sans);font-size:15px;font-weight:600;line-height:1.5}
.reset-password-btn{font-family:var(--font-sans);font-size:15px;font-weight:650}
.dialog-card{color:#111827}
.dialog-card h3{letter-spacing:0;color:#111827}
.dialog-card>p{color:#4b5563}
.dialog-card label{color:#111827;font-weight:600}
.dialog-card input:not([type=checkbox]){font-family:var(--font-sans);font-weight:400;color:#111827}
.dialog-card input::placeholder{color:#8b94a3;opacity:1}
.reset-mail-row{color:#374151}
.link-btn{font-family:var(--font-sans);font-weight:600}
table,th,td{font-family:var(--font-sans)}
th{font-size:13px;font-weight:650;color:#374151}
td{font-size:14px;line-height:1.55;color:#1f2937}
@media(max-width:560px){.category-item{font-size:16px}.account-cell span{font-size:12px}.account-cell strong{font-size:15px}.course-body h3{font-size:20px}}
/* larger account labels */
.account-cell span{font-size:16px;font-weight:600;line-height:1.35;color:#374151;white-space:nowrap}
@media(max-width:1180px){.account-cell span{font-size:15px}}
@media(max-width:820px){.account-cell span{font-size:14px}}
/* long client identity code */
.customer-topbar .page-title{width:200px;min-width:200px}
.account-strip{grid-template-columns:minmax(110px,1.1fr) minmax(180px,2fr) minmax(135px,1.45fr) minmax(135px,1.3fr) minmax(75px,.65fr) 135px}
.identity-code-cell{padding:0 16px;justify-content:center}
.identity-code-cell strong{display:flex;flex-direction:column;justify-content:center;gap:1px;white-space:normal;overflow:hidden;text-overflow:clip;font-family:ui-monospace,"Cascadia Mono","Segoe UI Mono",Consolas,monospace;font-size:14px;font-weight:650;line-height:1.3;max-height:2.6em}
.identity-line{display:block;min-height:1.3em;white-space:nowrap}
@media(max-width:1180px){.customer-topbar .page-title{width:175px;min-width:175px}.account-strip{grid-template-columns:minmax(105px,1.05fr) minmax(165px,2fr) minmax(125px,1.4fr) minmax(125px,1.25fr) minmax(70px,.65fr) 125px}.identity-code-cell strong{font-size:13px}}
@media(max-width:820px){.customer-topbar .page-title{width:auto;min-width:0}.identity-code-cell strong{font-size:14px;max-height:none}}


/* long identity code: keep both halves fully visible */
.identity-code-cell{padding-left:8px;padding-right:8px}
.identity-code-cell strong{overflow:visible;text-overflow:clip;font-size:13px;letter-spacing:-.035em}
@media(max-width:1180px){.identity-code-cell{padding-left:7px;padding-right:7px}.identity-code-cell strong{font-size:12px;letter-spacing:-.025em}}
@media(max-width:820px){.identity-code-cell strong{font-size:14px;letter-spacing:-.02em}}

/* topbar adjustments: client download title and full-size identity code */
.account-strip{grid-template-columns:minmax(105px,1fr) minmax(225px,2.15fr) minmax(125px,1.25fr) minmax(125px,1.2fr) minmax(65px,.6fr) 125px}
.identity-code-cell strong{font-size:18px;letter-spacing:-.035em}
@media(max-width:1180px){
  .account-strip{grid-template-columns:minmax(100px,1fr) minmax(205px,2.05fr) minmax(115px,1.2fr) minmax(115px,1.15fr) minmax(65px,.6fr) 120px}
  .identity-code-cell strong{font-size:16px;letter-spacing:-.03em}
}
@media(max-width:820px){.identity-code-cell strong{font-size:16px}}
.client-download-link{display:inline-flex;align-items:center;color:#0b8f80;text-decoration:none;font:inherit;cursor:pointer;white-space:nowrap}
.client-download-link:hover{text-decoration:underline;color:#067465}
.client-release-panel{border:1px solid #bfe7df;background:#fbfffe}
.client-release-panel>p{margin:8px 0 18px;line-height:1.7}
.client-release-panel code{padding:2px 6px;border-radius:5px;background:#eef8f5;color:#087f71}
/* latest client download title */
.page-title .client-download-link{font-size:24px;font-weight:700;line-height:1.25;color:#087f71}
@media(max-width:1180px){.page-title .client-download-link{font-size:21px}}
/* center the latest-client link in its title cell */
.customer-topbar .page-title{display:flex;align-items:center;justify-content:center;padding-left:10px;padding-right:10px}
.customer-topbar .page-title .client-download-link{font-size:20px;font-weight:700;line-height:1.25;white-space:nowrap}
@media(max-width:1180px){.customer-topbar .page-title .client-download-link{font-size:20px}}

/* community invitation banner */
.community-banner{max-width:1440px;min-height:166px;margin:0 auto 28px;padding:18px 30px;display:grid;grid-template-columns:minmax(360px,1fr) auto;align-items:center;gap:38px;background:linear-gradient(115deg,#f7fbfa 0%,#eef8f5 100%);border:1px solid #d9ebe6;border-radius:16px;box-shadow:0 10px 32px rgba(29,91,72,.06)}
.community-copy{max-width:620px}
.community-kicker{display:block;margin-bottom:9px;color:#0a8f80;font-size:14px;font-weight:700;letter-spacing:.08em}
.community-copy h1{margin:0 0 10px;font-size:30px;line-height:1.3;letter-spacing:-.025em;color:#16231f}
.community-copy p{margin:0;color:#5d6d67;font-size:16px;line-height:1.8}
.qr-list{display:grid;grid-template-columns:repeat(4,100px);gap:18px;align-items:start}
.qr-item{text-align:center;color:#24322d}
.qr-placeholder{width:100px;height:100px;background:#fff;border:1px solid #cbd9d5;border-radius:10px;box-shadow:0 5px 16px rgba(23,32,29,.06)}
.qr-item strong{display:block;margin-top:8px;font-size:15px;line-height:1.35;white-space:nowrap}
@media(max-width:1180px){
  .community-banner{grid-template-columns:minmax(300px,1fr) auto;gap:24px;padding:22px 24px}
  .community-copy h1{font-size:26px}
  .community-copy p{font-size:15px}
  .qr-list{grid-template-columns:repeat(4,96px);gap:12px}
  .qr-placeholder{width:96px;height:96px}
  .qr-item strong{font-size:14px}
}
@media(max-width:900px){
  .community-banner{grid-template-columns:1fr;align-items:start}
  .qr-list{grid-template-columns:repeat(4,minmax(84px,1fr));width:100%}
  .qr-placeholder{width:100%;height:auto;aspect-ratio:1}
}
@media(max-width:620px){
  .community-banner{padding:20px}
  .qr-list{grid-template-columns:repeat(2,minmax(90px,1fr));gap:16px}
}


/* larger QR layout: vertical label on the left, QR on the right */
.community-banner{grid-template-columns:minmax(430px,1fr) auto;gap:28px;padding-top:18px;padding-bottom:18px}
.community-copy{max-width:570px}
.qr-list{display:grid;grid-template-columns:repeat(4,174px);gap:12px;align-items:center}
.qr-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
.qr-placeholder{flex:0 0 144px;width:144px;height:144px;border-radius:10px}
.qr-item strong{display:block;margin:0;font-size:16px;line-height:1.15;letter-spacing:.08em;white-space:nowrap;writing-mode:vertical-rl;text-orientation:upright}
@media(max-width:1350px){
  .community-banner{grid-template-columns:minmax(340px,1fr) auto;gap:20px}
  .community-copy h1{font-size:26px}
  .qr-list{grid-template-columns:repeat(4,142px);gap:10px}
  .qr-placeholder{flex-basis:114px;width:114px;height:114px}
  .qr-item strong{font-size:15px}
}
@media(max-width:1050px){
  .community-banner{grid-template-columns:1fr}
  .community-copy{max-width:none}
  .qr-list{grid-template-columns:repeat(4,minmax(130px,1fr));width:100%}
  .qr-placeholder{flex:1 1 auto;width:auto;max-width:128px;height:auto;aspect-ratio:1}
}
@media(max-width:700px){
  .qr-list{grid-template-columns:repeat(2,minmax(140px,1fr));gap:18px}
}


/* wider course cards: use the content area with two cards per row */
.customer-page .course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.customer-page .course-cover{height:210px}
.customer-page .course-body{padding:24px 26px}
@media(max-width:1000px){
  .customer-page .course-grid{grid-template-columns:1fr}
}

/* make the top banner and course list fill the main content area */
@media(min-width:1001px){
  .customer-page .customer-main{padding-top:calc(var(--accountbar-height) + 18px);padding-left:18px;padding-right:18px}
  .customer-page .community-banner,
  .customer-page .course-grid{max-width:none;width:100%}
  .customer-page .community-banner{margin-bottom:24px}
}

/* remove the two empty strips between the fixed navigation and page content */
.customer-page .customer-main{padding-top:var(--accountbar-height);padding-left:0;padding-right:0}
.customer-page .community-banner,
.customer-page .course-grid{max-width:none;width:100%;margin-left:0;margin-right:0}

/* retain a narrow breathing space instead of a large empty strip */
.customer-page .customer-main{padding-top:calc(var(--accountbar-height) + 12px);padding-left:12px;padding-right:12px}

/* courseware preview: two equal cards per row, each video area is exactly 16:9 */
.customer-page .course-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.customer-page .course-card{display:flex;flex-direction:column;height:100%}
.customer-page .course-cover{width:100%;height:auto;aspect-ratio:16/9;flex:none}
.customer-page .course-body{display:flex;flex-direction:column;flex:1}
.customer-page .course-foot{margin-top:auto}
@media(max-width:1000px){
  .customer-page .course-grid{grid-template-columns:1fr}
}


/* final 16:9 video-only course cards */
.customer-page .course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.customer-page .course-card.video-course-card{position:relative;display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;border:1px solid #d8e4e0;border-radius:18px;background:#123f38;box-shadow:0 12px 32px rgba(23,70,60,.12)}
.course-preview-video,.course-preview-missing{display:block;width:100%;height:100%;object-fit:cover;background:#123f38}
.course-preview-video{cursor:pointer}
.course-preview-missing{display:grid;place-items:center;color:rgba(255,255,255,.7);font-size:18px}
.course-video-overlay{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(5,24,20,.25) 0%,rgba(5,24,20,.03) 44%,rgba(5,24,20,.38) 100%);transition:background .2s ease}
.course-download-count,.course-points{position:absolute;z-index:2;color:#fff;font-size:18px;font-weight:700;line-height:1;padding:10px 14px;border-radius:10px;background:rgba(6,25,21,.52);backdrop-filter:blur(5px);text-shadow:0 1px 2px rgba(0,0,0,.35)}
.course-download-count{top:18px;right:18px}
.course-points{left:18px;bottom:18px;color:#f2ff7a}
.course-play-btn,.course-cart-btn{pointer-events:auto;border:0;cursor:pointer;display:grid;place-items:center;transition:transform .18s ease,opacity .18s ease,background .18s ease}
.course-play-btn{position:absolute;z-index:3;left:50%;top:50%;width:78px;height:78px;transform:translate(-50%,-50%);border-radius:50%;background:rgba(255,255,255,.88);box-shadow:0 8px 30px rgba(0,0,0,.22)}
.course-play-btn span{display:block;width:0;height:0;margin-left:6px;border-top:14px solid transparent;border-bottom:14px solid transparent;border-left:22px solid #087f71}
.course-play-btn:hover{transform:translate(-50%,-50%) scale(1.08);background:#fff}
.course-play-btn:disabled{cursor:not-allowed;opacity:.45}
.course-cart-btn{position:absolute;z-index:3;right:18px;bottom:18px;width:54px;height:54px;border-radius:14px;background:rgba(8,127,113,.94);color:#fff;box-shadow:0 7px 20px rgba(0,0,0,.18)}
.course-cart-btn:hover{transform:translateY(-2px);background:#066f63}
.course-cart-btn svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.video-course-card.is-playing .course-play-btn{opacity:0;pointer-events:none}
.video-course-card.is-playing .course-video-overlay{background:linear-gradient(180deg,rgba(5,24,20,.16) 0%,transparent 45%,rgba(5,24,20,.28) 100%)}
@media(max-width:1000px){.customer-page .course-grid{grid-template-columns:1fr}}
@media(max-width:620px){
  .course-download-count,.course-points{font-size:15px;padding:8px 10px}
  .course-download-count{top:10px;right:10px}.course-points{left:10px;bottom:10px}
  .course-cart-btn{right:10px;bottom:10px;width:46px;height:46px}
  .course-play-btn{width:62px;height:62px}
  .course-play-btn span{border-top-width:11px;border-bottom-width:11px;border-left-width:18px}
}


/* hidden video progress bar */
.course-progress{position:absolute;z-index:5;left:8px;right:8px;bottom:8px;height:18px;cursor:pointer;pointer-events:auto;opacity:0;transition:opacity .2s ease;background:transparent;touch-action:none}
.course-progress::before{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:rgba(255,255,255,.25)}
.course-progress-loaded,.course-progress-played{position:absolute;left:0;bottom:0;height:5px;width:0;pointer-events:none}
.course-progress-loaded{background:rgba(255,255,255,.48)}
.course-progress-played{background:#19c9b5}
.course-progress-thumb{position:absolute;bottom:-2px;left:0;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.45);transform:translateX(-50%);opacity:0;transition:opacity .18s ease;pointer-events:none}
.video-course-card:hover .course-progress,.video-course-card.is-playing .course-progress,.course-progress:focus-visible{opacity:1}
.video-course-card:hover .course-progress-thumb,.course-progress:active .course-progress-thumb{opacity:1}



/* shopping cart checkout */
@media(min-width:821px){
  .customer-topbar .page-title{width:160px;min-width:160px;padding-left:8px;padding-right:8px}
  .account-strip{grid-template-columns:minmax(120px,1fr) minmax(190px,1.12fr) minmax(145px,1fr) minmax(140px,1fr) minmax(75px,.58fr) minmax(100px,.68fr) minmax(74px,.55fr)}
  .identity-code-cell{padding-left:8px;padding-right:8px}
  .identity-code-cell strong{font-size:14px;letter-spacing:-.025em}
  .account-cell{padding-left:12px;padding-right:12px}
  .account-action{padding-left:8px;padding-right:8px}
  .cart-account-action{padding-left:7px;padding-right:7px;background:#fbfefd}
}
.cart-checkout-btn{position:relative;width:58px;height:58px;display:grid;place-items:center;border:1px solid #9fdacf;border-radius:15px;background:#eefaf7;color:#087f71;cursor:pointer;transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}
.cart-checkout-btn:hover,.cart-checkout-btn.has-items{background:#0a9887;color:#fff;border-color:#0a9887;box-shadow:0 8px 22px rgba(8,127,113,.2)}
.cart-checkout-btn svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cart-count{position:absolute;right:-9px;top:-9px;min-width:23px;height:23px;padding:0 6px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:#ef3434;color:#fff;font:700 13px Arial;line-height:1;opacity:0;transform:scale(.45);transition:opacity .18s ease,transform .18s ease;box-shadow:0 3px 9px rgba(185,20,20,.28)}
.cart-count.show{opacity:1;transform:scale(1)}
.cart-checkout-btn.cart-bump{animation:cartBump .48s ease}
@keyframes cartBump{0%,100%{transform:scale(1)}38%{transform:scale(1.18) rotate(-7deg)}70%{transform:scale(.95) rotate(3deg)}}
.cart-flyer{position:fixed;z-index:200;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#0a9887;color:#fff;pointer-events:none;transition:transform .6s cubic-bezier(.22,.76,.25,1),opacity .58s ease;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.cart-flyer svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.course-cart-btn.is-added{background:#ef3434;color:#fff;box-shadow:0 7px 20px rgba(190,35,35,.28)}
.course-cart-btn.is-added:hover{background:#d92727}
#cartDialog{width:min(620px,calc(100vw - 30px));max-width:none;overflow-x:hidden}.cart-dialog-card{width:100%;max-width:100%;padding:34px;overflow-x:hidden}
.cart-dialog-icon{font-size:28px}
.cart-items{display:grid;gap:10px;max-height:310px;overflow:auto;margin:20px 0 14px;padding-right:4px}
.cart-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 15px;border:1px solid #dce8e4;border-radius:12px;background:#f8fcfb}
.cart-item>div{min-width:0}.cart-item strong,.cart-item small{display:block}.cart-item strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-item small{margin-top:5px;color:#0a8f80;font-size:13px;font-weight:650}
.cart-remove{border:0;background:transparent;color:#d43a32;font-size:14px;font-weight:650;cursor:pointer;padding:7px;white-space:nowrap}
.cart-summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 16px;margin:14px 0 18px;padding:14px 16px;border-radius:12px;background:#f1f8f6}
.cart-summary span{font-size:15px}.cart-summary>strong{color:#e4572e;font-size:19px}.cart-summary small{grid-column:1/-1;color:#64716c;font-size:13px}
.cart-empty{padding:35px 20px;text-align:center;color:#74807c;border:1px dashed #cbdad5;border-radius:12px;background:#fafdfc}
.cart-download-results{display:grid;gap:10px;margin-top:18px}
.cart-download-link{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #a9ddd3;border-radius:11px;background:#f1fbf8;color:#17201d;text-decoration:none;font-weight:650}
.cart-download-link b{color:#078c7c;white-space:nowrap}.cart-download-link:hover{background:#e6f7f3}
@media(max-width:1180px) and (min-width:821px){
  .customer-topbar .page-title{width:150px;min-width:150px}
  .account-strip{grid-template-columns:minmax(96px,1fr) minmax(180px,1.2fr) minmax(128px,1fr) minmax(125px,1fr) minmax(68px,.58fr) minmax(96px,.68fr) minmax(70px,.55fr)}
  .identity-code-cell strong{font-size:13px}.account-cell{padding-left:9px;padding-right:9px}.reset-password-btn{font-size:13px;padding:9px 8px}.cart-checkout-btn{width:50px;height:50px}
}

/* Hide browser-native video overlays; this page uses its own play/progress controls. */
.course-preview-video::-webkit-media-controls,
.course-preview-video::-webkit-media-controls-enclosure,
.course-preview-video::-webkit-media-controls-panel,
.course-preview-video::-webkit-media-controls-overlay-play-button,
.course-preview-video::-webkit-media-controls-fullscreen-button,
.course-preview-video::-webkit-media-controls-picture-in-picture-button,
.course-preview-video::-webkit-media-controls-download-button,
.course-preview-video::-webkit-media-controls-remote-playback-button{display:none!important;-webkit-appearance:none!important}



/* checkout identity confirmation */
.cart-authorization-fields{display:grid;gap:14px;min-width:0;max-width:100%}
.cart-identity-warning{display:grid;gap:5px;margin:2px 0 1px;padding:13px 15px;border:1px solid #f0c98a;border-radius:11px;background:#fff8e8;color:#74511a}
.cart-identity-warning strong{font-size:15px}
.cart-identity-warning span{font-size:13px;line-height:1.65}
#cartClientIdLabel{display:grid;gap:8px;min-width:0;max-width:100%}
.cart-client-id-row{display:grid;grid-template-columns:minmax(0,1fr) 68px 68px;gap:8px;align-items:center;min-width:0;max-width:100%}
#cartConfirmClientId{min-width:0;font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:13px;letter-spacing:-.02em}
.cart-field-btn{height:46px;border:1px solid #cbdad5;border-radius:9px;background:#fff;color:#4d5d57;font:700 14px inherit;cursor:pointer}.cart-field-btn:hover{border-color:#0b9b89;color:#087e70;background:#f1fbf8}.cart-field-btn.confirm{border-color:#0b9b89;background:#0b9b89;color:#fff}.cart-field-btn.confirm:hover{background:#078878}.cart-field-btn.confirm.is-confirmed{font-size:23px;line-height:1;padding-bottom:3px;background:#078878}
.cart-field-status{display:block;min-height:19px;color:#75817d;font-size:13px;font-weight:500}.cart-field-status.ok{color:#078b7b}.cart-field-status.bad{color:#cf3d35}.cart-field-status.checking{color:#a06a10}
#confirmCartCheckout:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
@media(max-width:560px){.cart-client-id-row{grid-template-columns:minmax(0,1fr) 60px 60px}.cart-field-btn{padding:0 8px}}


/* login and first-activation gate */
.auth-pending>.customer-sidebar,.auth-pending>.customer-topbar,.auth-pending>.customer-main{visibility:hidden}
.auth-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;overflow:auto;padding:34px;background:radial-gradient(circle at 18% 20%,rgba(21,167,148,.17),transparent 34%),linear-gradient(135deg,#eef8f5 0%,#f8fbfa 48%,#e7f3f0 100%)}
.auth-gate.hidden{display:none}
.auth-shell{width:min(720px,100%)}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:20px;color:#15231f}
.auth-logo{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#0db19c,#2478dc);color:#fff;font:700 27px Arial;box-shadow:0 10px 24px rgba(8,143,126,.22)}
.auth-brand strong,.auth-brand small{display:block}.auth-brand strong{font-size:24px}.auth-brand small{margin-top:3px;color:#74817c;font-size:12px;letter-spacing:.08em}
.auth-card{padding:34px 40px 28px;border:1px solid #d6e7e2;border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 24px 70px rgba(25,73,62,.14)}
.auth-source-badge{display:inline-flex;padding:7px 11px;border-radius:999px;background:#e7f8f4;color:#087d6f;font-size:13px;font-weight:700}
.auth-card h1{margin:15px 0 8px;font-size:32px;line-height:1.25;letter-spacing:-.025em;color:#14231f}
.auth-card>p{margin:0 0 21px;color:#687772;font-size:15px;line-height:1.75}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:22px;padding:5px;border-radius:13px;background:#edf4f2}
.auth-tab{border:0;border-radius:9px;padding:11px;background:transparent;color:#64736e;font:700 15px inherit;cursor:pointer}.auth-tab.active{background:#fff;color:#078d7d;box-shadow:0 3px 12px rgba(25,73,62,.1)}
.auth-form{display:grid;gap:16px}.auth-form label{display:grid;gap:8px;color:#26332f;font-size:14px;font-weight:700}.auth-form input{height:50px;border-color:#d7e2de!important;background:#fbfdfc!important;font-size:15px!important}.auth-form input:focus{border-color:#16a38f!important;box-shadow:0 0 0 3px rgba(22,163,143,.11)}.auth-form input[readonly]{color:#52615c;background:#f0f5f3!important;cursor:default}
.auth-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-error{min-height:20px;color:#c53830;font-size:14px;line-height:1.5}.auth-submit{height:51px;border:0;border-radius:12px;background:#0a9b89;color:#fff;font:700 16px inherit;cursor:pointer;box-shadow:0 10px 22px rgba(10,155,137,.2)}.auth-submit:hover{background:#078878}.auth-submit:disabled{opacity:.6;cursor:wait}
.auth-link{justify-self:center;border:0;background:transparent;color:#087f71;font:650 14px inherit;cursor:pointer}.auth-client-download{display:block;margin-top:20px;padding-top:19px;border-top:1px solid #e3ece9;text-align:center;color:#087f71;font-size:15px;font-weight:700;text-decoration:none}.auth-client-download:hover{text-decoration:underline}.auth-note{text-align:center;margin:16px 0 0;color:#71807b;font-size:13px}
@media(max-width:680px){.auth-gate{padding:18px}.auth-card{padding:26px 20px 22px;border-radius:18px}.auth-row{grid-template-columns:1fr}.auth-card h1{font-size:27px}}

/* paired account actions: reset password + logout */
.account-strip{grid-template-columns:minmax(120px,1fr) minmax(190px,1.12fr) minmax(145px,1fr) minmax(140px,1fr) minmax(75px,.58fr) minmax(184px,1.05fr) minmax(74px,.55fr)}
.account-buttons-action{gap:9px;padding-left:12px;padding-right:12px}
.top-account-btn{min-width:76px;height:42px;padding:0 12px;border-radius:11px;font-family:var(--font-sans);font-size:14px;font-weight:650;white-space:nowrap;cursor:pointer;transition:.18s}
.logout-btn{border:1px solid #d6ddd9;background:#fff;color:#53615c}
.logout-btn:hover{border-color:#ee9a78;background:#fff4ef;color:#c85225;transform:translateY(-1px)}
@media(max-width:1180px){
  .account-strip{grid-template-columns:minmax(96px,1fr) minmax(180px,1.2fr) minmax(128px,1fr) minmax(125px,1fr) minmax(68px,.58fr) minmax(166px,1.08fr) minmax(70px,.55fr)}
  .account-buttons-action{gap:7px;padding-left:8px;padding-right:8px}
  .top-account-btn{min-width:70px;height:40px;padding:0 9px;font-size:13px}
}
@media(max-width:820px){
  .account-buttons-action{gap:8px}
  .top-account-btn{width:auto;flex:1;min-width:0}
}

/* registration-code work queue */
.stats{grid-template-columns:repeat(5,1fr)}
.stats>div.attention{background:#9a3f21}
.stats>div.attention strong{color:#fff3a8}
.registration-task-panel{border-color:#f0c587;background:#fffdfa}
.registration-task-panel .section-title{gap:22px;align-items:flex-start}
.registration-task-panel .section-title h2{margin-bottom:6px}
.registration-task-panel .section-title p{margin:0;line-height:1.6}
.registration-task-count{display:inline-flex;align-items:center;justify-content:center;min-width:104px;padding:8px 12px;border-radius:999px;background:#edf3f1;color:#586761;font-size:13px;font-weight:700;white-space:nowrap}
.registration-task-count.has-tasks{background:#fff0dc;color:#bd531f}
.registration-task-table{min-width:1080px}
.registration-task-table code{font-size:12px;word-break:break-all}
.registration-task-table td{vertical-align:middle}
.registration-code-input{min-width:260px!important;height:42px;font-family:ui-monospace,"Cascadia Mono",Consolas,monospace;font-size:13px!important}
.task-error{display:block!important;max-width:260px!important;margin-top:6px!important;color:#bd3c2e!important;line-height:1.45}
.empty-table-cell{text-align:center!important;padding:34px 15px!important;color:var(--muted)}
@media(max-width:850px){.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.registration-task-panel .section-title{display:grid}.registration-task-count{justify-self:start}}


/* guest browsing and readable identity code */
.auth-card{position:relative}
.auth-close{position:absolute;right:17px;top:15px;width:38px;height:38px;border:0;border-radius:10px;background:#edf5f3;color:#52645e;font:400 27px/1 Arial;cursor:pointer}.auth-close:hover{background:#dfeeea;color:#087f71}
.identity-code-cell{align-items:flex-start;justify-content:center}
.identity-code-cell strong{font-size:13px!important;line-height:1.65;letter-spacing:-.02em!important;white-space:nowrap}
.identity-label{font:700 14px/1.65 var(--font-sans);letter-spacing:0;color:#34443e}
.identity-continuation{padding-left:0}

/* registered identity warning */
.identity-warning-dialog{border:0;background:transparent;padding:0;max-width:min(440px,calc(100vw - 36px))}
.identity-warning-dialog::backdrop{background:rgba(13,32,27,.48);backdrop-filter:blur(3px)}
.identity-warning-card{width:min(430px,calc(100vw - 36px));padding:34px 30px 30px;text-align:center}
.identity-warning-card h3{margin:14px 0 8px;font-size:25px}
.identity-warning-card p{margin:0 0 24px;color:#c23a32;font-size:17px;font-weight:700;line-height:1.7}
.identity-warning-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto;border-radius:50%;background:#fff0dd;color:#d56a17;font:800 34px/1 Arial}

/* final community banner layout: fixed below the account bar with a course search */
.customer-page{--community-banner-height:166px;--community-banner-gap:12px}
.customer-page .community-banner{
  position:fixed;
  top:calc(var(--accountbar-height) + var(--community-banner-gap));
  left:calc(var(--sidebar-width) + 12px);
  right:12px;
  z-index:20;
  width:auto;
  height:var(--community-banner-height);
  margin:0;
  padding:10px 30px;
  display:grid;
  grid-template-columns:minmax(380px,1fr) minmax(500px,1fr);
  align-items:center;
  gap:30px;
  background:linear-gradient(115deg,#f7fbfa 0%,#eef8f5 100%);
  border:1px solid #d9ebe6;
  border-radius:16px;
  box-shadow:0 10px 32px rgba(29,91,72,.09)
}
.customer-page .community-copy{max-width:590px}
.customer-page .community-copy h1{letter-spacing:0}
.customer-page .community-tools{min-width:0;display:grid;grid-template-columns:174px minmax(260px,1fr);align-items:center;gap:28px}
.customer-page .community-tools .qr-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;color:#24322d;text-align:left}
.customer-page .community-tools .qr-placeholder{flex:0 0 144px;width:144px;height:144px;background:#fff;border:1px solid #cbd9d5;border-radius:10px;box-shadow:0 5px 16px rgba(23,32,29,.06)}
.customer-page .community-tools .qr-item strong{display:block;margin:0;font-size:16px;line-height:1.15;letter-spacing:.08em;white-space:nowrap;writing-mode:vertical-rl;text-orientation:upright}
.customer-page .community-search{min-width:0;display:grid;gap:10px;color:#26342f;font-size:17px;font-weight:700}
.customer-page .community-search-field{height:58px;display:flex;align-items:center;gap:11px;padding:0 16px;background:#fff;border:1px solid #cbd9d5;border-radius:10px;box-shadow:0 5px 16px rgba(23,32,29,.05);transition:border-color .18s,box-shadow .18s}
.customer-page .community-search-field:focus-within{border-color:#16a38f;box-shadow:0 0 0 3px rgba(22,163,143,.11)}
.customer-page .community-search-icon{flex:none;color:#0a8f80;font:700 29px/1 Arial}
.customer-page .community-search-field input[type=search]{min-width:0;height:54px;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:#17201d;font-size:17px;outline:0}
.customer-page .community-search-field input[type=search]::placeholder{color:#89948f}
.customer-page .customer-main{padding-top:calc(var(--accountbar-height) + var(--community-banner-gap) + var(--community-banner-height) + 24px)}
@media(max-width:1250px){
  .customer-page .community-banner{grid-template-columns:minmax(300px,.85fr) minmax(410px,1.15fr);gap:20px;padding-left:22px;padding-right:22px}
  .customer-page .community-copy h1{font-size:26px}
  .customer-page .community-copy p{font-size:15px;line-height:1.65}
  .customer-page .community-tools{grid-template-columns:144px minmax(230px,1fr);gap:18px}
  .customer-page .community-tools .qr-placeholder{flex-basis:114px;width:114px;height:114px}
  .customer-page .community-tools .qr-item strong{font-size:15px}
}
@media(max-width:900px){
  .customer-page{--community-banner-height:276px}
  .customer-page .community-banner{grid-template-columns:1fr;align-content:center;gap:14px}
  .customer-page .community-copy{max-width:none}
  .customer-page .community-copy h1{font-size:24px}
  .customer-page .community-tools{grid-template-columns:144px minmax(200px,1fr)}
}
/* admin console v2 */
.admin-app{max-width:1440px;margin:0 auto;padding:28px 28px 80px}.admin-topbar{position:sticky;top:0;z-index:20}.admin-top-actions{display:flex;align-items:center;gap:12px}.admin-sync-state{font-size:12px;color:var(--muted)}.admin-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}.admin-sidebar{position:sticky;top:95px;background:#17251f;color:#fff;border-radius:20px;padding:15px;box-shadow:0 15px 35px rgba(21,47,39,.14)}.admin-sidebar-title{font-weight:800;font-size:16px;padding:10px 13px 14px;color:#dff7ea}.admin-nav-item{display:block;width:100%;border:0;background:transparent;color:#b9ccc3;text-align:left;border-radius:11px;padding:12px 13px;font:600 14px inherit;cursor:pointer;margin:3px 0}.admin-nav-item:hover,.admin-nav-item.active{background:#2d6658;color:#fff}.admin-content{min-width:0}.admin-section{display:none}.admin-section.active{display:block}.admin-section h1{font-size:42px;margin:4px 0 0}.admin-section>.section-title{margin-bottom:22px}.admin-two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.admin-page .panel{margin-bottom:20px}.overview-list{display:grid;gap:9px}.overview-list>div{display:flex;justify-content:space-between;gap:14px;padding:12px;border-radius:12px;background:#f5f8f5}.overview-list span{color:var(--muted);font-size:12px;text-align:right}.setting-preview{display:flex;flex-direction:column;gap:9px}.setting-preview b{font-size:20px;color:var(--green)}.setting-preview span{line-height:1.7}.setting-preview small{color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full-field{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.form-panel label,.upload-panel label{display:flex;flex-direction:column;gap:7px}.site-qr-preview{width:130px;height:130px;border:1px dashed #b8cdc5;border-radius:14px;background:#f4f8f6;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:12px;text-align:center}.site-qr-preview img{display:block;width:100%;height:100%;object-fit:contain}.category-editor{display:grid;gap:10px;max-width:650px}.category-edit-row{display:flex;align-items:center;gap:10px}.category-edit-row input{flex:1}.category-order{width:28px;color:var(--muted);text-align:center}.icon-danger{border:0;background:#fff0ee;color:#c44b3e;border-radius:8px;width:34px;height:34px;font-size:20px;cursor:pointer}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar input{max-width:400px}.table-actions{white-space:nowrap}.registration-task-count{padding:8px 12px;border-radius:999px;background:#eaf1ed;color:#427469;font-size:12px}.registration-task-count.has-tasks{background:#fff0d9;color:#a35f12}.registration-task-table input{min-width:170px}.task-error{display:block;color:#bd3c2e;margin-top:4px}.backup-card{display:flex;align-items:center;justify-content:space-between;gap:24px}.backup-card h2{margin:0 0 6px}.admin-content .stats{grid-template-columns:repeat(5,1fr)}.admin-content code{word-break:break-all}.admin-content input,.admin-content select,.admin-content textarea{font:inherit}.admin-content .btn{border-radius:10px}.admin-content .btn.small{font-size:12px}.admin-content .empty-table-cell{text-align:center;color:var(--muted);padding:28px}.admin-content .positive{color:#20814e;font-weight:700}.admin-content .negative{color:#bd3c2e;font-weight:700}
@media(max-width:1050px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static;display:flex;flex-wrap:wrap;gap:6px}.admin-sidebar-title{width:100%;padding-bottom:4px}.admin-nav-item{width:auto}.admin-content .stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.admin-app{padding:18px 14px 50px}.admin-top-actions .admin-sync-state{display:none}.admin-two-col,.form-grid{grid-template-columns:1fr}.form-grid .full-field{grid-column:auto}.admin-content .stats{grid-template-columns:repeat(2,1fr)}.backup-card{align-items:stretch;flex-direction:column}.admin-section h1{font-size:34px}.admin-sidebar{border-radius:14px}.admin-nav-item{font-size:12px;padding:9px 10px}}
/* uploaded QR images must stay inside the fixed QR control */
.customer-page .community-tools .qr-placeholder{
  overflow:hidden;
  display:grid;
  place-items:center;
}
.customer-page .community-tools .qr-placeholder img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain;
}


/* customer layout: sidebar search, topbar QR, three previews per row */
.customer-page .sidebar-brand{height:88px;border-bottom:0;padding-bottom:0}
.customer-page .sidebar-client-download{display:flex;align-items:center;justify-content:center;height:42px;margin:0 16px 6px;border:1px solid #a8ddd3;border-radius:10px;background:#effaf7;color:#078b7b;text-decoration:none;font-size:16px;font-weight:800;transition:.18s}
.customer-page .sidebar-client-download:hover{background:#0a9887;border-color:#0a9887;color:#fff}
.customer-page .sidebar-caption{padding:15px 22px 8px}
.customer-page .sidebar-search{height:42px;margin:0 16px 12px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid #cddbd7;border-radius:10px;background:#f8fbfa;transition:border-color .18s,box-shadow .18s}
.customer-page .sidebar-search:focus-within{border-color:#12a995;box-shadow:0 0 0 3px rgba(18,169,149,.10);background:#fff}
.customer-page .sidebar-search-icon{flex:none;color:#098f80;font:700 22px/1 Arial}
.customer-page .sidebar-search input[type=search]{min-width:0;width:100%;height:38px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0;font-size:14px}
.customer-page .sidebar-search input[type=search]::placeholder{color:#8a9691}
.customer-page .topbar-admin-wechat{height:100%;display:flex;align-items:center;justify-content:center;gap:9px;padding:8px!important}
.customer-page .topbar-admin-wechat>strong{font-size:14px!important;line-height:1.15;letter-spacing:.08em;writing-mode:vertical-rl;text-orientation:upright;white-space:nowrap;color:#26342f}
.customer-page .topbar-qr-placeholder{flex:0 0 82px;width:82px;height:82px;display:grid;place-items:center;overflow:hidden;border:1px solid #cbd9d5;border-radius:9px;background:#f6faf8;color:#7d8b86;font-size:10px;line-height:1.35;text-align:center}
.customer-page .topbar-qr-placeholder img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
.customer-page .customer-main{padding-top:calc(var(--accountbar-height) + 12px)!important;padding-left:12px!important;padding-right:12px!important}
.customer-page .course-grid{max-width:none!important;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;align-items:start}
@media(max-width:1350px){.customer-page .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:850px){.customer-page .course-grid{grid-template-columns:1fr!important}}


/* final readability adjustments: larger administrator QR label, QR and sidebar search text */
.customer-page .topbar-admin-wechat{gap:11px;padding:6px 8px!important}
.customer-page .topbar-admin-wechat>strong{font-size:16px!important}
.customer-page .topbar-qr-placeholder{flex-basis:96px;width:96px;height:96px}
.customer-page .sidebar-search{height:48px}
.customer-page .sidebar-search input[type=search]{font-size:17px}
.customer-page .sidebar-search input[type=search]::placeholder{font-size:17px}
.customer-page .sidebar-search-icon{font-size:24px}


/* admin operation controls: category ordering, task actions and course editing */
.overview-task-panel{max-width:none}
.category-editor{max-width:900px}
.category-move-actions{display:flex;gap:6px;flex:none}
.category-move{height:34px;padding:0 12px;border:1px solid #bfd0ca;border-radius:8px;background:#f5faf8;color:#245b4f;font:700 13px inherit;cursor:pointer}
.category-move:hover:not(:disabled){background:#dff3ec;border-color:#78ad9f}
.category-move:disabled{opacity:.35;cursor:not-allowed}
.identity-copy-cell{display:flex;align-items:center;gap:8px;min-width:245px}
.identity-copy-cell code{flex:1;min-width:0}
.task-action-buttons,.course-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.btn.danger{background:#fff0ee;color:#b43e32;border:1px solid #f0c0bb}
.btn.danger:hover{background:#b9473b;color:#fff;border-color:#b9473b}
.link-btn.danger-text{color:#bd3c2e}
.course-editor-heading{margin-bottom:16px}
.course-editor-heading h2{margin:0 0 5px}
.edit-file-hint{display:block;margin-top:5px}
.registration-task-table td{vertical-align:middle}
@media(max-width:900px){.category-edit-row{align-items:flex-start;flex-wrap:wrap}.category-edit-row input{min-width:calc(100% - 80px)}.category-move-actions{margin-left:38px}}

/* fixed initial page scale: customer display at 67%, admin console at 100% */
body.customer-page{zoom:.67}
body.admin-page{zoom:1}

/* customer desktop requirement: always show three preview cards per row;
   only collapse to one column on genuinely narrow screens */
.customer-page .course-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:850px){.customer-page .course-grid{grid-template-columns:1fr!important}}


/* native draggable preview progress control */
.course-progress{z-index:6!important;display:block;width:auto;box-sizing:border-box;-webkit-appearance:none;appearance:none;height:18px!important;padding:6px 0!important;border:0!important;border-radius:0!important;outline:0;background:linear-gradient(to right,#19c9b5 0 var(--played,0%),rgba(255,255,255,.48) var(--played,0%) var(--loaded,0%),rgba(255,255,255,.25) var(--loaded,0%) 100%)!important;opacity:0;cursor:pointer;pointer-events:auto!important;touch-action:none}
.course-progress:hover,.course-progress:active,.video-course-card:hover .course-progress,.video-course-card.is-playing .course-progress,.course-progress:focus-visible{opacity:1}
.course-progress::-webkit-slider-runnable-track{height:5px;border:0;border-radius:999px;background:transparent}
.course-progress::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;margin-top:-3.5px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.45);cursor:grab}
.course-progress:active::-webkit-slider-thumb{cursor:grabbing}
.course-progress::-moz-range-track{height:5px;border:0;border-radius:999px;background:transparent}
.course-progress::-moz-range-progress{height:5px;border-radius:999px;background:#19c9b5}
.course-progress::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.45);cursor:grab}


/* stable three-digit internal course number shared by preview and download file */
.course-internal-id{position:absolute;z-index:3;top:14px;right:16px;padding:7px 9px;border-radius:7px;background:rgba(6,25,21,.64);color:#fff;font:700 15px/1 Arial,sans-serif;letter-spacing:.08em;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.course-internal-id-cell{display:inline-block;min-width:3ch;color:#087f71;font-size:15px;letter-spacing:.08em}

/* final preview control behavior: hidden until the user points at the progress area */
.video-course-card .course-progress{left:16px!important;right:16px!important;opacity:0!important}
.video-course-card .course-progress:hover,.video-course-card .course-progress:active,.video-course-card .course-progress:focus-visible{opacity:1!important}
/* internal number is deliberately subtle */
.course-internal-id{opacity:.5}

/* compact registration task table: keep all fields visible without a horizontal scrollbar */
.registration-task-table{width:100%;min-width:0!important;table-layout:fixed}
.registration-task-table th,.registration-task-table td{min-width:0;overflow:hidden}
.registration-task-table th:nth-child(1){width:20%}
.registration-task-table th:nth-child(2){width:34%}
.registration-task-table th:nth-child(3){width:12%}
.registration-task-table th:nth-child(4){width:20%}
.registration-task-table th:nth-child(5){width:14%}
.registration-task-table .identity-copy-cell{width:100%;min-width:0;gap:6px;align-items:flex-start}
.registration-task-table .identity-copy-cell code{min-width:0;overflow-wrap:anywhere;word-break:break-all;white-space:normal;line-height:1.35}
.registration-task-table .identity-copy-cell .link-btn{flex:none;white-space:nowrap}
.registration-task-table .registration-code-input{display:block;width:100%;min-width:0!important;max-width:100%;padding-left:10px;padding-right:10px}
.registration-task-table .task-action-buttons{flex-wrap:wrap;gap:6px}
@media(max-width:850px){.registration-task-table th,.registration-task-table td{padding-left:6px;padding-right:6px}.registration-task-table th:nth-child(1){width:22%}.registration-task-table th:nth-child(2){width:32%}.registration-task-table th:nth-child(3){width:12%}.registration-task-table th:nth-child(4){width:20%}.registration-task-table th:nth-child(5){width:14%}}

/* single-line delivery notice footer */
.customer-footer{justify-content:center;text-align:center;white-space:nowrap;font-size:13px}


/* 2026-09-20 自动注册与数字验证码 */
.registration-code-row{display:grid;grid-template-columns:minmax(0,1fr) 138px;gap:12px;align-items:end}
.registration-code-row label{min-width:0}
.auth-code-button{height:48px;border:1px solid #0a9b89;border-radius:11px;background:#eefaf7;color:#087c6e;font:700 15px 'Microsoft YaHei',sans-serif;cursor:pointer}
.auth-code-button:hover{background:#dff5ef}.auth-code-button:disabled{opacity:.62;cursor:wait}
.auth-code-message{min-height:20px;margin-top:-4px;font-size:13px;line-height:1.5;color:#67736e}
.auth-code-message.success{color:#07826f}.auth-code-message.queued{color:#a45a13}.auth-code-message.error{color:#c53830}
.registration-success-card{width:min(650px,calc(100vw - 30px));padding:38px}
.registration-success-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#dff7ee;color:#07917f;font-size:30px;font-weight:800}
.registration-success-summary{display:flex;flex-wrap:wrap;gap:10px 24px;padding:14px 16px;background:#f2f7f5;border-radius:12px;color:#46554f;font-size:15px}
.registration-license-code{margin:18px 0;padding:18px;border:2px solid #12a38f;border-radius:12px;background:#f4fbf9;color:#123e36;font:700 17px/1.65 Consolas,'Courier New',monospace;word-break:break-all;user-select:all;max-height:190px;overflow:auto}
.registration-success-card .btn+.btn{margin-top:10px}
@media(max-width:680px){.registration-code-row{grid-template-columns:1fr}.auth-code-button{width:100%}.registration-success-card{padding:30px 22px}.registration-success-summary{display:grid}.registration-license-code{font-size:14px}}
.admin-content .stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.registration-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:900px;margin-bottom:14px}
.email-job-status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;white-space:nowrap;background:#eef1ef;color:#53635d}
.email-job-status.status-sent{background:#e1f6ec;color:#117657}.email-job-status.status-pending,.email-job-status.status-sending{background:#fff2d9;color:#9b5b10}.email-job-status.status-expired{background:#f3e8e6;color:#9b493d}
@media(max-width:1050px){.admin-content .stats{grid-template-columns:repeat(3,1fr)}.registration-settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.admin-content .stats{grid-template-columns:repeat(2,1fr)}}


/* topbar promotion ticker and admin promotion editor */
.customer-page .account-buttons-action{flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:7px 10px 6px}
.customer-page .account-buttons-row{display:flex;align-items:center;justify-content:center;gap:9px;width:100%}
.customer-page .promotion-ticker{width:100%;max-width:180px;height:28px;overflow:hidden;border-radius:7px;background:#fff4e7;border:1px solid #f1c99f;color:#d45d18;text-align:center;font-size:14px;font-weight:800;line-height:28px;white-space:nowrap}
.customer-page .promotion-ticker-track{display:flex;flex-direction:column;will-change:transform}
.customer-page .promotion-ticker-item{display:block;flex:0 0 28px;height:28px;padding:0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.promotion-editor{display:grid;gap:10px;max-width:900px}
.promotion-edit-row{display:flex;align-items:center;gap:10px}
.promotion-edit-row input{flex:1;min-width:0}
@media(max-width:1180px){.customer-page .account-buttons-action{padding-left:7px;padding-right:7px}.customer-page .account-buttons-row{gap:7px}.customer-page .promotion-ticker{max-width:156px;font-size:13px}}


/* 2026-09-21 管理端：紧凑的用户查询、积分与授权面板 */
.admin-app:has(.admin-section[data-panel="clients"].active){padding-top:20px;padding-bottom:20px}
.admin-section[data-panel="clients"]>.section-title{margin-bottom:12px}
.admin-section[data-panel="clients"]>.section-title h1{font-size:36px;line-height:1;margin-top:3px}
.admin-section[data-panel="clients"]>.section-title p{margin:7px 0 0;line-height:1.45}
.admin-section[data-panel="clients"] .panel{margin-bottom:12px}
.client-lookup-panel{max-width:none;padding:18px 22px}
.client-search-label{display:block;margin-bottom:6px;font-size:15px;font-weight:800;color:#26342f}
.client-search-row{display:grid;grid-template-columns:minmax(0,1fr) 126px 92px;gap:10px;align-items:center}
.client-search-row input{min-width:0;height:44px;padding-top:8px!important;padding-bottom:8px!important;font-family:Consolas,'Courier New',monospace;font-size:16px;letter-spacing:.01em;text-transform:uppercase}
.client-search-row .btn{height:44px;padding-top:8px;padding-bottom:8px;font-size:14px}
.client-search-message{min-height:18px;margin-top:6px;font-size:13px;line-height:1.35}
.client-search-message.error-text{color:#bd3c2e;font-weight:700}
.client-service-panel{max-width:none;padding:18px 22px}
.client-result-heading{align-items:center;margin-bottom:10px}
.client-result-heading h2{margin:2px 0 0;font-size:25px}
.client-result-heading .eyebrow{font-size:10px}
.client-status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:62px;padding:6px 11px;border-radius:999px;background:#e1f6ec;color:#117657;font-size:12px;font-weight:800}
.client-status-badge.inactive{background:#f3e8e6;color:#9b493d}
.client-info-grid{display:grid;grid-template-columns:2fr repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.client-info-grid>div{min-width:0;padding:10px 12px;border:1px solid #e3e0d6;border-radius:10px;background:#faf9f4}
.client-info-grid .client-info-wide{grid-column:auto}
.client-info-grid span{display:block;margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:700}
.client-info-grid strong,.client-info-grid code{display:block;min-width:0;color:var(--ink);font-size:14px;line-height:1.35;overflow-wrap:anywhere;word-break:break-all}
.client-info-grid code{font-family:Consolas,'Courier New',monospace;font-size:13px}
.client-service-actions{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.client-service-row{display:grid;grid-template-columns:minmax(280px,1fr) 190px 150px;gap:12px;align-items:center;padding:11px 14px;border-radius:12px;background:#f3f7f4}
.client-service-row>div{min-width:0}
.client-service-row strong{display:block;font-size:16px;line-height:1.25}
.client-service-row small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}
.client-service-row input,.client-service-row select{width:100%;height:42px;padding-top:7px!important;padding-bottom:7px!important}
.client-service-row .btn{height:42px;padding-top:7px;padding-bottom:7px}
@media(max-width:1150px){.client-info-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.client-info-grid .client-info-wide{grid-column:1/-1}}
@media(max-width:900px){.client-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.client-service-row{grid-template-columns:1fr 170px 140px}}
@media(max-width:650px){.client-search-row,.client-service-row{grid-template-columns:1fr}.client-info-grid{grid-template-columns:1fr}.client-info-grid .client-info-wide{grid-column:auto}.client-search-row .btn,.client-service-row .btn{width:100%}}


/* 课件管理：搜索后原地编辑，不默认加载全部已发布课件 */
.admin-app:has(.admin-section[data-panel="courses"].active){padding-top:18px;padding-bottom:18px}
.admin-section[data-panel="courses"]>.section-title{margin-bottom:8px}
.admin-section[data-panel="courses"]>.section-title h1{margin:2px 0 0;font-size:34px;line-height:1.02}
.admin-section[data-panel="courses"]>.section-title p{margin:4px 0 0;line-height:1.35}
.admin-section[data-panel="courses"] .panel{margin-bottom:9px}
.course-search-panel{max-width:none;padding:12px 18px}
.course-search-label{display:block;margin-bottom:4px;color:#26342f;font-size:14px;font-weight:800}
.course-search-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 106px;gap:8px;align-items:center}
.course-search-row input{min-width:0;height:40px;padding-top:7px!important;padding-bottom:7px!important;font-size:14px}
.course-search-row .btn{height:40px;padding:7px 12px;font-size:13px;white-space:nowrap}
#deleteSearchedCourseBtn:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.2)}
.course-search-message{min-height:16px;margin-top:4px;font-size:12px;line-height:1.3}
.course-search-message.error-text{color:#bd3c2e;font-weight:700}
.course-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}
.course-search-result{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-width:0;padding:7px 10px;border:1px solid #dcded6;border-radius:9px;background:#fafbf8;color:var(--ink);text-align:left;cursor:pointer;transition:.16s}
.course-search-result:hover{border-color:#72b6a6;background:#eef8f4;box-shadow:0 3px 12px rgba(19,93,77,.08)}
.course-search-result code{color:#078b7b;font-size:13px;font-weight:800;letter-spacing:.08em}
.course-search-result span,.course-search-result b,.course-search-result small{display:block;min-width:0}
.course-search-result b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.course-search-result small{margin-top:2px;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.course-editor-panel{max-width:none;padding:12px 18px}
.course-editor-heading{align-items:center;margin-bottom:5px;gap:16px}
.course-editor-heading>div:first-child{min-width:0;flex:1}
.course-editor-heading h2{margin:0 0 2px;font-size:24px;line-height:1.2}
.course-editor-heading p{margin:0;font-size:12px;line-height:1.35}
.course-editor-actions{display:grid;grid-template-columns:repeat(3,112px);gap:9px;align-items:center}
.course-editor-actions .btn{height:40px;padding:7px 11px;font-size:13px}
.course-editor-actions .btn:disabled{cursor:not-allowed}
.course-editor-panel .form-grid{gap:5px 18px}
.course-editor-panel .form-grid label{margin:1px 0;gap:3px;font-size:12px}
.course-editor-panel .form-grid input,.course-editor-panel .form-grid select{height:39px;margin-top:2px;padding-top:6px!important;padding-bottom:6px!important;font-size:13px}
.file-state{display:block;min-height:14px;margin-top:1px;overflow-wrap:anywhere;font-size:11px;line-height:1.25}
#uploadProgress{min-height:14px;margin:2px 0 0;font-size:11px;line-height:1.25}
#clientUploadProgress{min-height:18px;margin:6px 0}
#clientReleaseInfo{margin-top:8px;line-height:1.4}
@media(max-width:1100px){.course-editor-heading{align-items:flex-start;flex-direction:column}.course-editor-actions{grid-template-columns:repeat(3,minmax(100px,1fr));width:100%}}
@media(max-width:900px){.course-search-results{grid-template-columns:1fr}}
@media(max-width:650px){.course-search-row,.course-editor-actions{grid-template-columns:1fr}.course-search-row .btn,.course-editor-actions .btn{width:100%}}

/* 积分流水：按身份码查询单个用户的完整账单 */
.admin-section[data-panel="logs"]>.section-title{margin-bottom:14px}
.log-search-panel{max-width:none;padding:18px 22px}
.log-search-label{display:block;margin-bottom:7px;font-size:15px;font-weight:800;color:#26342f}
.log-search-row{display:grid;grid-template-columns:minmax(0,1fr) 126px 92px;gap:10px;align-items:center}
.log-search-row input{min-width:0;height:44px;padding-top:8px!important;padding-bottom:8px!important;font-family:Consolas,'Courier New',monospace;font-size:15px;text-transform:uppercase}
.log-search-row .btn{height:44px;padding:8px 14px}
.log-search-message{min-height:18px;margin-top:7px;font-size:13px}
.log-search-message.error-text{color:#bd3c2e;font-weight:700}
.log-result-panel{max-width:none;padding:18px 22px}
.log-result-heading{align-items:center;margin-bottom:10px}
.log-result-heading h2{margin:3px 0 4px;font-size:26px}
.log-balance-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:999px;background:#e1f6ec;color:#117657;font-weight:800}
.log-table-wrap{margin-top:8px}
.log-table th:nth-child(1){width:190px}
.log-table th:nth-child(2){width:120px}
.log-table th:nth-child(3){width:140px}
.empty-table-cell{text-align:center;color:var(--muted)}
@media(max-width:650px){.log-search-row{grid-template-columns:1fr}.log-search-row .btn{width:100%}}

/* encrypted local backups and full-site migration */
.admin-section[data-panel="backup"]>.backup-page-heading{margin-bottom:12px}
.admin-section[data-panel="backup"]>.backup-page-heading h1{margin:5px 0 7px;font-size:38px;letter-spacing:-.035em}
.admin-section[data-panel="backup"]>.backup-page-heading p{margin:0;line-height:1.55}
.backup-password-panel{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(460px,1.3fr);gap:16px 26px;align-items:end;padding:18px 22px;margin-bottom:12px}
.backup-password-copy h2{margin:0 0 5px;font-size:23px}
.backup-password-copy p{margin:0;font-size:13px;line-height:1.55}
.backup-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.backup-password-grid label{display:grid;gap:6px;font-size:13px;font-weight:800;color:#26342f}
.backup-password-grid input{height:42px;padding:8px 11px!important;font-size:14px}
.backup-password-toggle{grid-column:2;display:flex;align-items:center;gap:7px;width:max-content;color:var(--muted);font-size:13px;cursor:pointer}
.backup-password-toggle input{width:16px;height:16px;margin:0;accent-color:var(--green)}
.backup-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.backup-option-card{min-height:230px;display:flex;flex-direction:column;justify-content:space-between;gap:15px;padding:20px 22px;border-top:4px solid #38a98f}
.backup-option-card.backup-option-full{border-top-color:#24332e;background:linear-gradient(145deg,#fffdf7,#f2f7f5)}
.backup-option-card h2{margin:8px 0 7px;font-size:25px}
.backup-option-card p{margin:0 0 6px;color:#46544f;font-size:14px;line-height:1.6}
.backup-option-card small{display:block;color:var(--muted);font-size:12px;line-height:1.5}
.backup-option-card .btn{width:100%;height:43px}
.backup-type-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e1f6ec;color:#117657;font-size:12px;font-weight:800}
.backup-option-full .backup-type-badge{background:#e8edeb;color:#26342f}
.backup-status-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:15px 22px}
.backup-status-card h2{margin:0 0 4px;font-size:20px}
.backup-status-card p{margin:0;font-size:13px;line-height:1.5}
.backup-last-info{max-width:56%;text-align:right;overflow-wrap:anywhere}
@media(max-width:1000px){.backup-password-panel{grid-template-columns:1fr}.backup-password-toggle{grid-column:1}.backup-options-grid{grid-template-columns:1fr}.backup-option-card{min-height:0}.backup-last-info{max-width:none}}
@media(max-width:650px){.backup-password-grid{grid-template-columns:1fr}.backup-status-card{align-items:flex-start;flex-direction:column}.backup-last-info{text-align:left}.admin-section[data-panel="backup"]>.backup-page-heading h1{font-size:32px}}
