/* Team goal, scoped to the warm classroom surfaces. */
.tg-entry[hidden]{display:none!important}.tg-entry,.tg-dialog{--tg-ink:#493a2b;--tg-muted:#88745f;--tg-border:#e3d4bd;--tg-green:#4f7059;--tg-paper:#fffbf4;font-family:inherit;font-size:14px;color:var(--tg-ink);box-sizing:border-box}.tg-entry{display:grid;width:100%;min-width:0;gap:8px;margin:14px 0;padding:13px 14px;border:1px solid var(--tg-border);border-radius:12px;background:linear-gradient(120deg,#f6eedf,#fcf8f0);text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}.tg-entry:hover{border-color:#b29978;box-shadow:0 3px 10px #6947270d}.tg-entry:focus-visible,.tg-dialog button:focus-visible,.tg-dialog select:focus-visible{outline:3px solid #809e89;outline-offset:3px}.tg-entry-heading{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#7c5831}.tg-entry-heading svg{width:18px;height:18px;flex-shrink:0}.tg-entry-heading svg:last-child{width:14px;height:14px;margin-left:auto;color:#ac977b}.tg-entry-numbers{display:flex;align-items:baseline;gap:6px;font-variant-numeric:tabular-nums}.tg-entry-numbers>strong{font-size:23px;line-height:1.2;font-weight:750;letter-spacing:-.5px}.tg-entry-numbers>span{font-size:12px;color:var(--tg-muted)}.tg-entry-numbers>small{font-size:11px;color:var(--tg-green);margin-left:auto;font-weight:600}.tg-track{display:block;height:5px;background:#e7ddce;border-radius:10px;overflow:hidden}.tg-track>span{display:block;height:100%;background:#749379;border-radius:inherit;transition:width .3s}.tg-entry-retry{font-size:12px;color:var(--tg-muted);line-height:1.6}
.tg-dialog{width:min(600px,calc(100vw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-width:none;max-height:calc(100dvh - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:26px;border:1px solid #d8c4a8;border-radius:20px;background:var(--tg-paper);box-shadow:0 22px 80px #39291540;overflow:auto;scrollbar-width:thin;scrollbar-color:#bcaa90 #f5eedf;overscroll-behavior:contain;line-height:1.5}.tg-dialog::backdrop{background:#332b23a3;backdrop-filter:blur(3px)}.tg-dialog *{box-sizing:border-box}.tg-dialog button,.tg-dialog select{font:inherit}.tg-dialog h2,.tg-dialog h3,.tg-dialog p{margin:0}.tg-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.tg-eyebrow{font-size:12px;color:var(--tg-muted);overflow-wrap:anywhere}.tg-dialog h2{font-size:23px;line-height:1.4;font-weight:750;margin-top:4px;letter-spacing:.2px}.tg-period{font-size:12px;color:var(--tg-muted);margin-top:5px!important}.tg-close{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:1px solid var(--tg-border);border-radius:50%;background:#f6eee0;color:#7b674f;font-size:24px!important;line-height:1;cursor:pointer}.tg-overview{border:1px solid var(--tg-border);border-radius:14px;background:#f4eddf;padding:20px}.tg-overview-top,.tg-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--tg-muted)}.tg-state{font-size:11px;padding:4px 9px;border-radius:20px;background:#e8e0d1;color:#8b704e;white-space:nowrap}.tg-state.is-complete{background:#e2ebe0;color:var(--tg-green)}.tg-total{display:flex;align-items:baseline;gap:10px;margin:10px 0 15px;font-variant-numeric:tabular-nums}.tg-total>strong{font-size:46px;font-weight:750;letter-spacing:-1px;line-height:1.1}.tg-total>span{font-size:21px;color:#967e62}.tg-total small{font-size:13px;margin-left:6px}.tg-progress{display:block;width:100%;height:8px;border:0;border-radius:20px;background:#e1d5c2;overflow:hidden;appearance:none}.tg-progress::-webkit-progress-bar{background:#e1d5c2;border-radius:20px}.tg-progress::-webkit-progress-value{background:#719379;border-radius:20px}.tg-progress::-moz-progress-bar{background:#719379;border-radius:20px}.tg-progress-meta{margin-top:10px}.tg-progress-meta strong{color:var(--tg-green);font-weight:650}.tg-personal{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--tg-border)}.tg-personal>div{min-width:0}.tg-label{display:block;font-size:12px;color:var(--tg-muted)}.tg-personal strong{font-size:25px;display:block;font-variant-numeric:tabular-nums}.tg-personal small{font-size:12px;color:var(--tg-muted);font-weight:400;margin-left:5px}.tg-personal p{color:var(--tg-muted);font-size:12px;line-height:1.7;margin-top:4px}.tg-button{border:1px solid #d7c6ad;border-radius:9px;padding:9px 14px;background:#f8f0e2;color:#785632;white-space:nowrap;cursor:pointer;min-height:40px;font-weight:600!important}.tg-button:hover:not(:disabled){background:#f0e5d2}.tg-button.tg-primary{background:var(--tg-green);color:#fff;border-color:var(--tg-green)}.tg-button.tg-primary:hover:not(:disabled){background:#42644d}.tg-dialog button:disabled{cursor:default;opacity:.55}.tg-members{padding-top:20px}.tg-dialog h3{display:flex;justify-content:space-between;gap:12px;font-size:15px;font-weight:700;line-height:1.5}.tg-dialog h3 span{font-size:12px;font-weight:400;color:var(--tg-muted)}.tg-member-list{margin-top:10px;max-height:246px;overflow:auto;scrollbar-width:thin;scrollbar-color:#bcaa90 #f5eedf;overscroll-behavior:contain;padding-right:4px}.tg-member{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #ede2d2;font-variant-numeric:tabular-nums}.tg-member:last-child{border-bottom:0}.tg-rank{font-size:12px;color:#ab9b85}.tg-rank.is-top{color:#a87533;font-weight:700}.tg-member-name{min-width:0;overflow-wrap:anywhere;font-size:14px}.tg-member strong{font-size:15px;font-weight:650;white-space:nowrap}.tg-member strong small{font-size:11px;color:var(--tg-muted);font-weight:400;margin-left:5px}.tg-owner{display:flex;align-items:center;gap:10px;margin-top:18px;padding:14px;background:#f5eddf;border-radius:12px;font-size:13px}.tg-owner label{margin-right:auto;white-space:nowrap;color:#806a50}.tg-owner select{padding:8px 28px 8px 10px;min-width:0;max-width:140px;border:1px solid #d7c6ad;border-radius:8px;background:var(--tg-paper);color:var(--tg-ink);height:40px}.tg-owner .tg-button{padding-inline:12px}.tg-history{margin-top:24px}.tg-history-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.tg-history-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;background:transparent;border:0;border-top:1px solid #ede2d2;color:var(--tg-ink);text-align:left;cursor:pointer;font-size:13px!important}.tg-history-row:hover{background:#f6efe3}.tg-history-row small{display:block;color:var(--tg-muted);font-size:11px;margin-top:3px}.tg-history-status{display:flex;align-items:center;gap:8px;font-size:12px;color:#a18e76;white-space:nowrap}.tg-history-status.is-complete{color:var(--tg-green)}.tg-history-status svg{height:14px;width:14px}.tg-text-button{background:transparent;border:0;padding:6px;color:var(--tg-green);font-size:12px!important;cursor:pointer}.tg-empty{font-size:12px;color:var(--tg-muted);line-height:1.8;padding:12px 0}.tg-message{font-size:13px;color:#a74e38;margin-top:16px!important;overflow-wrap:anywhere}.tg-message:empty{display:none}.tg-dialog::-webkit-scrollbar,.tg-member-list::-webkit-scrollbar{width:6px}.tg-dialog::-webkit-scrollbar-track,.tg-member-list::-webkit-scrollbar-track{background:#f5eedf}.tg-dialog::-webkit-scrollbar-thumb,.tg-member-list::-webkit-scrollbar-thumb{background:#bcaa90;border-radius:6px}
@media(max-width:600px){.tg-dialog{padding:20px 16px;border-radius:16px}.tg-dialog h2{font-size:21px}.tg-header{margin-bottom:16px}.tg-overview{padding:16px}.tg-total>strong{font-size:39px}.tg-personal{gap:12px;align-items:flex-start}.tg-personal .tg-button{padding:8px 10px;font-size:12px}.tg-member-list{max-height:220px}.tg-owner{padding:12px 10px;gap:8px}.tg-owner .tg-button{padding-inline:10px}.tg-entry{margin-block:12px}.tg-entry-numbers>strong{font-size:22px}}
@media(max-width:374px){.tg-personal{flex-wrap:wrap}.tg-personal .tg-button{width:100%}.tg-owner{flex-wrap:wrap}.tg-owner label{width:100%}.tg-owner select{flex:1;max-width:none}}
@media(prefers-reduced-motion:reduce){.tg-entry,.tg-track>span{transition:none}.tg-dialog::backdrop{backdrop-filter:none}}
