:root{color-scheme:light;--green:#0f3d2e;--emerald:#1e7a4f;--ivory:#faf6e8;--ink:#23352b;--muted:#5c6b60;--line:#d7dfd1;--error:#a13224;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#edf1e9;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;padding:36px 20px 64px;font-size:15px;line-height:1.65}h1,h2,p{margin:0}h1{font-size:25px;letter-spacing:-.4px;line-height:1.4;color:var(--green)}h2{font-size:21px;color:var(--green);line-height:1.4}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--green);text-underline-offset:3px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}input:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #79a77a;outline-offset:3px}[hidden]{display:none!important}.shell{margin:auto;border:1px solid #cbd5ca;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 16px #233b2810}.participant-shell{max-width:480px;background:var(--ivory)}.staff-shell{max-width:1020px}.brand-bar{background:var(--green);color:var(--ivory);padding:19px 26px}.brand-bar strong{font-size:16px;overflow-wrap:anywhere}.brand-bar small{display:block;color:#c2d2c4;font-size:12px}.shell main{padding:24px 26px 30px;min-width:0}.hint{color:var(--muted);font-size:13px}.intro{margin:6px 0 16px}.identity{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px;font-size:13px;color:var(--muted)}.identity span{overflow-wrap:anywhere;min-width:0}.identity button{flex-shrink:0}.tutorial{display:inline-block;font-size:14px;margin-bottom:20px;min-height:44px;align-content:center;font-weight:600}.resource-card{border:1px solid #d9ddcd;border-radius:10px;background:#fffef9;padding:19px;margin-bottom:15px;min-width:0}.resource-card>.hint{margin:5px 0 16px}.code-label{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px}.code-box{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);background:#f6f7f1;padding:3px 5px 3px 12px;border-radius:7px;margin-bottom:14px}code{font:14px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;white-space:normal;min-width:0;user-select:text}.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;border:1px solid var(--green);border-radius:7px;padding:10px 15px;font-size:14px;line-height:1.5;font-weight:600;background:var(--green);color:#fff;text-decoration:none;text-align:center}.primary{width:100%}.quiet{background:#fff;color:var(--green);border-color:#bbc8b9}.copy{border:0;background:transparent;color:var(--green);flex-shrink:0;font-size:13px;padding:8px 9px}.text-button{min-height:44px;border:0;background:transparent;color:var(--green);padding:8px 4px;font-size:13px;text-decoration:underline;text-underline-offset:3px}.under-button,.footer-note{font-size:12px;color:var(--muted);margin-top:8px}.footer-note{margin-top:20px}.message{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.message:not(:empty){margin:12px 0}.error{color:var(--error)}.success{color:#285330}.empty{padding:24px 18px;border:1px solid var(--line);border-radius:10px;background:#fffef9}.empty .button{margin-top:16px}.stack{display:flex;flex-direction:column;gap:10px}.stack label{margin:0}.auth-card{max-width:420px;margin:auto}.auth-card h1{margin-bottom:8px}label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}input:not([type=checkbox]),select{width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #bbc7ba;border-radius:7px;background:#fff;color:var(--ink);font-size:16px}input[type=file]{font-size:13px;padding:8px;background:#fff}input[type=file]::file-selector-button{font:inherit;min-height:34px;border:1px solid #bbc7ba;border-radius:5px;padding:5px 9px;margin-right:10px;color:var(--green);background:#f6f7f1}.demo-banner{font-size:12px;color:#6d5a23;background:#f7edce;border:1px solid #e6d5a8;border-radius:6px;padding:9px 11px;margin-bottom:22px}.demo-code{padding:11px;border:1px dashed #c1cba9;border-radius:7px;margin:5px 0 17px;font-size:13px;background:#f3f5e9}.demo-code code{font-weight:700;letter-spacing:2px}.demo-code span{display:block;color:var(--muted);font-size:12px}.staff-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-bottom:26px}.tools{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.criterion{color:var(--muted);font-size:12px;margin:10px 0 21px}table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);background:#f2f5ef;padding:11px 12px}th:first-child{width:43%;border-radius:6px 0 0 6px}th:nth-child(2){width:32%}th:last-child{width:25%;border-radius:0 6px 6px 0}td{padding:17px 12px;border-bottom:1px solid #e7ebe4;vertical-align:top;overflow-wrap:anywhere}td.email{padding-top:23px}td code{display:block;font-size:13px}td .text-button{font-size:12px}.completion-label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;color:var(--green);font-weight:400;font-size:13px}.completion-label input{width:20px;height:20px;margin:0;accent-color:var(--green);flex-shrink:0}.row-message{font-size:12px;line-height:1.5}.resource-detail{padding:18px 12px;background:#f9faf6}.detail-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-cards .resource-card{margin:0}.detail-cards h2{font-size:18px}.count{margin-top:16px}.import-panel{border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:25px;background:#f9faf6}.import-panel h2{font-size:19px;margin-bottom:8px}.import-panel form{margin-top:16px}.import-panel .button{margin-top:12px}.import-panel .hint+.hint{margin-top:5px}.skip-link{position:fixed;top:-100px;left:15px;background:#fff;color:var(--green);padding:10px;z-index:5}.skip-link:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:600px){body{padding:16px 10px 40px}.shell main{padding:20px 18px 25px}.brand-bar{padding:17px 18px}h1{font-size:23px}.resource-card{padding:17px}.staff-heading{gap:12px;margin-bottom:22px}.tools{gap:12px}.detail-cards{grid-template-columns:1fr}table,tbody,tr,td{display:block}thead{display:none}tr.participant-row{padding:14px 0;border-bottom:1px solid #e4e9de}td{border:0;padding:3px 0}td.email{padding:0 0 5px;font-weight:600}td.resource-cell{display:flex;align-items:center;flex-wrap:wrap;gap:10px}td.resource-cell::before{content:'资源';font-size:12px;color:var(--muted)}td.resource-cell code{flex:1;min-width:80px}td.completion-cell{padding-top:5px}.resource-detail{padding:15px 9px}.import-panel{padding:16px}}

/* Auto margins center a short login panel and allow tall content to scroll. */
.participant-shell{width:100%}
.participant-page:has(#auth-panel:not([hidden])){display:flex;flex-direction:column;min-height:100svh;padding-block:32px}
.participant-page:has(#auth-panel:not([hidden])) .participant-shell{margin:auto}

/* Desktop uses the available width; the same pages stack on smaller screens. */
@media(min-width:800px){
  .participant-shell{max-width:1040px}
  .participant-shell:has(#auth-panel:not([hidden])){max-width:920px}
  .participant-shell .brand-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 36px}
  .participant-shell .brand-bar strong{font-size:18px}
  .participant-shell main{padding:30px 36px 36px}
  .participant-shell .auth-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center;max-width:none;padding:22px 0}
  .auth-copy,.auth-fields{min-width:0}
  .auth-copy h1{font-size:30px}
  .auth-copy .intro{font-size:15px;max-width:340px;line-height:1.8}
  .auth-fields{padding-left:36px;border-left:1px solid var(--line)}
  .participant-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:22px}
  .participant-heading .intro{margin-bottom:0}
  .participant-heading .tutorial{margin:0;flex-shrink:0}
  .participant-shell #resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .participant-shell #resources>.empty{grid-column:1/-1}
  .participant-shell #resources>.resource-card{display:flex;flex-direction:column;margin:0;padding:24px}
  .participant-shell #resources>.resource-card>.primary{margin-top:auto}
}

.inventory{margin:0 0 8px;font-size:14px;color:var(--green);font-weight:600}.settings-summary{margin-bottom:20px}.settings-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.settings-fields>div{min-width:0}.settings-fields .hint{margin-top:7px}.portal-setting{grid-column:1/-1}@media(max-width:600px){.settings-fields{grid-template-columns:minmax(0,1fr)}}

.workshop-setting{min-width:0;margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:8px}.workshop-setting legend{padding:0 6px;color:var(--green);font-weight:600}.portal-setting{margin-top:20px}.portal-setting .hint{margin-top:6px}#import-workshop-detail{overflow-wrap:anywhere;margin:8px 0 18px}.resource-workshop{display:block;font-size:12px;color:var(--muted)}

.tutorial-card{border:1px solid var(--line);border-radius:10px;padding:19px;margin-bottom:15px;min-width:0;background:#eef3e9}.tutorial-card h2{font-size:19px}.tutorial-card .hint{margin:8px 0 18px}.tutorial-card .button{width:100%}
@media(min-width:800px){.participant-shell #resources:has(.tutorial-card){grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr);gap:16px}.participant-shell #resources>.tutorial-card{display:flex;flex-direction:column;margin:0;padding:24px 18px}.tutorial-card .button{margin-top:auto}}
