/* TL4: shared category typography, geometry and a continuous blue backdrop. */
.role-ranking-page.role-ranking-premium .tl4-nav-stack{display:grid;gap:18px;background:var(--smile-blue);border-radius:8px}
.tl3-tab:focus-visible,.tl3-refresh:focus-visible{outline:3px solid #ffdc72;outline-offset:3px}
.tl3-content{direction:rtl;text-align:right}.tl3-summary{position:relative;display:flex;align-items:center;gap:18px;background:linear-gradient(125deg,#0088b7,#24b7d9);border:1px solid #ffffff85;border-radius:20px;padding:24px 20px;color:#fff;box-shadow:0 9px 25px #04759824}.tl3-emblem{width:86px;height:86px;border-radius:24px;flex:none;background:#fff2;display:grid;place-items:center}.tl3-emblem svg{width:74px;height:74px}.tl3-summary h2{font-size:20px;margin:6px 0}.tl3-summary p{font-size:14px;line-height:1.9;margin:4px 0}.tl3-summary small{font-size:12px;line-height:1.9}.tl3-refresh{align-self:flex-end;border:1px solid #ffffff80;background:#ffffff26;color:#fff;border-radius:50%;width:40px;height:40px;flex:none;font-size:27px;cursor:pointer}
.tl3-section{margin-top:26px;color:#285265}.tl3-section>h2{font-size:20px;margin:0 0 8px}.tl3-section>small{font-size:12px;line-height:1.8}.tl3-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;align-items:stretch}.tl3-card{position:relative;display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#fff,#f3fbff);border:1px solid #d4e8f0;border-radius:18px;padding:18px 14px;box-shadow:0 5px 18px #35728410;min-width:0;color:#234e61}.tl3-place{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e1f3fc;color:#007fab;flex:none;font-weight:700}.tl3-avatar{display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#c8edf5;color:#087a9d;width:64px;height:64px;flex:none;font-weight:700;font-size:26px}.tl3-avatar img{object-fit:cover;width:100%;height:100%}.tl3-person{min-width:0;flex:1}.tl3-person h3{font-size:15px;line-height:1.9;margin:0;overflow-wrap:anywhere}.tl3-person small{display:block;font-size:11px;line-height:1.9;color:#658b9b}.tl3-person .tl3-account{color:#007eaa}.tl3-points{flex:none;font-size:14px;color:#008359;background:#d9f4e9;border-radius:12px;padding:9px 12px;white-space:nowrap}.tl3-points.is-negative{color:#ad3434;background:#ffeded}.tl3-status{color:#9a7118!important}.tl3-ineligible{box-shadow:none;background:#f8fafb}.tl3-ineligible .tl3-place{background:#eee;color:#999}.tl3-podium-card{flex-direction:column;text-align:center;border-top:4px solid #e8bd43;padding-top:22px;gap:10px}.tl3-podium-card:nth-child(2){border-top-color:#aebecb}.tl3-podium-card:nth-child(3){border-top-color:#c7926e}.tl3-podium-card .tl3-place{position:absolute;top:-15px;right:calc(50% - 15px);background:#e2af23;color:#fff}.tl3-podium-card:nth-child(2) .tl3-place{background:#96acbc}.tl3-podium-card:nth-child(3) .tl3-place{background:#b68560}.tl3-podium-card .tl3-avatar{border:3px solid #f0d580;width:76px;height:76px}.tl3-podium-card h3{font-size:13px}.tl3-podium-card .tl3-points{font-size:13px}.tl3-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}.tl3-empty{padding:30px 16px;border-radius:18px;background:#ffffffa8;color:#406777;text-align:center;line-height:2}.tl3-empty button{margin-top:12px;border:0;border-radius:12px;background:#008ab8;padding:10px 24px;color:#fff;font:inherit;cursor:pointer}.tl3-source{color:#527b8d;font-size:12px;line-height:2;margin:20px 0}
@media(max-width:480px){.tl3-summary{padding:18px 14px;gap:12px;flex-wrap:wrap}.tl3-emblem{width:58px;height:58px;border-radius:18px}.tl3-emblem svg{width:52px;height:52px}.tl3-summary>div:nth-child(2){flex:1;min-width:160px}.tl3-summary h2{font-size:16px}.tl3-refresh{margin-right:auto}.tl3-podium{gap:7px}.tl3-podium-card{padding:18px 6px 12px;border-radius:14px;gap:8px}.tl3-podium-card .tl3-avatar{width:58px;height:58px}.tl3-podium-card .tl3-person h3{font-size:11px}.tl3-podium-card .tl3-person small{font-size:10px}.tl3-podium-card .tl3-points{font-size:11px;padding:7px 6px}.tl3-list .tl3-card{flex-wrap:wrap;gap:9px;padding:14px 10px}.tl3-list .tl3-avatar{width:48px;height:48px}.tl3-list .tl3-person{min-width:130px}.tl3-list .tl3-points{margin-right:auto;font-size:12px}.tl3-person h3{font-size:13px}}
@media(prefers-reduced-motion:reduce){.tl3-content *{animation:none!important;transition:none!important}}

/* TL5: administrator-only earned team income below the unchanged score. */
.tl5-stats{flex:none;max-width:100%;min-width:112px;padding:10px 12px;border-radius:12px;background:#d9f4e9;color:#008359;text-align:center}
.tl5-stats>.tl3-points{display:block;margin:0!important;padding:0;background:transparent;white-space:normal}
.tl5-income{margin-top:8px;padding-top:8px;border-top:1px solid #00835925;display:flex;flex-direction:column;align-items:center;gap:4px;line-height:1.8;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.tl5-total{display:block;max-width:100%;font-size:14px}.tl5-total small{font-size:10px;font-weight:500}.tl5-wallet{display:block;max-width:100%;font-size:10px;font-weight:500}.tl5-wallet b{font-weight:700}.tl5-unavailable{color:#657b72}.tl3-podium-card .tl5-stats{width:100%;min-width:0;padding:9px 7px}.tl3-list .tl5-stats{margin-right:auto}
@media(max-width:480px){.tl3-podium-card .tl5-income{font-size:11px}.tl3-podium-card .tl5-total{font-size:12px}.tl3-podium-card .tl5-wallet{font-size:9px}.tl3-list .tl5-stats{padding:9px 10px}.tl3-podium-card:has(.tl5-stats){padding-bottom:16px}}

/* TL6: shared team card, confined to the admin's modal report. */
.tl6-income-button{font-family:inherit;color:inherit;background:transparent;border-left:0;border-right:0;border-bottom:0;width:100%;cursor:pointer;padding:0;text-align:center}
.tl6-income-button:focus-visible{outline:2px solid #078db5;outline-offset:4px;border-radius:8px}
.tl6-income-button:hover{color:#075e4b}
.tl6-team-dialog{box-sizing:border-box;border:1px solid #d4ebf1;border-radius:24px;padding:0;width:min(680px,calc(100vw - 24px));max-width:680px;max-height:calc(100dvh - 32px);color:#244f5f;background:#f1fbff;box-shadow:0 18px 70px #003e5a55;overflow:hidden;animation:tl6-enter .22s ease both}
/* TL7: definite viewport height prevents the asynchronously mounted card from collapsing in Safari. */
.tl6-team-dialog[open]{display:flex;flex-direction:column;height:min(900px,calc(100vh - 32px));height:min(900px,calc(100dvh - 32px))}
.tl6-team-dialog::backdrop{background:#08384d66;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:tl6-fade .22s ease both}
.tl6-team-dialog.is-closing{animation:tl6-enter .2s ease reverse both}
.tl6-team-dialog.is-closing::backdrop{animation:tl6-fade .2s ease reverse both}
.tl6-dialog-header{position:relative;flex:none;padding:20px 56px 18px 20px;border-bottom:1px solid #d4e9ef}
.tl6-dialog-header h2{font-size:17px;margin:0;line-height:1.8}
.tl6-dialog-x{position:absolute;right:12px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#deeff5;color:#244f5f;font-size:26px;cursor:pointer}
.tl6-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:16px;margin:0;min-height:100px;width:100%;box-sizing:border-box;flex:1 1 auto;-webkit-overflow-scrolling:touch}
.tl6-dialog-body>p{text-align:center;padding:20px}
.tl6-dialog-body.my-team-page{margin:0;max-width:none;overflow-y:auto;min-height:0}
.tl6-dialog-body button:disabled{opacity:1;cursor:default}
.tl6-dialog-body .my-team-personnel-copy{display:none}
.tl6-team-dialog footer{flex:none;padding:12px 18px;border-top:1px solid #d4e9ef;text-align:center}
.tl6-dialog-close{border:0;border-radius:14px;padding:10px 40px;font:inherit;background:#118fb5;color:white;cursor:pointer}
@keyframes tl6-enter{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tl6-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.tl6-team-dialog,.tl6-team-dialog::backdrop,.tl6-team-dialog.is-closing,.tl6-team-dialog.is-closing::backdrop{animation:none}}
@media(max-width:420px){.tl6-dialog-body{padding:10px}.tl6-dialog-header h2{font-size:15px}}
