.worksheet-main-actions{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0 26px}.worksheet-main-actions>.button{flex:1;min-width:220px;min-height:54px;justify-content:center;text-align:center}.worksheet-upload-panel{margin:0 0 24px}.worksheet-upload-panel[hidden]{display:none}.worksheet-upload-panel .worksheet-upload{margin:0}.worksheet-upload select{width:100%;min-width:0;min-height:46px;font:inherit;font-size:16px;border:1px solid #a7bbb0;border-radius:10px;padding:10px;background:white}.worksheet-upload-actions{display:flex;flex-wrap:wrap;gap:12px;grid-column:1/-1}.worksheet-upload-actions .button{min-height:46px}.worksheet-secondary-navigation{margin-top:28px;border-top:1px solid #d6e2d8;padding-top:16px}.worksheet-rename{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}.worksheet-rename select{width:100%;min-width:0;min-height:46px;font:inherit;font-size:16px;border:1px solid #a7bbb0;border-radius:10px;padding:10px;background:white}.worksheet-rename label{min-width:0;overflow:hidden}.worksheet-plan-references{padding:18px;border:1px solid #d6e2d8;border-radius:12px;margin:20px 0;background:#f1f5f1}.worksheet-plan-references h2{margin:0 0 12px}.worksheet-plan-references p,.worksheet-plan-references li{line-height:1.6;overflow-wrap:anywhere}.worksheet-plan-references ul{padding-left:22px}.worksheet-shell .worksheet-main-actions a[aria-disabled=true]{opacity:.5;pointer-events:none}
@media(max-width:760px){.worksheet-rename{display:grid;grid-template-columns:minmax(0,1fr)}.worksheet-rename .button{width:100%}.worksheet-main-actions>.button{min-width:0;flex-basis:100%}.worksheet-upload-actions>.button{flex:1}.worksheet-shell .exercises-header{flex-wrap:wrap;gap:12px}}
@media(forced-colors:active){.worksheet-upload-panel,.worksheet-plan-references{border:1px solid CanvasText}}

/* A sheet always keeps its page preview, including the first page of a PDF. */
worksheet-preview{display:grid;place-items:center;position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate;background:#f1f4ef;color:#405b4e}
worksheet-preview .worksheet-preview-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
worksheet-preview .worksheet-preview-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:100%;padding:14px;box-sizing:border-box;font-size:13px;font-weight:500;line-height:1.45;text-align:center;overflow-wrap:anywhere}
worksheet-preview[data-state=loading] .worksheet-preview-status::before{content:"";width:24px;height:24px;flex:none;border:3px solid #c7d8cc;border-top-color:#32705a;border-radius:50%;animation:worksheet-preview-loading 1s linear infinite}
worksheet-preview[data-state=error] .worksheet-preview-status{color:#78503b;background:#fff7ec;width:100%;height:100%}
.worksheet-card>.worksheet-file-icon,.worksheet-card>.worksheet-file-icon:has(img){height:auto;min-height:0;max-height:360px;aspect-ratio:210 / 297;padding:12px;box-sizing:border-box;background:#eaf0e9}
.worksheet-card>.worksheet-file-icon>.worksheet-thumbnail{width:100%;height:100%;min-height:0;background:#fff;border-radius:3px;box-shadow:0 2px 9px #243e2f17}
.worksheet-card>.worksheet-file-icon .worksheet-preview-image{width:100%;height:100%;object-fit:contain}
.worksheet-preview{display:grid;place-items:center;max-height:none;overflow:hidden}
.worksheet-document-preview{width:min(100%,620px);aspect-ratio:210 / 297;background:#fff;box-shadow:0 2px 12px #243e2f17}
worksheet-preview.worksheet-family-image{display:grid;width:100%;height:260px;margin-bottom:14px;border:1px solid #e0e6dd;border-radius:8px}
.worksheet-symbol>.worksheet-symbol-preview{width:100%;height:100%;background:#fff}
.worksheet-symbol .worksheet-preview-status{font-size:0;padding:4px;gap:0}
.worksheet-symbol worksheet-preview[data-state=loading] .worksheet-preview-status::before{width:16px;height:16px;border-width:2px}
.worksheet-symbol worksheet-preview[data-state=error] .worksheet-preview-status::before{content:"!";font-size:20px;font-weight:700;line-height:1}
@keyframes worksheet-preview-loading{to{transform:rotate(360deg)}}
@media(max-width:560px){.worksheet-card>.worksheet-file-icon,.worksheet-card>.worksheet-file-icon:has(img){max-height:370px;padding:10px}.worksheet-preview{padding:8px}}
@media(prefers-reduced-motion:reduce){worksheet-preview[data-state=loading] .worksheet-preview-status::before{animation:none}}
@media(forced-colors:active){worksheet-preview{border:1px solid CanvasText}worksheet-preview[data-state=loading] .worksheet-preview-status::before{border-color:CanvasText;border-top-color:Highlight}}

.worksheet-entry{display:flex;flex-direction:column;align-self:start;min-width:0;border:1px solid #cfddd3;border-radius:14px;background:#fff;overflow:hidden}
.worksheet-entry>.worksheet-card{width:100%;border:0;border-radius:0;flex:1}
.worksheet-feedback{padding:16px;min-width:0;border-top:1px solid #d6e2d8;margin:12px 0;background:#f7faf6;border-radius:12px}
.worksheet-entry>.worksheet-feedback{margin:0;border-radius:0}
.worksheet-votes{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.worksheet-votes .fine-print{margin:0}
.worksheet-votes button{min-width:64px;min-height:46px;justify-content:center;font-size:18px}
.worksheet-votes button[aria-pressed=true]{border:2px solid #225c4b;background:#dcefe0;color:#163f31}
.worksheet-votes button[data-vote=down][aria-pressed=true]{border-color:#8b493c;background:#fff0e9;color:#713a2f}
.worksheet-feedback-form{display:grid;gap:12px;margin-top:16px;min-width:0}
.worksheet-feedback-form[hidden]{display:none}
.worksheet-feedback-form label{display:grid;gap:8px;font-weight:600;min-width:0}
.worksheet-feedback-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:96px;padding:12px;border:1px solid #9caf9d;border-radius:10px;font:inherit;font-size:16px;resize:vertical;background:#fff;color:inherit}
.worksheet-feedback .feedback-error:empty,.worksheet-feedback .feedback-status:empty{display:none}
.worksheet-feedback-notes{margin-top:14px;overflow-wrap:anywhere}
.worksheet-feedback-notes summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}
.worksheet-feedback-notes ul{padding-left:22px}.worksheet-feedback-notes li{white-space:pre-wrap;margin:10px 0;line-height:1.5}
@media(max-width:560px){.worksheet-feedback-form .worksheet-upload-actions{flex-direction:column}.worksheet-feedback-form .worksheet-upload-actions button{width:100%}}
@media(forced-colors:active){.worksheet-entry,.worksheet-feedback,.worksheet-votes button[aria-pressed=true]{border:2px solid CanvasText}.worksheet-votes button[aria-pressed=true]{outline:2px solid Highlight}}
