/* V5 production integration. Uses the original V5 styling and page grids.
   Keep tool/admin layouts and public-only restrictions from the live application. */
:root{--v5-dark:#091626}
body[data-theme=glass]{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#f0f7ff;min-height:100vh}
body[data-theme=glass] .app.app-shell{display:grid;grid-template-columns:266px minmax(0,1fr);max-width:none;min-height:100vh;background:transparent}
body[data-theme=glass] .side.sidebar{position:sticky;top:0;left:auto;display:flex;flex-direction:column;height:100vh;width:auto;max-height:100vh;padding:26px 14px;transform:none;overflow-y:auto;overflow-x:hidden;z-index:5;background:linear-gradient(165deg,rgba(47,93,153,.33),rgba(13,33,64,.68) 40%,rgba(9,21,40,.77));border-right:1px solid rgba(181,209,246,.20);box-shadow:inset -1px 0 rgba(255,255,255,.06)}
body[data-theme=glass] .main.main-area{margin:0;min-width:0;min-height:100vh;display:flex;flex-direction:column;background:transparent}
body[data-theme=glass] .top.topbar{width:100%;position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:74px;min-height:74px;max-height:74px;padding:0 38px;background:rgba(10,22,43,.57);border-bottom:1px solid rgba(189,218,252,.15);backdrop-filter:blur(32px) saturate(160%);z-index:4}
body[data-theme=glass] .content{width:100%;flex:1;max-width:1500px;margin:0 auto;padding:31px 37px 64px}
body[data-theme=glass] .foot.footer{width:100%;max-width:1500px;margin:auto;background:transparent;min-height:40px;padding:0 38px 22px;border:0;display:flex;justify-content:space-between;color:#7088a8}
body[data-theme=glass] .brand{display:flex;gap:11px;align-items:center;padding:6px 6px 24px}
body[data-theme=glass] .brand .brand-icon{width:42px;min-width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,rgba(193,222,255,.23),rgba(69,113,167,.1));border:1px solid rgba(181,211,252,.28)}
body[data-theme=glass] .brand-icon img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] .brand-text{font-size:20px;font-weight:800;letter-spacing:-.8px;line-height:1}
body[data-theme=glass] .brand-text span{color:#9bc7ff}
body[data-theme=glass] .brand-sub{font-size:8px;color:#93a9c5;letter-spacing:1.6px}
body[data-theme=glass] .nav-caption{font-size:10px;font-weight:800;letter-spacing:1.6px;margin:18px 7px 9px;color:#90aacb}
body[data-theme=glass] .side-nav{display:flex;flex-direction:column;gap:4px;margin:0;padding:0}
body[data-theme=glass] .side-nav .nav-item{min-height:44px;padding:9px 10px;gap:10px;display:flex;align-items:center;width:100%;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent;box-shadow:none;color:#b7cbe3;font-size:12.5px;font-weight:650;line-height:1.25;white-space:nowrap}
body[data-theme=glass] .nav-item:hover{background:rgba(150,190,250,.10);border-color:rgba(187,222,255,.15);color:#fff;transform:none}
body[data-theme=glass] .nav-item.active{background:linear-gradient(110deg,rgba(151,198,255,.27),rgba(71,117,185,.12));border-color:rgba(193,222,255,.43);box-shadow:inset 0 1px rgba(255,255,255,.26),0 5px 19px rgba(3,13,36,.22);color:#f4faff}
body[data-theme=glass] .nav-img.nav-icon{display:grid;place-items:center;min-width:27px;width:27px;height:27px;padding:0;border:0;background:transparent}
body[data-theme=glass] .nav-img.nav-icon img{width:26px;height:26px;max-width:26px;max-height:26px;image-rendering:pixelated;object-fit:contain}
body[data-theme=glass] .nav-item .chevron{margin-left:auto;font-size:15px;color:#8faacb}
body[data-theme=glass] .side-bottom.sidebar-bottom{margin-top:auto;padding:20px 3px 0;display:flex;flex-direction:column;gap:12px}
body[data-theme=glass] .sync.sync-panel{display:flex;gap:10px;align-items:center;padding:12px;border-radius:12px;border:1px solid rgba(193,219,255,.22);background:linear-gradient(160deg,rgba(142,185,255,.12),rgba(22,43,70,.3));box-shadow:inset 0 1px rgba(255,255,255,.12)}
body[data-theme=glass] .sync-panel b{font-size:11px}body[data-theme=glass] .sync-panel small{font-size:10px;display:block;color:#91a7c4}
body[data-theme=glass] .side-fine.side-footer{margin:0;padding:3px 6px;color:#748ca8;font-size:10px;line-height:1.6}
body[data-theme=glass] .crumb.breadcrumbs{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:800;letter-spacing:1.35px;color:#99b4d3;padding:0}
body[data-theme=glass] .crumb-light{color:#93aaca}body[data-theme=glass] #breadcrumb-current{color:#f0f7ff}body[data-theme=glass] .crumb-sep{color:#55738f}
body[data-theme=glass] .top-right.top-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;min-width:0}
body[data-theme=glass] .top-actions>button,body[data-theme=glass] .time-mode-switch{height:auto;min-height:36px;border:1px solid rgba(186,222,255,.23);border-radius:12px;background:linear-gradient(145deg,rgba(173,217,255,.14),rgba(56,94,146,.14));box-shadow:inset 0 1px rgba(255,255,255,.15);color:#dcecff;font-size:11px;font-weight:700}
body[data-theme=glass] .top-actions>button{padding:8px 11px}
body[data-theme=glass] .top-actions>button:hover{background:rgba(147,194,255,.18)}
body[data-theme=glass] .time-mode-switch{display:flex;padding:3px;gap:2px}
body[data-theme=glass] .time-mode-option{min-height:28px;min-width:auto;padding:6px 8px;border:0;border-radius:9px;background:transparent;color:#a5bfd9;font-size:10px;font-weight:700;white-space:nowrap}
body[data-theme=glass] .time-mode-option.active{background:linear-gradient(145deg,rgba(145,198,255,.29),rgba(70,119,189,.18));box-shadow:inset 0 1px rgba(255,255,255,.18);color:#fff}
body[data-theme=glass] .search-trigger kbd{color:#9db6d1}
/* Rendered production pages inherit V5 materials without altering their functionality. */
body[data-theme=glass] :is(.surface-card,.panel,.featured-calendar,.featured-event,.focus-panel,.page-intro,.challenge-card,.dc-history-card,.archive-coming-card,.challenge-detail-card,.challenge-summary-card,.leaderboard-board,.dc-mini-leaderboard,.calendar-surface,.day-detail,.dcx-calendar-section,.dcx-cycle-panel,.tool-card,.gt-tool-panel){background:linear-gradient(150deg,rgba(161,203,255,.16),rgba(44,83,140,.13) 36%,rgba(16,36,66,.60) 88%);border:1px solid rgba(182,219,255,.24);box-shadow:inset 0 1px rgba(255,255,255,.18),0 16px 40px rgba(2,11,31,.26);backdrop-filter:blur(24px) saturate(160%);border-radius:17px}
body[data-theme=glass] :is(.surface-card,.panel,.challenge-detail-card,.gt-tool-panel) h1,body[data-theme=glass] .page-title{color:#f1f7ff}
body[data-theme=glass] :is(.btn,.field,.dropdown,.textarea,.mode-switch,.search-trigger,.select,.link-button,.icon-button){border-color:rgba(179,218,255,.24);background:rgba(104,156,220,.08);color:#e5f2ff;border-radius:10px}
body[data-theme=glass] :is(.btn,.mode-switch,.link-button,.icon-button):hover{background:rgba(120,177,247,.18)}
body[data-theme=glass] .btn.primary{background:linear-gradient(145deg,rgba(151,204,255,.30),rgba(65,125,207,.18));border-color:rgba(199,227,255,.43)}
body[data-theme=glass] .section-eyebrow{color:#91bcf2}
body[data-theme=glass] .modal{border-radius:21px;border:1px solid rgba(190,225,255,.28);background:linear-gradient(160deg,rgba(35,69,114,.97),rgba(13,28,53,.98));box-shadow:0 35px 90px rgba(0,0,0,.55);color:#eaf5ff}
body[data-theme=glass] .modal-backdrop{background:rgba(3,10,27,.62);backdrop-filter:blur(11px)}
body[data-theme=glass] [hidden]{display:none!important}
/* V5 compact calendar: preserve the exact calendar/results proportions. */
body[data-theme=glass] .v5-overview-grid{grid-template-columns:minmax(0,1.8fr) minmax(320px,.84fr)}
body[data-theme=glass] .v5-compact-calendar .calendar-content{display:block}
body[data-theme=glass] .v5-compact-calendar .calendar-preview{width:100%}
body[data-theme=glass] .day-cell{min-width:0}
/* Safe responsive layouts: original sidebar collapses on phone. */
@media(max-width:1120px){body[data-theme=glass] .v5-overview-grid{grid-template-columns:1fr}body[data-theme=glass] .top.topbar{padding:0 20px}body[data-theme=glass] .content{padding:23px 22px 48px}body[data-theme=glass] .top-actions{gap:5px}}
@media(max-width:800px){body[data-theme=glass] .app.app-shell{display:block}body[data-theme=glass] .side.sidebar{position:fixed;left:0;top:0;bottom:0;width:266px;height:100vh;transform:translateX(-106%);transition:transform .23s ease;z-index:9}body[data-theme=glass] .side.sidebar.open{transform:translateX(0)}body[data-theme=glass] .main.main-area{width:100%}body[data-theme=glass] .top.topbar{height:64px;min-height:64px;padding:0 14px}body[data-theme=glass] .content{padding:20px 14px 43px}body[data-theme=glass] .footer.foot{padding:0 14px 20px}body[data-theme=glass] .mobile-menu{display:inline-flex}}
@media(max-width:650px){body[data-theme=glass] .top-actions #mode-switch{font-size:0;width:38px;padding:4px}body[data-theme=glass] .top-actions #mode-switch::before{content:'⚙';font-size:15px}body[data-theme=glass] .top-actions .search-trigger span,body[data-theme=glass] .top-actions .search-trigger kbd{display:none}body[data-theme=glass] .crumb-light,body[data-theme=glass] .crumb-sep{display:none}body[data-theme=glass] .time-mode-option{font-size:9px;padding:5px}body[data-theme=glass] .v5-overview-grid{grid-template-columns:1fr}}
body[data-theme=glass] .side.sidebar .sidebar-community{margin-top:8px}
body[data-theme=glass] .side.sidebar .sidebar-community .nav-item{border:1px solid rgba(190,224,255,.23);background:linear-gradient(140deg,rgba(141,194,255,.16),rgba(35,67,114,.17));color:#dcefff;font-size:11px}
body[data-theme=glass] .top-actions .community-btn{background:linear-gradient(140deg,rgba(153,204,255,.21),rgba(45,92,153,.19));border:1px solid rgba(194,226,255,.35);color:#e9f5ff;white-space:nowrap}
body[data-theme=glass] .v5-advanced-access{display:flex;justify-content:flex-end;margin:16px 2px 0}
body[data-theme=glass] .v5-advanced-access button{background:none;border:0;color:#91bde8;font-size:11px;font-weight:700;cursor:pointer;padding:8px}
body[data-theme=glass] .v5-advanced-access button:hover{text-decoration:underline;color:#e0efff}
body[data-theme=glass] .v5-advanced-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px;padding:12px 16px;background:rgba(64,110,182,.18);border:1px solid rgba(170,214,255,.28);border-radius:14px;color:#b8d9ff;font-size:12px;font-weight:800;text-transform:capitalize}
body[data-theme=glass] .v5-advanced-banner button{border:1px solid rgba(184,217,255,.28);background:rgba(126,177,245,.15);color:#f0f8ff;padding:9px 12px;border-radius:10px;cursor:pointer;font-size:11px}
@media(max-width:550px){body[data-theme=glass] .top-actions .community-btn{display:none}}

/* V38 — pixel-for-pixel approach to the selected V5 template, with a wider
   overview canvas and more space for the calendar than for recent scores. */
@media(min-width:1121px){
  body[data-theme=glass] #content.content{padding-left:28px;padding-right:28px}
  body[data-theme=glass] .v5-overview-grid{
    grid-template-columns:minmax(0,2.25fr) minmax(315px,.88fr);
    gap:17px;
  }
}
/* The V5 scoring dialog is used by the production challenge cards.
   Keep the old extended challenge editor/details available as a link below. */
body[data-theme=glass] #modal-root .dialog-backdrop{z-index:110}
body[data-theme=glass] #modal-root .dialog{
  width:min(880px,calc(100vw - 36px));
  max-height:min(92vh,1100px);
  overflow-y:auto;
  border-radius:21px;
}
body[data-theme=glass] #modal-root .dialog .v5-guide-rule{grid-template-columns:75px minmax(0,1fr)}
body[data-theme=glass] #modal-root .dialog .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-theme=glass] #modal-root .dialog .score-row .player{color:#c5d7ee}
body[data-theme=glass] #modal-root .dialog .score-row .player.gold{color:var(--gold)}
body[data-theme=glass] #modal-root .dialog .score-row .player.silver{color:var(--silver)}
body[data-theme=glass] #modal-root .dialog .score-row .player.bronze{color:var(--bronze)}
body[data-theme=glass] #modal-root .dialog .v5-modal-original-access{
  border-top:1px solid rgba(177,214,255,.13);
  margin-top:19px;padding-top:12px;text-align:right;
}
body[data-theme=glass] #modal-root .dialog .v5-modal-original-access button{
  color:#9dc8f5;background:transparent;border:0;font-size:11px;font-weight:730;
  padding:9px 2px;cursor:pointer;
}
body[data-theme=glass] #modal-root .dialog .v5-modal-original-access button:hover{
  color:#f0f7ff;text-decoration:underline;
}
@media(max-width:600px){
  body[data-theme=glass] #modal-root .dialog .v5-guide-rule{grid-template-columns:54px minmax(0,1fr)}
  body[data-theme=glass] #modal-root .dialog .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V39: dynamic cycle and contender grids, restored calendar controls and spacing. */
@media(min-width:1121px){
 body[data-theme=glass] .cycle-tracker{grid-template-columns:minmax(0,.94fr) minmax(0,1.14fr)}
 body[data-theme=glass] .cycle-status{grid-template-columns:minmax(125px,.52fr) minmax(0,1.18fr)}
 body[data-theme=glass] .cycle-count{padding-left:15px;padding-right:12px}
 body[data-theme=glass] .cycle-list{padding-left:11px;padding-right:8px;gap:10px}
}
body[data-theme=glass] .cycle-list.cycle-multi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:11px 11px}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed{gap:5px;white-space:normal;min-width:0;font-size:10px;line-height:1.25}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule{flex:0 0 27px;width:27px;height:27px}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .tick{flex:0 0 16px;width:16px;height:16px;font-size:10px}
body[data-theme=glass] .cycle-empty{font-size:12px;color:#a5bdd7}
body[data-theme=glass] .possible-grid{grid-template-columns:repeat(var(--poss-cols,4),minmax(0,1fr));align-items:stretch}
body[data-theme=glass] .v5-ranking-row.place-1>b{color:#f4c87e}
body[data-theme=glass] .v5-ranking-row.place-2>b{color:#d4e0ee}
body[data-theme=glass] .v5-ranking-row.place-3>b{color:#e6a77c}
body[data-theme=glass] .v5-month-control{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
body[data-theme=glass] .v5-calendar-jumps{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
body[data-theme=glass] .v5-calendar-select,body[data-theme=glass] .v5-calendar-date{background:rgba(102,153,219,.14);border:1px solid rgba(163,206,255,.28);border-radius:9px;color:#e5f2ff;font-size:11px;font-weight:720;padding:7px 6px;max-height:36px;min-height:32px;color-scheme:dark}
body[data-theme=glass] #v5-jump-month{width:65px}body[data-theme=glass] #v5-jump-year{width:78px}
body[data-theme=glass] #v5-jump-date{width:123px}
body[data-theme=glass] .calendar-week{gap:5px}
body[data-theme=glass] .day-cell,body[data-theme=glass] .v5-compact-calendar .day-cell{align-items:stretch;justify-content:flex-start;min-height:115px;padding:7px 5px;gap:5px;overflow:hidden}
body[data-theme=glass] .day-cell .day-art{justify-content:center;align-items:center;min-height:35px}
body[data-theme=glass] .day-cell .day-title,body[data-theme=glass] .v5-compact-calendar .day-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;text-overflow:clip;word-break:normal;overflow-wrap:normal;text-align:center;line-height:1.18;font-size:clamp(9px,.71vw,11px);max-height:27px;min-height:19px;overflow:hidden;color:#d3e6f8}
body[data-theme=glass] .day-cell.monthly .day-title{color:#b9dcff}
body[data-theme=glass] .day-cell.forecast .day-title{color:#eed9bb}
body[data-theme=glass] .day-cell.unknown .day-title{color:#bad3ec}
body[data-theme=glass] .day-cell.empty .day-title{color:#7892ab;font-size:9px}
body[data-theme=glass] .day-cell .possible-flag{bottom:4px;left:5px;right:auto;position:absolute;color:#f0c789;font-size:8px;font-weight:800;letter-spacing:.2px}
body[data-theme=glass] .day-cell .possible-flag.monthly{color:#87c2ed}
body[data-theme=glass] .day-cell .v5-cycle-label{position:absolute;bottom:3px;right:3px;padding:2px 3px;border-radius:3px;font-weight:850;font-size:7px;letter-spacing:.1px;white-space:nowrap;color:#f0c37b;background:rgba(189,139,68,.24)}
body[data-theme=glass] .day-cell .v5-cycle-label.start{color:#c3e9ff;background:rgba(75,153,220,.33)}
body[data-theme=glass] .day-cell.v5-cycle-end{outline:1px dotted rgba(242,177,91,.65);outline-offset:-3px}
body[data-theme=glass] .day-cell.v5-cycle-start{outline:1px dotted rgba(103,207,236,.68);outline-offset:-3px}
body[data-theme=glass] .calendar-legend .v5-cycle-legend{color:#819fbc;font-style:italic}
@media(max-width:1350px){body[data-theme=glass] .v5-month-control{justify-content:center}body[data-theme=glass] .v5-month-control .month-control-buttons{gap:4px}}
@media(max-width:1200px){body[data-theme=glass] .possible-grid{grid-template-columns:repeat(min(3,var(--poss-cols,4)),minmax(0,1fr))}}
@media(max-width:750px){body[data-theme=glass] .cycle-list.cycle-multi{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-theme=glass] .possible-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-theme=glass] .v5-calendar-date{display:none}body[data-theme=glass] .day-cell .day-title,body[data-theme=glass] .v5-compact-calendar .day-title{display:-webkit-box;font-size:9px;line-height:1.2;max-height:24px}}
@media(max-width:600px){body[data-theme=glass] .v5-compact-calendar .day-cell{min-height:88px}body[data-theme=glass] .day-cell{min-height:94px}body[data-theme=glass] .day-cell .day-art img{width:26px;height:26px}body[data-theme=glass] .day-cell .possible-flag{font-size:6px}body[data-theme=glass] .day-cell .v5-cycle-label{font-size:6px;padding:1px}body[data-theme=glass] .v5-month-control{gap:6px}}

/* V41 — exact V5 GrowID profile layout, scoped so admin and other dialogs stay untouched. */
body[data-theme=glass] #modal-root .dialog.v5-profile-dialog{
  width:min(880px,calc(100vw - 28px));
  padding:16px 14px 15px;
  border-radius:18px;
  border:1px solid rgba(181,215,255,.33);
  background:linear-gradient(148deg,rgba(45,75,118,.98),rgba(13,30,56,.98));
  box-shadow:inset 0 1px rgba(255,255,255,.20),0 34px 85px rgba(2,8,24,.70);
  max-height:92vh;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .dialog-head{
  margin-bottom:17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .title-icon{
  display:flex;gap:13px;align-items:center;min-width:0;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-emblem{
  flex:0 0 52px;display:grid;place-items:center;width:52px;height:52px;
  border-radius:13px;border:1px solid rgba(169,210,255,.42);
  background:linear-gradient(145deg,rgba(165,209,255,.23),rgba(65,116,203,.14));
  box-shadow:inset 0 1px rgba(255,255,255,.21);
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-emblem img{
  width:39px;height:39px;object-fit:contain;image-rendering:pixelated;
  filter:drop-shadow(0 2px 2px rgba(8,24,55,.30));
}
body[data-theme=glass] #modal-root .v5-profile-dialog .section-tag{font-size:10px;color:#a1c9f5;letter-spacing:1.6px}
body[data-theme=glass] #modal-root .v5-profile-dialog .dialog-head h2{
  margin:3px 0 0;font-size:24px;line-height:1.15;letter-spacing:-.45px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog >p{
  color:#b9cee6;margin:10px 1px 19px;font-size:12px;line-height:1.5;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 24px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat{
  background:rgba(29,54,84,.52);border:1px solid rgba(177,212,255,.25);
  border-radius:11px;padding:12px;min-height:85px;box-shadow:none;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat small{
  color:#9db2ca;font-size:9px;font-weight:800;letter-spacing:.65px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat b{
  color:#b9dcff;font-size:27px;font-weight:820;line-height:1.25;margin:6px 0 0;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-columns{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-columns h3{
  color:#f0f6ff;font-size:15px;font-weight:780;margin:0 0 13px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-minihead,
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row{
  display:grid;grid-template-columns:minmax(0,1fr) 52px 57px;gap:6px;align-items:center;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-minihead{
  padding:0 7px 8px;color:#8faac9;font-size:9px;font-weight:800;letter-spacing:.8px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-minihead span:nth-child(n+2){text-align:right}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row{
  padding:7px 8px;min-height:41px;margin-bottom:5px;border-radius:9px;
  background:rgba(12,31,57,.40);border:1px solid rgba(170,210,255,.12);
  color:#eef5ff;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button{
  display:flex;align-items:center;gap:6px;min-width:0;padding:0;
  color:#dfedff;background:none;border:0;font-size:11px;font-weight:620;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button img{
  width:22px;height:22px;object-fit:contain;image-rendering:pixelated;flex-shrink:0;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button:hover{color:#add5ff}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button small{
  color:#8fa8c5;font-size:9px;font-weight:450;margin-left:3px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row b{
  color:#eef5ff;text-align:right;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .close{
  flex:0 0 35px;width:35px;height:35px;border:1px solid rgba(181,219,255,.65);
  outline-offset:3px;border-radius:10px;color:#e8f4ff;
  background:rgba(132,188,255,.09);font-size:18px;
}
@media(max-width:760px){
  body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-columns{grid-template-columns:1fr;gap:16px}
  body[data-theme=glass] #modal-root .dialog.v5-profile-dialog{padding:14px 12px}
}

/* V42 — record icons, quiet calendar interaction, expanded canvas and unified challenge details. */
@media(min-width:1121px){
  body[data-theme=glass] #content.content {padding-left:19px;padding-right:19px}
  body[data-theme=glass] .v5-overview-grid {grid-template-columns:minmax(0,1fr) 315px;gap:17px}
}
body[data-theme=glass] .v5-metric-icon {width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,rgba(165,208,255,.18),rgba(66,116,192,.10));box-shadow:inset 0 1px rgba(255,255,255,.18)}
body[data-theme=glass] .v5-metric-icon img {width:34px;height:34px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 4px #07122188)}
body[data-theme=glass] .v5-metric-leader button:hover,body[data-theme=glass] .v5-metric-row button:hover {color:#9cd1ff;text-decoration:underline}
body[data-theme=glass] #modal-root .dialog .detail-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body[data-theme=glass] #modal-root .dialog .v5-stat-owner {display:block;width:100%;text-align:left;padding:2px 0;background:none;border:0;color:#b1d7ff;font-size:12px;font-weight:740;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-theme=glass] #modal-root .dialog .v5-stat-owner:hover{text-decoration:underline;color:#fff}
body[data-theme=glass] .v5-scoring-details{border:1px solid rgba(169,210,255,.30);background:rgba(12,32,59,.54);border-radius:12px;overflow:hidden;margin-top:12px}
body[data-theme=glass] .v5-scoring-details>summary{list-style:none;display:flex;align-items:center;gap:12px;cursor:pointer;padding:15px 16px;background:linear-gradient(100deg,rgba(116,176,245,.19),rgba(44,83,138,.10));user-select:none;transition:background .18s}
body[data-theme=glass] .v5-scoring-details>summary::-webkit-details-marker{display:none}
body[data-theme=glass] .v5-scoring-details>summary:hover{background:rgba(138,194,255,.22)}
body[data-theme=glass] .v5-scoring-details>summary:focus-visible{outline:2px solid #a6d4ff;outline-offset:-2px}
body[data-theme=glass] .v5-scoring-mark{font-size:22px;color:#acd7ff;line-height:1}
body[data-theme=glass] .v5-scoring-copy{display:flex;flex-direction:column;gap:4px;flex:1}
body[data-theme=glass] .v5-scoring-copy strong{color:#eaf5ff;font-size:13px}
body[data-theme=glass] .v5-scoring-copy small{color:#a5c3e3;font-size:11px}
body[data-theme=glass] .v5-scoring-chevron{font-size:23px;color:#a8cfff;transition:transform .18s;line-height:1}
body[data-theme=glass] .v5-scoring-details[open] .v5-scoring-chevron{transform:rotate(180deg)}
body[data-theme=glass] .v5-scoring-inner{border-top:1px solid rgba(173,213,255,.18)}
body[data-theme=glass] .v5-scoring-inner .v5-guide-rule:first-child{border-top:0}
body[data-theme=glass] .v5-scoring-note{padding:0 14px;font-size:11px;color:#a7bed6}
body[data-theme=glass] .v5-trend-chart{position:relative;height:164px;cursor:crosshair;outline-offset:4px}
body[data-theme=glass] .v5-trend-chart .v5-trend-svg{width:100%;height:164px;display:block;overflow:hidden}
body[data-theme=glass] .v5-chart-cursor {stroke:#c2e3ff;stroke-dasharray:3 4;stroke-width:1;opacity:0;transition:opacity .15s}
body[data-theme=glass] .v5-chart-dot{fill:#d8edff;stroke:#6dafff;stroke-width:2;opacity:0;transition:opacity .15s;filter:drop-shadow(0 0 5px #73b8ff)}
body[data-theme=glass] .v5-trend-chart.is-hover .v5-chart-cursor,body[data-theme=glass] .v5-trend-chart.is-hover .v5-chart-dot{opacity:1}
body[data-theme=glass] .v5-trend-tooltip{position:absolute;top:-2px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:2px;padding:7px 11px;background:rgba(15,36,68,.96);border:1px solid #b0d7ff66;border-radius:9px;color:#eaf6ff;font-size:11px;box-shadow:0 9px 24px #020b20a8;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s;z-index:2}
body[data-theme=glass] .v5-trend-tooltip b{font-size:16px;color:#b1d6ff}
body[data-theme=glass] .v5-trend-tooltip span{font-size:10px;color:#a6c1dc}
body[data-theme=glass] .v5-trend-chart.is-hover .v5-trend-tooltip{opacity:1}
body[data-theme=glass] .v5-alltime-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:20px 0}
body[data-theme=glass] .v5-alltime-block{padding:14px 12px;border-radius:13px;border:1px solid rgba(165,209,255,.22);background:rgba(9,27,50,.48);min-width:0}
body[data-theme=glass] .v5-alltime-block h3{font-size:14px;color:#dceeff;margin:0 2px 12px;letter-spacing:-.2px}
body[data-theme=glass] .v5-alltime-head,body[data-theme=glass] .v5-alltime-row{display:grid;grid-template-columns:44px minmax(0,1fr) 109px;align-items:center;gap:8px}
body[data-theme=glass] .v5-alltime-head{color:#849fbe;font-size:9px;font-weight:850;letter-spacing:.5px;padding:5px 8px}
body[data-theme=glass] .v5-alltime-row{border:1px solid rgba(163,211,255,.12);border-radius:9px;background:rgba(12,29,54,.50);margin:5px 0;min-height:51px;padding:5px 8px}
body[data-theme=glass] .v5-alltime-row .rank-holder img{width:35px;height:35px}
body[data-theme=glass] .v5-alltime-row>button:nth-child(2){color:#dceeff;background:none;border:0;text-align:left;font-weight:750;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;cursor:pointer}
body[data-theme=glass] .v5-alltime-row>button:nth-child(2):hover{color:#92c5ff;text-decoration:underline}
body[data-theme=glass] .v5-alltime-score{background:none;border:0;text-align:right;display:flex;flex-direction:column;align-items:flex-end;cursor:pointer;gap:4px;padding:0;color:#eaf5ff}
body[data-theme=glass] .v5-alltime-score b{font-size:12px;font-variant-numeric:tabular-nums}
body[data-theme=glass] .v5-alltime-score small{font-size:10px;color:#94bcdf}
body[data-theme=glass] .v5-alltime-score:hover small{text-decoration:underline}
body[data-theme=glass] .v5-allhistory{border:1px solid rgba(171,210,255,.22);border-radius:13px;background:rgba(7,24,45,.35);padding:14px;margin-top:20px}
body[data-theme=glass] .v5-allhistory-head{padding:3px 4px 12px}
body[data-theme=glass] .v5-allhistory-head h3{font-size:17px;margin:6px 0 4px}
body[data-theme=glass] .v5-allhistory-head h3 span{font-size:13px;color:#9fbddb}
body[data-theme=glass] .v5-allhistory-head p{font-size:11px;color:#92b2d5;margin:0}
body[data-theme=glass] .v5-history-details{border-radius:10px;border:1px solid rgba(163,203,255,.18);background:rgba(13,31,58,.50);margin:6px 0;overflow:hidden}
body[data-theme=glass] .v5-history-details summary{list-style:none;display:flex;align-items:center;gap:10px;padding:12px 15px;cursor:pointer;color:#dceaff;font-weight:750;font-size:12px}
body[data-theme=glass] .v5-history-details summary::-webkit-details-marker{display:none}
body[data-theme=glass] .v5-history-details summary span:nth-child(2){margin-left:auto;font-weight:500;color:#9cb9d9;font-size:11px}
body[data-theme=glass] .v5-history-details summary b{color:#91c4ff;transition:transform .16s}
body[data-theme=glass] .v5-history-details[open] summary b{transform:rotate(180deg)}
body[data-theme=glass] .v5-history-details summary:hover{background:rgba(100,159,232,.14)}
body[data-theme=glass] .v5-history-details-body{border-top:1px solid rgba(170,212,255,.14);padding:12px 8px}
body[data-theme=glass] .v5-history-details-body h4{font-size:13px;color:#b4d7ff;margin:12px 10px 3px}
body[data-theme=glass] .v5-history-details-body .scoreboard{padding:5px 10px}
@media(max-width:760px){body[data-theme=glass] .v5-alltime-grid{grid-template-columns:1fr}}
@media(max-width:600px){body[data-theme=glass] #modal-root .dialog .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-theme=glass] .v5-alltime-row{grid-template-columns:40px minmax(0,1fr) 96px}body[data-theme=glass] .v5-trend-tooltip{top:0}}

body[data-theme=glass] .v5-scoring-details .v5-collapse-prompt{display:none}
body[data-theme=glass] .v5-scoring-details[open] .v5-collapse-prompt{display:inline}
body[data-theme=glass] .v5-scoring-details[open] .v5-expand-prompt{display:none}


/* V43 — V5 profile polish, rewards, medal ranks, balanced overview */
@media(min-width:1121px){
  /* 30px added to the content by reducing its outer gutters 15px each.
     Keep the calendar width; give all the new space to the result panel. */
  body[data-theme=glass] #content.content:has(.v5-overview-grid){padding-left:4px;padding-right:4px;max-width:1530px}
  body[data-theme=glass] .v5-overview-grid{grid-template-columns:minmax(0,1fr) 345px;gap:17px}
}
/* Records: prominent gold champion, then silver/bronze medallions. */
body[data-theme=glass] .v5-metric-leader.v5-metric-champion{display:flex;align-items:center;gap:9px;border:1px solid rgba(252,212,129,.45);border-radius:12px;background:linear-gradient(125deg,rgba(255,202,86,.17),rgba(75,116,171,.12));padding:9px 9px;min-height:70px;box-shadow:inset 0 1px rgba(255,244,200,.26),0 7px 21px rgba(52,72,109,.22)}
body[data-theme=glass] .v5-metric-champion-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
body[data-theme=glass] .v5-metric-champion-name small{font-size:8px;font-weight:850;letter-spacing:.9px;color:#f0c982}
body[data-theme=glass] .v5-metric-champion-name button{padding:0;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffd28c;font-size:13px;font-weight:820}
body[data-theme=glass] .v5-metric-champion>b{font-size:21px;color:#fff2d0;font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-theme=glass] .v5-metric-medal{min-width:37px;display:grid;place-items:center}
body[data-theme=glass] .v5-metric-medal .rank-holder img{width:33px;height:34px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] .v5-metric-medal .rank-holder>span{font-size:14px}
body[data-theme=glass] .v5-metric-list .v5-metric-row{grid-template-columns:37px minmax(0,1fr) auto;gap:9px;min-height:43px}
body[data-theme=glass] .v5-metric-row:nth-child(1) button{color:#d6e5fa}
body[data-theme=glass] .v5-metric-row:nth-child(2) button{color:#f3b28b}
/* Challenge scoreboards display rank-specific Growtopia reward sprites. */
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head,
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row{grid-template-columns:49px minmax(0,1fr) 104px 112px;gap:9px}
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head>span:last-child{text-align:center}
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row .player{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
body[data-theme=glass] #modal-root .v5-rewards{display:flex;align-items:center;justify-content:center;gap:1px;min-height:28px;min-width:0}
body[data-theme=glass] #modal-root .v5-rewards .dc-score-sprite{width:26px;height:26px;object-fit:contain;image-rendering:pixelated;flex-shrink:1;min-width:0;filter:drop-shadow(0 2px 3px rgba(0,0,0,.32))}
body[data-theme=glass] #modal-root .v5-alltime-grid{margin:25px 0 26px}
body[data-theme=glass] #modal-root .v5-alltime-head,
body[data-theme=glass] #modal-root .v5-alltime-row{grid-template-columns:36px minmax(0,1fr) 100px 92px;gap:6px}
body[data-theme=glass] #modal-root .v5-alltime-head span:last-child{text-align:center}
body[data-theme=glass] #modal-root .v5-alltime-score b{font-size:12px}
body[data-theme=glass] #modal-root .v5-latest-group{border-top:1px solid rgba(177,217,255,.19);padding-top:12px}
body[data-theme=glass] #modal-root .v5-latest-group .scoreboard{margin-bottom:16px}
/* Profile: increased width, centered glossy stat bubbles, readable rows. */
body[data-theme=glass] #modal-root .dialog.v5-profile-dialog{width:min(1050px,calc(100vw - 28px));padding:24px;max-height:92vh}
body[data-theme=glass] #modal-root .v5-profile-dialog .dialog-head h2{font-size:28px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-emblem{width:58px;height:58px;flex-basis:58px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-emblem img{width:46px;height:46px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats{gap:14px;margin-bottom:28px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:103px;padding:16px;border-radius:19px;background:radial-gradient(ellipse at 50% -20%,rgba(188,228,255,.29),transparent 72%),linear-gradient(145deg,rgba(136,188,255,.17),rgba(35,68,125,.24));border:1px solid rgba(185,220,255,.37);box-shadow:inset 0 1px rgba(255,255,255,.20),0 9px 21px rgba(3,15,44,.15)}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat small{font-size:10px;color:#c3defd;letter-spacing:1px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat b{font-size:33px;color:#e4f2ff;font-variant-numeric:tabular-nums;margin-top:9px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-columns{gap:22px;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-columns h3{font-size:18px;margin-bottom:15px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-minihead{font-size:10px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-breakdown-head,
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-breakdown-row{grid-template-columns:minmax(0,1fr) 45px 45px 45px;gap:8px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-finish-head,
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-finish-row{grid-template-columns:minmax(0,1fr) 45px 82px;gap:8px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row{min-height:53px;padding:8px 10px;border-radius:12px;margin-bottom:6px;background:rgba(13,34,66,.56)}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button{font-size:13px;font-weight:740;gap:8px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button>span{display:flex;flex-direction:column;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button img{width:29px;height:29px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button small{margin:3px 0 0;font-size:10px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row b{font-size:12px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-placement{display:grid;place-items:center}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-placement .rank-holder{width:42px;height:41px;display:grid;place-items:center}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-placement .rank-holder img{width:37px;height:37px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-placement .rank-holder>span{font-size:14px}
/* Global search uses the same dark glass style as the V5 dialogs. */
body[data-theme=glass] #modal-root .v5-global-search{display:flex;width:100%;margin:18px 0 20px;min-height:48px}
body[data-theme=glass] #modal-root .v5-global-search input{width:100%;font-size:14px}
body[data-theme=glass] #modal-root .v5-quick-group{margin:20px 0}
body[data-theme=glass] #modal-root .v5-quick-group .section-tag{margin-bottom:10px}
body[data-theme=glass] #modal-root .v5-quick-result{display:flex;gap:10px;align-items:center;width:100%;margin:6px 0;padding:10px 13px;text-align:left;border:1px solid rgba(175,215,255,.17);border-radius:11px;background:rgba(24,52,89,.40);color:#e7f3ff;font-size:13px;font-weight:740}
body[data-theme=glass] #modal-root .v5-quick-result img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] #modal-root .v5-quick-result span{flex:1}
body[data-theme=glass] #modal-root .v5-quick-result small{font-size:11px;color:#a4c5e7}
body[data-theme=glass] #modal-root .v5-quick-result:hover{background:rgba(86,150,218,.19);border-color:#aad5ff77}
body[data-theme=glass] #modal-root .v5-quick-hint{color:#a4bbd2;font-size:12px}
@media(max-width:1060px){body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-columns{grid-template-columns:1fr}}
@media(max-width:760px){
 body[data-theme=glass] #modal-root .dialog.v5-profile-dialog{padding:16px 12px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats{gap:8px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat{min-height:82px;padding:9px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-stats .detail-stat b{font-size:26px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row{padding:7px 6px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button{font-size:11px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-breakdown-head,
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-breakdown-row{grid-template-columns:minmax(0,1fr) 37px 38px 38px;gap:4px}
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-finish-head,
 body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-finish-row{grid-template-columns:minmax(0,1fr) 40px 68px;gap:6px}
 body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head,
 body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row{grid-template-columns:38px minmax(0,1fr) 68px 78px;gap:5px}
 body[data-theme=glass] #modal-root .v5-rewards .dc-score-sprite{width:18px;height:18px}
}
@media(max-width:600px){
 body[data-theme=glass] #modal-root .v5-alltime-grid{grid-template-columns:1fr}
}

/* ────────────────────────────────────────────────────────────────
   V44: quiet motion, larger completed challenges, collapsible menu,
   and reliable calendar select contrast. All scoped to V5 theme.
   ──────────────────────────────────────────────────────────────── */
@media(min-width:801px){
 body[data-theme=glass] .app.app-shell{
  transition:grid-template-columns .44s cubic-bezier(.22,.82,.23,1);
 }
 body[data-theme=glass].v44-nav-collapsed .app.app-shell{
  grid-template-columns:208px minmax(0,1fr);
 }
}
body[data-theme=glass] .side.sidebar{
 overflow:hidden;
}
body[data-theme=glass] .brand{
 position:relative;
 padding-right:31px;
 flex:0 0 auto;
}
body[data-theme=glass] .v44-brand-copy{flex:1;min-width:0;overflow:hidden}
body[data-theme=glass] .brand-text{white-space:nowrap}
body[data-theme=glass] .v44-sidebar-toggle{
 position:absolute;right:0;top:8px;
 display:grid;place-items:center;
 width:28px;height:30px;padding:0;
 border:1px solid rgba(184,221,255,.31);border-radius:9px;
 background:linear-gradient(150deg,rgba(153,196,252,.18),rgba(40,79,140,.14));
 box-shadow:inset 0 1px rgba(245,251,255,.17);
 color:#d9ebff;cursor:pointer;
 transition:background .23s,border-color .23s,transform .23s;
 z-index:3;
}
body[data-theme=glass] .v44-sidebar-toggle:hover{
 background:rgba(137,187,247,.27);border-color:rgba(195,225,255,.52);
}
body[data-theme=glass] .v44-sidebar-toggle:focus-visible{outline:2px solid #b2d8ff;outline-offset:3px}
body[data-theme=glass] .v44-toggle-chevron{
 font-size:25px;line-height:1;display:block;transform:translateY(-1px);
 transition:transform .42s cubic-bezier(.22,.82,.23,1);
}
body[data-theme=glass] .v44-nav-stack{
 display:flex;flex-direction:column;flex:1;min-height:0;
 overflow:auto hidden;scrollbar-width:thin;
 opacity:1;visibility:visible;
 transform:translateX(0);
 transition:opacity .27s ease,transform .42s cubic-bezier(.22,.82,.23,1),visibility 0s;
}
@media(min-width:801px){
 body[data-theme=glass].v44-nav-collapsed .v44-nav-stack{
  opacity:0;visibility:hidden;transform:translateX(-18px);
  pointer-events:none;transition:opacity .26s ease,transform .42s ease,visibility 0s .27s;
 }
 body[data-theme=glass].v44-nav-collapsed .brand .brand-icon,
 body[data-theme=glass].v44-nav-collapsed .brand-sub{
  opacity:0;width:0;min-width:0;margin:0;overflow:hidden;visibility:hidden;
 }
 body[data-theme=glass].v44-nav-collapsed .brand{gap:0;padding-left:2px;padding-right:24px}
 body[data-theme=glass].v44-nav-collapsed .brand-text{font-size:16px;letter-spacing:-.8px}
 body[data-theme=glass].v44-nav-collapsed .v44-toggle-chevron{transform:translateY(-1px) rotate(180deg)}
}
@media(max-width:800px){
 body[data-theme=glass] .side.sidebar{overflow:hidden}
 body[data-theme=glass] .v44-nav-stack{opacity:1!important;visibility:visible!important;transform:none!important}
 body[data-theme=glass] .v44-sidebar-toggle{display:none}
 body[data-theme=glass] .brand{padding-right:0}
}
/* Soft 1–2 pixel breathing for Growtopia icons only; no pointer spotlight. */
@keyframes v44-icon-drift{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-2px,0)}
}
body[data-theme=glass] .possible-grid .v3-icon-capsule,
body[data-theme=glass] .cycle-list .v3-icon-capsule,
body[data-theme=glass] .v5-challenge-card .v3-icon-capsule{
 animation:v44-icon-drift 7.6s ease-in-out infinite!important;
}
body[data-theme=glass] .possible-grid .possible-item:nth-child(3n + 2) .v3-icon-capsule,
body[data-theme=glass] .cycle-list .cycle-completed:nth-child(3n + 2) .v3-icon-capsule{
 animation-delay:-2.7s!important;
}
body[data-theme=glass] .possible-grid .possible-item:nth-child(3n + 3) .v3-icon-capsule,
body[data-theme=glass] .cycle-list .cycle-completed:nth-child(3n + 3) .v3-icon-capsule{
 animation-delay:-5.1s!important;
}
body[data-theme=glass] .possible-item:hover .v3-icon-capsule,
body[data-theme=glass] .cycle-completed:hover .v3-icon-capsule{
 animation-play-state:paused!important;
}
/* Larger completed challenge icons: keep 2-column arrangement at 6+. */
body[data-theme=glass] .cycle-list .cycle-completed{gap:9px;line-height:1.28}
body[data-theme=glass] .cycle-list .v3-icon-capsule.v3-smallcap,
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule{
 width:37px;height:37px;min-width:37px;flex:0 0 37px;border-radius:12px;
}
body[data-theme=glass] .cycle-list .v3-icon-capsule.v3-smallcap img,
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule img{
 width:32px;height:32px;max-width:32px;max-height:32px;
}
body[data-theme=glass] .cycle-list.cycle-multi{row-gap:8px;column-gap:9px}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed{font-size:11px;gap:6px}
body[data-theme=glass] .cycle-list .cycle-completed .tick{flex:0 0 18px;width:18px;height:18px}
/* The selected month/year/date should be readable before hover or focus. */
body[data-theme=glass] .v5-calendar-jumps .v5-calendar-select,
body[data-theme=glass] .v5-calendar-jumps .v5-calendar-date{
 opacity:1!important;visibility:visible!important;
 color:#eff7ff!important;-webkit-text-fill-color:#eff7ff!important;
 background-color:#1a3152!important;
 border:1px solid rgba(177,214,255,.45)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.12),0 1px 6px rgba(0,0,0,.17);
 font-size:12px!important;font-weight:720!important;
 color-scheme:dark!important;
}
body[data-theme=glass] .v5-calendar-jumps #v5-jump-month{width:87px!important;min-width:87px}
body[data-theme=glass] .v5-calendar-jumps #v5-jump-year{width:94px!important;min-width:94px}
body[data-theme=glass] .v5-calendar-jumps #v5-jump-date{width:154px!important;min-width:154px}
body[data-theme=glass] .v5-calendar-jumps .v5-calendar-select option{
 color:#edf6ff!important;background:#162a49!important;
}
body[data-theme=glass] .v5-calendar-jumps input[type=date]::-webkit-datetime-edit,
body[data-theme=glass] .v5-calendar-jumps input[type=date]::-webkit-datetime-edit-text,
body[data-theme=glass] .v5-calendar-jumps input[type=date]::-webkit-datetime-edit-month-field,
body[data-theme=glass] .v5-calendar-jumps input[type=date]::-webkit-datetime-edit-day-field,
body[data-theme=glass] .v5-calendar-jumps input[type=date]::-webkit-datetime-edit-year-field{
 color:#eff7ff!important;-webkit-text-fill-color:#eff7ff!important;opacity:1!important;
}
body[data-theme=glass] .v5-calendar-jumps input[type=date]::-webkit-calendar-picker-indicator{
 opacity:1!important;filter:brightness(0) invert(1);cursor:pointer;
}
@media (max-width:600px){
 body[data-theme=glass] .cycle-list .v3-icon-capsule.v3-smallcap,
 body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule{width:32px;height:32px;min-width:32px;flex-basis:32px}
 body[data-theme=glass] .cycle-list .v3-icon-capsule.v3-smallcap img,
 body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule img{width:28px;height:28px}
 body[data-theme=glass] .v5-calendar-jumps #v5-jump-date{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 body[data-theme=glass] .possible-grid .v3-icon-capsule,
 body[data-theme=glass] .cycle-list .v3-icon-capsule,
 body[data-theme=glass] .v5-challenge-card .v3-icon-capsule{animation:none!important;transform:none!important}
 body[data-theme=glass] .app.app-shell,
 body[data-theme=glass] .v44-nav-stack,
 body[data-theme=glass] .v44-toggle-chevron{transition:none!important}
}

/* ═══════════════════════════════════════════════════════════════════
   V45 · Unified placement styling.
   Same restrained gold/silver/bronze names, tiered row tint and clean
   separators in Rankings, Records, History, Profiles and DC scoreboards.
   Rank indicators and metrics remain unchanged.
   ═══════════════════════════════════════════════════════════════════ */
body[data-theme=glass]{
  --v45-gold:#ffd479;
  --v45-silver:#cbdcf6;
  --v45-bronze:#f0a777;
  --v45-rule:rgba(164,201,240,.16);
}
/* Shared rows: slight separation without filling the screen with borders. */
body[data-theme=glass] :is(
 .v5-ranking-row, .v5-metric-row, .v5-alltime-row,
 .v5-history-minirow, .v5-profile-finish-row, .score-row
){
  border:1px solid var(--v45-rule);
  background-color:rgba(10,25,46,.32);
  box-shadow:inset 0 1px rgba(255,255,255,.018);
  transition:background-color .19s ease,border-color .19s ease,box-shadow .19s ease;
}
body[data-theme=glass] .v5-metric-list{gap:0}
body[data-theme=glass] .v5-metric-list .v5-metric-row{
  padding:7px 8px;
  margin:0;
  min-height:49px;
  border-width:0 0 1px;
  border-radius:0;
  background:rgba(8,21,39,.17);
}
body[data-theme=glass] .v5-metric-list .v5-metric-row:last-child{border-bottom-color:transparent}
body[data-theme=glass] .v5-metric-row button{font-size:13px;font-weight:740}
body[data-theme=glass] .v5-metric-row strong{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
body[data-theme=glass] .v5-metric-card h3{font-size:17px}
body[data-theme=glass] .v5-metric-champion-name button{font-size:14px}
body[data-theme=glass] .v5-record-row{font-size:13px;min-height:60px;border-color:var(--v45-rule)}
body[data-theme=glass] .v5-record-row .v5-record-dc,
body[data-theme=glass] .v5-record-row .v5-record-holders button{font-size:13px}
body[data-theme=glass] .v5-record-row .v5-record-holders{font-weight:720}
body[data-theme=glass] .v5-record-row>b{font-size:15px}
body[data-theme=glass] .v5-record-row:not(:last-child){border-bottom-color:rgba(176,209,246,.19)}
body[data-theme=glass] .v5-record-row .v5-record-holders button:hover{color:#acd6ff;text-decoration:underline}

/* The champion has an intentionally warmer, slightly stronger tint. */
body[data-theme=glass] :is(
 .v5-ranking-row.place-1,.score-row.v5-placement-1,
 .v5-alltime-row.v5-placement-1,.v5-history-minirow.v5-placement-1,
 .v5-profile-finish-row.v5-placement-1
){
  background:linear-gradient(100deg,rgba(227,180,83,.155),rgba(114,135,171,.075) 75%);
  border-color:rgba(248,206,122,.34);
  box-shadow:inset 3px 0 rgba(246,200,105,.62),inset 0 1px rgba(255,240,203,.08);
}
body[data-theme=glass] :is(
 .v5-ranking-row.place-2,.score-row.v5-placement-2,
 .v5-alltime-row.v5-placement-2,.v5-history-minirow.v5-placement-2,
 .v5-profile-finish-row.v5-placement-2
){
  background:linear-gradient(100deg,rgba(177,202,236,.115),rgba(81,113,160,.05) 75%);
  border-color:rgba(191,214,244,.23);
  box-shadow:inset 3px 0 rgba(190,209,239,.45);
}
body[data-theme=glass] :is(
 .v5-ranking-row.place-3,.score-row.v5-placement-3,
 .v5-alltime-row.v5-placement-3,.v5-history-minirow.v5-placement-3,
 .v5-profile-finish-row.v5-placement-3
){
  background:linear-gradient(100deg,rgba(219,143,91,.125),rgba(113,69,66,.025) 75%);
  border-color:rgba(226,155,105,.22);
  box-shadow:inset 3px 0 rgba(234,160,106,.49);
}
body[data-theme=glass] .v5-metric-row.v5-placement-2{
  background:linear-gradient(90deg,rgba(170,198,232,.13),rgba(118,142,182,.015));
}
body[data-theme=glass] .v5-metric-row.v5-placement-3{
  background:linear-gradient(90deg,rgba(209,133,92,.14),rgba(115,75,73,.01));
}

/* Names only: don't recolor score totals or the Win/Top3/Top5 columns. */
body[data-theme=glass] :is(
 .v5-ranking-row.place-1>b, .score-row.v5-placement-1 .player,
 .v5-alltime-row.v5-placement-1>button:nth-child(2),
 .v5-history-minirow.v5-placement-1>button,
 .v5-profile-finish-row.v5-placement-1>button,
 .v5-metric-champion-name button
){color:var(--v45-gold)}
body[data-theme=glass] :is(
 .v5-ranking-row.place-2>b, .score-row.v5-placement-2 .player,
 .v5-alltime-row.v5-placement-2>button:nth-child(2),
 .v5-history-minirow.v5-placement-2>button,
 .v5-profile-finish-row.v5-placement-2>button,
 .v5-metric-row.v5-placement-2 button
){color:var(--v45-silver)}
body[data-theme=glass] :is(
 .v5-ranking-row.place-3>b, .score-row.v5-placement-3 .player,
 .v5-alltime-row.v5-placement-3>button:nth-child(2),
 .v5-history-minirow.v5-placement-3>button,
 .v5-profile-finish-row.v5-placement-3>button,
 .v5-metric-row.v5-placement-3 button
){color:var(--v45-bronze)}
/* More readable placements, particularly in all-time lists and history. */
body[data-theme=glass] .v5-history-minirow{min-height:46px;margin-bottom:3px}
body[data-theme=glass] .v5-history-minirow button{font-size:13px;font-weight:720}
body[data-theme=glass] .v5-history-minirow b{font-size:12px}
body[data-theme=glass] #modal-root .v5-alltime-row{min-height:58px;margin:3px 0}
body[data-theme=glass] #modal-root .v5-alltime-row>button:nth-child(2){font-size:13px}
body[data-theme=glass] #modal-root .v5-alltime-score b{font-size:13px}
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row .player{font-size:14px}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-finish-row{margin-bottom:5px}
body[data-theme=glass] .v5-ranking-row{margin-bottom:4px;border-color:var(--v45-rule)}
body[data-theme=glass] .v5-ranking-row b{font-size:14px}

/* Also tint old charcoal-format ranking components retained for admin
   and the advanced screens. No changes to their rendering logic. */
body[data-theme=glass] :is(
 .dc-score-entry.dc-medal-1,.dc-alltime-row.dc-medal-1,
 .dc-profile-history-row.dc-medal-1,.dc-mini-leaderboard-row.dc-medal-1,
 .leaderboard-entry.dc-medal-1
){background:rgba(213,171,94,.11);border-color:rgba(248,207,124,.29);box-shadow:inset 3px 0 rgba(247,200,104,.52)}
body[data-theme=glass] :is(
 .dc-score-entry.dc-medal-2,.dc-alltime-row.dc-medal-2,
 .dc-profile-history-row.dc-medal-2,.dc-mini-leaderboard-row.dc-medal-2,
 .leaderboard-entry.dc-medal-2
){background:rgba(185,204,231,.085);border-color:rgba(190,215,241,.20);box-shadow:inset 3px 0 rgba(190,213,242,.42)}
body[data-theme=glass] :is(
 .dc-score-entry.dc-medal-3,.dc-alltime-row.dc-medal-3,
 .dc-profile-history-row.dc-medal-3,.dc-mini-leaderboard-row.dc-medal-3,
 .leaderboard-entry.dc-medal-3
){background:rgba(204,135,87,.10);border-color:rgba(222,151,108,.20);box-shadow:inset 3px 0 rgba(228,158,103,.43)}
/* On smaller screens preserve the existing card and table column widths. */
@media(max-width:650px){
 body[data-theme=glass] .v5-metric-row button{font-size:12px}
 body[data-theme=glass] .v5-record-row .v5-record-dc,
 body[data-theme=glass] .v5-record-row .v5-record-holders button{font-size:11px}
 body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row .player{font-size:12px}
 body[data-theme=glass] .v5-history-minirow button{font-size:12px}
 body[data-theme=glass] .v5-record-row>b{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 body[data-theme=glass] :is(.v5-ranking-row,.v5-metric-row,.v5-alltime-row,.v5-history-minirow,.v5-profile-finish-row,.score-row){transition:none}
}


/* ══════════════════════════════════════════════════════════════════
   V46 — Growtopia item capsules: slightly roomier, softly breathing.
   Five completed challenges fit one readable column; six or more
   keep the balanced two-column layout. Hover and reduce-motion safe.
   ══════════════════════════════════════════════════════════════════ */
@keyframes v46-capsule-breathe {
  0%,100% { transform:translate3d(0,0,0) scale(1) }
  48% { transform:translate3d(0,-3px,0) scale(1.027) }
  72% { transform:translate3d(0,-1px,0) scale(1.010) }
}
/* Main selectable challenge bubbles: extra space around dense pixel sprites. */
body[data-theme=glass] .possible-item .v3-icon-capsule {
  width:75px;
  height:71px;
  min-width:75px;
  border-radius:20px;
  overflow:visible;
}
body[data-theme=glass] .possible-item .v3-icon-capsule::after {
  overflow:hidden;
}
body[data-theme=glass] .possible-item .v3-icon-capsule img {
  width:50px;
  height:50px;
  max-width:50px;
  max-height:50px;
  object-fit:contain;
}
body[data-theme=glass] .possible-item { gap:10px; }
/* Matching capsules on challenge browsing cards. */
body[data-theme=glass] .v5-challenge-card .v3-icon-capsule {
  width:60px;
  height:60px;
  border-radius:18px;
}
body[data-theme=glass] .v5-challenge-card .v3-icon-capsule img {
  width:45px;
  height:45px;
  max-width:45px;
  max-height:45px;
}
body[data-theme=glass] :is(.possible-grid,.cycle-list,.v5-challenge-card) .v3-icon-capsule {
  animation:v46-capsule-breathe 5.7s ease-in-out infinite!important;
  transform-origin:50% 54%;
  will-change:transform;
}
body[data-theme=glass] .possible-grid .possible-item:nth-child(3n+2) .v3-icon-capsule,
body[data-theme=glass] .cycle-list .cycle-completed:nth-child(3n+2) .v3-icon-capsule,
body[data-theme=glass] .v5-challenge-card:nth-child(3n+2) .v3-icon-capsule {
  animation-delay:-1.9s!important;
}
body[data-theme=glass] .possible-grid .possible-item:nth-child(3n+3) .v3-icon-capsule,
body[data-theme=glass] .cycle-list .cycle-completed:nth-child(3n+3) .v3-icon-capsule,
body[data-theme=glass] .v5-challenge-card:nth-child(3n+3) .v3-icon-capsule {
  animation-delay:-3.8s!important;
}
body[data-theme=glass] .possible-grid .possible-item:hover .v3-icon-capsule,
body[data-theme=glass] .cycle-list .cycle-completed:hover .v3-icon-capsule,
body[data-theme=glass] .v5-challenge-card:hover .v3-icon-capsule {
  animation-play-state:paused!important;
}
/* Completed cycle — readable icons and names with pixel-art check. */
body[data-theme=glass] .cycle-list:not(.cycle-multi){
  gap:5px;
  padding-top:5px;
  padding-bottom:5px;
}
body[data-theme=glass] .cycle-list .cycle-completed{
  position:relative;
  min-height:43px;
  gap:11px;
  line-height:1.2;
  font-size:13px;
  font-weight:760;
  white-space:normal;
  color:#e8f3ff;
}
body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed .v3-icon-capsule.v3-smallcap {
  width:43px;
  height:43px;
  min-width:43px;
  flex:0 0 43px;
  border-radius:13px;
}
body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed .v3-icon-capsule.v3-smallcap img{
  width:36px;
  height:36px;
  max-width:36px;
  max-height:36px;
}
body[data-theme=glass] .cycle-list .cycle-completed .tick{
  order:3;
  display:grid;
  place-items:center;
  width:24px;
  min-width:24px;
  height:24px;
  flex:0 0 24px;
  margin-left:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body[data-theme=glass] .cycle-list .cycle-completed .tick img{
  display:block;
  width:24px;
  height:24px;
  max-width:24px;
  max-height:24px;
  object-fit:contain;
  image-rendering:pixelated;
  filter:drop-shadow(0 1px 3px rgba(27,220,115,.14));
}
/* Six or more completed: balance into two compact columns. */
body[data-theme=glass] .cycle-list.cycle-multi {
  row-gap:10px;
  column-gap:11px;
}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed {
  gap:6px;
  min-height:37px;
  font-size:11.25px;
  font-weight:740;
  min-width:0;
  white-space:normal;
}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule{
  width:37px;
  height:37px;
  min-width:37px;
  flex:0 0 37px;
  border-radius:11px;
}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule img{
  width:32px;
  height:32px;
  max-width:32px;
  max-height:32px;
}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .tick{
  position:absolute;
  right:0;
  bottom:0;
  margin:0;
  width:15px;
  min-width:15px;
  height:15px;
  background:rgba(12,32,46,.86);
  border-radius:5px;
}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .tick img{
  width:16px;height:16px;max-width:16px;max-height:16px;
}
/* Allow five long names to remain legible at moderate widths. */
@media(min-width:1121px) and (max-width:1350px){
  body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed{font-size:12px;gap:8px}
  body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed .v3-icon-capsule.v3-smallcap{width:40px;height:40px;min-width:40px;flex-basis:40px}
  body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed .v3-icon-capsule.v3-smallcap img{width:34px;height:34px}
}
@media(max-width:600px){
  body[data-theme=glass] .possible-item .v3-icon-capsule{width:65px;height:62px;min-width:65px;border-radius:17px}
  body[data-theme=glass] .possible-item .v3-icon-capsule img{width:44px;height:44px}
  body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed{font-size:12px;min-height:39px}
  body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed .v3-icon-capsule.v3-smallcap{width:39px;height:39px;min-width:39px;flex-basis:39px}
  body[data-theme=glass] .cycle-list:not(.cycle-multi) .cycle-completed .v3-icon-capsule.v3-smallcap img{width:34px;height:34px}
}
@media(prefers-reduced-motion:reduce){
  body[data-theme=glass] :is(.possible-grid,.cycle-list,.v5-challenge-card) .v3-icon-capsule{
    animation:none!important;transform:none!important;will-change:auto!important;
  }
}

/* V47 — readable all-time leaderboards, contextual admin, and history rewards */
body[data-theme=glass] #modal-root .v5-alltime-grid,
body[data-theme=glass] .v5-alltime-grid{
  display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px;
  margin:23px 0 27px;
}
body[data-theme=glass] .v5-alltime-block{padding:17px 19px;min-width:0}
body[data-theme=glass] .v5-alltime-block h3{font-size:16px;margin:0 4px 13px}
body[data-theme=glass] .v5-alltime-head,
body[data-theme=glass] .v5-alltime-row{
  display:grid;grid-template-columns:58px minmax(120px,1fr) minmax(120px,.56fr) minmax(125px,.65fr);
  gap:12px;align-items:center;
}
body[data-theme=glass] .v5-alltime-row{min-height:58px;padding:7px 13px;position:relative}
body[data-theme=glass] .v5-alltime-head{padding:5px 14px;font-size:10px}
body[data-theme=glass] .v5-alltime-head span:nth-child(3),
body[data-theme=glass] .v5-alltime-head span:nth-child(4){text-align:right}
body[data-theme=glass] .v5-alltime-row>button:nth-child(2){font-size:14px}
body[data-theme=glass] .v5-alltime-row .v5-alltime-score b{font-size:13px}
body[data-theme=glass] .v5-alltime-row .v5-rewards{display:flex;justify-content:flex-end;gap:5px;min-width:0}
body[data-theme=glass] .v5-alltime-row .v5-rewards img{flex:0 0 auto}
/* History's large challenge identity and a reward column pinned to the right */
body[data-theme=glass] .v5-history-card-head{padding:16px 18px}
body[data-theme=glass] .v5-history-identity{gap:15px}
body[data-theme=glass] .v5-history-identity>.v3-icon-capsule{width:62px;height:62px;min-width:62px}
body[data-theme=glass] .v5-history-identity>.v3-icon-capsule img{width:49px;height:49px}
body[data-theme=glass] .v5-history-identity>div>button{font-size:19px;font-weight:790;letter-spacing:-.35px;line-height:1.25}
body[data-theme=glass] .v5-history-identity>div>span{font-size:12px;line-height:1.45;margin-top:5px}
body[data-theme=glass] .v47-history-head-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
body[data-theme=glass] .v5-history-minirow{grid-template-columns:39px minmax(90px,1fr) minmax(65px,.55fr) minmax(112px,.65fr);gap:9px;min-height:52px;position:relative;padding:6px 10px}
body[data-theme=glass] .v5-history-minirow .v5-rewards{display:flex;justify-content:flex-end;align-items:center;gap:4px;min-width:0}
body[data-theme=glass] .v5-history-minirow .v5-rewards img{width:26px;height:26px;object-fit:contain;flex:0 0 auto;image-rendering:pixelated}
body[data-theme=glass] .v5-history-minirow>b{font-size:13px}
body[data-theme=glass] .v5-history-col h4{font-size:13px;margin-bottom:11px}
/* Inline admin controls are intentionally invisible in public mode */
body[data-theme=glass] .v47-admin-toolbar{position:relative;z-index:20;flex-shrink:0}
body[data-theme=glass] .v47-admin-toolbar[hidden],body[data-theme=glass] .v47-admin-menu[hidden]{display:none!important}
body[data-theme=glass] .v47-admin-toggle{display:flex;align-items:center;gap:8px;padding:10px 12px;white-space:nowrap;color:#f3e7c4;background:linear-gradient(140deg,rgba(207,170,103,.19),rgba(129,88,33,.10));border:1px solid rgba(236,198,133,.37);border-radius:10px;font-size:12px;font-weight:820;cursor:pointer}
body[data-theme=glass] .v47-admin-toggle>span{font-size:17px;color:#ffdea0}
body[data-theme=glass] .v47-admin-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:200;min-width:248px;padding:8px;border-radius:13px;background:#132641;border:1px solid rgba(199,224,255,.30);box-shadow:0 18px 55px #020915d9;max-height:min(70vh,480px);overflow-y:auto}
body[data-theme=glass] .v47-admin-menu-title{color:#a6c8ef;font-size:9px;font-weight:820;letter-spacing:1.2px;padding:7px 10px 10px;display:flex;justify-content:space-between}
body[data-theme=glass] .v47-admin-menu-title small{letter-spacing:0;font-size:10px;color:#d6bd86;text-transform:capitalize}
body[data-theme=glass] .v47-admin-menu>button{display:block;width:100%;text-align:left;padding:10px 11px;color:#e3f1ff;font-size:12px;font-weight:680;background:none;border:0;border-radius:8px;cursor:pointer}
body[data-theme=glass] .v47-admin-menu>button:hover{background:rgba(111,170,242,.19)}
body[data-theme=glass] .v47-dialog-admin{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0 16px;margin-bottom:14px;border-bottom:1px solid rgba(201,224,255,.19)}
body[data-theme=glass] .v47-dialog-admin>span{font-size:10px;color:#cbb48c;font-weight:800;letter-spacing:1px;margin-right:auto}
body[data-theme=glass] .v47-dialog-admin button,body[data-theme=glass] .v47-admin-row-actions button{border:1px solid rgba(224,199,147,.30);background:rgba(159,116,61,.11);border-radius:7px;color:#f4ddb3;padding:6px 9px;font-size:10px;font-weight:750;cursor:pointer}
body[data-theme=glass] .v47-dialog-admin button:hover,body[data-theme=glass] .v47-admin-row-actions button:hover{background:rgba(220,170,95,.23)}
body[data-theme=glass] .v47-admin-row-actions{position:absolute;bottom:2px;right:8px;display:flex;gap:5px;opacity:0;pointer-events:none;transition:opacity .18s}
body[data-theme=glass] .v47-admin-row-actions button{padding:3px 5px;font-size:9px}
body[data-theme=glass] :is(.score-row,.v5-history-minirow,.v5-alltime-row):hover>.v47-admin-row-actions,
body[data-theme=glass] :is(.score-row,.v5-history-minirow,.v5-alltime-row):focus-within>.v47-admin-row-actions{opacity:1;pointer-events:auto}
@media (hover:none){body[data-theme=glass] .v47-admin-row-actions{position:static;opacity:1;pointer-events:auto;grid-column:1/-1;justify-content:flex-end}}
body[data-theme=glass] .v47-is-bot{color:#ffafa3!important;border-color:#ebaaa4!important}
body[data-theme=glass] .v47-bots-list{display:grid;gap:8px}
body[data-theme=glass] .v47-bots-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid rgba(177,217,255,.20);border-radius:10px;background:rgba(55,86,126,.19)}
body[data-theme=glass] .v47-bots-item strong{display:block;font-size:14px;color:#e5f3ff}
body[data-theme=glass] .v47-bots-item small{font-size:11px;color:#99b9d7;display:block;margin-top:3px}
body[data-theme=glass] .v47-calendar-picker{position:relative;flex:0 0 auto;z-index:5}
body[data-theme=glass] .v47-calendar-picker-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-left:11px;padding-right:10px;min-width:88px;cursor:pointer}
body[data-theme=glass] .v47-calendar-picker-toggle>span{color:#b2d6ff;font-size:15px}
body[data-theme=glass] .v47-calendar-picker-menu{position:absolute;top:calc(100% + 5px);left:0;width:max(100%,92px);max-height:272px;overflow:auto;padding:5px;border:1px solid rgba(196,222,255,.35);background:#152a47;border-radius:9px;box-shadow:0 14px 34px #000b;z-index:60}
body[data-theme=glass] .v47-calendar-picker-menu[hidden]{display:none}
body[data-theme=glass] .v47-calendar-picker-menu>button{width:100%;text-align:left;background:transparent;color:#e5f3ff;border:0;border-radius:5px;font-size:12px;cursor:pointer;padding:8px 10px}
body[data-theme=glass] .v47-calendar-picker-menu>button:hover,body[data-theme=glass] .v47-calendar-picker-menu>button.selected{background:rgba(136,190,255,.20);color:#fff}
/* overflow on calendar panels would clip downward selector menus: allow jump menus to overflow */
body[data-theme=glass] .v5-month-control{overflow:visible}
body[data-theme=glass] .calendar-panel:has(.v47-calendar-picker-menu:not([hidden])){overflow:visible}
body[data-theme=glass] .calendar-panel:has(.v47-calendar-picker-menu:not([hidden])) .calendar-content{overflow:visible}
body[data-theme=glass] .v5-calendar-jumps{position:relative;z-index:4}
@media(max-width:980px){
 body[data-theme=glass] .v5-alltime-head,body[data-theme=glass] .v5-alltime-row{grid-template-columns:42px minmax(90px,1fr) minmax(100px,.7fr) minmax(85px,.65fr);gap:7px}
 body[data-theme=glass] .v5-alltime-row{padding:7px}
 body[data-theme=glass] .v5-history-minirow{grid-template-columns:36px minmax(80px,1fr) 70px 91px;gap:4px;padding:4px}
 body[data-theme=glass] .v5-history-minirow .v5-rewards img{width:22px;height:22px}
}
@media(max-width:620px){
 body[data-theme=glass] .v5-alltime-head,body[data-theme=glass] .v5-alltime-row{grid-template-columns:37px minmax(75px,1fr) minmax(90px,.9fr) minmax(85px,.65fr)!important;gap:4px}
 body[data-theme=glass] .v5-alltime-block{padding:11px 9px}
 body[data-theme=glass] .v5-alltime-row>button:nth-child(2){font-size:11px}
 body[data-theme=glass] .v5-alltime-row .v5-rewards img{max-width:26px;max-height:26px}
 body[data-theme=glass] .v5-history-minirow{grid-template-columns:36px minmax(75px,1fr) 70px minmax(85px,.8fr);gap:4px}
 body[data-theme=glass] .v5-history-minirow button{font-size:11px}
 body[data-theme=glass] .v5-history-minirow .v5-rewards{gap:1px}
 body[data-theme=glass] .v5-history-minirow .v5-rewards img{width:20px;height:20px}
 body[data-theme=glass] .v5-history-identity>div>button{font-size:16px}
 body[data-theme=glass] .v5-history-identity>.v3-icon-capsule{width:51px;height:51px;min-width:51px}
 body[data-theme=glass] .v5-history-identity>.v3-icon-capsule img{width:40px;height:40px}
 body[data-theme=glass] .v47-history-head-actions{flex-wrap:wrap}
 body[data-theme=glass] .v47-edit-event{display:none}
 body[data-theme=glass] .v47-admin-toggle{font-size:0;padding:10px}
 body[data-theme=glass] .v47-admin-toggle::first-letter{font-size:15px}
}
@media(prefers-reduced-motion:reduce){body[data-theme=glass] .v47-admin-row-actions{transition:none}}
/* Administrator actions stay discoverable; don't conceal essential editing behind hover. */
body[data-theme=glass] :is(.score-row,.v5-history-minirow,.v5-alltime-row)>.v47-admin-row-actions{
  position:static;grid-column:1/-1;justify-content:flex-end;
  opacity:1;pointer-events:auto;margin:2px 0 0;padding-top:5px;
  border-top:1px dashed rgba(225,194,134,.18);
}
body[data-theme=glass] .v47-admin-row-actions button{font-size:10px;padding:5px 8px}
body[data-theme=glass] .v47-owner-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(198,221,255,.31);background:linear-gradient(140deg,rgba(127,182,255,.20),rgba(55,108,184,.11));color:#d7eaff;border-radius:999px;padding:4px 9px 4px 6px;margin-top:5px;font-size:10px;letter-spacing:.5px;font-weight:850;text-transform:uppercase}
body[data-theme=glass] .v47-owner-badge img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] .v47-calendar-picker[data-v47-picker="day"] .v47-calendar-picker-toggle{min-width:85px}
body[data-theme=glass] .v47-calendar-picker[data-v47-picker="day"] .v47-calendar-picker-menu{max-height:235px}
body[data-theme=glass] .v47-history-reward-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
body[data-theme=glass] .v47-history-reward-heading small{font-size:9px;letter-spacing:1px;color:#97b3d1;font-weight:850}
body[data-theme=glass] .v47-selected-score-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
body[data-theme=glass] .v47-selected-score-actions .text-button{white-space:nowrap}
body[data-theme=glass] .v47-calendar-edit{margin-top:8px;border-color:rgba(239,194,116,.29);color:#e8ca98}
body[data-theme=glass] .v47-record-date{display:flex;align-items:center;gap:8px;justify-content:flex-end}
body[data-theme=glass] .v47-record-date>button{background:rgba(221,188,112,.15);border:1px solid rgba(233,199,130,.32);border-radius:6px;color:#f5d9a3;font-weight:800;padding:5px;cursor:pointer}
body[data-theme=glass] .v47-record-date>button:hover{background:rgba(222,173,93,.25)}
@media(max-width:620px){
 body[data-theme=glass] .v47-admin-toggle{position:relative;width:42px;height:40px;font-size:0;overflow:hidden;text-indent:-9999px}
 body[data-theme=glass] .v47-admin-toggle>span{display:none}
 body[data-theme=glass] .v47-admin-toggle:before{content:"⚙";position:absolute;inset:0;display:grid;place-items:center;text-indent:0;font-size:21px;color:#f0d397}
 body[data-theme=glass] .v47-admin-menu{position:fixed;top:62px;right:12px;left:auto;min-width:0;width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 75px)}
}


/* V48 — expandable sidebar categories, accessible challenge record summaries */
@media(min-width:801px){
 body[data-theme=glass] .app.app-shell{grid-template-columns:294px minmax(0,1fr);}
}
@media(max-width:800px){body[data-theme=glass] .side.sidebar{width:294px;}}
body[data-theme=glass] .side.sidebar{overflow-x:hidden;}
body[data-theme=glass] .brand{padding-right:5px;}
body[data-theme=glass] .v44-brand-copy{overflow:visible;}
body[data-theme=glass] .v44-nav-stack{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto hidden;visibility:visible;opacity:1;transform:none;}
body[data-theme=glass] .v48-sidebar-group{flex-shrink:0;min-width:0;}
body[data-theme=glass] .v48-section-toggle{
 display:flex;align-items:center;justify-content:space-between;gap:10px;width:calc(100% - 8px);
 border:1px solid transparent;border-radius:9px;background:transparent;
 padding:10px 10px;margin:11px 4px 6px;cursor:pointer;
 text-align:left;color:#9ab9d7;font-size:10px;letter-spacing:1.5px;font-weight:850;
 transition:background .23s,border-color .23s,color .23s;
}
body[data-theme=glass] .v48-section-toggle:hover{background:rgba(145,192,251,.10);border-color:rgba(157,207,255,.15);color:#dcecff;}
body[data-theme=glass] .v48-section-toggle:focus-visible{outline:2px solid #b6d9ff;outline-offset:2px;}
body[data-theme=glass] .v48-section-caret{
 display:grid;place-items:center;min-width:22px;height:22px;
 font-size:19px;line-height:1;color:#9dc6ed;transform:rotate(0deg);
 transition:transform .45s cubic-bezier(.2,.8,.25,1),color .25s;
}
body[data-theme=glass] .v48-section-toggle[aria-expanded="false"] .v48-section-caret{transform:rotate(-90deg);color:#7792ac;}
body[data-theme=glass] .v48-section-shell{display:grid;grid-template-rows:1fr;opacity:1;transform:translateY(0);transition:grid-template-rows .52s cubic-bezier(.22,.82,.23,1),opacity .32s ease,transform .45s cubic-bezier(.22,.82,.23,1)}
body[data-theme=glass] .v48-section-shell .v48-section-inner{min-height:0;overflow:hidden;padding:1px 0 2px;}
body[data-theme=glass] .v48-sidebar-group.is-collapsed .v48-section-shell{grid-template-rows:0fr;opacity:0;transform:translateY(-8px);pointer-events:none;}
body[data-theme=glass] .v48-section-shell .side-nav{padding:0 1px;}
body[data-theme=glass] .v48-section-toggle[aria-expanded="false"]{color:#8ba0b8;}
body[data-theme=glass] .v48-section-toggle[aria-expanded="true"]{color:#b9d8f9;}
body[data-theme=glass] .cycle-list .cycle-completed{
 display:flex;position:relative;text-align:left;align-items:center;
 width:100%;border:1px solid transparent;border-radius:12px;
 padding:2px 5px 2px 0;background:transparent;cursor:pointer;
 color:#e8f3ff;
}
body[data-theme=glass] .cycle-list .cycle-completed:hover{background:rgba(105,173,252,.10);border-color:rgba(162,213,255,.25);}
body[data-theme=glass] .cycle-list .cycle-completed:focus-visible{outline:2px solid #a5d6ff;outline-offset:2px;}
body[data-theme=glass] .cycle-list .cycle-completed .tick,
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .tick{
 position:absolute;left:30px;top:1px;bottom:auto;right:auto;
 display:grid;place-items:center;order:0;
 width:18px;height:18px;min-width:18px;flex:0 0 18px;
 margin:0;border:1px solid rgba(127,233,165,.28);border-radius:6px;
 background:rgba(11,32,44,.92);box-shadow:0 3px 10px rgba(0,4,15,.34);
}
body[data-theme=glass] .cycle-list .cycle-completed .tick img,
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .tick img{width:17px;height:17px;max-width:17px;max-height:17px;}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed .tick{left:26px;top:0;}
body[data-theme=glass] .v5-metric-champion{flex-wrap:wrap;}
body[data-theme=glass] .v5-metric-champion .v48-metric-dcs{flex:0 0 100%;margin-top:4px;}
body[data-theme=glass] .v48-metric-dcs{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:6px 0 1px;min-width:0;}
body[data-theme=glass] .v48-metric-dcs button{display:grid;place-items:center;width:29px;height:29px;padding:2px;border:1px solid rgba(169,208,255,.20);border-radius:8px;background:linear-gradient(160deg,rgba(134,182,245,.12),rgba(25,50,87,.24));cursor:pointer;transition:transform .16s,background .16s,border-color .16s;}
body[data-theme=glass] .v48-metric-dcs button:hover{transform:translateY(-2px);background:rgba(131,191,250,.25);border-color:rgba(178,221,255,.45);}
body[data-theme=glass] .v48-metric-dcs button:focus-visible{outline:2px solid #afd8ff;outline-offset:1px;}
body[data-theme=glass] .v48-metric-dcs img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated;}
body[data-theme=glass] .v5-metric-row:has(.v48-metric-dcs){grid-template-columns:37px minmax(0,1fr) auto;row-gap:1px;}
body[data-theme=glass] .v5-metric-row>.v48-metric-dcs{grid-column:2 / -1;padding-bottom:7px;}
body[data-theme=glass] .v5-metric-row .v48-metric-dcs button{width:30px;height:30px;border-radius:7px;}
body[data-theme=glass] .v5-metric-row .v48-metric-dcs img{width:21px;height:21px;}
@media(max-width:1100px){body[data-theme=glass] .v48-metric-dcs button{width:27px;height:27px;}}
@media(prefers-reduced-motion:reduce){
 body[data-theme=glass] .v48-section-shell,
 body[data-theme=glass] .v48-section-caret,
 body[data-theme=glass] .v48-section-toggle{transition:none!important;}
}

/* Use more of the available desktop width, keeping the V5 calendar/result ratio. */
@media(min-width:1450px){
 body[data-theme=glass] #content.content{max-width:1710px;}
 body[data-theme=glass] #content.content:has(.v5-overview-grid){max-width:1710px;}
 body[data-theme=glass] .foot.footer{max-width:1710px;}
}

/* V49 — unified four-column layout for all-time and recent scoreboards.
   Keep scores comfortably away from the reward icons and pin rewards right. */
body[data-theme=glass] #modal-root .v5-alltime-head,
body[data-theme=glass] #modal-root .v5-alltime-row,
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head,
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 155px 145px !important;
  column-gap:18px !important;
  align-items:center;
}
body[data-theme=glass] #modal-root .v5-alltime-head span:nth-child(3),
body[data-theme=glass] #modal-root .v5-alltime-head span:nth-child(4),
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head span:nth-last-child(-n+2){
  text-align:right !important;
}
body[data-theme=glass] #modal-root .v5-alltime-row .v5-alltime-score,
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>.num{
  text-align:right;
  justify-self:stretch;
  min-width:0;
  font-variant-numeric:tabular-nums;
}
body[data-theme=glass] #modal-root .v5-rewards{
  display:flex !important;
  width:100%;min-width:0;
  justify-content:flex-end !important;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  text-align:right;
}
body[data-theme=glass] #modal-root .v5-rewards .dc-score-sprite{
  width:30px;height:30px;
  min-width:0;
  flex:0 0 auto;
  object-fit:contain;
  image-rendering:pixelated;
}
body[data-theme=glass] #modal-root .v5-alltime-block{overflow:hidden}
body[data-theme=glass] #modal-root .v5-alltime-row>button:nth-child(2),
body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>.player{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* The History icon is a centered Growtopia sprite within its glass capsule. */
body[data-theme=glass] #content .v5-history-identity>.v3-icon-capsule{
  display:grid !important;
  place-items:center !important;
  justify-items:center !important;
  align-items:center !important;
  padding:0 !important;
  flex:none;
  overflow:hidden;
}
body[data-theme=glass] #content .v5-history-identity>.v3-icon-capsule>img{
  display:block !important;
  margin:0 auto !important;
  align-self:center !important;
  justify-self:center !important;
  position:static !important;
  object-position:center center;
  object-fit:contain;
}
@media(max-width:760px){
  body[data-theme=glass] #modal-root .v5-alltime-head,
  body[data-theme=glass] #modal-root .v5-alltime-row,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row{
    grid-template-columns:40px minmax(0,1fr) 105px 105px !important;
    column-gap:8px !important;
  }
  body[data-theme=glass] #modal-root .v5-rewards .dc-score-sprite{width:25px;height:25px}
}
@media(max-width:490px){
  body[data-theme=glass] #modal-root .v5-alltime-head,
  body[data-theme=glass] #modal-root .v5-alltime-row,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row{
    grid-template-columns:34px minmax(0,1fr) 78px 74px !important;
    column-gap:5px !important;
  }
  body[data-theme=glass] #modal-root .v5-rewards{gap:0}
  body[data-theme=glass] #modal-root .v5-rewards .dc-score-sprite{width:19px;height:19px}
  body[data-theme=glass] #modal-root .v5-alltime-row .v5-alltime-score b{font-size:12px}
  body[data-theme=glass] #modal-root .v5-alltime-score small{font-size:9px}
}
/* Small-screen scoreboards keep the same identity/score/reward hierarchy
   without crushing player names to a few pixels. */
@media(max-width:540px){
  body[data-theme=glass] #modal-root .v5-alltime-head,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-head{display:none!important}
  body[data-theme=glass] #modal-root .v5-alltime-row,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row{
    display:grid;
    grid-template-columns:39px minmax(0,1fr) 87px !important;
    grid-template-rows:auto auto;
    column-gap:8px !important;
    row-gap:4px;
    min-height:70px;
    padding:8px 9px;
  }
  body[data-theme=glass] #modal-root .v5-alltime-row>:first-child,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>:first-child{
    grid-column:1;grid-row:1 / span 2;align-self:center;
  }
  body[data-theme=glass] #modal-root .v5-alltime-row>button:nth-child(2),
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>.player{
    grid-column:2 / 4;grid-row:1;
    font-size:13px!important;
    justify-self:stretch;
  }
  body[data-theme=glass] #modal-root .v5-alltime-row>.v5-alltime-score,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>.num{
    grid-column:2;grid-row:2;
    text-align:left!important;
    align-items:flex-start;
    justify-self:start;
    font-size:13px;
  }
  body[data-theme=glass] #modal-root .v5-alltime-row>.v5-rewards,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>.v5-rewards{
    grid-column:3;grid-row:2;
    justify-self:end;
  }
  body[data-theme=glass] #modal-root .v5-alltime-row>.v47-admin-row-actions,
  body[data-theme=glass] #modal-root .v5-scoreboard-rewards .score-row>.v47-admin-row-actions{
    grid-row:auto;grid-column:1/-1;
  }
}

/* V50 — Records inline challenge icons; wider, more legible record cards. */
body[data-theme=glass] .v5-metric-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
body[data-theme=glass] .v5-metric-champion,
body[data-theme=glass] .v5-metric-list .v5-metric-row,
body[data-theme=glass] .v5-metric-row:has(.v48-metric-dcs){
  display:grid;
  grid-template-columns:37px minmax(76px,1fr) minmax(0,auto) minmax(34px,max-content);
  gap:10px;
  align-items:center;
}
body[data-theme=glass] .v5-metric-champion{min-height:82px;flex-wrap:nowrap;}
body[data-theme=glass] .v5-metric-list .v5-metric-row{min-height:55px;}
body[data-theme=glass] .v5-metric-champion .v48-metric-dcs,
body[data-theme=glass] .v5-metric-row>.v48-metric-dcs{
  flex:initial;
  grid-column:3;
  padding:2px 0;
  margin:0;
  min-width:0;
  justify-content:flex-end;
  gap:2px;
}
body[data-theme=glass] .v48-metric-dcs button,
body[data-theme=glass] .v5-metric-row .v48-metric-dcs button{width:24px;height:24px;padding:1px;border-radius:6px;}
body[data-theme=glass] .v48-metric-dcs img,
body[data-theme=glass] .v5-metric-row .v48-metric-dcs img{width:21px;height:21px;}
body[data-theme=glass] .v5-metric-champion>b,
body[data-theme=glass] .v5-metric-row>strong{grid-column:4;justify-self:end;text-align:right;font-variant-numeric:tabular-nums;}
body[data-theme=glass] .v5-metric-row>button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;min-width:0;}
body[data-theme=glass] .v50-metric-empty{grid-column:3;display:block;}
body[data-theme=glass] .v5-metric-card .v5-metric-champion-name{min-width:0;overflow:hidden;}
@media(max-width:1120px){
  body[data-theme=glass] .v5-metric-grid{grid-template-columns:1fr;}
}
@media(max-width:500px){
  body[data-theme=glass] .v5-metric-champion,
  body[data-theme=glass] .v5-metric-list .v5-metric-row,
  body[data-theme=glass] .v5-metric-row:has(.v48-metric-dcs){grid-template-columns:34px minmax(63px,1fr) minmax(0,auto) minmax(30px,max-content);gap:6px;}
  body[data-theme=glass] .v48-metric-dcs button,
  body[data-theme=glass] .v5-metric-row .v48-metric-dcs button{width:21px;height:21px;}
  body[data-theme=glass] .v48-metric-dcs img,
  body[data-theme=glass] .v5-metric-row .v48-metric-dcs img{width:18px;height:18px;}
}

/* Sidebar readability without a further width increase. */
body[data-theme=glass] .side.sidebar .nav-item{
  font-size:14px;
  min-height:49px;
  gap:12px;
  font-weight:740;
}
body[data-theme=glass] .side.sidebar .nav-item .nav-img,
body[data-theme=glass] .side.sidebar .nav-item .nav-icon{width:32px;min-width:32px;height:32px;}
body[data-theme=glass] .side.sidebar .nav-item .nav-img img,
body[data-theme=glass] .side.sidebar .nav-item .nav-icon img{width:31px;height:31px;object-fit:contain;image-rendering:pixelated;}
body[data-theme=glass] .side.sidebar .v48-section-toggle{font-size:11px;letter-spacing:1.6px;}
body[data-theme=glass] .side.sidebar .gt-private-symbol img{width:31px;height:31px;image-rendering:pixelated;}

/* Reposition completion tick between the bubble and name; never over the art. */
body[data-theme=glass] .cycle-list .cycle-completed,
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
body[data-theme=glass] .cycle-list .v50-completed-mark{
  position:static;
  display:grid;
  place-items:center;
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:none;
  border:0;
  box-shadow:none;
}
body[data-theme=glass] .cycle-list .v50-completed-mark img{
  display:block;width:18px;height:18px;image-rendering:pixelated;
  object-fit:contain;
  filter:drop-shadow(0 0 4px rgba(91,209,150,.16));
}
body[data-theme=glass] .cycle-list .v50-completed-name{
  display:block;
  min-width:0;
  line-height:1.35;
  font-size:12.3px;
  font-weight:760;
}
body[data-theme=glass] .cycle-list.cycle-multi .cycle-completed{gap:6px;}
body[data-theme=glass] .cycle-list.cycle-multi .v50-completed-mark{width:15px;flex-basis:15px;}
body[data-theme=glass] .cycle-list.cycle-multi .v50-completed-mark img{width:15px;height:15px;}
body[data-theme=glass] .cycle-list.cycle-multi .v50-completed-name{font-size:11px;}

/* Calendar/scoreboard challenge icons act as clearly focusable links. */
body[data-theme=glass] .v50-bubble-link{
  display:inline-grid;place-items:center;flex:0 0 auto;align-self:center;
  padding:0;border:0;border-radius:18px;background:transparent;
  cursor:pointer;isolation:isolate;
}
body[data-theme=glass] .v50-bubble-link .v3-icon-capsule{pointer-events:none;}
body[data-theme=glass] .v50-bubble-link:hover .v3-icon-capsule{
  border-color:rgba(204,233,255,.76);
  box-shadow:inset 0 1px rgba(255,255,255,.26),0 0 0 2px rgba(128,182,247,.22),0 9px 24px rgba(16,70,154,.20);
}
body[data-theme=glass] .v50-bubble-link:focus-visible{outline:2px solid #bbdcff;outline-offset:4px;}

/* Calendar Full Scores: a wide V5 glass dialog, matching Challenge detail scoreboards. */
body[data-theme=glass] #modal-root .dialog.v50-fullscore-dialog{
  width:min(970px,calc(100vw - 36px));
  max-width:970px;
  max-height:min(92vh,1080px);
  overflow-x:hidden;
}
body[data-theme=glass] .v50-modal-intro{font-size:12px;margin:8px 0 0;color:#9eb4ce;}
body[data-theme=glass] .v50-fullscore-body{display:flex;flex-direction:column;gap:23px;}
body[data-theme=glass] .v50-fullscore-event{border:1px solid rgba(169,210,249,.20);border-radius:17px;background:linear-gradient(145deg,rgba(78,119,175,.10),rgba(15,33,65,.35));padding:18px;}
body[data-theme=glass] .v50-fullscore-identity{display:flex;align-items:center;gap:14px;margin-bottom:20px;}
body[data-theme=glass] .v50-fullscore-identity h3{margin:6px 0;font-size:21px;letter-spacing:-.4px;color:#f1f7ff;}
body[data-theme=glass] .v50-detail-link{background:none;border:0;padding:2px 0;color:#a8d1ff;font-size:12px;font-weight:780;text-align:left;}
body[data-theme=glass] .v50-detail-link:hover{text-decoration:underline;color:white;}
body[data-theme=glass] .v50-fullscore-event h4{font-size:15px;margin:18px 4px 8px;color:#e4efff;}
body[data-theme=glass] .v50-fullscore-event .scoreboard{padding:7px 2px 10px;}
body[data-theme=glass] .v50-fullscore-admin{margin-bottom:12px;}
body[data-theme=glass] .v50-fullscore-admin>a{font-size:11px;color:#a6cfff;border:1px solid rgba(173,218,255,.27);border-radius:8px;padding:8px 10px;}
body[data-theme=glass] .v50-fullscore-admin>a:hover{background:rgba(115,174,240,.14);}
@media(max-width:580px){
 body[data-theme=glass] .v50-fullscore-event{padding:11px;}
 body[data-theme=glass] .v50-fullscore-identity{gap:9px;}
 body[data-theme=glass] .v50-fullscore-identity h3{font-size:17px;}
 body[data-theme=glass] .v50-fullscore-event .scoreboard{padding:5px 0;}
}

/* Final legibility adjustment: even twelve distinct-DC icons fit before the value. */
@media(min-width:1121px){
 body[data-theme=glass] .v48-metric-dcs button,
 body[data-theme=glass] .v5-metric-row .v48-metric-dcs button{width:21px;height:21px;border-radius:5px;}
 body[data-theme=glass] .v48-metric-dcs img,
 body[data-theme=glass] .v5-metric-row .v48-metric-dcs img{width:18px;height:18px;}
}
body[data-theme=glass] .side.sidebar .nav-item{font-size:14.5px;min-height:51px;}
body[data-theme=glass] .side.sidebar .nav-item .nav-img,
body[data-theme=glass] .side.sidebar .nav-item .nav-icon{width:35px;min-width:35px;height:35px;}
body[data-theme=glass] .side.sidebar .nav-item .nav-img img,
body[data-theme=glass] .side.sidebar .nav-item .nav-icon img{width:34px;height:34px;}

/* V51 — readable Daily Challenge art beside challenge names.
   Only Growtopia challenge item sprites are enlarged. Rank badges and
   score-reward sprites deliberately retain their previous dimensions. */
body[data-theme=glass] #content .v5-record-dc img{
  width:46px;height:46px;min-width:46px;
  object-fit:contain;object-position:center;
  image-rendering:pixelated;
  filter:drop-shadow(0 3px 4px rgba(0,6,23,.35));
}
body[data-theme=glass] #content .v5-record-dc{gap:13px;}
body[data-theme=glass] #content .v5-record-row{min-height:70px;}

/* History uses a more substantial glass capsule beside its title. */
body[data-theme=glass] #content .v5-history-identity>.v3-icon-capsule{
  width:70px;height:70px;min-width:70px;
}
body[data-theme=glass] #content .v5-history-identity>.v3-icon-capsule>img{
  width:58px;height:58px;
}

/* The equipment/mission sprites in player and guild profiles are easier
   to distinguish at a glance; keep the numeric columns untouched. */
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button img{
  width:36px;height:36px;flex-shrink:0;
  object-fit:contain;image-rendering:pixelated;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row{
  min-height:60px;
}
body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button{gap:10px;}

/* Larger challenge artwork in cards and the two main detail headers. */
body[data-theme=glass] #content .v5-challenge-card .v3-icon-capsule{
  width:70px;height:70px;
}
body[data-theme=glass] #content .v5-challenge-card .v3-icon-capsule img{
  width:55px;height:55px;max-width:55px;max-height:55px;
}
body[data-theme=glass] #modal-root .v50-fullscore-identity .v3-headingcap,
body[data-theme=glass] #modal-root .dialog-head .title-icon .v3-headingcap{
  width:70px;height:70px;
}
body[data-theme=glass] #modal-root .v50-fullscore-identity .v3-headingcap img,
body[data-theme=glass] #modal-root .dialog-head .title-icon .v3-headingcap img{
  width:57px;height:57px;
}

@media(max-width:700px){
  body[data-theme=glass] #content .v5-record-dc img{width:31px;height:31px;min-width:31px;}
  body[data-theme=glass] #content .v5-record-dc{gap:7px;}
  body[data-theme=glass] #content .v5-record-row{min-height:60px;}
  body[data-theme=glass] #content .v5-history-identity>.v3-icon-capsule{
    width:57px;height:57px;min-width:57px;
  }
  body[data-theme=glass] #content .v5-history-identity>.v3-icon-capsule>img{width:47px;height:47px;}
  body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row button img{width:31px;height:31px;}
  body[data-theme=glass] #modal-root .v5-profile-dialog .v5-profile-row{min-height:53px;}
  body[data-theme=glass] #content .v5-challenge-card .v3-icon-capsule{width:60px;height:60px;}
  body[data-theme=glass] #content .v5-challenge-card .v3-icon-capsule img{
    width:48px;height:48px;max-width:48px;max-height:48px;
  }
  body[data-theme=glass] #modal-root .v50-fullscore-identity .v3-headingcap,
  body[data-theme=glass] #modal-root .dialog-head .title-icon .v3-headingcap{
    width:58px;height:58px;
  }
  body[data-theme=glass] #modal-root .v50-fullscore-identity .v3-headingcap img,
  body[data-theme=glass] #modal-root .dialog-head .title-icon .v3-headingcap img{
    width:47px;height:47px;
  }
}

/* V51 — Record leader's distinct challenge icons between the name and value.
   Space is allocated explicitly so icons are larger even with 12 DC types. */
body[data-theme=glass] .v5-metric-champion,
body[data-theme=glass] .v5-metric-list .v5-metric-row,
body[data-theme=glass] .v5-metric-row:has(.v48-metric-dcs){
  grid-template-columns:37px minmax(85px,1fr) minmax(0,2.05fr) minmax(35px,max-content);
  column-gap:9px;
}
body[data-theme=glass] .v5-metric-champion .v48-metric-dcs,
body[data-theme=glass] .v5-metric-row>.v48-metric-dcs{
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:4px;
  padding:5px 0;
  min-width:0;
}
body[data-theme=glass] .v48-metric-dcs button,
body[data-theme=glass] .v5-metric-row .v48-metric-dcs button{
  width:42px;height:42px;min-width:42px;
  border-radius:8px;padding:1px;
}
body[data-theme=glass] .v48-metric-dcs img,
body[data-theme=glass] .v5-metric-row .v48-metric-dcs img{
  width:38px;height:38px;object-fit:contain;image-rendering:pixelated;
}
body[data-theme=glass] .v5-metric-champion{padding-top:8px;padding-bottom:8px;}
body[data-theme=glass] .v5-metric-list .v5-metric-row:has(.v48-metric-dcs){padding-top:5px;padding-bottom:5px;}
@media(max-width:500px){
  body[data-theme=glass] .v5-metric-champion,
  body[data-theme=glass] .v5-metric-list .v5-metric-row,
  body[data-theme=glass] .v5-metric-row:has(.v48-metric-dcs){
    grid-template-columns:34px minmax(74px,1fr) minmax(0,1.45fr) minmax(29px,max-content);
    column-gap:5px;
  }
  body[data-theme=glass] .v48-metric-dcs button,
  body[data-theme=glass] .v5-metric-row .v48-metric-dcs button{
    width:34px;height:34px;min-width:34px;border-radius:7px;
  }
  body[data-theme=glass] .v48-metric-dcs img,
  body[data-theme=glass] .v5-metric-row .v48-metric-dcs img{
    width:30px;height:30px;
  }
}
/* The featured record holder had an older, higher-specificity display:flex;
   override it so its name always has a dedicated grid column. */
body[data-theme=glass] .v5-metric-leader.v5-metric-champion{
  display:grid;
  grid-template-columns:37px minmax(110px,1fr) minmax(0,1.75fr) minmax(35px,max-content);
  column-gap:9px;
  align-items:center;
}
body[data-theme=glass] .v5-metric-leader.v5-metric-champion .v5-metric-champion-name{
  min-width:0;
}
body[data-theme=glass] .v5-metric-leader.v5-metric-champion .v48-metric-dcs{
  grid-column:3;
  width:100%;
  overflow:visible;
}
body[data-theme=glass] .v5-metric-leader.v5-metric-champion>b{grid-column:4;}
@media(max-width:500px){
  body[data-theme=glass] .v5-metric-leader.v5-metric-champion{
    grid-template-columns:34px minmax(76px,1fr) minmax(0,1.38fr) minmax(29px,max-content);
    column-gap:5px;
  }
}


/* V52: larger, more legible challenge artwork and labels in both calendar sizes.
   Preserve the 7-column grid and the October timezone/cycle mapping. */
body[data-theme=glass] #content .calendar-panel .day-cell{
  min-height:127px;
  gap:5px;
  padding:9px 7px 7px;
}
body[data-theme=glass] #content .calendar-panel .day-art{
  min-height:46px;
  display:flex;align-items:center;justify-content:center;
}
body[data-theme=glass] #content .calendar-panel .day-art>img{
  display:block; width:44px;height:44px;min-width:44px;max-width:44px;
  object-fit:contain;image-rendering:pixelated;
  filter:drop-shadow(0 3px 5px rgba(0,6,26,.38));
}
body[data-theme=glass] #content .calendar-panel .day-title{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
  font-size:clamp(11px,.79vw,13px);line-height:1.17;
  font-weight:750;letter-spacing:-.10px;max-height:33px;min-height:22px;
  text-align:center;white-space:normal;overflow-wrap:normal;
}
/* The original pixel-art question mark is shared with the public feature/archives sidebar. */
body[data-theme=glass] #content .calendar-panel .calendar-question{
  display:grid;place-items:center;width:44px;height:44px;
  border-radius:10px;border:1px solid rgba(159,202,247,.24);
  background:linear-gradient(140deg,rgba(91,137,206,.19),rgba(31,55,90,.22));
}
body[data-theme=glass] #content .calendar-panel .calendar-question img{
  width:36px;height:36px;object-fit:contain;image-rendering:pixelated;
}
body[data-theme=glass] #content .calendar-panel .selected-placeholder.v52-placeholder{
  display:grid;place-items:center;width:58px;height:58px;min-width:58px;
}
body[data-theme=glass] #content .calendar-panel .selected-placeholder.v52-placeholder img{
  width:42px;height:42px;object-fit:contain;image-rendering:pixelated;
}
/* The 7-day layout needs scaled icons/labels on compact screens, not clipping. */
@media(max-width:1150px){
  body[data-theme=glass] #content .calendar-panel .day-cell{min-height:113px;padding:7px 4px;}
  body[data-theme=glass] #content .calendar-panel .day-art{min-height:40px;}
  body[data-theme=glass] #content .calendar-panel .day-art>img{width:38px;height:38px;min-width:38px;max-width:38px;}
  body[data-theme=glass] #content .calendar-panel .day-title{font-size:11px;max-height:30px;}
  body[data-theme=glass] #content .calendar-panel .calendar-question{width:38px;height:38px;}
  body[data-theme=glass] #content .calendar-panel .calendar-question img{width:31px;height:31px;}
}
@media(max-width:650px){
  body[data-theme=glass] #content .calendar-panel .day-cell{min-height:99px;padding:6px 3px;gap:4px;}
  body[data-theme=glass] #content .calendar-panel .day-art{min-height:31px;}
  body[data-theme=glass] #content .calendar-panel .day-art>img{width:30px;height:30px;min-width:30px;max-width:30px;}
  body[data-theme=glass] #content .calendar-panel .day-title{display:-webkit-box; font-size:9.5px;max-height:23px;min-height:18px;letter-spacing:0;line-height:1.15;}
  body[data-theme=glass] #content .calendar-panel .calendar-question{width:31px;height:31px;border-radius:7px;}
  body[data-theme=glass] #content .calendar-panel .calendar-question img{width:27px;height:27px;}
}
@media(max-width:400px){
  body[data-theme=glass] #content .calendar-panel .day-art>img{width:27px;height:27px;min-width:27px;max-width:27px;}
  body[data-theme=glass] #content .calendar-panel .day-title{font-size:9px;line-height:1.12;}
}

/* V52: admin-tool pages use the same unboxed heading as the Liquid Glass DC tabs.
   The production .page-intro previously inherited a glass-card background/border
   without the card padding, clipping the title and subtitle. */
body[data-theme=glass] #content > .page-intro,
body[data-theme=glass] #content > .gt-tool-page > .page-intro{
  width:100%;max-width:100%;min-width:0;
  background:transparent!important;
  border:0!important;border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  padding:0!important;overflow:visible!important;
  align-items:flex-end;
  margin:0 0 25px;
}
body[data-theme=glass] #content > .page-intro::before,
body[data-theme=glass] #content > .page-intro::after{display:none!important;}
body[data-theme=glass] #content > .page-intro .page-title{
  font-size:36px;line-height:1.15;letter-spacing:-1.3px;
  font-weight:780;margin:10px 0 9px;
}
body[data-theme=glass] #content > .page-intro .page-desc{
  font-size:13px;line-height:1.6;color:#a7bad1;
}
body[data-theme=glass] #content > .page-intro .mini-tag{
  flex:0 0 auto;align-self:center;margin:0;
}
@media(max-width:650px){
  body[data-theme=glass] #content > .page-intro{align-items:flex-start;flex-wrap:wrap;gap:10px;}
  body[data-theme=glass] #content > .page-intro .page-title{font-size:29px;}
}

/* The full calendar must stack its score details below the month on phones.
   Otherwise a 7-column month is compressed into a narrow left rail. */
@media(max-width:900px){
  body[data-theme=glass] #content .calendar-panel .calendar-content{
    display:flex;flex-direction:column;gap:12px;
  }
  body[data-theme=glass] #content .calendar-panel .calendar-preview,
  body[data-theme=glass] #content .calendar-panel .selected-pane{
    width:100%;min-width:0;flex:0 0 auto;
  }
  body[data-theme=glass] #content .calendar-panel .calendar-week{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }
  body[data-theme=glass] #content .calendar-panel .v5-month-control{
    justify-content:center;gap:8px;
  }
}


/* V55 — structural tool heading, no old .page-intro card wrapper. */
body[data-theme="glass"] #content > header.gt-v55-tools-header {
  position:relative!important; display:flex; align-items:flex-end;
  width:100%!important; min-width:0!important; max-width:100%!important;
  min-height:0!important; padding:0!important;
  margin:0 0 26px!important;
  background:none!important; background-image:none!important;
  border:0!important; border-radius:0!important;
  box-shadow:none!important; clip-path:none!important;
  overflow:visible!important; backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  isolation:auto;
}
body[data-theme="glass"] #content > header.gt-v55-tools-header::before,
body[data-theme="glass"] #content > header.gt-v55-tools-header::after{display:none!important}
body[data-theme="glass"] #content > header.gt-v55-tools-header > div {min-width:0;flex:1}
body[data-theme="glass"] #content > header.gt-v55-tools-header h1{
  font-size:clamp(28px,2.3vw,36px)!important;
  line-height:1.16!important; font-weight:810;
  margin:9px 0 7px!important; padding:0!important;
  color:#edf5ff!important; letter-spacing:-1.25px;
  text-shadow:none!important;
}
body[data-theme="glass"] #content > header.gt-v55-tools-header p{
  color:#a5bed6!important;font-size:13px!important;
  line-height:1.6!important;margin:0!important;
}
body[data-theme="glass"] #content > header.gt-v55-tools-header .section-tag{
  color:#91bdf0;font-size:10px;letter-spacing:2.1px;
}
body[data-theme="glass"] #content > header.gt-v55-tools-header .gt-v55-prototype-tag{
  flex-shrink:0;white-space:nowrap;align-self:center;
}

/* V55 — calendar artwork and titles sized for expanded calendar cells.
   Match actual markup: .day-art > img and .day-title, including compact overview. */
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell{
  padding:9px 8px 9px;
  min-height:135px;
  gap:5px;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art{
  width:100%;min-height:53px;display:flex;justify-content:center;align-items:center;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art > img{
  display:block; width:50px!important;height:50px!important;
  max-width:50px!important;max-height:50px!important;
  min-width:0!important;min-height:0!important;
  object-fit:contain;image-rendering:pixelated;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-title{
  display:-webkit-box!important;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical;white-space:normal!important;
  font-size:13px!important;font-weight:780;
  line-height:1.18;min-height:28px;max-height:33px;
  letter-spacing:0;overflow:hidden;text-align:center;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question{
  display:grid;place-items:center;
  width:50px!important;height:50px!important;
  min-width:0;min-height:0;
  border-radius:10px;
}
body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question img{
  width:43px!important;height:43px!important;
  max-width:43px!important;max-height:43px!important;
  object-fit:contain;image-rendering:pixelated;
}
/* More compact overview calendar: still larger than before, but fits 7 columns. */
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell{
  min-height:116px;padding:7px 5px;
}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art{min-height:45px}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art > img{
  width:43px!important;height:43px!important;max-width:43px!important;max-height:43px!important;
}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .calendar-question{
  width:43px!important;height:43px!important;
}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .calendar-question img{
  width:38px!important;height:38px!important;
}
body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-title{
  font-size:12px!important;max-height:31px;min-height:26px;
}
/* Guarantee the original sprite is used, rather than a text placeholder. */
body[data-theme="glass"] #content .calendar-panel .selected-placeholder.v52-placeholder img{
  display:block;width:42px;height:42px;object-fit:contain;image-rendering:pixelated;
}
@media (max-width:1000px){
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell{min-height:116px;padding:6px 5px}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art{min-height:40px}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art > img{width:38px!important;height:38px!important}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question{width:38px!important;height:38px!important}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question img{width:34px!important;height:34px!important}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-title{font-size:11px!important;min-height:22px;max-height:30px}
}
@media (max-width:650px){
  body[data-theme="glass"] #content > header.gt-v55-tools-header{align-items:flex-start;flex-wrap:wrap;gap:10px}
  body[data-theme="glass"] #content > header.gt-v55-tools-header h1{font-size:28px!important}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell,
  body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell{
    min-height:86px;gap:3px;padding:5px 3px;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art,
  body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art{min-height:30px}
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-art > img,
  body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-art > img{
    width:30px!important;height:30px!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question,
  body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .calendar-question{
    width:30px!important;height:30px!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .calendar-question img,
  body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .calendar-question img{
    width:28px!important;height:28px!important;
  }
  body[data-theme="glass"] #content .calendar-panel .calendar-week .day-cell .day-title,
  body[data-theme="glass"] #content .v5-compact-calendar.calendar-panel .calendar-week .day-cell .day-title{
    font-size:9.5px!important;line-height:1.12;max-height:23px;min-height:16px;
  }
}

/* V56 consolidated — stronger Records DC imagery, irrespective of V52/V54 install order. */
body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs{gap:5px;justify-content:flex-end;min-width:0;flex-wrap:wrap}
body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button{width:44px!important;height:44px!important;min-width:44px!important;padding:2px!important;border-radius:9px!important;display:grid!important;place-items:center!important;overflow:hidden}
body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button img{width:40px!important;height:40px!important;max-width:none!important;max-height:none!important;display:block;object-fit:contain;image-rendering:pixelated}
body[data-theme="glass"] #content .v5-metric-grid .v5-metric-champion{grid-template-columns:37px minmax(100px,1fr) minmax(0,2fr) minmax(32px,max-content)}
body[data-theme="glass"] #content .v5-metric-grid .v5-metric-row{grid-template-columns:37px minmax(88px,1fr) minmax(0,2fr) minmax(32px,max-content)}
@media(max-width:600px){body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button{width:34px!important;height:34px!important;min-width:34px!important}body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button img{width:30px!important;height:30px!important}}
/* Actual sprite picker rather than unsupported icon markup inside native <option>. */
body[data-theme="glass"] #content .v56-dc-picker{position:relative;min-width:190px;max-width:100%;flex:0 1 250px;z-index:4}
body[data-theme="glass"] #content .v56-dc-trigger{width:100%;height:43px;display:flex;align-items:center;gap:9px;padding:6px 11px;border:1px solid rgba(166,203,245,.28);background:linear-gradient(145deg,rgba(120,172,234,.16),rgba(21,43,75,.6));color:#e8f3ff;border-radius:11px;text-align:left;box-shadow:inset 0 1px rgba(255,255,255,.16)}
body[data-theme="glass"] #content .v56-dc-trigger>span{display:grid;place-items:center;width:31px;height:31px;flex-shrink:0}body[data-theme="glass"] #content .v56-dc-trigger img{width:30px;height:30px;image-rendering:pixelated;object-fit:contain}
body[data-theme="glass"] #content .v56-dc-trigger b{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:740}body[data-theme="glass"] #content .v56-dc-trigger i{font-style:normal;color:#b5d6fa}
body[data-theme="glass"] #content .v56-dc-options{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:320px;overflow:auto;z-index:100;background:rgba(15,29,54,.98);border:1px solid rgba(177,219,255,.36);border-radius:13px;box-shadow:0 22px 50px #0009,inset 0 1px #ffffff32;backdrop-filter:blur(22px);padding:5px}
body[data-theme="glass"] #content .v56-dc-options[hidden]{display:none!important}
body[data-theme="glass"] #content .v56-dc-option{display:flex;align-items:center;gap:11px;padding:6px 9px;width:100%;text-align:left;color:#cfe2fb;border:1px solid transparent;border-radius:9px;background:transparent;font-size:12px;min-height:43px}
body[data-theme="glass"] #content .v56-dc-option:hover,body[data-theme="glass"] #content .v56-dc-option:focus-visible{background:rgba(116,178,255,.17);border-color:rgba(170,216,255,.22)}body[data-theme="glass"] #content .v56-dc-option.selected{background:rgba(107,170,255,.22);color:#fff}
body[data-theme="glass"] #content .v56-dc-option img{width:31px;height:31px;object-fit:contain;image-rendering:pixelated;flex:0 0 31px}
/* Liquid-glass profile cards, with restrained movement and shared surface language. */
body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat{isolation:isolate;position:relative;overflow:hidden;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:112px;border-radius:15px!important;border:1px solid rgba(170,211,255,.28);background:linear-gradient(145deg,rgba(181,221,255,.20),rgba(91,141,214,.11) 35%,rgba(14,38,77,.6) 100%);box-shadow:inset 0 1px rgba(255,255,255,.33),inset 0 -1px rgba(10,26,55,.65),0 13px 28px rgba(2,11,33,.25)}
body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat small{font-size:10px;letter-spacing:1.2px;color:#acccec}
body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat b{font-size:32px;letter-spacing:-1px;color:#f3f9ff;position:relative;z-index:2}
body[data-theme="glass"] #modal-root .v56-stat-ornament{position:absolute;right:13px;top:8px;color:rgba(195,229,255,.26);font-size:27px;z-index:0}
@media(prefers-reduced-motion:no-preference){body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat{animation:v56-breathe 6s ease-in-out infinite alternate;animation-delay:calc(var(--i,0) * -1.5s)}body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat:nth-child(2){animation-delay:-1.4s}body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat:nth-child(3){animation-delay:-3s}body[data-theme="glass"] #modal-root .v5-profile-stats.v56-profile-stats .v56-profile-stat:nth-child(4){animation-delay:-4.7s}}
@keyframes v56-breathe{from{transform:translateY(0);box-shadow:inset 0 1px rgba(255,255,255,.33),0 13px 28px rgba(2,11,33,.25)}to{transform:translateY(-2px);box-shadow:inset 0 1px rgba(255,255,255,.41),0 16px 36px rgba(24,93,189,.25)}}
body[data-theme="glass"] #modal-root .v56-honors{margin:18px 0 25px;padding:17px 19px;background:linear-gradient(130deg,rgba(110,156,223,.15),rgba(14,31,58,.50));border:1px solid rgba(175,217,255,.22);border-radius:15px}
body[data-theme="glass"] #modal-root .v56-honors header{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px;margin-bottom:12px}
body[data-theme="glass"] #modal-root .v56-honors h3{margin:0;font-size:16px}body[data-theme="glass"] #modal-root .v56-honors header p{font-size:10px;color:#9cb6d5;margin:0 0 0 auto}
body[data-theme="glass"] #modal-root .v56-honor-grid{display:flex;flex-wrap:wrap;gap:8px}
body[data-theme="glass"] #modal-root .v56-honor{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:6px 10px;border-radius:10px;background:linear-gradient(120deg,rgba(190,164,92,.17),rgba(84,105,144,.12));border:1px solid rgba(243,202,111,.28);font-size:11px;color:#dfe9f9}
body[data-theme="glass"] #modal-root .v56-honor>span{font-size:16px;color:#ffda91}body[data-theme="glass"] #modal-root .v56-honor strong{font-variant-numeric:tabular-nums;color:#ffda91;font-size:13px}
body[data-theme="glass"] #modal-root .v56-record-explain{margin:4px 0 12px;font-size:10px;color:#98b6d7}
body[data-theme="glass"] #modal-root .v56-record-value{color:#f6d48e;display:flex;align-items:center;justify-content:flex-end;gap:3px}
body[data-theme="glass"] #modal-root .v56-record-star{font-size:10px;color:#ffca61;flex:0 0 auto}
@media(max-width:600px){body[data-theme="glass"] #modal-root .v56-honors{padding:12px}body[data-theme="glass"] #modal-root .v56-honors header p{margin-left:0}body[data-theme="glass"] #content .v56-dc-picker{flex:1 1 100%}}

/* Allow custom challenge menus to escape glass cards while open. */
body[data-theme="glass"] #content .v5-main-panel:has(.v56-dc-picker),
body[data-theme="glass"] #content .v5-toolbar:has(.v56-dc-picker){overflow:visible!important}
body[data-theme="glass"] #content .v5-toolbar:has(.v56-dc-picker){position:relative;z-index:15}

/* V57 — rebalance Records DC icon strip so it stays compact and aligned. */
body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs{
  display:grid!important;
  grid-template-columns:repeat(10, 27px)!important;
  grid-auto-rows:27px!important;
  gap:4px!important;
  justify-content:end!important;
  align-content:center!important;
  min-width:0!important;
  width:max-content;
  max-width:100%;
}
body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button{
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  padding:1px!important;
  border-radius:7px!important;
}
body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button img{
  width:23px!important;
  height:23px!important;
}
body[data-theme="glass"] #content .v5-metric-grid .v5-metric-champion,
body[data-theme="glass"] #content .v5-metric-grid .v5-metric-row{
  align-items:center;
}
@media(max-width:900px){
  body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs{
    grid-template-columns:repeat(8, 24px)!important;
    grid-auto-rows:24px!important;
    gap:4px!important;
  }
  body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button{
    width:24px!important;height:24px!important;min-width:24px!important;border-radius:6px!important;
  }
  body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button img{
    width:20px!important;height:20px!important;
  }
}
@media(max-width:600px){
  body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs{
    grid-template-columns:repeat(6, 21px)!important;
    grid-auto-rows:21px!important;
    gap:3px!important;
  }
  body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button{
    width:100%!important;max-width:21px!important;height:auto!important;aspect-ratio:1!important;min-width:0!important;border-radius:5px!important;
  }
  body[data-theme="glass"] #content .v5-metric-grid .v48-metric-dcs button img{
    width:17px!important;height:17px!important;
  }
}

/* V58 — Personal record challenge icons stay in ONE row; Guild keeps the
   existing two-row packing. The number of icons controls column count. */
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs {
  display:grid!important;
  grid-template-columns:repeat(var(--v58-icon-count), minmax(0,1fr))!important;
  grid-template-rows:1fr!important;
  grid-auto-rows:auto!important;
  gap:3px!important;
  width:100%!important;
  max-width:100%!important;
  justify-content:end!important;
  align-content:center!important;
  align-items:center!important;
  justify-items:end!important;
  min-width:0!important;
  padding:0!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button {
  width:100%!important;
  max-width:28px!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1/1;
  padding:1px!important;
  border-radius:6px!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button img {
  width:100%!important;
  height:100%!important;
  max-width:25px!important;
  max-height:25px!important;
  object-fit:contain!important;
}
@media(max-width:600px){
  body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs{gap:2px!important;}
  body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button{border-radius:4px!important;}
}

/* V59 — Profile summary: compact stats next to curated career highlights. */
body[data-theme=glass] #modal-root .dialog.v5-profile-dialog{width:min(1100px,calc(100vw - 26px))}
body[data-theme=glass] #modal-root .v59-summary-layout{
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:14px;align-items:stretch;margin:15px 0 26px;
}
body[data-theme=glass] #modal-root :is(.v59-stat-panel,.v59-highlight-panel){
  min-width:0;border:1px solid rgba(169,210,255,.24);border-radius:17px;
  background:linear-gradient(145deg,rgba(128,180,246,.13),rgba(16,36,72,.54));
  box-shadow:inset 0 1px rgba(255,255,255,.15);
  padding:15px;
}
body[data-theme=glass] #modal-root .v59-stat-head{margin-bottom:11px}
body[data-theme=glass] #modal-root :is(.v59-stat-head,.v59-highlight-heading) h3{margin:3px 0 0;font-size:17px;line-height:1.2;letter-spacing:-.2px;color:#f0f6ff}
body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;
}
body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat{
  min-height:88px;padding:12px 8px 10px;animation:none;
  border-radius:13px!important;box-shadow:inset 0 1px rgba(255,255,255,.24),0 8px 16px rgba(2,12,33,.11);
}
body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat small{font-size:9px}
body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat b{font-size:26px;margin-top:3px}
body[data-theme=glass] #modal-root .v59-stats .v56-stat-ornament{font-size:20px;top:7px;right:9px;opacity:.6}
body[data-theme=glass] #modal-root .v59-highlight-panel{background:radial-gradient(ellipse at 100% 0,rgba(142,194,255,.10),transparent 60%),linear-gradient(142deg,rgba(55,90,148,.34),rgba(14,35,70,.47))}
body[data-theme=glass] #modal-root .v59-highlight-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}
body[data-theme=glass] #modal-root .v59-highlight-star{font-size:23px;color:#e8c67d;opacity:.8}
body[data-theme=glass] #modal-root .v59-honor-label{font-size:9px;letter-spacing:1.1px;color:#99badc;font-weight:800;margin:13px 0 6px}
body[data-theme=glass] #modal-root .v59-achievement{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px;margin-bottom:4px;min-height:31px;border-radius:8px;background:rgba(9,27,56,.35);border:1px solid rgba(197,215,255,.10);font-size:11px;color:#dfeefe}
body[data-theme=glass] #modal-root .v59-achievement-symbol{color:#eec579}
body[data-theme=glass] #modal-root .v59-achievement b{font-size:12px;color:#f2d395;font-variant-numeric:tabular-nums}
body[data-theme=glass] #modal-root .v59-dc-achievement{display:flex;align-items:center;gap:9px;width:100%;padding:5px 8px;margin-bottom:4px;background:rgba(8,29,59,.36);border:1px solid rgba(147,195,245,.13);border-radius:9px;color:#edf4ff;text-align:left;min-height:43px;transition:background .2s,border-color .2s}
body[data-theme=glass] #modal-root .v59-dc-achievement:hover{background:rgba(93,153,226,.16);border-color:rgba(166,209,255,.38)}
body[data-theme=glass] #modal-root .v59-dc-achievement img{width:30px;height:30px;flex:0 0 30px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] #modal-root .v59-dc-achievement>span:nth-child(2){flex:1;min-width:0}
body[data-theme=glass] #modal-root .v59-dc-achievement strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme=glass] #modal-root .v59-dc-achievement small{display:block;font-size:10px;color:#9bb7d5;margin-top:3px;line-height:1.3}
body[data-theme=glass] #modal-root .v59-award-star{color:#e9c274;font-size:16px}
body[data-theme=glass] #modal-root .v59-more-records{margin-top:7px;font-size:11px}
body[data-theme=glass] #modal-root .v59-more-records>summary{cursor:pointer;color:#a5d0ff;font-weight:750;padding:3px 0}
body[data-theme=glass] #modal-root .v59-more-records[open]>summary{margin-bottom:8px}
body[data-theme=glass] #modal-root .v59-record-note{font-size:10px;color:#849fbe;margin:13px 0 0;line-height:1.45}
body[data-theme=glass] #modal-root .v59-highlight-fallback{display:flex;gap:12px;align-items:center;border:1px solid rgba(166,206,251,.17);border-radius:12px;padding:13px;margin-top:17px}
body[data-theme=glass] #modal-root .v59-highlight-fallback img{width:44px;height:44px;object-fit:contain;image-rendering:pixelated}
body[data-theme=glass] #modal-root .v59-highlight-fallback :is(small,b,span){display:block}
body[data-theme=glass] #modal-root .v59-highlight-fallback small{color:#90afcb;font-size:10px}
body[data-theme=glass] #modal-root .v59-highlight-fallback b{font-size:13px;margin:3px 0}
body[data-theme=glass] #modal-root .v59-highlight-fallback span{color:#8fb0cf;font-size:10px}
body[data-theme=glass] #modal-root .v59-no-records{color:#a7bbd0;font-size:12px}
/* Filterable full history in the existing right-hand profile column. */
body[data-theme=glass] #modal-root .v59-profile-columns{align-items:start}
body[data-theme=glass] #modal-root .v59-finish-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}
body[data-theme=glass] #modal-root .v59-finish-head h3{margin:0}
body[data-theme=glass] #modal-root .v59-finish-head p{font-size:11px;color:#92afca;margin:4px 0 0}
body[data-theme=glass] #modal-root .v59-filter-wrap{position:relative;width:min(218px,100%);flex:0 1 218px;z-index:5}
body[data-theme=glass] #modal-root .v59-filter-trigger{display:flex;align-items:center;gap:8px;width:100%;height:40px;border-radius:11px;border:1px solid rgba(167,211,255,.32);background:linear-gradient(145deg,rgba(139,186,244,.15),rgba(18,43,79,.72));padding:4px 9px;color:#e3f0ff;box-shadow:inset 0 1px rgba(255,255,255,.14)}
body[data-theme=glass] #modal-root .v59-filter-art{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center}
body[data-theme=glass] #modal-root .v59-filter-art img{width:27px;height:27px;image-rendering:pixelated;object-fit:contain}
body[data-theme=glass] #modal-root .v59-filter-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;font-size:11px;font-weight:770;text-align:left}
body[data-theme=glass] #modal-root .v59-chevron{color:#a8c7eb;font-size:15px}
body[data-theme=glass] #modal-root .v59-filter-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:250px;overflow:auto;background:rgba(11,28,56,.985);border:1px solid rgba(174,216,255,.37);border-radius:12px;padding:5px;box-shadow:0 17px 40px rgba(2,8,25,.75);z-index:45;scrollbar-width:thin}
body[data-theme=glass] #modal-root .v59-filter-menu[hidden]{display:none!important}
body[data-theme=glass] #modal-root .v59-filter-option{display:flex;gap:9px;align-items:center;width:100%;text-align:left;min-height:38px;padding:4px 6px;border:1px solid transparent;border-radius:8px;background:transparent;color:#c8e0fc;font-size:11px}
body[data-theme=glass] #modal-root .v59-filter-option.selected,body[data-theme=glass] #modal-root .v59-filter-option:hover{background:rgba(108,167,239,.2);color:white}
body[data-theme=glass] #modal-root .v59-filter-option img{width:29px;height:29px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
body[data-theme=glass] #modal-root .v59-finish-pagination{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:12px;color:#91accb;font-size:11px}
body[data-theme=glass] #modal-root .v59-finish-buttons{display:flex;gap:7px;flex-wrap:wrap}
body[data-theme=glass] #modal-root .v59-finish-buttons button{border-radius:9px;padding:7px 10px;background:rgba(128,187,255,.13);border:1px solid rgba(171,208,254,.23);color:#c2e1ff;font-size:11px;font-weight:750}
body[data-theme=glass] #modal-root .v59-finish-buttons button:hover{background:rgba(144,196,255,.25)}
@media(max-width:800px){body[data-theme=glass] #modal-root .v59-summary-layout{grid-template-columns:1fr}}
@media(max-width:510px){
  body[data-theme=glass] #modal-root :is(.v59-stat-panel,.v59-highlight-panel){padding:11px}
  body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat{min-height:78px}
  body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat b{font-size:23px}
  body[data-theme=glass] #modal-root .v59-filter-wrap{flex:1 1 100%;width:100%}
  body[data-theme=glass] #modal-root .v59-finish-head{align-items:stretch}
}
@media(prefers-reduced-motion:no-preference){
  body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat{animation:v56-breathe 7s ease-in-out infinite alternate}
  body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat:nth-child(2){animation-delay:-1.5s}
  body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat:nth-child(3){animation-delay:-3.4s}
  body[data-theme=glass] #modal-root .v59-stats.v56-profile-stats .v56-profile-stat:nth-child(4){animation-delay:-5.1s}
}


/* V60 profile refinement: header stats, full-width achievement groups, genuine GT sprites. */
body[data-theme="glass"] #modal-root .dialog.v5-profile-dialog{width:min(1130px,calc(100vw - 24px));}
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{
 display:grid;grid-template-columns:minmax(208px,auto) minmax(0,1fr) 38px;
 align-items:center;gap:15px;margin:0 0 14px;padding-bottom:16px;
 border-bottom:1px solid rgba(180,219,255,.12);
}
body[data-theme="glass"] #modal-root .v60-profile-head .title-icon{min-width:0;max-width:260px;}
body[data-theme="glass"] #modal-root .v60-profile-head .title-icon>div{min-width:0}
body[data-theme="glass"] #modal-root .v60-profile-head .title-icon h2{overflow-wrap:anywhere;font-size:27px;line-height:1.1;}
body[data-theme="glass"] #modal-root .v60-profile-head .close{align-self:center;justify-self:end;position:static;}
body[data-theme="glass"] #modal-root .v60-profile-quickstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0;}
body[data-theme="glass"] #modal-root .v60-quickstat{display:grid;grid-template-columns:33px minmax(0,1fr);gap:6px;align-items:center;min-height:66px;padding:9px 8px;
 border:1px solid rgba(188,218,252,.29);border-radius:13px;
 background:radial-gradient(ellipse at 27% 0%,rgba(192,233,255,.18),transparent 80%),linear-gradient(130deg,rgba(92,147,218,.20),rgba(16,37,71,.54));
 box-shadow:inset 0 1px rgba(255,255,255,.20),0 5px 13px rgba(0,10,30,.10);
}
body[data-theme="glass"] #modal-root .v60-quickstat-icon{display:grid;place-items:center;min-width:0;}
body[data-theme="glass"] #modal-root .v60-quickstat-icon img{width:33px;height:33px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 3px rgba(0,0,0,.18));}
body[data-theme="glass"] #modal-root .v60-stat-text{display:flex;flex-direction:column;min-width:0;gap:3px;}
body[data-theme="glass"] #modal-root .v60-stat-text small{display:block;color:#afcbe7;font-size:8px;font-weight:850;letter-spacing:.5px;white-space:nowrap;}
body[data-theme="glass"] #modal-root .v60-stat-text b{display:block;color:#ecf6ff;font-size:22px;font-weight:800;line-height:1.08;letter-spacing:-.5px;font-variant-numeric:tabular-nums;}
body[data-theme="glass"] #modal-root .v60-summary-layout{display:block;margin:16px 0 23px;}
body[data-theme="glass"] #modal-root .v60-highlights{padding:17px 19px 13px;background:radial-gradient(ellipse at 100% 0,rgba(144,191,255,.13),transparent 52%),linear-gradient(145deg,rgba(70,110,173,.30),rgba(11,32,66,.56));}
body[data-theme="glass"] #modal-root .v60-highlights-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start;}
body[data-theme="glass"] #modal-root .v60-highlights-columns.single{grid-template-columns:1fr;}
body[data-theme="glass"] #modal-root .v60-highlight-group{min-width:0;padding:4px 11px 6px;border-radius:11px;background:rgba(7,24,54,.20);border:1px solid rgba(158,198,245,.12);}
body[data-theme="glass"] #modal-root .v60-highlight-group .v59-honor-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 1px 9px;}
body[data-theme="glass"] #modal-root .v60-highlight-group .v59-honor-label small{font-size:10px;color:#afc9e4;letter-spacing:0;}
body[data-theme="glass"] #modal-root .v59-achievement{grid-template-columns:17px minmax(0,1fr) auto;min-height:36px;gap:7px;font-size:12px;}
body[data-theme="glass"] #modal-root .v59-dc-achievement{min-height:44px;}
body[data-theme="glass"] #modal-root .v59-dc-achievement strong{font-size:12px;}
body[data-theme="glass"] #modal-root .v59-award-star{display:grid;place-items:center;flex:none;}
body[data-theme="glass"] #modal-root .v60-gt-star{width:16px;height:16px;display:block;object-fit:contain;image-rendering:pixelated;}
body[data-theme="glass"] #modal-root .v60-gt-star.large{width:30px;height:30px;}
body[data-theme="glass"] #modal-root .v59-highlight-star{display:grid;place-items:center;}
body[data-theme="glass"] #modal-root .v59-dc-achievement .v59-award-star img.v60-gt-star{width:18px;height:18px;}
body[data-theme="glass"] #modal-root .v56-record-star{display:inline-grid;place-items:center;vertical-align:middle;margin-left:3px;}
body[data-theme="glass"] #modal-root .v56-record-star .v60-gt-star{width:13px;height:13px;}
body[data-theme="glass"] #modal-root .v56-record-explain{display:flex;align-items:center;gap:5px;}
body[data-theme="glass"] #modal-root .v56-record-explain .v60-gt-star{width:14px;height:14px;}
body[data-theme="glass"] #modal-root .v60-highlights .v59-record-note{margin-top:11px;}
@media(max-width:1080px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{grid-template-columns:minmax(200px,auto) minmax(0,1fr) 36px;gap:9px;}
 body[data-theme="glass"] #modal-root .v60-profile-quickstats{gap:5px;}
 body[data-theme="glass"] #modal-root .v60-quickstat{grid-template-columns:27px minmax(0,1fr);padding:7px 5px;gap:3px;}
 body[data-theme="glass"] #modal-root .v60-quickstat-icon img{width:27px;height:27px;}
 body[data-theme="glass"] #modal-root .v60-stat-text b{font-size:19px;}
}
@media(max-width:870px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{grid-template-columns:minmax(0,1fr) 40px;gap:9px;}
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon{grid-column:1;grid-row:1;max-width:none;}
 body[data-theme="glass"] #modal-root .v60-profile-head .close{grid-column:2;grid-row:1;}
 body[data-theme="glass"] #modal-root .v60-profile-quickstats{grid-column:1/-1;grid-row:2;gap:7px;}
 body[data-theme="glass"] #modal-root .v60-quickstat{grid-template-columns:33px minmax(0,1fr);padding:8px;gap:6px;}
 body[data-theme="glass"] #modal-root .v60-quickstat-icon img{width:33px;height:33px;}
 body[data-theme="glass"] #modal-root .v60-stat-text b{font-size:22px;}
}
@media(max-width:690px){
 body[data-theme="glass"] #modal-root .v60-highlights-columns{grid-template-columns:1fr;gap:8px;}
 body[data-theme="glass"] #modal-root .v60-highlights{padding:12px;}
}
@media(max-width:470px){
 body[data-theme="glass"] #modal-root .v60-profile-quickstats{grid-template-columns:repeat(2,minmax(0,1fr));}
 body[data-theme="glass"] #modal-root .v60-quickstat{min-height:59px;}
 body[data-theme="glass"] #modal-root .v60-summary-layout{margin:12px 0 19px;}
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon h2{font-size:23px;}
}
@media(prefers-reduced-motion:no-preference){
 body[data-theme="glass"] #modal-root .v60-quickstat{animation:v56-breathe 8s ease-in-out infinite alternate;}
 body[data-theme="glass"] #modal-root .v60-quickstat:nth-child(2){animation-delay:-2.1s;}
 body[data-theme="glass"] #modal-root .v60-quickstat:nth-child(3){animation-delay:-4.5s;}
 body[data-theme="glass"] #modal-root .v60-quickstat:nth-child(4){animation-delay:-6.3s;}
}

/* V61 — tightly group Records challenge icons without stretching sparse rows.
   Personal: always one compact row. Guild: compact groups, wrapping if needed. */
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs {
  display:grid!important;
  grid-template-columns:repeat(var(--v58-icon-count),minmax(0,1fr))!important;
  grid-template-rows:minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  width:min(100%,calc(var(--v58-icon-count) * 29px - 3px))!important;
  max-width:100%!important;
  justify-self:end!important;
  justify-content:end!important;
  justify-items:center!important;
  align-content:center!important;
  align-items:center!important;
  gap:3px!important;
  padding:0!important;
  overflow:visible;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button {
  display:grid!important;place-items:center!important;
  width:100%!important;max-width:26px!important;min-width:0!important;
  aspect-ratio:1!important;height:auto!important;min-height:0!important;
  padding:1px!important;border-radius:6px!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button img {
  width:100%!important;height:100%!important;max-width:23px!important;max-height:23px!important;
  object-fit:contain!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs {
  display:flex!important;
  flex-wrap:wrap!important;
  width:max-content!important;
  max-width:min(100%,345px)!important;
  justify-self:end!important;
  justify-content:flex-end!important;
  align-items:center!important;
  align-content:center!important;
  gap:3px!important;
  padding:0!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs button {
  display:grid!important;place-items:center!important;
  flex:0 0 26px!important;
  width:26px!important;height:26px!important;min-width:26px!important;
  border-radius:6px!important;padding:1px!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs button img {
  width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important;
}
@media(max-width:600px){
 body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs {
   width:min(100%,calc(var(--v58-icon-count) * 22px - 2px))!important;gap:2px!important;
 }
 body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button {max-width:20px!important;border-radius:4px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs button img {max-width:18px!important;max-height:18px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs {gap:2px!important;max-width:min(100%,250px)!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs button {flex-basis:20px!important;width:20px!important;height:20px!important;min-width:20px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs button img {width:18px!important;height:18px!important;}
}


/* V62 — common search artwork and prominent navigation search. */
body[data-theme="glass"] .top.topbar {gap:14px;}
body[data-theme="glass"] .top.topbar .crumb {flex:0 1 auto;min-width:0;}
body[data-theme="glass"] .v62-search-main {
  display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;
  min-width:175px;max-width:275px;min-height:42px;padding:7px 13px;
  border-radius:13px;border:1px solid rgba(166,209,255,.43);
  background:linear-gradient(135deg,rgba(135,193,255,.21),rgba(44,80,135,.38));
  box-shadow:inset 0 1px rgba(255,255,255,.22),0 7px 22px rgba(3,12,31,.24);
  font-size:13px;font-weight:760;color:#eaf5ff;cursor:pointer;
  transition:background .2s,border-color .2s,transform .2s;
}
body[data-theme="glass"] .v62-search-main:hover,body[data-theme="glass"] .v62-search-main:focus-visible{
  background:rgba(130,189,255,.29);border-color:rgba(217,238,255,.65);transform:translateY(-1px);
}
body[data-theme="glass"] .v62-search-main kbd{margin-left:auto;border:1px solid rgba(180,218,255,.17);border-radius:6px;padding:1px 5px;font-size:11px;color:#aec3dd;}
body[data-theme="glass"] .v62-search-icon{display:block;width:23px;height:23px;object-fit:contain;flex-shrink:0;image-rendering:pixelated;}
body[data-theme="glass"] .v62-inline-search{width:22px;height:22px;margin-right:7px;vertical-align:middle;}
body[data-theme="glass"] label.v5-search{display:flex;align-items:center;gap:3px;}
body[data-theme="glass"] label.v5-search .v62-inline-search{margin-right:4px;}
body[data-theme="glass"] #modal-root .v5-global-search .v62-inline-search{width:26px;height:26px;}
/* Legacy search boxes on admin/advanced pages display the shared sprite too. */
body[data-theme="glass"] #content label.search{position:relative;}
body[data-theme="glass"] #content label.search:before{
 content:"";display:inline-block;width:19px;height:19px;flex-shrink:0;
 background:url('/static/icons/search-v62.png') center/contain no-repeat;
}
@media(max-width:1450px){
 body[data-theme="glass"] .v62-search-main{min-width:auto;}
 body[data-theme="glass"] .v62-search-main kbd{display:none;}
}
@media(max-width:1150px){
 body[data-theme="glass"] .top.topbar{gap:8px;}
 body[data-theme="glass"] .v62-search-main{padding:7px 10px;}
 body[data-theme="glass"] .v62-search-main span{display:none;}
}
@media(max-width:600px){
 body[data-theme="glass"] .v62-search-main{min-width:40px;min-height:38px;padding:6px 8px;margin-left:auto;}
 body[data-theme="glass"] .v62-search-icon{width:25px;height:25px;}
}

/* V62 — standings in profile highlights (not confused with record-holder stars). */
body[data-theme="glass"] #modal-root .v62-honor-section {
 margin:8px 0 16px;padding:13px 14px;border:1px solid rgba(162,203,255,.20);
 border-radius:13px;background:linear-gradient(125deg,rgba(25,53,96,.38),rgba(8,23,51,.26));
}
body[data-theme="glass"] #modal-root .v62-honor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 11px;}
body[data-theme="glass"] #modal-root .v62-honor-heading strong{font-size:11px;letter-spacing:1.35px;color:#9dc9ff;}
body[data-theme="glass"] #modal-root .v62-honor-heading span{font-size:11px;color:#91afce;}
body[data-theme="glass"] #modal-root .v62-honor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
body[data-theme="glass"] #modal-root .v62-honor{display:grid;grid-template-columns:39px minmax(0,1fr) 28px;align-items:center;gap:9px;padding:10px;border:1px solid rgba(166,205,255,.16);border-radius:10px;min-width:0;background:rgba(10,27,58,.42);}
body[data-theme="glass"] #modal-root .v62-honor-1{border-color:rgba(250,211,108,.37);background:linear-gradient(135deg,rgba(241,185,76,.13),rgba(12,34,68,.30));}
body[data-theme="glass"] #modal-root .v62-honor-2{border-color:rgba(193,219,255,.32);background:linear-gradient(135deg,rgba(176,207,255,.10),rgba(12,34,68,.30));}
body[data-theme="glass"] #modal-root .v62-honor-3{border-color:rgba(242,153,104,.32);background:linear-gradient(135deg,rgba(226,120,70,.11),rgba(12,34,68,.30));}
body[data-theme="glass"] #modal-root .v62-honor-rank{display:grid;place-items:center;width:39px;height:44px;}
body[data-theme="glass"] #modal-root .v62-honor-rank .rank-holder,body[data-theme="glass"] #modal-root .v62-honor-rank img{max-width:38px;width:38px;height:38px;object-fit:contain;image-rendering:pixelated;}
body[data-theme="glass"] #modal-root .v62-honor-name{min-width:0;display:flex;flex-direction:column;gap:3px;}
body[data-theme="glass"] #modal-root .v62-honor-name strong{font-size:12px;color:#eef6ff;line-height:1.2;}
body[data-theme="glass"] #modal-root .v62-honor-name span{font-size:11px;color:#a9c2df;line-height:1.2;}
body[data-theme="glass"] #modal-root .v62-honor>b{font-size:15px;text-align:right;color:#c7daef;}
body[data-theme="glass"] #modal-root .v62-honor-1>b{color:#f3d07b;}
body[data-theme="glass"] #modal-root .v62-honor-2>b{color:#c7def8;}
body[data-theme="glass"] #modal-root .v62-honor-3>b{color:#f4ac81;}
@media(max-width:970px){body[data-theme="glass"] #modal-root .v62-honor-grid{grid-template-columns:1fr;}}
@media(max-width:560px){body[data-theme="glass"] #modal-root .v62-honor-heading{align-items:flex-start;flex-direction:column;gap:3px;}}


/* V63 — balanced Guild icon rows, and enlarged single-line Personal icon art. */
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs.v63-personal-icons{
  display:grid!important;
  grid-template-columns:repeat(var(--v63-icon-cols),minmax(0,1fr))!important;
  grid-template-rows:1fr!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  width:min(100%,calc(var(--v63-icon-cols) * 34px))!important;
  gap:3px!important;
  justify-self:end!important;
  justify-content:end!important;
  align-items:center!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v63-personal-icons button{
  width:100%!important;max-width:31px!important;min-width:0!important;
  height:auto!important;aspect-ratio:1!important;min-height:0!important;
  border-radius:7px!important;padding:1px!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v63-personal-icons button img{
  width:100%!important;height:100%!important;max-width:28px!important;max-height:28px!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs.v63-guild-icons{
  display:grid!important;
  grid-template-columns:repeat(var(--v63-icon-cols),minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  grid-auto-flow:row!important;
  width:min(100%,calc(var(--v63-icon-cols) * 32px))!important;
  justify-self:end!important;justify-content:end!important;
  justify-items:center!important;align-items:center!important;
  gap:4px!important;
  padding:0!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v63-guild-icons button{
  width:100%!important;max-width:28px!important;height:auto!important;aspect-ratio:1!important;min-width:0!important;min-height:0!important;
  flex:none!important;border-radius:7px!important;padding:1px!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v63-guild-icons button img{
  width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;
}
/* Allocate room to the icons while keeping names and record totals on one line. */
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v5-metric-champion,
body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v5-metric-row{
  grid-template-columns:37px minmax(80px,.7fr) minmax(0,2.65fr) minmax(30px,max-content)!important;
}
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v5-metric-champion,
body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v5-metric-row{
  grid-template-columns:37px minmax(82px,.85fr) minmax(0,2.4fr) minmax(32px,max-content)!important;
}
/* Player-supplied portrait and simple country label. */
body[data-theme="glass"] #modal-root .v63-name-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;}
body[data-theme="glass"] #modal-root .v63-profile-country{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:3px 5px;border-radius:7px;background:rgba(138,186,248,.12);border:1px solid rgba(193,224,255,.22);}
body[data-theme="glass"] #modal-root .v63-profile-country img{width:25px;height:auto;min-width:25px;image-rendering:pixelated;object-fit:contain;}
body[data-theme="glass"] #modal-root .v5-profile-emblem.v63-special-emblem{display:grid;place-items:center;overflow:hidden;}
body[data-theme="glass"] #modal-root .v63-owner-head{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;}
body[data-theme="glass"] #modal-root .v59-dc-achievement.v63-score-record{border-color:rgba(251,211,121,.28);background:linear-gradient(130deg,rgba(255,191,80,.08),rgba(18,44,82,.22));}
body[data-theme="glass"] #modal-root .v59-dc-achievement.v63-score-record small{color:#e0cda9;}
@media(max-width:700px){
 body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v48-metric-dcs.v63-personal-icons{width:min(100%,calc(var(--v63-icon-cols) * 26px))!important;gap:2px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v63-personal-icons button{max-width:24px!important;border-radius:5px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-personal-records .v63-personal-icons button img{max-width:21px!important;max-height:21px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v48-metric-dcs.v63-guild-icons{grid-template-columns:repeat(var(--v63-icon-cols),minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:2px!important;width:min(100%,calc(var(--v63-icon-cols) * 23px))!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v63-guild-icons button{width:100%!important;max-width:21px!important;height:auto!important;aspect-ratio:1!important;min-width:0!important;border-radius:5px!important;}
 body[data-theme="glass"] #content .v5-metric-grid.v58-guild-records .v63-guild-icons button img{width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;}
}
/* Keep the supplied pixel-head fully visible inside the site's profile icon frame. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .v5-profile-emblem.v63-special-emblem img.v63-owner-head{
 width:54px;height:54px;max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated;
}


/* V64 — avoid wrapping even the longest valid GrowID in profile headers. */
@media(min-width:931px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{
  grid-template-columns:minmax(350px,370px) minmax(0,1fr) 38px;
  gap:12px;
 }
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon{max-width:none;min-width:0;}
 body[data-theme="glass"] #modal-root .v60-profile-quickstats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-width:0;}
 body[data-theme="glass"] #modal-root .v60-quickstat{grid-template-columns:29px minmax(0,1fr);gap:5px;padding:8px 7px;min-height:62px;}
 body[data-theme="glass"] #modal-root .v60-quickstat-icon img{width:29px;height:29px;}
}
body[data-theme="glass"] #modal-root .v60-profile-head .title-icon h2{
 white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
 font-size:clamp(20px,2vw,26px);letter-spacing:-.55px;
}
body[data-theme="glass"] #modal-root .v60-stat-text small{
 font-size:10px;letter-spacing:.25px;line-height:1.2;color:#bbd8f4;
}
body[data-theme="glass"] #modal-root .v60-quickstat{
 border:1px solid rgba(184,219,255,.31);
 background:radial-gradient(ellipse at 22% 0%,rgba(184,225,255,.14),transparent 76%),linear-gradient(145deg,rgba(103,166,242,.19),rgba(14,35,69,.53));
 box-shadow:inset 0 1px rgba(255,255,255,.18),0 4px 14px rgba(0,9,28,.13);
}
@media(min-width:931px) and (max-width:1120px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{
  grid-template-columns:minmax(324px,340px) minmax(0,1fr) 36px;gap:9px;
 }
 body[data-theme="glass"] #modal-root .v60-quickstat{grid-template-columns:25px minmax(0,1fr);gap:4px;padding:7px 5px;min-height:59px;}
 body[data-theme="glass"] #modal-root .v60-quickstat-icon img{width:25px;height:25px;}
 body[data-theme="glass"] #modal-root .v60-stat-text small{font-size:9px;}
 body[data-theme="glass"] #modal-root .v60-stat-text b{font-size:19px;}
}
@media(max-width:930px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{
  grid-template-columns:minmax(0,1fr) 40px;gap:8px;
 }
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon{grid-column:1;grid-row:1;max-width:none;}
 body[data-theme="glass"] #modal-root .v60-profile-head .close{grid-column:2;grid-row:1;}
 body[data-theme="glass"] #modal-root .v60-profile-quickstats{grid-column:1/-1;grid-row:2;}
}
@media(max-width:510px){
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon{min-width:0;}
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon>div{min-width:0;flex:1;}
 body[data-theme="glass"] #modal-root .v60-profile-head .title-icon h2{
  font-size:clamp(14px,4.5vw,21px)!important;max-width:100%;white-space:nowrap!important;
  overflow:hidden;text-overflow:ellipsis;letter-spacing:-.6px;
 }
 body[data-theme="glass"] #modal-root .v60-stat-text small{font-size:9px;}
}

/* V64 — larger, recognizably pixel-art completion checkmarks. */
body[data-theme="glass"] .cycle-list .v50-completed-mark{
 flex:0 0 25px!important;width:25px!important;height:25px!important;
}
body[data-theme="glass"] .cycle-list .v50-completed-mark img{
 width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;
 filter:drop-shadow(0 1px 3px rgba(88,219,132,.22));
}
body[data-theme="glass"] .cycle-list.cycle-multi .v50-completed-mark{
 flex-basis:20px!important;width:20px!important;height:20px!important;
}
body[data-theme="glass"] .cycle-list.cycle-multi .v50-completed-mark img{
 width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;
}

/* Consistent blue liquid-glass material for item capsules across dashboards. */
body[data-theme="glass"] :is(.cycle-list,.possible-grid,.v5-challenge-card) .v3-icon-capsule,
body[data-theme="glass"] .v5-metric-icon{
 border:1px solid rgba(185,224,255,.29);
 background:radial-gradient(circle at 27% 6%,rgba(210,238,255,.23),transparent 54%),linear-gradient(145deg,rgba(128,187,255,.17),rgba(37,72,132,.30));
 box-shadow:inset 0 1px rgba(255,255,255,.25),0 6px 18px rgba(5,24,57,.19);
}
body[data-theme="glass"] #quick-results .v64-search-hint{
 margin:10px 0 4px;padding:8px 12px;color:#b8d6f8;
 border-radius:10px;background:rgba(78,132,201,.14);font-size:12px;
}


/* V65 — persistent appearance settings, aliases and flag-style controls */
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header{position:relative;isolation:isolate;overflow:hidden;border-radius:17px}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{
 content:"";position:absolute;inset:-18px;z-index:-1;
 background-image:var(--v65-flag-url);background-repeat:no-repeat;
 background-position:center;background-size:cover;
 image-rendering:auto;opacity:.20;filter:blur(9px) saturate(135%);
 mask-image:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.94),rgba(0,0,0,.26));
 pointer-events:none;
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::after{
 content:"";position:absolute;inset:-18px;z-index:-1;
 background:linear-gradient(90deg,rgba(20,40,70,.12),rgba(21,44,83,.34));pointer-events:none;
}
body[data-theme="glass"] #modal-root .v65-verified{width:21px;height:21px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 4px #0005)}
body[data-theme="glass"] #modal-root .v47-dialog-admin [data-v65-admin-profile]{background:linear-gradient(135deg,rgba(153,204,255,.17),rgba(68,123,200,.16));color:#daeeff;border:1px solid rgba(195,226,255,.29);border-radius:10px;padding:8px 12px;font-weight:750;cursor:pointer}
body[data-theme="glass"] #modal-root .v47-dialog-admin [data-v65-admin-profile]:hover{background:rgba(145,204,255,.24)}
body[data-theme="glass"] #modal-root .dialog.v65-settings-dialog{width:min(760px,calc(100vw - 20px));max-height:90vh;overflow:auto;padding:22px}
body[data-theme="glass"] #modal-root .v65-settings-content{padding:8px 6px 20px;color:#d1e3f9}
body[data-theme="glass"] #modal-root .v65-settings-content p{font-size:13px;line-height:1.6;color:#a9c2e4}
body[data-theme="glass"] #modal-root .v65-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}
body[data-theme="glass"] #modal-root .v65-setting-grid label,
body[data-theme="glass"] #modal-root .v65-merge-form label{font-weight:740;font-size:12px;color:#c4dfff;display:flex;flex-direction:column;gap:8px}
body[data-theme="glass"] #modal-root .v65-settings-content select,
body[data-theme="glass"] #modal-root .v65-settings-content input[type=text],
body[data-theme="glass"] #modal-root .v65-settings-content input[type=file]{width:100%;min-width:0;color:#ebf5ff;background:rgba(7,20,42,.76);border:1px solid rgba(164,204,255,.27);border-radius:11px;padding:11px 10px;font-family:inherit;font-size:13px}
body[data-theme="glass"] #modal-root .v65-settings-content option{background:#122744;color:#fff}
body[data-theme="glass"] #modal-root .v65-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;color:#bcd7fb;margin-top:14px}
body[data-theme="glass"] #modal-root .v65-check img{width:27px;height:27px;object-fit:contain;image-rendering:pixelated}
body[data-theme="glass"] #modal-root .v65-settings-actions{display:flex;justify-content:flex-end;margin-top:14px}
body[data-theme="glass"] #modal-root .v65-settings-actions button,
body[data-theme="glass"] #modal-root .v65-merge-form button{color:#eaf6ff;border:1px solid rgba(183,225,255,.35);border-radius:11px;padding:11px 16px;cursor:pointer;background:linear-gradient(145deg,rgba(132,190,245,.30),rgba(39,95,166,.35));font-weight:800}
body[data-theme="glass"] #modal-root .v65-settings-content button:disabled{opacity:.5;cursor:wait}
body[data-theme="glass"] #modal-root .v65-settings-status{min-height:18px;color:#ffbdac;font-size:12px;margin-top:7px}
body[data-theme="glass"] #modal-root .v65-settings-divider{height:1px;background:rgba(182,218,255,.22);margin:19px 0}
body[data-theme="glass"] #modal-root .v65-settings-content h3{font-size:18px;margin:0}
body[data-theme="glass"] #modal-root .v65-merge-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:10px}
body[data-theme="glass"] #modal-root .v65-merge-list{border-radius:11px;background:rgba(8,24,49,.40);border:1px solid rgba(160,205,255,.15);padding:12px;font-size:12px}
body[data-theme="glass"] #modal-root .v65-merge-list>div{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:4px 0}
body[data-theme="glass"] #modal-root .v65-merge-list button{background:rgba(210,115,135,.14);color:#ffc4ce;border:1px solid #d6889950;padding:5px 9px;border-radius:6px;cursor:pointer}
@media(max-width:680px){body[data-theme="glass"] #modal-root .v65-setting-grid{grid-template-columns:1fr}body[data-theme="glass"] #modal-root .v65-merge-form{grid-template-columns:1fr}body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{background-size:cover;background-position:center}}


/* V66 — use a centered 16:11 crop for every pixel flag. */
body[data-theme="glass"] #modal-root .v63-profile-country{
  display:inline-flex;align-items:center;justify-content:center;
  width:37px;height:29px;min-width:37px;padding:2px 3px;box-sizing:border-box;
}
body[data-theme="glass"] #modal-root .v63-profile-country img{
  display:block;width:30px;height:21px;min-width:0;max-width:100%;max-height:100%;
  object-fit:contain;object-position:center center;image-rendering:pixelated;
}
/* Background flags remain recognizable near the profile identity, fading off to the right.
   Use physical flag geometry rather than 'cover' (which cropped away emblems/crosses). */
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(118deg,rgba(44,89,151,.38),rgba(25,52,98,.24))!important;
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:var(--v65-flag-url);
  background-position:left center;
  background-size:clamp(360px,72%,760px) 100%;
  background-repeat:no-repeat;
  image-rendering:pixelated;opacity:.74;filter:saturate(122%) contrast(1.04);
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.98) 0%,rgba(0,0,0,.98) 42%,rgba(0,0,0,.82) 60%,rgba(0,0,0,.38) 78%,transparent 94%);
  mask-image:linear-gradient(to right,rgba(0,0,0,.98) 0%,rgba(0,0,0,.98) 42%,rgba(0,0,0,.82) 60%,rgba(0,0,0,.38) 78%,transparent 94%);
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    linear-gradient(to right,rgba(9,20,40,.18) 0%,rgba(13,28,54,.10) 24%,rgba(13,28,54,.18) 54%,rgba(15,31,58,.38) 76%,rgba(18,37,71,.18) 100%),
    linear-gradient(to bottom,rgba(255,255,255,.05),rgba(255,255,255,0));
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header > *{
  position:relative;z-index:1;
}
@media(max-width:700px){
 body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{
   background-size:clamp(250px,88%,520px) 100%;
   background-position:left center;
   opacity:.66;
 }
}
/* Minimal recent-search history, matching V5 result panels. */
body[data-theme="glass"] #modal-root .v66-recent-searches{display:grid;gap:6px;margin-top:12px}
body[data-theme="glass"] #modal-root .v66-recent-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0 8px;gap:10px}
body[data-theme="glass"] #modal-root .v66-recent-heading button{border:1px solid rgba(179,215,255,.25);color:#bcd7f3;background:rgba(124,177,240,.09);border-radius:8px;padding:7px 10px;cursor:pointer;font-size:12px}
body[data-theme="glass"] #modal-root .v66-recent-heading button:hover{background:rgba(160,203,255,.19)}
body[data-theme="glass"] #modal-root .v66-recent-row{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;background:rgba(28,53,90,.42);border:1px solid rgba(177,217,255,.15);color:#e4f1ff;border-radius:11px;text-align:left;cursor:pointer;font-weight:700}
body[data-theme="glass"] #modal-root .v66-recent-row img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}
body[data-theme="glass"] #modal-root .v66-recent-row small{font-size:11px;color:#aac8e9;white-space:nowrap;font-weight:600}
body[data-theme="glass"] #modal-root .v66-recent-row:hover{background:rgba(53,100,165,.45);border-color:rgba(184,224,255,.35)}

/* V69 — native vector country-flag ribbon, never the tiny Growtopia pixel flags. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header{
  position:relative;
  isolation:isolate;
  min-height:132px;
  padding:20px 19px;
  margin-bottom:11px;
  overflow:hidden;
  border-radius:17px;
  background:linear-gradient(110deg,rgba(55,95,154,.32),rgba(23,45,83,.62))!important;
  border:1px solid rgba(188,218,255,.21);
  box-shadow:inset 0 1px rgba(255,255,255,.13),0 10px 28px rgba(0,8,27,.17);
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:var(--gtt-standard-flag);
  background-size:100% 100%;
  background-position:left center;
  background-repeat:no-repeat;
  opacity:.65;
  filter:saturate(115%);
  image-rendering:auto;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 21%,rgba(0,0,0,.88) 38%,rgba(0,0,0,.60) 55%,rgba(0,0,0,.26) 73%,transparent 95%);
  mask-image:linear-gradient(90deg,#000 0%,#000 21%,rgba(0,0,0,.88) 38%,rgba(0,0,0,.60) 55%,rgba(0,0,0,.26) 73%,transparent 95%);
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(8,21,47,.35),rgba(10,25,50,.27) 38%,rgba(15,35,66,.10) 72%,rgba(20,39,74,.12)),linear-gradient(180deg,rgba(5,16,34,.05),rgba(4,11,26,.20));
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header > *{position:relative;z-index:1;}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header .title-icon h2,
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header .section-tag{
  text-shadow:0 1px 6px rgba(0,8,25,.48);
}
body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header .v60-quickstat{
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  background:linear-gradient(125deg,rgba(39,68,110,.55),rgba(16,35,67,.73));
  border-color:rgba(205,227,255,.28);
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v60-summary-layout{margin-top:14px;}
/* Slightly taller for all profiles, even when badge style is selected. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head:not(.v65-flag-header){min-height:116px;}
@media(max-width:870px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header{padding:17px 14px;min-height:160px;}
 body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{opacity:.60;}
}
@media(max-width:520px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header{min-height:188px;}
 body[data-theme="glass"] #modal-root .v60-profile-head.v65-flag-header::before{opacity:.53;}
}

/* V71: Render the complete national flag at its natural aspect ratio.
   V69 stretched 900:600 SVG to the header's ~8:1 shape, causing especially
   the Czech triangle to extend across the profile. A centered crop + fade
   preserves flag geometry, fades to the existing navy glass panel. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::before{
  inset:0;
  background-image:var(--gtt-standard-flag);
  background-position:left center;
  background-size:auto 220%; /* 3:2 flag ratio is preserved; never stretch to width */
  background-repeat:no-repeat;
  opacity:.70;
  filter:saturate(110%);
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 13%,rgba(0,0,0,.86) 20%,rgba(0,0,0,.52) 28%,rgba(0,0,0,.15) 36%,transparent 43%);
  mask-image:linear-gradient(to right,#000 0%,#000 13%,rgba(0,0,0,.86) 20%,rgba(0,0,0,.52) 28%,rgba(0,0,0,.15) 36%,transparent 43%);
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::after{
  background:linear-gradient(90deg,rgba(9,22,44,.24) 0%,rgba(13,30,58,.20) 34%,rgba(19,40,77,.08) 56%,rgba(19,40,77,.14) 100%);
}
@media(max-width:870px){
  body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::before{
    background-size:auto 180%;
    -webkit-mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.9) 20%,rgba(0,0,0,.3) 60%,transparent 88%);
    mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.9) 20%,rgba(0,0,0,.3) 60%,transparent 88%);
  }
}
@media(max-width:520px){
  body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::before{
    background-size:auto 155%;
    opacity:.57;
  }
}


/* V72: country-aware, infinitely-extendable ribbons. Recognizable flag
   geometry stays at the left at its original aspect ratio. Country-specific
   flat fields/bands continue to the right inside each vector asset. The
   entire composition fades continuously across the full profile width. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header{
  background:linear-gradient(110deg,rgba(47,88,148,.42),rgba(17,37,71,.74))!important;
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:var(--gtt-standard-flag);
  background-repeat:no-repeat;
  background-position:left center;
  background-size:auto 146%;
  opacity:.68;
  filter:saturate(115%) contrast(1.04);
  -webkit-mask-image:linear-gradient(to right,
       #000 0%,#000 13%,rgba(0,0,0,.96) 27%,
       rgba(0,0,0,.82) 42%,rgba(0,0,0,.57) 60%,
       rgba(0,0,0,.27) 78%,rgba(0,0,0,.07) 91%,transparent 100%);
  mask-image:linear-gradient(to right,
       #000 0%,#000 13%,rgba(0,0,0,.96) 27%,
       rgba(0,0,0,.82) 42%,rgba(0,0,0,.57) 60%,
       rgba(0,0,0,.27) 78%,rgba(0,0,0,.07) 91%,transparent 100%);
  pointer-events:none;
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(90deg,
    rgba(11,26,51,.30) 0%,rgba(14,30,55,.30) 30%,
    rgba(16,35,66,.19) 57%,rgba(16,36,70,.11) 82%,rgba(19,40,77,.04) 100%);
  pointer-events:none;
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header > *{
  position:relative;z-index:1;
}
@media(max-width:870px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::before{
  background-size:auto 124%;opacity:.58;
 }
}
@media(max-width:520px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head.v65-flag-header::before{
  background-size:auto 110%;opacity:.54;
 }
}

/* V73: compact five-metric profile header, including win rate. */
body[data-theme="glass"] #modal-root .v5-profile-dialog .v60-profile-quickstats.v73-profile-quickstats{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-width:0;
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat{
 grid-template-columns:27px minmax(0,1fr);gap:5px;min-width:0;
 min-height:60px;padding:7px 7px;border-radius:12px;
}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat-icon img{width:27px;height:27px}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text small{font-size:9px;letter-spacing:.15px;white-space:nowrap}
body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text b{font-size:20px;white-space:nowrap}
body[data-theme="glass"] #modal-root .v73-winrate{cursor:help;outline-offset:2px}
body[data-theme="glass"] #modal-root .v73-winrate:focus-visible{outline:2px solid #9ecbff}
body[data-theme="glass"] #modal-root .v73-percent-icon{
 display:grid;place-items:center;color:#c6eaff;font-weight:850;font-size:21px;
 text-shadow:0 1px 3px #061629;border-radius:9px;
 background:linear-gradient(145deg,rgba(91,190,240,.32),rgba(40,99,160,.24));
 border:1px solid rgba(155,228,255,.35);width:27px;height:27px;
}
body[data-theme="glass"] #modal-root .v73-info-mark{font-size:10px;color:#9dc8fb;vertical-align:1px}
body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{
 grid-template-columns:minmax(0,335px) minmax(0,1fr) 38px!important;
 gap:10px;
}
@media(min-width:931px) and (max-width:1130px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{grid-template-columns:minmax(0,300px) minmax(0,1fr) 36px!important;gap:8px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat{grid-template-columns:24px minmax(0,1fr);gap:3px;padding:6px 4px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat-icon img,
 body[data-theme="glass"] #modal-root .v73-percent-icon{width:24px;height:24px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text small{font-size:8px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-stat-text b{font-size:17px}
}
@media(max-width:930px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .dialog-head.v60-profile-head{grid-template-columns:minmax(0,1fr) 40px!important;gap:8px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats{grid-column:1/-1;grid-row:2}
}
@media(max-width:600px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat{min-height:56px;grid-template-columns:25px minmax(0,1fr);gap:4px}
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats .v60-quickstat-icon img,
 body[data-theme="glass"] #modal-root .v73-percent-icon{width:25px;height:25px}
}
@media(max-width:365px){
 body[data-theme="glass"] #modal-root .v5-profile-dialog .v73-profile-quickstats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.v73-floating-tooltip{
 position:fixed;z-index:99999;max-width:min(300px,calc(100vw - 20px));width:max-content;
 padding:11px 13px;border:1px solid rgba(173,217,255,.45);border-radius:11px;
 background:linear-gradient(150deg,rgba(25,54,94,.97),rgba(8,25,51,.98));
 color:#e5f2ff;font-size:12px;line-height:1.55;box-shadow:0 16px 42px #0008;
 pointer-events:none;
}
/* Small pixel flags next to player search results, including Recently Opened. */
body[data-theme="glass"] #modal-root .v73-search-name{display:inline-flex;align-items:center;gap:9px;min-width:0;flex:1;}
body[data-theme="glass"] #modal-root .v73-search-flag{display:inline-grid;place-items:center;flex:none;width:34px;height:25px;padding:2px 3px;
 border:1px solid rgba(179,220,255,.22);border-radius:6px;background:rgba(144,195,250,.1)}
body[data-theme="glass"] #modal-root .v73-search-flag img{display:block;width:27px;height:19px;object-fit:contain;image-rendering:pixelated}

/* Nov 1 V5 DC scoreboard + calendar parity: bots remain archived and visually flagged. */
body[data-theme=glass] .v5-calendar-jumps{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
body[data-theme=glass] .v5-calendar-jumps>.cal-today{width:auto;min-width:60px;height:34px;flex:0 0 auto;margin:0 0 0 4px;padding:0 11px;font-size:11px;font-weight:760;white-space:nowrap}
body[data-theme=glass] .v5-bot-flag{display:inline-flex;vertical-align:middle;align-items:center;margin-left:7px;padding:2px 6px;border:1px solid rgba(252,174,106,.7);border-radius:5px;background:rgba(104,48,26,.66);color:#ffd5ab;font-size:10px;font-weight:800;letter-spacing:.04em;line-height:1.25;white-space:nowrap}
body[data-theme=glass] .score-row.v5-bot-row{box-shadow:inset 2px 0 0 rgba(243,155,79,.72);background-image:linear-gradient(90deg,rgba(211,102,41,.09),transparent 75%)}
body[data-theme=glass] .v5-ranking-row .v5-bot-flag,body[data-theme=glass] .v5-history-minirow .v5-bot-flag{font-size:9px}
body[data-theme=glass] .calendar-panel .challenge-logo img[src*="calendar-nov30"]{object-fit:contain;image-rendering:pixelated}
@media(max-width:620px){body[data-theme=glass] .v5-calendar-jumps>.cal-today{min-width:50px;padding:0 7px}}
