/* GrowtopiaTools Spotlight — a page-flow search shelf, never a modal.
   Scoped to the Workbench shell; original layout and immersive editors keep
   their established controls until their own responsive search can be tested. */
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-context{
  display:none!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-actions .wb2-mobile-search{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 43px!important;
  min-width:43px!important;
  width:43px!important;
  max-width:43px!important;
  min-height:41px!important;
  height:41px!important;
  margin:0!important;
  padding:0!important;
  border-radius:12px!important;
  border:1px solid rgba(162,214,248,.36)!important;
  background:linear-gradient(145deg,rgba(100,154,220,.18),rgba(24,60,105,.30))!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-mobile-search .wb2-search-label{
  display:none!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-mobile-search .wb2-search-art{
  width:27px!important;height:27px!important;
  object-fit:contain!important;image-rendering:pixelated;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-mobile-search[aria-expanded="true"]{
  border-color:#a3e1ff!important;
  box-shadow:inset 0 0 0 1px rgba(169,227,255,.23)!important;
  background:rgba(71,139,200,.42)!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-mobile-search:focus-visible{
  outline:2px solid #b8eaff!important;outline-offset:2px!important;
}
/* Eliminating the floating second-tier search must reclaim its empty gap. */
@media(min-width:861px){
 html[data-gtt-design-mode="workbench"] body:not(
  [data-current-view="planner-v2"],
  [data-current-view="planner-v4"],
  [data-current-view="world-planner-v2"]
 ) .main-area>#content.content{
   padding-top:94px!important;
 }
}
/* Inline result shelf, part of #content's normal vertical flow. */
html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight{
  box-sizing:border-box;
  position:relative;
  isolation:isolate;
  z-index:3;
  width:min(100%,920px);
  max-width:920px;
  min-width:0;
  margin:0 auto 26px;
  border:1px solid rgba(177,222,255,.42);
  border-radius:19px;
  background:linear-gradient(160deg,rgba(30,66,112,.96),rgba(11,32,61,.97));
  box-shadow:0 16px 46px rgba(0,8,25,.20),inset 0 1px rgba(229,244,255,.13);
  color:#e9f6ff;
  overflow:hidden;
  text-align:left;
  animation:gss-enter .20s ease-out both;
}
@keyframes gss-enter{
 from{opacity:.25;transform:translateY(-7px)}
 to{opacity:1;transform:translateY(0)}
}
html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight *{
  box-sizing:border-box;
}
html[data-gtt-design-mode="workbench"] body #content .gss-top{
  display:flex;
  gap:10px;
  padding:16px 17px 12px;
  align-items:center;
}
html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  gap:11px;
  min-width:0;
  height:56px;
  padding:0 15px;
  border-radius:13px;
  background:rgba(4,18,39,.60);
  border:1px solid rgba(168,212,250,.43);
}
html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap:focus-within{
  border-color:#a8e5ff;
  box-shadow:0 0 0 3px rgba(118,191,250,.14);
}
html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap>img{
  flex:0 0 27px;width:27px;height:27px;
  object-fit:contain;image-rendering:pixelated;
}
html[data-gtt-design-mode="workbench"] body #content #gss-query{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  padding:0!important;
  margin:0!important;
  border:none!important;
  background:none!important;
  box-shadow:none!important;
  outline:none!important;
  font:500 17px/1.35 Inter,system-ui,sans-serif!important;
  color:#f2f9ff!important;
  caret-color:#9fe4ff;
}
html[data-gtt-design-mode="workbench"] body #content #gss-query::placeholder{
  color:#92b5d3!important;
}
html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap>kbd{
  flex:0 0 auto;
  padding:4px 7px;
  font:650 11px/1.1 system-ui,sans-serif;
  border-radius:6px;
  border:1px solid rgba(165,211,246,.25);
  color:#a6cee7;
  background:rgba(105,160,216,.13);
}
html[data-gtt-design-mode="workbench"] body #content .gss-close{
  flex:0 0 46px;
  width:46px;height:46px;
  display:grid;place-items:center;
  border-radius:12px;
  border:1px solid rgba(165,214,249,.27);
  background:rgba(82,141,196,.20);
  color:#d9efff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
