/*
 * Category icons & saved-page favorites shared by ORIGINAL sidebar and
 * horizontal topbar. All graphics are user-supplied Growtopia sprites.
 * This only affects navigation; never page interiors or planner renderers.
 */

/* Original sidebar: category headings now use the exact same sprites as topbar. */
#sidebar .v48-section-toggle .gtt-section-heading-label {
 display:inline-flex!important;align-items:center!important;
 gap:9px!important;min-width:0!important;line-height:1.3!important;
}
#sidebar .v48-section-toggle .gtt-section-heading-icon {
 display:block!important;flex:0 0 23px!important;
 width:23px!important;height:23px!important;
 object-fit:contain!important;image-rendering:pixelated!important;
}
#sidebar .gtt-fav-heading-image {
 display:block;width:19px;height:20px;flex:0 0 19px;
 object-fit:contain;image-rendering:pixelated;
}
#sidebar .gtt-fav-edit-instruction {
 font-size:11px;line-height:1.5;color:#a6cde5;
 margin:0 0 1px;
}
#sidebar .gtt-fav-choice-group h4 {
 font-size:12px!important;letter-spacing:.03em!important;
 color:#c7e6fa!important;font-weight:850!important;
 margin:9px 0 5px!important;padding:4px 0 6px!important;
 border-bottom:1px solid rgba(169,216,247,.23);
 text-transform:none!important;
}
#sidebar .gtt-fav-choice {
 display:grid!important;
 grid-template-columns:27px minmax(0,1fr) 21px!important;
 align-items:center!important;gap:9px!important;
 min-height:43px!important;padding:7px 10px!important;
}
#sidebar .gtt-fav-choice-icon,
#sidebar .gtt-fav-choice-icon-fallback {
 display:block;object-fit:contain;
 width:26px;height:26px;max-width:26px;max-height:26px;
 image-rendering:pixelated;flex:none;
}
#sidebar .gtt-fav-choice-icon-fallback {
 text-align:center;color:#92c8e9;font-size:17px;
}
#sidebar .gtt-fav-choice-title {
 min-width:0;overflow-wrap:anywhere;font-size:11.5px!important;
}
#sidebar .gtt-fav-choice-star {
 display:block;width:18px;height:19px;object-fit:contain;
 image-rendering:pixelated;opacity:.26;
 filter:grayscale(1);transition:opacity .15s ease,filter .15s ease;
}
#sidebar .gtt-fav-choice:hover .gtt-fav-choice-star {
 opacity:.72;filter:none;
}
#sidebar .gtt-fav-choice.selected .gtt-fav-choice-star {
 opacity:1;filter:none;
}

