/* Quick Links shares the scrollable home .inner with the notification bell.
   Both controls now scroll away together instead of floating over unit cards. */
#screen-home .gi-quicklinks-trigger {
  position: absolute;
  top: 22px;
  left: 18px;
  z-index: 32;
  width: 34px;
  height: 34px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: var(--ink-70);
  background: transparent;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
}
#screen-home .gi-quicklinks-trigger svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#screen-home .gi-quicklinks-trigger:active,
#screen-home .gi-quicklinks-trigger[aria-expanded="true"] {
  background: var(--good-10);
  color: var(--good);
}
#screen-home .gi-quicklinks-trigger:active { transform: scale(.96); }
#screen-home .gi-quicklinks-trigger:focus-visible,
#screen-home .gi-quicklinks-close:focus-visible,
#screen-home .gi-quicklinks-link:focus-visible {
  outline: 2px solid var(--good);
  outline-offset: 2px;
}
#screen-home .gi-quicklinks-popover[hidden] { display: none !important; }
#screen-home .gi-quicklinks-popover {
  position: absolute;
  top: 66px;
  left: 18px;
  z-index: 31;
  width: min(344px, calc(100% - 36px));
  max-height: calc(100dvh - 174px - var(--safe-t) - var(--safe-b));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(27,42,74,.14);
}
#screen-home .gi-quicklinks-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 3px 12px;
  border-bottom: 1px solid var(--line);
}
#screen-home .gi-quicklinks-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
}
#screen-home .gi-quicklinks-hint {
  margin: 5px 0 0;
  color: var(--ink-70);
  font-size: 11px;
  line-height: 1.4;
}
#screen-home .gi-quicklinks-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-70);
  font-size: 23px;
  cursor: pointer;
}
#screen-home .gi-quicklinks-list {
  display: grid;
  gap: 0;
  padding-top: 8px;
}
#screen-home .gi-quicklinks-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-decoration: none;
}
#screen-home .gi-quicklinks-link:last-child { border-bottom: 0; }
#screen-home .gi-quicklinks-link:hover,
#screen-home .gi-quicklinks-link:active { background: var(--good-10); }
#screen-home .gi-quicklinks-icon { font-size: 21px; text-align: center; }
#screen-home .gi-quicklinks-copy { min-width: 0; }
#screen-home .gi-quicklinks-name {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
#screen-home .gi-quicklinks-detail {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-70);
  line-height: 1.4;
}
#screen-home .gi-quicklinks-external {
  color: var(--ink-45);
  font-size: 13px;
}
@media (max-width: 360px) {
  #screen-home .gi-quicklinks-popover { padding: 10px; }
  #screen-home .gi-quicklinks-link { padding: 8px 5px; }
}

/* Home Search reuses the bell's 34px tap target and 20px outline SVG,
   and shares the same scrollable Home container. */
#screen-home .gi-home-search-trigger {
  right: 60px; /* bell: right 18px; 8px space between the 34px buttons */
}
