:root{color-scheme:light;font-family:Microsoft YaHei,PingFang SC,system-ui,sans-serif;color:#16201f;background:#f5f7f6}*{box-sizing:border-box}html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{width:100%;max-width:100%;margin:0;overflow-x:hidden}#root{width:100%;max-width:100%;min-width:0;min-height:100vh;overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.55}input,select{width:100%;height:44px;border:1px solid #ccd7d4;border-radius:8px;padding:0 12px;background:#fff}label{display:grid;gap:7px;color:#415350;font-size:14px}.invitation-page{position:relative;width:100%;height:100vh;height:100svh;min-height:480px;overflow:hidden;isolation:isolate;background:#142522;background-position:center;background-repeat:no-repeat;background-size:cover;color:#17211f}.invitation-scene{position:absolute;inset:0;z-index:0;overflow:hidden}.invitation-scene canvas{display:block;width:100%;height:100%}.invitation-card-content{position:absolute;left:50%;top:50%;z-index:1;width:min(calc(100vw - 32px),360px,72svh);aspect-ratio:3 / 4;display:grid;grid-template-rows:auto 1fr auto auto;gap:18px;padding:28px;overflow:hidden;border:2px solid #b89a59;border-radius:8px;background:#fbfcfa;box-shadow:0 26px 80px #020c0a57;opacity:0;transform:translate(-50%,-50%);pointer-events:none}.invitation-card-content:before{content:"";position:absolute;inset:10px;border:1px solid rgba(184,154,89,.55);border-radius:5px;pointer-events:none}.invitation-card-content.is-settled{opacity:1;pointer-events:auto}.invitation-card-content>*{position:relative;z-index:1;min-width:0}.invitation-card-content header{text-align:center}.invitation-card-content header p{color:#173b35;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.invitation-card-content header span{display:block;margin-top:8px;color:#a4483d;font-family:Georgia,Times New Roman,serif;font-size:14px}.invitation-recipient{align-self:center;text-align:center}.invitation-recipient p{color:#66736f;font-size:13px}.invitation-recipient h1{margin-top:8px;color:#17211f;font-size:30px;line-height:1.25}.invitation-card-content footer{color:#7b6d4c;font-size:11px;text-align:center}.scratch-reveal{position:relative;width:100%;min-width:0;padding-bottom:30px}.scratch-surface{position:relative;width:100%;aspect-ratio:3.28 / 1;overflow:hidden;border:1px solid #d1d7d5;border-radius:8px;background:#f3f5f3;touch-action:none;user-select:none;-webkit-user-select:none}.scratch-surface .sc__canvas{position:absolute;inset:0;z-index:2;width:100%;height:100%;display:block;touch-action:none}.scratch-surface .sc__inner{display:none}.scratch-secret{position:absolute;inset:0;z-index:0;display:grid;place-content:center;justify-items:center;background:#eef3f1}.scratch-secret span{color:#697873;font-size:11px}.scratch-secret strong{margin-top:3px;color:#0f5f56;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:28px;line-height:1;font-variant-numeric:tabular-nums}.scratch-fallback{position:absolute;inset:0;z-index:3;width:100%;background:#aeb4b4;color:#3d4847;font-weight:700}.scratch-copy-row{position:absolute;left:50%;bottom:-2px;display:flex;align-items:center;gap:6px;color:#5d6c68;font-size:11px;transform:translate(-50%)}.scratch-copy{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:transparent;color:#52716b}.scratch-copy:hover,.scratch-copy:focus-visible{background:#e8efed;color:#0f766e}.scratch-copy:focus-visible{outline:2px solid #8cb7ae;outline-offset:2px}.invitation-state-page{display:grid;place-items:center;padding:24px;color:#e8efed;text-align:center}.invitation-state-page section{width:min(100%,360px)}.invitation-state-page h1{margin-top:10px;color:#fff;font-size:23px}.invitation-state-page section>p:last-child{margin-top:12px;color:#b9c8c4;line-height:1.6}.invitation-kicker{color:#d1b36d;font-size:13px}@media(max-width:359px){.invitation-card-content{padding:22px;gap:13px}.invitation-recipient h1{font-size:26px}.scratch-secret strong{font-size:25px}}@media(orientation:landscape)and (max-height:520px){.invitation-page{min-height:0}.invitation-card-content{width:min(calc(100vw - 32px),360px,66svh)}}@media(prefers-reduced-motion:reduce){.invitation-card-content{transition:none}}.phone-page{width:100%;max-width:520px;min-height:100vh;margin:0 auto;padding:16px;padding-bottom:calc(88px + env(safe-area-inset-bottom));background:#f5f7f6;overflow-x:hidden}.phone-page>*{min-width:0}.login-page{display:grid;place-items:center}.login-panel,.buy-card,.section{background:#fff;border:1px solid #dfe7e4;border-radius:8px;padding:18px;max-width:100%;overflow:hidden}.login-panel{width:100%;display:grid;gap:14px}h1,h2,p{margin:0}h1{font-size:24px;line-height:1.2;letter-spacing:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}h2{font-size:17px}.eyebrow{color:#607370;font-size:13px;margin-bottom:4px}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 0 14px}.topbar>div{min-width:0}.icon{width:44px;height:44px;border-radius:8px;background:#e7efed;display:grid;place-items:center;color:#0f766e}.primary,.ghost,.upload-btn,.export-grid button{height:44px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:700}.primary{background:#0f766e;color:#fff;width:100%}.ghost{background:#e7efed;color:#0f766e}.ghost.full{width:100%}.balance-band{display:flex;justify-content:space-between;align-items:center;background:#10201f;color:#fff;border-radius:8px;padding:18px;margin-bottom:14px;max-width:100%;overflow:hidden}.balance-band span{color:#b7c9c5;font-size:13px}.balance-band strong{display:block;font-size:38px;line-height:1;margin-top:6px}.stand-count{text-align:right}.stand-count span{display:block}.stand-count b{display:block;margin-top:7px;font-size:20px}.badge{display:inline-flex;padding:7px 10px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:13px;white-space:nowrap}.badge.open{background:#dcfce7;color:#166534}.badge.ended{background:#f1f5f9;color:#475569}.section{margin-top:14px;display:grid;gap:12px}.section-head,.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-head h2{min-width:0;flex:1 1 auto}.product-list,.dense-list{display:grid;gap:8px}.product-row,.line-item{width:100%;min-height:58px;border-radius:8px;padding:10px 12px;background:#f8faf9;border:1px solid #e2ebe8;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;max-width:100%;overflow:hidden}.product-row small,.line-item small{display:block;color:#667774;margin-top:2px}.product-row span,.line-item span{min-width:0}.product-row b,.line-item b{overflow-wrap:anywhere}.product-row em{grid-column:2;grid-row:2;justify-self:end;font-style:normal;color:#607370;font-size:13px;white-space:nowrap}.price{grid-column:2;grid-row:1;justify-self:end;color:#0f766e;font-weight:800;white-space:nowrap}.line-item{grid-template-columns:minmax(0,1fr) auto}.line-item.clickable{cursor:pointer;color:inherit}.line-item.clickable:hover{background:#edf4f2}.order-actions{min-width:90px;display:grid;justify-items:end;gap:7px}.order-actions button,.resource-table-button{min-height:34px;border-radius:6px;padding:0 10px;background:#e7efed;color:#0f766e;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700;white-space:nowrap}.search-box{height:44px;border:1px solid #d9e4e1;border-radius:8px;background:#fff;display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:0 12px}.search-box input{height:40px;border:0;padding:0;outline:none}.buy-card{display:grid;gap:16px}.buy-card p{overflow-wrap:anywhere}.buy-meta{display:flex;justify-content:space-between;gap:12px;color:#526461}.buy-meta span{min-width:0;overflow-wrap:anywhere}.stepper{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;border:1px solid #d9e4e1;border-radius:8px;overflow:hidden}.stepper button{height:48px;background:#edf4f2;color:#0f766e;display:grid;place-items:center}.stepper strong{text-align:center;font-size:24px}.error{color:#b91c1c;background:#fee2e2;padding:10px;border-radius:8px}.success{color:#166534;background:#dcfce7;padding:10px;border-radius:8px}.muted{color:#64748b}.purchase-confirm-backdrop{position:fixed;inset:0;z-index:55;display:grid;place-items:center;padding:20px;background:#09181694}.purchase-confirm-dialog{width:min(100%,320px);overflow:hidden;border:1px solid #dfe7e4;border-radius:8px;background:#fff;box-shadow:0 18px 52px #0818163d}.purchase-confirm-summary{display:grid;gap:8px;padding:20px;text-align:center}.purchase-confirm-summary p{font-size:17px;line-height:1.45;overflow-wrap:anywhere}.purchase-confirm-summary p:last-child{color:#526461}.purchase-confirm-summary p:last-child strong{color:#0f766e;font-size:22px}.purchase-confirm-actions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e2ebe8}.purchase-confirm-actions button{min-width:0;height:52px;background:#fff;color:#526461;font-weight:700}.purchase-confirm-actions button+button{border-left:1px solid #e2ebe8}.purchase-confirm-actions .confirm{color:#0f766e}.purchase-confirm-actions button:focus-visible{outline:3px solid rgba(15,118,110,.28);outline-offset:-3px}.teacher-password-dialog{width:min(440px,calc(100vw - 32px));padding:24px;border-radius:8px;background:#fff;box-shadow:0 24px 70px #051f1c3d}.teacher-password-dialog h3{margin:0 0 14px;font-size:20px}.teacher-password-dialog label{display:grid;gap:7px;margin-top:18px}.teacher-password-dialog input{width:100%}.password-warning{margin:0;padding:12px 14px;border-left:3px solid #b7791f;background:#fff8e6;color:#6b4b16;line-height:1.55}.teacher-password-actions{display:grid;grid-template-columns:76px 118px minmax(140px,1fr);gap:10px;margin-top:22px}.teacher-password-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;white-space:nowrap}.teacher-password-actions .primary{width:auto}.password-cell{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.password-cell .icon-button{width:34px;height:34px;padding:0}@media(max-width:520px){.teacher-password-actions{display:grid;grid-template-columns:1fr 1fr}.teacher-password-actions .primary{grid-column:1 / -1;width:100%}}.purchase-success-overlay{position:fixed;left:50%;top:42%;z-index:60;transform:translate(-50%,-50%);width:min(82%,320px);max-width:calc(100% - 24px);border-radius:8px;padding:18px 20px;background:#0f766ef5;color:#fff;box-shadow:0 18px 48px #10201f38;text-align:center;animation:success-pop 1.8s ease both}.purchase-success-overlay strong{display:block;font-size:24px;line-height:1.2}.purchase-success-overlay span{display:block;margin-top:6px;font-size:15px;color:#dffbf3}@keyframes success-pop{0%{opacity:0;transform:translate(-50%,-44%) scale(.94)}12%{opacity:1;transform:translate(-50%,-50%) scale(1)}82%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-54%) scale(.98)}}.admin-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr;background:#eef3f1}.admin-shell.center{display:grid;place-items:center;grid-template-columns:1fr}.admin-login{width:min(92vw,360px);background:#fff;border:1px solid #dfe7e4;border-radius:8px;padding:22px;display:grid;gap:12px}aside{background:#10201f;color:#fff;padding:20px;display:flex;flex-direction:column;gap:10px}aside h1{font-size:20px;margin-bottom:16px}aside button{height:42px;border-radius:8px;display:flex;align-items:center;gap:8px;padding:0 12px;color:#c7d6d3;background:transparent}aside button.active,aside button:hover{background:#1f3b38;color:#fff}.workspace{padding:20px;display:grid;align-content:start;gap:16px}.metric-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric-row div,.panel{background:#fff;border:1px solid #dfe7e4;border-radius:8px;padding:16px}.metric-row span{color:#64748b;font-size:13px}.metric-row b{display:block;font-size:26px;margin-top:4px}.panel{display:grid;gap:14px;overflow-x:auto}.panel label{max-width:560px}table{border-collapse:collapse;width:100%;min-width:720px}th,td{border-bottom:1px solid #e2e8f0;padding:10px;text-align:left}th{color:#526461;font-size:13px}.editable-cell{width:100%;min-height:34px;border-radius:6px;background:transparent;color:#16201f;text-align:left;padding:5px 7px}.editable-cell:hover{background:#edf4f2;color:#0f766e}.cell-editor{display:grid;grid-template-columns:minmax(120px,1fr) auto auto;gap:6px;align-items:center}.cell-editor input{height:36px;min-width:120px}.cell-editor button,.table-actions button{height:34px;border-radius:6px;padding:0 10px;background:#e7efed;color:#0f766e;font-weight:700;white-space:nowrap}.table-actions{display:flex;gap:6px;align-items:center}.teacher-invite-actions{min-width:118px;display:flex;align-items:center;gap:5px}.teacher-invite-actions button{min-height:34px;border-radius:6px;background:#e7efed;color:#0f766e;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;font-weight:700;white-space:nowrap}.teacher-invite-ready button{width:34px;padding:0}.teacher-invite-actions span{color:#52716b;font-size:12px;white-space:nowrap}.teacher-invite-actions .teacher-invite-error{color:#b91c1c;white-space:normal}.inline-form{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr)) auto;gap:10px;align-items:end;padding:12px;border:1px solid #e2ebe8;border-radius:8px;background:#f8faf9}.inline-form .primary{width:auto;min-width:150px}.upload-btn{background:#e7efed;color:#0f766e;position:relative}.upload-btn input{position:absolute;inset:0;opacity:0}.export-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.export-grid button{background:#0f766e;color:#fff;width:100%}.resource-manager{display:grid;gap:14px;min-width:0}.resource-manager-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.resource-manager-head>div{min-width:0}.resource-manager-head .ghost{white-space:nowrap}.upload-btn.disabled{opacity:.55;cursor:wait}.resource-admin-list{display:grid;border-top:1px solid #e2e8f0}.resource-admin-row{min-width:0;display:grid;grid-template-columns:40px minmax(180px,1fr) auto auto;gap:12px;align-items:center;padding:12px 4px;border-bottom:1px solid #e2e8f0}.resource-file-icon{width:40px;height:40px;border-radius:8px;display:grid;place-items:center;background:#edf4f2;color:#0f766e;flex:0 0 40px}.resource-admin-main{min-width:0}.resource-admin-main p{margin-top:4px;color:#64748b;font-size:13px}.resource-name-button{max-width:100%;padding:2px 0;background:transparent;color:#16201f;font-weight:700;text-align:left;overflow-wrap:anywhere}.resource-name-editor{display:grid;grid-template-columns:minmax(160px,1fr) 38px;gap:6px}.resource-name-editor input{height:38px}.resource-name-editor button,.resource-row-actions button,.resource-row-actions label{width:36px;height:36px;border-radius:6px;display:grid;place-items:center;background:#e7efed;color:#0f766e}.resource-row-actions{display:flex;gap:5px;align-items:center}.resource-row-actions label{position:relative;cursor:pointer}.resource-row-actions label input{position:absolute;inset:0;opacity:0;cursor:pointer}.resource-status{border-radius:999px;padding:5px 8px;font-size:12px;white-space:nowrap;background:#f1f5f9;color:#475569}.resource-status.published{background:#dcfce7;color:#166534}.resource-status.unpublished{background:#fee2e2;color:#991b1b}.resource-empty{min-height:120px;display:grid;place-content:center;justify-items:center;gap:8px;color:#64748b;text-align:center}.resource-phone-page{min-width:0}.resource-library{display:grid;gap:10px;min-width:0}.resource-mobile-row{width:100%;min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr) 58px;align-items:center;gap:10px;padding:12px;border:1px solid #dfe7e4;border-radius:8px;background:#fff;overflow:hidden}.resource-mobile-main{min-width:0}.resource-mobile-main h2{font-size:16px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}.resource-mobile-main p{margin-top:5px;color:#64748b;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.resource-open-button{width:58px;min-height:48px;border-radius:8px;display:grid;place-content:center;justify-items:center;gap:3px;background:#e7efed;color:#0f766e;font-size:12px;font-weight:700}.resource-page-message{padding:18px 4px}@media(max-width:760px){.phone-page{width:100%;max-width:100%;margin:0}.admin-shell{grid-template-columns:1fr}aside{position:sticky;top:0;z-index:2;flex-direction:row;overflow-x:auto;padding:10px}aside h1{display:none}aside button{white-space:nowrap}.workspace{padding:12px}.metric-row{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-form{grid-template-columns:1fr}.inline-form .primary{width:100%}.resource-manager-head{grid-template-columns:1fr auto}.resource-manager-head .ghost{grid-column:1 / -1;justify-self:start}.resource-admin-row{grid-template-columns:40px minmax(0,1fr) auto}.resource-row-actions{grid-column:2 / -1;flex-wrap:wrap}.phone-page .section-head .ghost{width:42px;height:40px;padding:0;font-size:0;flex:0 0 42px}.phone-page .section-head .ghost svg{width:20px;height:20px}}@media(max-width:480px){.phone-page{max-width:none;padding:12px;padding-bottom:calc(96px + env(safe-area-inset-bottom))}.topbar{width:100%;gap:10px;padding:4px 0 10px}.buy-page .topbar{grid-template-columns:minmax(0,1fr) 40px;align-items:start}h1{font-size:24px;line-height:1.15}.buy-page h1{font-size:22px;line-height:1.18}h2{font-size:20px}.eyebrow{max-width:100%;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon{width:42px;height:42px;flex:0 0 42px}.buy-page .icon{width:40px;height:40px}.balance-band{min-height:116px;padding:16px;margin-bottom:10px}.balance-band strong{font-size:44px;margin-top:8px}.section{margin-top:10px;padding:14px;gap:10px}.section-head{align-items:center}.section-head .ghost{width:42px;height:40px;padding:0;font-size:0;flex:0 0 42px}.section-head .ghost svg{width:20px;height:20px}.search-box{height:42px}.buy-card{padding:14px;gap:14px}.buy-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.stepper{grid-template-columns:44px minmax(0,1fr) 44px}.stepper button{height:44px}.buy-page .primary{min-height:48px;height:auto;padding:12px;white-space:normal;line-height:1.25}.product-row,.line-item{min-height:56px;padding:10px;grid-template-columns:minmax(0,1fr) auto;gap:8px}.product-row .price{grid-column:2;grid-row:1;justify-self:end;align-self:end}.product-row em{grid-column:2;grid-row:2;justify-self:end;align-self:start}.line-item>b{max-width:120px;text-align:right;overflow-wrap:anywhere;justify-self:end}.product-row b,.line-item>span{font-size:16px}.price{font-size:17px}.product-row em{font-size:14px}.order-line-item{align-items:start}.order-actions{min-width:96px}.order-actions b{max-width:96px;font-size:14px;text-align:right}.order-actions button{width:96px;min-height:36px;padding:0 8px;font-size:13px}.resource-mobile-row{grid-template-columns:38px minmax(0,1fr) 54px;gap:8px;padding:10px}.resource-mobile-row .resource-file-icon{width:38px;height:38px}.resource-open-button{width:54px}}@media(max-width:350px){.resource-mobile-row{grid-template-columns:36px minmax(0,1fr) 50px;gap:6px;padding:9px}.resource-mobile-row .resource-file-icon{width:36px;height:36px}.resource-open-button{width:50px}.resource-open-button span{font-size:11px}.order-actions,.order-actions button{width:88px;min-width:88px}}