/* Compact Favorites tab: sprite and optional numeric count, no long label.
   Accessible name remains "Favorites" and native keyboard activation works. */
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] {
 min-width:42px!important;max-width:64px!important;
 min-height:42px!important;
 padding:0 7px!important;gap:3px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-nav-name,
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-nav-chevron {
 display:none!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-nav-mark {
 width:23px!important;height:25px!important;
 min-width:23px!important;flex-basis:23px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-nav-img {
 width:23px!important;height:24px!important;
 max-width:23px!important;max-height:24px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-fav-count {
 min-width:15px;height:16px;padding:0 3px;font-size:9px;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"]::after {
 display:none!important;
}

/* Each topbar dropdown route is distinct from its clickable star; clicking
   the star never navigates away from the current section. */
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-row {
 display:grid;grid-template-columns:minmax(0,1fr) 38px;
 align-items:center;gap:2px;min-width:0;
 padding-right:5px;border-radius:10px;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-row:hover {
 background:rgba(116,171,225,.09);
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-row>.wb2-menu-item {
 min-width:0;width:100%!important;
 border-radius:9px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star {
 display:grid;place-items:center;
 width:34px;height:35px;border:1px solid transparent;
 background:transparent;border-radius:9px;
 cursor:pointer;padding:5px;
 transition:background .15s,border-color .15s;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-star-art {
 display:block;width:20px;height:21px;object-fit:contain;
 image-rendering:pixelated;opacity:.29;
 filter:grayscale(1);transition:opacity .15s,filter .15s;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star:hover,
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star:focus-visible {
 background:rgba(112,183,248,.16);border-color:rgba(160,209,252,.33);
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star:hover .wb2-star-art,
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star:focus-visible .wb2-star-art {
 opacity:.85;filter:none;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star.is-saved .wb2-star-art {
 opacity:1;filter:none;
}

/* Topbar edit list: named categories, original page icon and filled star. */
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-popover.is-favorites {
 width:min(392px,calc(100vw - 24px))!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-instruction {
 color:#b4d7ee;font-size:11.5px;line-height:1.45;
 margin:1px 15px 9px;max-width:340px;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-scroll {
 display:flex!important;flex-direction:column!important;gap:3px!important;
 max-height:min(55dvh,525px)!important;
 overflow-y:auto!important;overscroll-behavior:contain;
 padding:7px 9px 12px!important;scrollbar-width:thin;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-section {
 display:grid;gap:3px;padding:0 1px 10px;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-section+.wb2-fav-section {
 border-top:1px solid rgba(173,215,246,.18);padding-top:10px;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-group-heading {
 margin:2px 5px 5px!important;padding:0!important;
 font-size:13px!important;line-height:1.35!important;
 font-weight:850!important;letter-spacing:-.01em!important;
 color:#c9eafa!important;text-transform:none!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice {
 display:grid!important;
 grid-template-columns:32px minmax(0,1fr) 24px!important;
 align-items:center!important;gap:9px!important;
 min-height:43px!important;padding:6px 10px!important;
 border-radius:9px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice .wb2-menu-icon {
 width:28px!important;height:28px!important;
 object-fit:contain!important;image-rendering:pixelated;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice-star {
 display:block;width:21px;height:22px;object-fit:contain;
 image-rendering:pixelated;opacity:.26;filter:grayscale(1);
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice:hover .wb2-fav-choice-star {
 opacity:.77;filter:none;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice.is-selected .wb2-fav-choice-star {
 opacity:1;filter:none;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice.is-selected {
 border-color:rgba(152,217,255,.34)!important;
 background:rgba(89,157,220,.18)!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-footer {
 position:relative!important;
 bottom:auto!important;
 padding:10px 12px 12px!important;
 border-top:1px solid rgba(180,216,250,.23);
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-manage {
 min-height:39px!important;
}

@media(max-width:780px){
 #sidebar .gtt-fav-choice {min-height:45px!important}
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-popover.is-favorites {
  width:min(370px,calc(100vw - 16px))!important;
 }
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-scroll {
  max-height:min(58dvh,500px)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #sidebar .gtt-fav-choice-star,
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-menu-star,
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-star-art {
  transition:none!important;
 }
}


/* 2026-11-11: larger icon artwork, unchanged typography/button dimensions.
   Shared with the sidebar and horizontal navigation for visual parity. */
#sidebar .v48-section-toggle .gtt-section-heading-icon {
  width:28px!important;height:28px!important;flex:0 0 28px!important;
}
#sidebar .gtt-fav-heading-image {
  width:23px!important;height:24px!important;flex:0 0 23px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-mark {
  width:28px!important;min-width:28px!important;flex:0 0 28px!important;
  height:30px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-img {
  width:27px!important;height:27px!important;
  max-width:27px!important;max-height:27px!important;
  object-fit:contain!important;image-rendering:pixelated!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-nav-mark {
  width:26px!important;min-width:26px!important;flex-basis:26px!important;
  height:28px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell
.wb2-nav-button[data-wb2-group="favorites"] .wb2-nav-img {
  width:26px!important;height:27px!important;
  max-width:26px!important;max-height:27px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-star-art {
  width:23px!important;height:24px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-fav-choice-star {
  width:24px!important;height:25px!important;
}
#sidebar .gtt-fav-choice-star {
  width:21px!important;height:22px!important;
}
@media(max-width:780px){
  #sidebar .v48-section-toggle .gtt-section-heading-icon {
    width:27px!important;height:27px!important;flex-basis:27px!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-mark{
    width:25px!important;min-width:25px!important;flex-basis:25px!important;
    height:27px!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-nav-img{
    width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;
  }
}
