/* Refino 17 — scoped presentation, no gameplay or reward overrides. */
.r17-internal-status,[hidden].r17-notice-badge{display:none}
.r17-notice-badge{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;margin-left:5px;border:1px solid #8673a2;border-radius:999px;background:#483759;color:#fff;font-family:inherit;font-weight:700;font-size:11px;line-height:1.1;vertical-align:middle}
.sidebar [data-page="progresso"]{display:flex;align-items:center;gap:5px;white-space:normal;line-height:1.3}
.sidebar [data-page="progresso"] #r17-progress-total{margin-left:auto;flex-shrink:0}
[data-section="progresso"] .subtabs{display:flex;flex-wrap:wrap;gap:6px}
[data-section="progresso"] .subtabs button{min-width:0;display:flex;gap:5px;align-items:center;justify-content:center}
#progress-pass-list.hidden{display:none}
#progress-pass-list>.r17-pass-panel{margin:0;max-width:100%}
#progress-pass-list #dt15-pass-rewards{max-width:100%}
[data-section="progresso"]>.dt15-overview{margin:4px 0 10px}
[data-section="progresso"] .r17-pass-host{min-width:0}
/* Existing navigation links are never nested inside collapsed details/scroll surfaces. */
.sidebar #r3-play-nav.r17-simple-nav{display:flex;flex-direction:column;gap:0;border:0;border-radius:0;box-shadow:none;margin:0;padding:0;background:transparent;overflow:visible;max-height:none}
.sidebar #r3-play-nav.r17-simple-nav .r3-play-links{display:contents}
.sidebar #r3-play-nav.r17-simple-nav .nav-item{display:flex;align-items:center;gap:8px;width:100%;max-height:none;min-height:34px;white-space:nowrap;overflow:visible;text-overflow:clip;font-size:13px;line-height:1.25}
.sidebar #r3-play-nav.r17-simple-nav .nav-item small,.sidebar #r3-play-nav.r17-simple-nav .r7-side-lives,.sidebar #r3-play-nav.r17-simple-nav .r6-status{display:none}
.sidebar [data-page="pedido-carta"]{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
/* Compact HUD. Underlying official values/bells remain in place. */
#home-live-section .hud-card .r17-hud-head{display:flex;align-items:center;gap:5px;justify-content:space-between;min-width:0;width:100%}
#home-live-section .hud-card .r17-hud-head>.hud-label{padding:0;min-width:0;overflow-wrap:anywhere}
#home-live-section .hud-card .r17-hud-head>.r7-bell{position:static;flex:0 0 24px;min-width:24px;width:24px;height:24px;min-height:24px;margin:0;padding:2px}
#home-live-section #hud-card-tickets #r7-ticket-timers{display:grid;gap:2px;min-width:0;max-height:64px;overflow:hidden}
#home-live-section #hud-card-tickets .r7-ticket-line{display:flex;align-items:center;gap:5px;min-width:0;margin:0;white-space:nowrap;font-size:10px}
#home-live-section #hud-card-tickets .r7-ticket-line .r9-ticket-heading{display:flex;flex:0 1 auto;align-items:center;gap:3px;min-width:0;margin:0;font-size:10px}
#home-live-section #hud-card-tickets .r7-ticket-line .r9-ticket-heading strong{font-size:10px;white-space:nowrap}
#home-live-section #hud-card-tickets .r7-ticket-line .r9-availability{white-space:nowrap;font-size:10px}
#home-live-section #hud-card-tickets .r7-ticket-line small.hint{display:none}
#home-live-section #hud-card-tickets .r7-ticket-line progress{width:35px;max-width:35px;height:5px;min-width:0}
#home-live-section #hud-card-tickets .r7-ticket-line .r9-ticket-clock{font-size:9px;white-space:nowrap}
#home-live-section #hud-card-routine .r17-hud-head{gap:4px;flex-wrap:wrap}
#home-live-section #hud-card-routine .home-hud-auto-controls{margin:0;display:flex;gap:3px;align-items:center;flex-wrap:wrap;min-width:0;width:auto}
#home-live-section #hud-card-routine .home-hud-auto-controls button{white-space:nowrap}
#home-live-section #hud-card-friendly #r7-friendly-countdown{font-size:9px;line-height:1.15}
.r17-upgrade-dialog{width:min(520px,96vw);max-height:88dvh;overflow:auto;padding:18px;border:1px solid #776295;border-radius:14px;color:#f1ebf7;background:#21162f;box-shadow:0 24px 80px #0008}
.r17-upgrade-dialog::backdrop{background:#080611b8}
.r17-upgrade-dialog h2{font-size:21px;margin:0 0 8px}
.r17-upgrade-dialog .r17-confirm-question{font-weight:750;color:#f1d5ff}
.r17-upgrade-dialog .r17-upgrade-details{display:grid;gap:4px;margin:10px 0;padding:10px;background:#2d2141;border-radius:9px}
.r17-upgrade-dialog .r17-upgrade-details p{margin:2px 0;line-height:1.4}
.r17-upgrade-dialog .r17-upgrade-result{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.r17-upgrade-dialog .r17-upgrade-result[data-tone="success"]{color:#a8f0c3}
.r17-upgrade-dialog .r17-upgrade-result[data-tone="error"]{color:#ffb0ba}
.r17-upgrade-dialog .button-group{margin-top:12px}
@media(max-width:950px){#home-live-section #hud-card-routine .home-hud-auto-controls button{font-size:9px}}
@media(max-width:600px){.sidebar #r3-play-nav.r17-simple-nav .nav-item{min-height:37px;font-size:12px}#home-live-section #hud-card-tickets .r7-ticket-line{flex-wrap:wrap;gap:1px 3px;white-space:normal}#home-live-section #hud-card-routine .r17-hud-head{align-items:flex-start}#progress-pass-list .r15-pass-table{min-width:680px}}
/* At mobile widths, navigation uses the existing single outer rail; no inner scroller. */
@media(max-width:700px){
 .sidebar #r3-play-nav.r17-simple-nav{flex-direction:row;flex:0 0 auto;gap:2px}
 .sidebar #r3-play-nav.r17-simple-nav .nav-item{font-size:12px;min-width:max-content;width:auto;padding:9px 7px}
 #home-live-section .home-hud-grid>.hud-card{max-height:none!important;overflow:visible}
}
/* Mobile drawer supplied by mobile.js: simple readable links, one per line. */
@media(max-width:700px){
 body.dt-mobile-ready .sidebar #r3-play-nav.r17-simple-nav{display:flex;flex-direction:column;width:100%;max-width:100%;gap:0;overflow:visible}
 body.dt-mobile-ready .sidebar #r3-play-nav.r17-simple-nav .r3-play-links{display:flex;flex-direction:column;width:100%}
 body.dt-mobile-ready .sidebar #r3-play-nav.r17-simple-nav .nav-item{display:flex;min-width:0;width:100%;white-space:nowrap;overflow:visible;font-size:13px;padding:7px 11px}
}
