/* Home shortcuts alone: align with the SMS heading and move slightly left; retain sizes and gutters. */
:is(#v436#v436#v436#v436#v436,html) body .v43-main table:has(.v31-home) {
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  transform:none!important;
  left:-6px!important;
  /* Offset the legacy wrapper's 5px top padding to match the menu heading. */
  top:-5px!important;
  border-spacing:0!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home>colgroup {
  display:none!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home>tbody {
  --v436-gap:clamp(18px,2vw,32px);
  display:grid!important;
  /* 81% of each original (available width - two gutters) / 3 column. */
  grid-template-columns:repeat(3,minmax(0,calc(27% - var(--v436-gap) * .54)))!important;
  row-gap:calc(var(--v436-gap) * .475)!important;
  /* Visible gap = grid gap + 5% of a column (centered scale .95).
     New grid gap = .7 * old grid gap - .015 * column width. */
  column-gap:calc(var(--v436-gap) * .3406 - .405%)!important;
  justify-content:start!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home>tbody>tr {
  display:contents!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home>tbody>tr>td:not(.v31-tile) {
  display:none!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home td.v31-tile {
  display:block!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home td.v31-tile>a {
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:2.84;
  box-sizing:border-box!important;
  /* Keep text fitting and card size; anchor the visible top to its grid row. */
  transform:scale(.95)!important;
  transform-origin:center top!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home td.v31-tile>a>p {
  max-width:calc(100% - 12px)!important;
  margin:2px 6px!important;
}
:is(#v436#v436#v436#v436#v436,html) body table.v31-home .v362-label {
  /* Keep long captions inside the same card after framed navigation. */
  white-space:nowrap!important;
  padding-bottom:0!important;
  line-height:1.1!important;
  text-align:center!important;
  overflow-wrap:break-word;
}
@media(max-width:700px) {
  :is(#v436#v436#v436#v436#v436,html) body table.v31-home>tbody {
    grid-template-columns:repeat(2,minmax(0,calc(40.5% - var(--v436-gap) * .405)))!important;
    column-gap:calc(var(--v436-gap) * .338575 - .6075%)!important;
  }
}
@media(max-width:420px) {
  :is(#v436#v436#v436#v436#v436,html) body table.v31-home>tbody {
    grid-template-columns:minmax(0,81%)!important;
  }
}
