

.shell {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.panel {
  position: relative;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.panel--dark {
  background: var(--dark);
  color: var(--on-dark);
}

.icon {
  width: 1em;
  height: 1em;
  font-size: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(
  .btn,
  .icon-btn,
  .nav__link,
  .chip-app,
  .app-row,
  .app-card,
  .catalog-card,
  .modal__close
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    color 300ms var(--ease-wave),
    scale 260ms var(--ease-out),
    translate 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}

:where(
  .btn,
  .nav__link,
  .chip-app,
  .app-row,
  .app-card,
  .catalog-card
)::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--wave, var(--ink));
  border-radius: 44% 56% 0 0 / 18% 18% 0 0;
  translate: 0 102%;

  transition:
    translate calc(var(--dur-wave) * 0.68) var(--ease-wave),
    border-radius calc(var(--dur-wave) * 0.68) var(--ease-wave);
}

:where(
  .btn,
  .nav__link,
  .chip-app,
  .app-row,
  .app-card,
  .catalog-card
):is(:hover, :focus-visible) {
  color: var(--wave-ink, var(--on-dark));
}

:where(
  .btn,
  .nav__link,
  .chip-app,
  .app-row,
  .app-card,
  .catalog-card
):is(:hover, :focus-visible)::before {
  border-radius: 0;
  translate: 0 0;
  transition-duration: var(--dur-wave);
}

:where(.btn, .icon-btn, .chip-app, .app-row, .app-card, .catalog-card, .modal__close):active {
  scale: 0.972;

  transition-duration: 90ms;
}

:where(.app-row, .app-card, .catalog-card):is(:hover, :focus-visible) {
  translate: 0 -2px;
  box-shadow: var(--shadow-lift);
}

:where(.chip-app):is(:hover, :focus-visible) {
  translate: 0 -2px;
  box-shadow: var(--shadow-lift);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-right: 12px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand--light {
  color: var(--on-dark);
}

.brand__word {
  position: relative;
}

.brand__word::after {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  bottom: 0.28em;
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  corner-shape: round;
  background: var(--accent);
  transition:
    left 240ms var(--ease-wave),
    width 240ms var(--ease-wave),
    height 240ms var(--ease-wave),
    bottom 240ms var(--ease-wave);
}

.brand:hover .brand__word::after,
.brand:focus-visible .brand__word::after {
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: 2px;
}

.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.dot--green {
  background: var(--green);
}

.dot--mint {
  background: var(--mint);
}

.dot--accent {
  background: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.pill .icon {
  font-size: 16px;
  color: var(--ink-soft);
}

.pill--green {
  min-height: 36px;
  padding: 0 13px;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.pill--light {
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.pill--light .icon {
  color: var(--ink);
}

.pill--glass {
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  background: var(--glass);
  color: #e6e6ec;
  font-size: 12px;
  font-weight: 600;
}

.pill--glass .icon {
  color: currentColor;
}

.pill--glass-sm {
  min-height: 34px;
  padding: 0 12px;
  background: var(--glass-soft);
  color: #dadae0;
  font-size: 11px;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn .icon {
  font-size: 16px;
  transition: translate 320ms var(--ease-wave);
}

.btn:hover .icon,
.btn:focus-visible .icon {
  translate: 3px 0;
}

.btn--dark {
  background: var(--ink);
  color: var(--on-dark);
  --wave: var(--accent);
  --wave-ink: var(--on-dark);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-dark);
  --wave: var(--accent-hover);
  --wave-ink: var(--on-dark);
}

.btn--light {
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  --wave: var(--ink);
  --wave-ink: var(--on-dark);

  &:hover {
    color: #fff;
  }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-pill);
}

.icon-btn .icon {
  font-size: 19px;
}

.icon-btn:is(:hover, :focus-visible) {
  scale: 1.06;
}

.icon-btn:active {
  scale: 0.972;
}

.icon-btn--accent {
  background: var(--accent);
  color: var(--on-dark);
}

.icon-btn--light {
  background: var(--surface);
  color: var(--ink);
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-pill);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-tile);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  box-shadow:
    inset 0 1px 0 #ffffff80,
    inset 0 0 0 1px #1111140a;
}

.tile--sm {
  width: 42px;
  height: 42px;
  border-radius: var(--r-tile-sm);
  font-size: 14px;
}

.tile--md {
  width: 48px;
  height: 48px;
}

.tile--lg {
  width: 82px;
  height: 82px;
  border-radius: var(--r-xs);
  font-size: 28px;
}

.tile--xl {
  width: 108px;
  height: 108px;
  border-radius: var(--r-lg);
  font-size: 38px;
}

.tile--ps { --tile-bg: var(--tile-ps); background: var(--tile-bg); }
.tile--ai { --tile-bg: var(--tile-ai); background: var(--tile-bg); }
.tile--bl { --tile-bg: var(--tile-bl); background: var(--tile-bg); }
.tile--dv { --tile-bg: var(--tile-dv); background: var(--tile-bg); }
.tile--ph { --tile-bg: var(--tile-ph); background: var(--tile-bg); }
.tile--ll { --tile-bg: var(--tile-ll); background: var(--tile-bg); }
.tile--ac { --tile-bg: var(--tile-ac); background: var(--tile-bg); }
.tile--fi { --tile-bg: var(--tile-fi); background: var(--tile-bg); }
.tile--no { --tile-bg: var(--tile-no); background: var(--tile-bg); }
.tile--ra { --tile-bg: var(--tile-ra); background: var(--tile-bg); }
.tile--rb { --tile-bg: var(--tile-rb); background: var(--tile-bg); }

.tile--lg.tile--ps,
.tile--xl.tile--ps {
  color: var(--tile-ps-ink);
}

.tile--icon {
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.tile__img {
  display: block;
  width: 100%;
  height: 100%;

  border-radius: 0;
  object-fit: cover;
}

.tile--fit-contain .tile__img {
  object-fit: contain;
  padding: 20%;
  border-radius: 0;
}

.tile--sm.tile--fit-contain .tile__img {
  padding: 21%;
}

.chip-app {
  gap: 10px;
  min-height: 58px;
  padding: 0 16px 0 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-chip);
  --wave: var(--accent);
  --wave-ink: var(--on-dark);
}

.chip-app .tile {
  transition: scale 380ms var(--ease-wave);
}

.chip-app:hover .tile,
.chip-app:focus-visible .tile {
  scale: 1.06;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 9px 10px 9px 22px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-search);
  transition:
    box-shadow 320ms var(--ease-wave),
    background-color 320ms var(--ease-wave);
}

.searchbar:hover {
  box-shadow:
    inset 0 0 0 1px #d9d9e0,
    var(--shadow-search);
}

.searchbar:focus-within {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1.5px var(--accent),
    0 16px 34px color-mix(in srgb, var(--accent) 12%, transparent);
}

.searchbar__icon {
  font-size: 21px;
  color: var(--ink-soft);
  transition: color 320ms var(--ease-wave);
}

.searchbar:focus-within .searchbar__icon {
  color: var(--accent);
}

.searchbar__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  font-size: 16px;
  color: var(--ink);
}

