.home-launcher {
  --home-launcher-ink: #173e34;
  --home-launcher-muted: #62766c;
  margin: 24px 0 32px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #d8e3d9;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #f8fbf5 100%);
  color: var(--home-launcher-ink);
  container-type: inline-size;
}
.home-launcher [hidden] { display: none !important; }
.home-launcher-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.home-launcher-kicker { margin: 0 0 8px; color: #4d7561; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.home-launcher h2 { margin: 0 0 8px; font-size: clamp(21px, 2.3vw, 28px); font-weight: 650; letter-spacing: -.65px; line-height: 1.22; }
.home-launcher-intro { margin: 0; color: var(--home-launcher-muted); font-size: 13px; line-height: 1.5; }
.home-launcher-search { flex: 0 1 310px; min-width: 230px; }
.home-launcher-search label { display: block; margin-bottom: 7px; color: #456452; font-size: 13px; }
.home-launcher-search-field { position: relative; }
.home-launcher-search-field > svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: #6d8376; pointer-events: none; }
.home-launcher-search input { width: 100%; min-height: 48px; padding: 11px 12px 11px 39px; border: 1px solid #cddccf; border-radius: 12px; background: #fff; color: var(--home-launcher-ink); font-size: 16px; }
.home-launcher-search input::placeholder { color: #7b8c81; opacity: 1; }
.home-launcher-count { margin: 21px 0 0; font-size: 13px; color: var(--home-launcher-muted); }
.home-launcher-group { padding-top: 22px; margin-top: 22px; border-top: 1px solid #e0e8de; }
.home-launcher-group h3 { margin: 0 0 14px; color: #55705f; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.home-launcher-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
.home-launcher-app { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 116px; padding: 12px 5px 10px; border: 1px solid transparent; border-radius: 15px; background: transparent; color: var(--home-launcher-ink); text-align: center; text-decoration: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 140ms ease, border-color 140ms ease; }
.home-launcher-app:hover { background: #fff; border-color: #cfded1; }
.home-launcher-app:active { background: #edf4ea; }
.home-launcher-app:focus-visible { outline: 3px solid #39805b; outline-offset: 2px; background: #fff; }
.home-launcher-icon { flex: 0 0 55px; display: grid; place-items: center; width: 55px; height: 55px; border-radius: 17px; background: #d9eedf; color: #285c3f; box-shadow: inset 0 1px 0 #ffffffb3, 0 3px 5px #183e3008; }
.home-launcher-icon svg { display: block; width: 27px; height: 27px; }
.home-launcher-icon[data-home-theme="blue"] { background: #dfecf6; color: #315e7a; }
.home-launcher-icon[data-home-theme="amber"] { background: #f9eacb; color: #855d26; }
.home-launcher-icon[data-home-theme="teal"] { background: #d8eeeb; color: #2a6862; }
.home-launcher-icon[data-home-theme="purple"] { background: #eae3f6; color: #695482; }
.home-launcher-icon[data-home-theme="sand"] { background: #efe6db; color: #795a36; }
.home-launcher-icon[data-home-theme="slate"] { background: #e4e9ec; color: #50626c; }
.home-launcher-label { display: block; max-width: 160px; font-size: 13px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.home-launcher-empty { margin: 22px 0 0; padding: 24px 15px; border: 1px dashed #cddbcf; border-radius: 12px; color: var(--home-launcher-muted); text-align: center; font-size: 13px; }
.home-launcher-compact .home-launcher-head { margin-bottom: 20px; }
.home-launcher-all { min-height: 48px; margin-top: 18px; }
@media (max-width: 900px) {
  .home-launcher-head { align-items: stretch; flex-direction: column; gap: 17px; }
  .home-launcher-search { flex-basis: auto; min-width: 0; max-width: 420px; }
  .home-launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .home-launcher { padding: 19px 12px; margin: 20px 0 25px; border-radius: 17px; }
  .home-launcher-head { padding: 0 5px; }
  .home-launcher h2 { font-size: 23px; }
  .home-launcher-search { max-width: none; }
  .home-launcher-count { margin-left: 5px; }
  .home-launcher-group { margin-top: 18px; padding-top: 18px; }
  .home-launcher-group h3 { padding-left: 5px; font-size: 13px; letter-spacing: .6px; }
  .home-launcher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 2px; }
  .home-launcher-app { padding: 9px 2px 8px; min-height: 112px; gap: 8px; border-radius: 12px; }
  .home-launcher-icon { flex-basis: 53px; width: 53px; height: 53px; border-radius: 16px; }
  .home-launcher-label { max-width: 140px; font-size: 13px; line-height: 1.4; }
}
@media (max-width: 360px) { .home-launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The same launcher also opens inside a narrower menu dialog. */
@container (max-width: 700px) { .home-launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 500px) { .home-launcher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 310px) { .home-launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .home-launcher-app { transition: none; } }
@media print { .home-launcher { display: none !important; } }
