#quickLinks:is(.style-panel, .style-outline) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 max(0px, calc(14px - var(--app-shell-inline-padding, 14px)));
}

#quickLinks.style-panel {
  background: transparent;
}

#quickLinks:is(.style-panel, .style-outline).is-framed {
  padding: 8px;
  border-color: var(--section-local-border, var(--section-border));
}

#quickLinks:is(.style-panel, .style-outline).has-section-background {
  background: var(--section-local-background, var(--section-background));
}

#quickLinks:is(.style-panel, .style-outline) > .shortcut-grid-items {
  display: grid;
  min-width: 0;
}

#quickLinks:is(.style-panel, .style-outline) > .shortcut-grid-items > a {
  width: auto;
  grid-column: auto;
  justify-self: stretch;
  min-height: 44px;
}

#quickLinks:is(.style-panel, .style-outline) .shortcut-head > span,
#quickLinks.style-panel small {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

#quickLinks:is(.style-panel, .style-outline) .shortcut-icon.is-missing {
  display: grid;
}

#quickLinks:is(.style-panel, .style-outline) .shortcut-icon.is-missing > img {
  visibility: hidden;
}

#quickLinks.style-panel > .shortcut-grid-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 12px;
  margin-inline: 11px;
}

@media (max-width: 359px) {
  #quickLinks.style-panel > .shortcut-grid-items {
    margin-inline: 6px;
  }
}

#quickLinks.style-panel > .shortcut-grid-items > a {
  aspect-ratio: 1;
  align-content: start;
  padding: 0 0 13px;
  border: 4px solid #fdfdfd;
  border-radius: 29px;
  background: var(--shortcut-panel-surface, #f4f4f4);
  text-align: left;
  box-shadow: 0 2px 5px rgb(37 50 54 / 12%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#quickLinks.style-panel a:active {
  transform: translateY(2px) scale(.985);
  box-shadow: 0 1px 3px rgb(37 50 54 / 10%);
}

#quickLinks.style-panel .shortcut-head {
  gap: 0;
}

#quickLinks.style-panel .shortcut-icon {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  overflow: hidden;
  border-radius: 24px;
  background: var(--shortcut-panel-icon-background, var(--shortcut-panel-tone, #244c54));
}

#quickLinks.style-panel a:nth-child(3n + 2) {
  --shortcut-panel-tone: #35635b;
}

#quickLinks.style-panel a:nth-child(3n) {
  --shortcut-panel-tone: #4d5950;
}

#quickLinks.style-panel .shortcut-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(177deg, rgb(255 255 255 / 66%) 0, rgb(255 255 255 / 20%) 2px, transparent 9px),
    linear-gradient(143deg, transparent 61%, rgb(255 255 255 / 8%) 63%, rgb(255 255 255 / 48%) 64%, rgb(255 255 255 / 29%) 69%, transparent 73%);
  background-repeat: no-repeat;
  mask-image: linear-gradient(#000, rgb(0 0 0 / 85%) 23%, transparent 57%);
}

#quickLinks.style-panel .shortcut-icon > :is(svg, img[src^="/assets/icons/"]) {
  width: 32px;
  height: 32px;
  color: var(--shortcut-panel-icon, #edf5f2);
}

#quickLinks.style-panel .shortcut-icon:has(> img:not([src^="/assets/icons/"])) {
  background: #f6f6f8;
}

#quickLinks.style-panel .shortcut-icon > img:not([src^="/assets/icons/"]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#quickLinks.style-panel .shortcut-head > span {
  padding: 15px 13px 0;
  color: var(--shortcut-panel-title, #5e696b);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 550;
}

#quickLinks.style-panel small {
  margin: 6px 13px 0;
  color: var(--shortcut-panel-description, #304146);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
}

@media (prefers-reduced-motion: no-preference) {
  #quickLinks.style-panel[data-shortcut-tilt-active] .shortcut-icon {
    transform: perspective(520px) rotateX(var(--shortcut-tilt-x, 0deg)) rotateY(var(--shortcut-tilt-y, 0deg));
  }

  #quickLinks.style-panel[data-shortcut-tilt-active] .shortcut-icon > img:not([src^="/assets/icons/"]) {
    transform: translate(var(--shortcut-tilt-photo-x, 0%), var(--shortcut-tilt-photo-y, 0%)) scale(var(--shortcut-tilt-photo-scale, 1));
  }

  #quickLinks.style-panel[data-shortcut-tilt-active] .shortcut-icon::after {
    --light-offset: var(--shortcut-tilt-light, 0%);
    background-image:
      linear-gradient(180deg, rgb(255 255 255 / 47%), transparent 8px),
      linear-gradient(143deg, transparent calc(49% + var(--light-offset)), rgb(255 255 255 / 40%) calc(64% + var(--light-offset)), rgb(255 255 255 / 27%) calc(69% + var(--light-offset)), transparent calc(84% + var(--light-offset)));
    mask-image: linear-gradient(#000 23%, transparent 68%);
  }
}

#quickLinks.style-outline > .shortcut-grid-items {
  grid-template-columns: repeat(var(--shortcut-columns), minmax(0, 1fr));
}

#quickLinks.style-outline > .shortcut-grid-items > a {
  min-height: 96px;
  padding: 9px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

#quickLinks.style-outline small {
  display: none;
}

#quickLinks.style-outline a:active {
  transform: none;
}

#quickLinks.style-outline .shortcut-icon {
  width: 52px;
  max-width: 100%;
  height: 52px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--shortcut-icon) 32%, #d5ded9);
  border-radius: 8px;
  background: var(--shortcut-outline-icon-background, #f8faf9);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#quickLinks.style-outline a:active .shortcut-icon {
  transform: scale(.96);
  border-color: var(--shortcut-icon);
  background: color-mix(in srgb, var(--shortcut-icon) 17%, var(--shortcut-icon-background));
}

#quickLinks.style-outline .shortcut-icon > :is(svg, img[src^="/assets/icons/"]) {
  width: 26px;
  height: 26px;
}

#quickLinks.style-outline .shortcut-icon > img:not([src^="/assets/icons/"]) {
  width: 44px;
  max-width: 100%;
  height: 44px;
  border-radius: 5px;
  object-fit: contain;
}

#quickLinks.style-outline .shortcut-head > span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

#quickLinks:is(.style-panel, .style-outline) > .shortcut-grid-items > a:focus-visible {
  position: relative;
  outline: 2px solid #17211c;
  outline-offset: 2px;
  z-index: 1;
}

#quickLinks:is(.style-panel, .style-outline) > .shortcut-grid-items > a:focus-visible::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid #fff;
  border-radius: inherit;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #quickLinks:is(.style-panel, .style-outline) a,
  #quickLinks.style-outline .shortcut-icon {
    transition: none;
  }

  #quickLinks.style-panel a:active,
  #quickLinks.style-outline a:active .shortcut-icon {
    transform: none;
  }
}