.searchbar__input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.searchbar__input::-webkit-search-cancel-button {
  display: none;
}

.searchbar__input:focus-visible {
  outline: none;
}

.searchbar__submit {
  flex: none;
  margin-left: auto;
  min-height: 54px;
  padding: 0 22px;
  gap: 8px;
}

.searchbar--cta {
  gap: 12px;
  padding: 8px 9px 8px 20px;
  box-shadow: var(--shadow-search-accent);
}

.searchbar--cta:hover {
  box-shadow:
    inset 0 0 0 1px #d8d4f2,
    var(--shadow-search-accent);
}

.searchbar--cta .searchbar__icon {
  font-size: 20px;
}

.searchbar--cta .searchbar__input {
  font-size: 15px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 76px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  --wave: var(--accent-soft);
  --wave-ink: var(--ink);
}

.app-row__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.app-row__name {
  font-size: 14px;
}

.app-row__badge {
  color: var(--ink-soft);
  font-size: 11px;
}

.app-row__arrow {
  color: var(--ink-faint);
  transition:
    translate 320ms var(--ease-wave),
    color 320ms var(--ease-wave);
}

.app-row:hover .app-row__arrow,
.app-row:focus-visible .app-row__arrow {
  translate: 3px 0;
  color: var(--accent);
}

.app-row .tile {
  transition: scale 380ms var(--ease-wave);
}

.app-row:hover .tile,
.app-row:focus-visible .tile {
  scale: 1.06;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 166px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  --wave: var(--accent-soft);
  --wave-ink: var(--ink);
}

.app-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-card__arrow {
  color: var(--ink-soft);
  transition:
    translate 320ms var(--ease-wave),
    color 320ms var(--ease-wave);
}

.app-card:hover .app-card__arrow,
.app-card:focus-visible .app-card__arrow {
  translate: 3px -3px;
  color: var(--accent);
}

.app-card__name {
  margin-top: auto;
  font-size: 15px;
}

.app-card__status {
  color: var(--ink-soft);
  font-size: 11px;
  transition: color 300ms var(--ease-wave);
}

.app-card:hover .app-card__status,
.app-card:focus-visible .app-card__status {
  color: var(--ink-soft);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}

.section-head--stacked {
  display: block;
}

.section-head .eyebrow {
  margin-bottom: 6px;
}