html[data-gtt-design-mode="workbench"] body #content .gss-close:hover{
  background:rgba(105,170,223,.35);
}
html[data-gtt-design-mode="workbench"] body #content .gss-body{
  padding:0 17px 17px;
  min-height:76px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-start{
  display:flex;
  flex-direction:column;
  gap:10px;
  border-top:1px solid rgba(152,205,244,.19);
  padding:16px 6px 6px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-start-heading{
  color:#a8d5f6;font-size:10px;font-weight:820;letter-spacing:.12em;
}
html[data-gtt-design-mode="workbench"] body #content .gss-start p{
  margin:0!important;max-width:600px;color:#c1d9ed;
  font-size:13px;line-height:1.5;
}
html[data-gtt-design-mode="workbench"] body #content .gss-key-tips{
  display:flex;gap:16px;flex-wrap:wrap;
  margin-top:5px;color:#a4c7df;font-size:11px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-key-tips>span{
  display:inline-flex;align-items:center;gap:5px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-key-tips kbd{
  border:1px solid rgba(165,209,245,.24);
  padding:3px 5px;
  border-radius:5px;
  font:650 10px system-ui,sans-serif;
}
html[data-gtt-design-mode="workbench"] body #content .gss-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  border-bottom:1px solid rgba(162,209,245,.17);
  padding:5px 0 13px;
  margin-bottom:8px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 11px;
  min-height:32px;
  background:rgba(71,134,194,.12);
  border:1px solid rgba(149,202,245,.23);
  border-radius:10px;
  color:#b9d7ee;
  font:750 12px/1.2 system-ui,sans-serif;
  cursor:pointer;
}
html[data-gtt-design-mode="workbench"] body #content .gss-tab.is-active{
  border-color:rgba(166,228,255,.69);
  background:rgba(90,162,220,.30);
  color:#f0fbff;
}
html[data-gtt-design-mode="workbench"] body #content .gss-tab span{
  font-size:10px;color:#a6d0e8;
}
html[data-gtt-design-mode="workbench"] body #content .gss-count{
  font-size:11px;color:#a5c8e3;margin:2px 0 8px 2px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-group{
  padding:11px 0 13px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-group + .gss-group{
  border-top:1px solid rgba(170,209,244,.16);
}
html[data-gtt-design-mode="workbench"] body #content .gss-group-head{
  display:flex;align-items:center;gap:10px;
  margin:0 0 10px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-group-head h3{
  margin:0!important;
  font-size:12px!important;
  font-weight:850!important;
  color:#b3daf4;
  text-transform:uppercase;
  letter-spacing:.06em;
}
html[data-gtt-design-mode="workbench"] body #content .gss-group-head>span{
  font-size:11px;color:#9fc8e3;
}
html[data-gtt-design-mode="workbench"] body #content .gss-results{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
html[data-gtt-design-mode="workbench"] body #content button.gss-result{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  padding:9px 10px;
  min-height:65px;
  border-radius:12px;
  border:1px solid rgba(157,206,245,.23);
  background:linear-gradient(135deg,rgba(93,157,213,.16),rgba(23,56,103,.25));
  text-align:left;
  color:#edf8ff;
  cursor:pointer;
}
html[data-gtt-design-mode="workbench"] body #content button.gss-result:hover,
html[data-gtt-design-mode="workbench"] body #content button.gss-result:focus-visible{
  border-color:#a6dcfc;
  background:linear-gradient(135deg,rgba(117,178,231,.30),rgba(42,94,147,.37));
  outline:none;
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-art{
  display:grid;
  flex:0 0 43px;
  place-items:center;
  width:43px;
  height:43px;
  padding:3px;
  border:1px solid rgba(166,215,248,.35);
  border-radius:11px;
  background:rgba(91,153,211,.16);
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-art img{
  display:block;
  width:36px;
  height:36px;
  object-fit:contain;
  image-rendering:pixelated;
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-art img[src^="https://"]{
  border-radius:7px;object-fit:cover;image-rendering:auto;
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-copy{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-copy strong{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  font:800 13px/1.2 system-ui,sans-serif;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-copy small{
  font:500 10.5px/1.3 system-ui,sans-serif;
  color:#aacde5;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
html[data-gtt-design-mode="workbench"] body #content .gss-verified{
  width:15px;height:15px;flex:0 0 15px;object-fit:contain;
}
html[data-gtt-design-mode="workbench"] body #content .gss-result-arrow{
  font-size:16px;color:#b4dcf7;
  flex:0 0 auto;
}
html[data-gtt-design-mode="workbench"] body #content .gss-more{
  display:block;
  margin:10px 0 0;
  padding:8px 11px;
  border-radius:9px;
  border:1px solid rgba(157,206,245,.30);
  background:rgba(69,135,195,.20);
  color:#c4e8ff;
  font:750 11px system-ui,sans-serif;
  cursor:pointer;
}
html[data-gtt-design-mode="workbench"] body #content .gss-more:hover{
  background:rgba(109,168,218,.30);
}
html[data-gtt-design-mode="workbench"] body #content .gss-load-note{
  margin:7px 2px!important;color:#b3d6ee;
  font-size:11px;line-height:1.4;
}
html[data-gtt-design-mode="workbench"] body #content .gss-exact{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  width:100%;
  padding:10px 13px;
  margin:13px 0 0;
  border:1px dashed rgba(144,205,246,.45);
  border-radius:10px;
  background:rgba(73,133,196,.14);
  color:#c9e6fa;
  font:650 12px/1.35 system-ui,sans-serif;
  text-align:left;
  cursor:pointer;
}
html[data-gtt-design-mode="workbench"] body #content .gss-exact small{
  flex:1 1 100%;
  font-size:10px;color:#91b8d6;
}
html[data-gtt-design-mode="workbench"] body #content .gss-no-results{
  padding:16px 8px;
  color:#c7e0f2;font-size:13px;
}
html[data-gtt-design-mode="workbench"] body #content .gss-refine{
  padding:9px 0;font-size:11px;color:#a9cbdf;
}
@media(max-width:860px){
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-actions .wb2-mobile-search{
   flex-basis:39px!important;width:39px!important;min-width:39px!important;height:40px!important;
 }
 html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight{
   width:100%;margin:0 0 18px;border-radius:16px;
 }
 html[data-gtt-design-mode="workbench"] body #content .gss-top{
   padding:12px 12px 9px;gap:8px;
 }
 html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap{
   padding:0 11px;height:50px;gap:7px;
 }
 html[data-gtt-design-mode="workbench"] body #content #gss-query{
   font-size:16px!important;height:48px!important;min-height:48px!important;
 }
 html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap>img{
   width:23px;height:23px;flex-basis:23px;
 }
 html[data-gtt-design-mode="workbench"] body #content .gss-input-wrap>kbd{display:none}
 html[data-gtt-design-mode="workbench"] body #content .gss-close{
   flex-basis:42px;width:42px;height:46px;
 }
 html[data-gtt-design-mode="workbench"] body #content .gss-body{
   padding:0 12px 12px;
 }
 html[data-gtt-design-mode="workbench"] body #content .gss-tab{padding:8px 9px;font-size:11px}
 html[data-gtt-design-mode="workbench"] body #content .gss-results{grid-template-columns:minmax(0,1fr)}
 html[data-gtt-design-mode="workbench"] body #content button.gss-result{
   min-height:60px;padding:7px 9px;
 }
}
/* Full-bleed editors intentionally hide their compact mobile search action.
   Do not add another control over their canvas or toolbars. */
