nav .trophy-nav{background:#ffd24a;color:#102c55;font-weight:900;border-color:#ffd24a}aside nav .trophy-nav{color:#102c55}aside nav .trophy-nav.active{background:#ffca28;color:#102c55;border-color:#ffca28}
.records-tabs,.actions,.badges{display:flex;gap:.6rem;flex-wrap:wrap}.records-tabs{margin-bottom:1.25rem}.records-tabs button.selected{background:#102c55;color:white}.podiums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;align-items:end;margin:1.5rem 0}.podium{border-radius:18px;padding:1.2rem .6rem;text-align:center;background:#eef3fa;border:1px solid #d5dfef;min-width:0}.podium.gold{background:#fff2bb;border-color:#efc946;min-height:180px}.podium.silver{min-height:155px}.podium.bronze{background:#ffe5d2;border-color:#e4bda1;min-height:135px}.podium .medal{font-size:2.5rem}.podium strong{display:block;font-size:1.1rem;overflow-wrap:anywhere}.podium .score{font-size:1.4rem;font-weight:900;color:#005bb8;margin-top:.5rem}.rank-row{display:grid;grid-template-columns:3rem 1fr auto;gap:.8rem;align-items:center;padding:1rem 0;border-top:1px solid var(--line)}.rank-row strong{overflow-wrap:anywhere}.rank-num{font-weight:900;color:#006bd6}.record-title{background:#102c55;color:white;padding:1.5rem;border-radius:18px;margin-bottom:1rem}.record-title h3{font-size:1.65rem;margin:0 0 .5rem}.record-title p{color:#d6e4f7;margin:.3rem 0;line-height:1.5}.badge{background:#fff1bc;border:1px solid #e8cb67;color:#604805;border-radius:999px;padding:.65rem .9rem;font-size:.9rem;font-weight:800}.youth-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:1rem 0}.youth-row{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}.youth-row strong{overflow-wrap:anywhere}.status-tag{display:inline-block;padding:.3rem .6rem;border-radius:99px;background:#e7f5eb;color:#17603b;font-size:.875rem;margin:.3rem}.status-tag.inactive,.status-tag.removed,.status-tag.anonymized{background:#f1e7ea;color:#893644}.catalog-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.product-mini{border:1px solid var(--line);border-radius:16px;padding:1rem;display:grid;gap:.6rem}.item-art img{width:100%;height:100%;object-fit:contain;border-radius:12px}.item-art{height:140px;overflow:hidden}.photo-preview{display:flex;gap:.7rem;flex-wrap:wrap;margin:.8rem 0}.photo-tile{width:130px;border:1px solid var(--line);padding:.5rem;border-radius:12px}.photo-tile img{width:100%;height:95px;object-fit:contain}.photo-tile button{width:100%;font-size:.875rem}.photo-gallery{display:flex;gap:.35rem;margin-top:.5rem}.photo-gallery button{min-width:44px;padding:.35rem}.photo-gallery img{width:38px;height:38px;object-fit:contain}.modal-form{border:0;border-radius:20px;max-width:700px;width:calc(100% - 2rem);max-height:90vh;overflow:auto;padding:1.4rem;color:var(--ink);box-shadow:0 20px 70px #102c5555}.modal-form::backdrop{background:#0d244a99}.modal-form h3{font-size:1.35rem;margin-top:0}.modal-form .form-grid{margin:1rem 0}.modal-form .actions{margin-top:1rem}.modal-status{color:#a02d38;line-height:1.5}.history-list{max-height:300px;overflow:auto}.history-list .table-row{grid-template-columns:minmax(0,1fr) auto}.history-list strong{overflow-wrap:anywhere}.form-grid label:has(input[type=checkbox]){display:flex;gap:.6rem;align-items:center}input[type=checkbox]{width:20px;height:20px}.search-bar{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:.8rem;margin-bottom:1rem}.loading-text{color:var(--muted);font-size:.875rem}.personal-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.panel p{line-height:1.5}.metric span{font-size:.875rem}.muted{overflow-wrap:anywhere}input,select,textarea{max-width:100%}
@media(max-width:900px){nav{grid-template-columns:repeat(2,minmax(0,1fr))}.youth-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.youth-row{align-items:flex-start;flex-direction:column}.search-bar{grid-template-columns:1fr}.personal-metrics{grid-template-columns:1fr 1fr}.balance{grid-template-columns:1fr}.table-row{min-width:0}.table-row>div{min-width:0}.podium strong{font-size:.95rem}.podium .score{font-size:1.05rem}.podiums{gap:.4rem}.podium{padding:1rem .3rem}.record-title{padding:1rem}.actions button{flex:1;min-width:100px}.modal-form .form-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){button{transition:none}button:hover:not(:disabled){transform:none}}
.order-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;margin:1rem 0}.order-card{border:1px solid var(--line);border-radius:14px;padding:1rem;background:#f7faff;min-width:0}.order-card p{overflow-wrap:anywhere}.order-heading{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;justify-content:space-between}.order-status{padding:.4rem .7rem;font-size:.875rem;font-weight:800;border-radius:99px;background:#fff1b5;color:#725908}.order-status.approved{background:#e1edff;color:#045ba8}.order-status.fulfilled{background:#e1f5e8;color:#146039}.order-status.declined{background:#ffe4e7;color:#8c303b}.thursday-countdown{display:block;color:#005bb8;font-size:clamp(1.7rem,4vw,2.8rem);letter-spacing:-.035em;margin:1rem 0}

.order-status.reserved{background:#efe7ff;color:#573798}.order-status.expired,.order-status.cancelled{background:#eef0f5;color:#526078}
/* Keep action labels readable on every surface, including the dark sidebar and disabled controls. */
button.secondary{background:#e6edf7;color:#14233c;border:1px solid #a8b9d0}
button.secondary:hover:not(:disabled){background:#d6e1f0;color:#10233c}
button.ghost:hover:not(:disabled){background:#edf4ff;color:#10233c}
aside button.ghost:hover:not(:disabled){background:#24436d;color:#fff}
.entry-card button.secondary{background:#e6edf7;color:#14233c;border:1px solid #a8b9d0}
button:disabled,aside button.ghost:disabled{opacity:1;background:#e2e8f0;color:#475569;border:1px solid #a8b3c7;cursor:not-allowed;transform:none}
.student-preview-banner{position:sticky;top:.5rem;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;padding:1rem 1.2rem;border:2px solid #ffd24a;border-radius:16px;background:#102c55;color:#fff;box-shadow:0 6px 18px #102c5533}.student-preview-banner div{display:grid;gap:.2rem}.student-preview-banner span{color:#e3ecfa}.student-preview-banner button.secondary{flex:none}.staff-discrepancy{margin-top:1rem;padding:1rem;border:1px solid #9cb0cb;border-radius:16px;background:#f7faff;color:#14233c}.staff-discrepancy summary{cursor:pointer;font-weight:900;color:#102c55}.staff-discrepancy .history-list{border-top:1px solid #cbd7e6;margin-top:.8rem;padding-top:.4rem}
.password-visibility{display:flex;align-items:center;gap:.55rem;margin-top:.5rem;color:#334155;font-weight:700}.password-visibility input[type=checkbox]{width:20px;height:20px;flex:none}
.staff-account-list,.birthday-list{display:grid;gap:.75rem;margin-top:1rem}.staff-account-row,.birthday-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fff;color:#14233c}.staff-account-row p,.birthday-card p{margin:.35rem 0 0;color:#526078}.staff-account-row .actions{justify-content:flex-end}.birthday-card{justify-content:flex-start;font-size:1.1rem}.birthday-card>span{font-size:2rem}.birthday-card strong{color:#102c55}
@media(max-width:650px){.staff-account-row{align-items:stretch;flex-direction:column}.staff-account-row .actions{justify-content:stretch}.staff-account-row .actions button{min-width:0;flex:1}}
@media(max-width:600px){.student-preview-banner{align-items:stretch;flex-direction:column}.student-preview-banner button{width:100%}}
.quest-hero{background:linear-gradient(120deg,#102c55,#124b75);color:#fff;padding:clamp(24px,5vw,54px);border-radius:24px;margin-bottom:20px;border-bottom:7px solid #f5c84b}.quest-hero h3{font-size:clamp(32px,6vw,64px);line-height:1.05;margin:18px 0;color:#fff}.quest-eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:800}.quest-pills{display:flex;flex-wrap:wrap;gap:12px}.quest-pills span{background:#fff;color:#102c55;padding:8px 12px;border-radius:20px;font-weight:700}.quest-tabs{margin-bottom:20px}.quest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:18px}.quest-card{margin:0;display:flex;flex-direction:column}.quest-card h3{margin-bottom:0}.quest-riddle{font-size:18px;line-height:1.65;flex:1}.quest-unavailable{border-style:dashed}.quest-map{width:100%;height:65vh;border:1px solid #b0c0ce;border-radius:14px}.quest-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px}.quest-board article{background:#edf5fb;border:2px solid #1e547f;text-align:center;padding:28px;border-radius:20px;color:#102c55}.quest-board article>span{font-size:46px}.quest-board strong{font-size:64px}.quest-proof{display:block;max-width:100%;max-height:55vh;object-fit:contain;margin:12px auto}.quest-proof[hidden]{display:none}.quest-review{padding:16px 0;border-bottom:1px solid #b0c0ce}.quest-card button:disabled{background:#d7dfe7;color:#465767;opacity:1;cursor:not-allowed}#questContent textarea{width:100%;min-height:80px}#questContent details{margin:18px 0}.quest-tabs button{min-height:44px}
.speed-status{position:fixed;right:18px;bottom:18px;z-index:1001;padding:13px 18px;background:#102c55;color:#fff;border:1px solid #91b5df;border-radius:14px;box-shadow:0 8px 25px #0003;font-size:13px;font-weight:700;pointer-events:none}.speed-status[hidden]{display:none}.quest-mode .speed-status{background:#30213f;color:#fff;border-color:#b393c7}