@media(max-width:860px){
 html[data-gtt-design-mode="workbench"] body:is(
   [data-current-view="planner-v2"],
   [data-current-view="planner-v4"],
   [data-current-view="world-planner-v2"]
 ) #wb2-shell .wb2-actions .wb2-mobile-search{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight{animation:none}
}


/* Desktop search is an editable, always-visible header field. On small
   screens the one-tap magnifier remains, preserving room for navigation. */
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-desktop-search{
  display:none;
}
@media(min-width:1480px){
 html[data-gtt-design-mode="workbench"] body:not(
   [data-current-view="planner-v2"],
   [data-current-view="planner-v4"],
   [data-current-view="world-planner-v2"]
 ) #wb2-shell .wb2-actions .wb2-desktop-search{
   display:flex!important;
   box-sizing:border-box;
   align-items:center;
   gap:8px;
   flex:0 1 193px;
   width:193px;
   min-width:145px;
   max-width:220px;
   height:41px;
   padding:0 10px;
   border:1px solid rgba(162,214,248,.40);
   border-radius:12px;
   background:linear-gradient(145deg,rgba(100,154,220,.18),rgba(24,60,105,.30));
   cursor:text;
 }
 html[data-gtt-design-mode="workbench"] body:not(
   [data-current-view="planner-v2"],
   [data-current-view="planner-v4"],
   [data-current-view="world-planner-v2"]
 ) #wb2-shell .wb2-actions .wb2-mobile-search{
   display:none!important;
 }
 html[data-gtt-design-mode="workbench"] body[data-gtt-spotlight-header-mode] #content #gtt-spotlight .gss-top{
   display:none!important;
 }
 html[data-gtt-design-mode="workbench"] body[data-gtt-spotlight-header-mode] #content #gtt-spotlight .gss-body{
   padding-top:16px;
 }
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-desktop-search-art{
  flex:0 0 24px;
  width:24px;height:24px;
  object-fit:contain;
  image-rendering:pixelated;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-desktop-search:focus-within{
  border-color:#a3e1ff!important;
  box-shadow:inset 0 0 0 1px rgba(169,227,255,.23);
}
html[data-gtt-design-mode="workbench"] #wb2-shell input.wb2-desktop-search-input{
  display:block!important;
  flex:1 1 auto!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:37px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:none!important;
  background:transparent!important;
  box-shadow:none!important;
  font:600 12px/1.2 system-ui,sans-serif!important;
  color:#eef8ff!important;
  caret-color:#a3e1ff;
}
html[data-gtt-design-mode="workbench"] #wb2-shell input.wb2-desktop-search-input::placeholder{
  color:#b5d1e6!important;
  opacity:1;
}
@media(prefers-reduced-motion:reduce){
 html[data-gtt-design-mode="workbench"] body #content #gtt-spotlight{
   scroll-behavior:auto;
 }
}
