html[data-view="feed"] {
  font-size: 16px;
}

html[data-view="feed"] body {
  height: 100dvh;
  overflow: hidden;
  color: var(--tt-text);
  font-family: var(--tt-font);
  background-color: var(--tt-bg);
}

.tt {
  --nav-height: calc(49px + env(safe-area-inset-bottom));

  position: relative;
  display: flex;
  flex-direction: column-reverse;
  height: 100dvh;
  font-size: 15px;
  background-color: var(--tt-bg);
}

.tt button,
.tt input,
.tt-sheet button {
  font-family: inherit;
}

.tt :focus-visible,
.tt-sheet :focus-visible {
  outline: 2px solid var(--tt-cyan);
  outline-offset: 2px;
}

.tt .tt-feed:focus-visible {
  outline: none;
}

.tt-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.tt-page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
}

.tt-page[hidden] {
  display: none;
}

.tt-home {
  overflow: hidden;
}

.tt-nav {
  z-index: 3;
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-around;
  height: var(--nav-height);
  padding-top: 4px;
  border-top: 1px solid var(--tt-faint);
  background-color: var(--tt-bg);
}

.tt-nav__brand,
.tt-nav__cv {
  display: none;
}

.tt-nav__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
  border: 0;
  color: var(--tt-muted);
  font-size: 10px;
  background: none;
  cursor: pointer;
}

.tt-nav__item.is-active {
  color: var(--tt-text);
}

.tt-nav__icon {
  display: grid;
  place-items: center;
  height: 26px;
}

.tt-nav__item--create .tt-nav__label {
  display: none;
}

.tt-nav__item--create .tt-nav__icon {
  width: 45px;
  height: 28px;
  margin-top: 4px;
  border-radius: 8px;
  color: var(--tt-light-text);
  background-color: var(--tt-light-bg);
  box-shadow: -4px 0 0 var(--tt-cyan), 4px 0 0 var(--tt-red);
}

.tt:not([data-page="home"]) {
  color: var(--tt-light-text);
  background-color: var(--tt-light-bg);
}

.tt:not([data-page="home"]) .tt-nav {
  border-top-color: var(--tt-light-divider);
  background-color: var(--tt-light-bg);
}

.tt:not([data-page="home"]) .tt-nav__item {
  color: var(--tt-light-muted);
}

.tt:not([data-page="home"]) .tt-nav__item.is-active {
  color: var(--tt-light-text);
}

.tt:not([data-page="home"]) .tt-nav__item--create .tt-nav__icon {
  color: var(--tt-light-bg);
  background-color: var(--tt-light-text);
}

.tt-tabs {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
}

.tt-tabs > * {
  pointer-events: auto;
}

.tt-tabs__tab {
  position: relative;
  padding: 8px 0;
  border: 0;
  color: var(--tt-muted);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 2px var(--tt-text-shadow);
  background: none;
  cursor: pointer;
}

.tt-tabs__tab.is-active {
  color: var(--tt-text);
}

.tt-tabs__tab.is-active::after {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--tt-text);
  translate: -50% 0;
  content: "";
}

.tt-tabs__search {
  position: absolute;
  top: 0;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--tt-text);
  background: none;
  cursor: pointer;
}

.tt-feed {
  --drag: 0px;

  position: absolute;
  inset: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
  user-select: none;
}

.tt-post {
  position: absolute;
  inset: 0;
  translate: 0 calc(var(--offset, 0) * 100% + var(--drag));
  transition: translate 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-feed.is-dragging .tt-post {
  transition: none;
}

.tt-post__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--post-color, var(--tt-post-color)), var(--post-shade, var(--tt-post-shade)) 70%, var(--tt-bg));
}

.tt-post__media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(transparent, var(--tt-scrim));
  pointer-events: none;
  content: "";
}

.tt-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tt-slides__strip {
  display: flex;
  height: 100%;
  transition: translate 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-slide {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 96px 72px 190px 24px;
  text-align: center;
}

.tt-slide__image {
  pointer-events: none;
  width: 132px;
  height: 132px;
  border-radius: 28%;
  box-shadow: 0 16px 40px var(--tt-text-shadow);
}

.tt-slide__image--round {
  border: 3px solid var(--tt-text);
  border-radius: 50%;
  object-fit: cover;
}

.tt-slide__name {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 8px var(--tt-text-shadow);
}

.tt-slide__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.85;
}

.tt-slide__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.tt-slide__text {
  max-height: 100%;
  margin: 0;
  overflow-y: auto;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  scrollbar-width: none;
}

.tt-slide__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  list-style: none;
}

.tt-slide__list li {
  padding: 12px 14px;
  border-radius: 12px;
  background-color: var(--tt-chip-bg);
}

.tt-slide__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-slide__chips li {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  background-color: var(--tt-chip-bg);
}

.tt-slide.is-current .tt-slide__chips li {
  animation: tt-pop 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.tt-slide__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  border-radius: 8px;
  color: var(--tt-light-text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--tt-light-bg);
}

.tt-slide__note {
  margin: 0;
  font-size: 15px;
  opacity: 0.85;
}

.tt-slides__dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.tt-slides__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--tt-muted);
}

.tt-slides__dots span.is-current {
  background-color: var(--tt-text);
}

.tt-post__info {
  position: absolute;
  bottom: 32px;
  left: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 75%;
  max-width: 420px;
  text-shadow: 0 1px 2px var(--tt-text-shadow);
}

.tt-post__user {
  padding: 0;
  border: 0;
  color: var(--tt-text);
  font-size: 17px;
  font-weight: 700;
  text-shadow: inherit;
  background: none;
  cursor: pointer;
}

.tt-post__caption {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tt-post__caption.is-expanded {
  display: block;
}

.tt-post__more {
  padding: 0;
  border: 0;
  color: var(--tt-text);
  font-size: 15px;
  font-weight: 700;
  text-shadow: inherit;
  background: none;
  cursor: pointer;
}

.tt-post__sound {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 70%;
  margin: 0;
  font-size: 14px;
}

.tt-post__sound .view-icon {
  width: 16px;
  height: 16px;
}

.tt-post__marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.tt-post__marquee span {
  flex: none;
  padding-right: 32px;
  animation: tt-marquee 8s linear infinite;
}

.tt-post.is-paused .tt-post__marquee span,
.tt-post.is-paused .tt-rail__disc,
.tt-post.is-paused .tt-post__progress span {
  animation-play-state: paused;
}

.tt-post__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 2px;
  background-color: var(--tt-faint);
}

.tt-post__progress span {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--tt-text);
}

.tt-post__progress span.is-running {
  animation: tt-progress 4s linear both;
}

.tt-post__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: none;
  opacity: 0.5;
  translate: -50% -50%;
  pointer-events: none;
}

.tt-post__play .view-icon {
  width: 84px;
  height: 84px;
}

.tt-post.is-paused .tt-post__play {
  display: block;
}

.tt-post__mute {
  position: absolute;
  top: 64px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 16px;
  color: var(--tt-text);
  font-size: 13px;
  font-weight: 600;
  background-color: var(--tt-scrim);
  cursor: pointer;
}

.tt-post__mute[hidden] {
  display: none;
}

.tt-post__heart {
  position: absolute;
  z-index: 2;
  color: var(--tt-red);
  translate: -50% -50%;
  pointer-events: none;
  animation: tt-heart 800ms ease-out both;
}

.tt-post__heart .view-icon {
  width: 96px;
  height: 96px;
}

.tt-rail {
  position: absolute;
  right: 8px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 52px;
}

.tt-rail__avatar {
  position: relative;
  margin-bottom: 8px;
}

.tt-rail__avatar > button:first-child {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.tt-rail__avatar img {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tt-text);
  border-radius: 50%;
  object-fit: cover;
}

.tt-rail__follow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--tt-text);
  background-color: var(--tt-red);
  translate: -50% 0;
  cursor: pointer;
}

.tt-rail__follow .view-icon {
  width: 14px;
  height: 14px;
}

.tt-rail__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  color: var(--tt-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px var(--tt-text-shadow);
  background: none;
  cursor: pointer;
}

.tt-rail__icon {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 2px var(--tt-text-shadow));
}

.tt-rail__icon .view-icon {
  width: 34px;
  height: 34px;
}

.tt-rail__button--share .view-icon {
  scale: -1 1;
}

.tt-rail__button--like.is-on {
  --on: var(--tt-red);
}

.tt-rail__button--save.is-on {
  --on: var(--tt-gold);
}

.tt-rail__button.is-on .tt-rail__icon {
  color: var(--on);
}

.tt-rail__button.is-bouncing .tt-rail__icon {
  animation: tt-bounce 400ms ease;
}

.tt-rail__disc {
  width: 48px;
  height: 48px;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(var(--tt-surface) 30%, var(--tt-post-color) 32%, var(--tt-surface) 70%);
  cursor: pointer;
  animation: tt-spin 5s linear infinite;
}

.tt-rail__disc img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.tt-stepper {
  display: none;
}

.tt-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  margin: 0;
  padding: 10px 16px;
  border-radius: 4px;
  color: var(--tt-text);
  font-size: 15px;
  background-color: var(--tt-toast-bg);
  translate: -50% -50%;
}

.tt-toast[hidden] {
  display: none;
}

.tt-page:not(.tt-home) {
  padding: 0 16px 24px;
}

.tt-page__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background-color: var(--tt-light-bg);
}

.tt-page__bar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.tt-page__actions {
  position: absolute;
  right: 0;
  display: flex;
  gap: 4px;
}

.tt-page__heading {
  margin: 20px 0 8px;
  color: var(--tt-light-muted);
  font-size: 13px;
  font-weight: 600;
}

.tt-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  cursor: pointer;
}

.tt-icon-button .view-icon {
  scale: -1 1;
}

.tt-icon-button:hover {
  background-color: var(--tt-light-card);
}

.tt-profile {
  text-align: center;
}

.tt-profile__avatar {
  width: 96px;
  height: 96px;
  margin-top: 12px;
  border-radius: 50%;
  object-fit: cover;
}

.tt-profile__user {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.tt-profile__stats {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.tt-profile__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 0 12px;
}

.tt-profile__stat + .tt-profile__stat {
  border-left: 1px solid var(--tt-light-divider);
}

.tt-profile__stat strong {
  font-size: 17px;
}

.tt-profile__stat span {
  color: var(--tt-light-muted);
  font-size: 13px;
}

.tt-profile__buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--tt-light-text);
  font: 600 15px/1 var(--tt-font);
  text-decoration: none;
  background-color: var(--tt-light-card);
  cursor: pointer;
}

.tt-button:hover {
  background-color: var(--tt-light-card-hover);
}

.tt-button--primary {
  color: var(--tt-text);
  background-color: var(--tt-red);
}

.tt-button--primary:hover {
  background-color: var(--tt-red-hover);
}

.tt-profile__bio {
  max-width: 420px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.4;
}

.tt-profile__location {
  margin: 4px 0 0;
  color: var(--tt-light-muted);
  font-size: 14px;
}

.tt-profile__tabs {
  display: flex;
  margin-top: 16px;
  border-bottom: 1px solid var(--tt-light-divider);
}

.tt-profile__tab {
  position: relative;
  flex: 1;
  height: 44px;
  border: 0;
  color: var(--tt-light-muted);
  background: none;
  cursor: pointer;
}

.tt-profile__tab.is-active {
  color: var(--tt-light-text);
}

.tt-profile__tab.is-active::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 48px;
  height: 2px;
  background-color: var(--tt-light-text);
  translate: -50% 0;
  content: "";
}

.tt-grid {
  display: grid;
  gap: 2px;
  margin: 2px -16px 0;
}

.tt-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tt-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}

.tt-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 3 / 4;
  padding: 8px;
  overflow: hidden;
  border: 0;
  color: var(--tt-text);
  font: 700 13px/1.2 var(--tt-font);
  background: linear-gradient(160deg, var(--post-color, var(--tt-post-color)), var(--post-shade, var(--tt-post-shade)));
  cursor: pointer;
}

.tt-grid--2 .tt-tile {
  border-radius: 8px;
}

.tt-tile__image {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 28%;
  object-fit: cover;
}

.tt-tile__name {
  overflow-wrap: anywhere;
}

.tt-empty {
  margin: 40px 0;
  color: var(--tt-light-muted);
  text-align: center;
}

.tt-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--tt-light-muted);
  background-color: var(--tt-light-card);
}

.tt-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: var(--tt-light-text);
  font-size: 16px;
  background: none;
  outline: none;
}

.tt-chips {
  display: flex;
  gap: 8px;
  margin: 12px -16px 0;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tt-chip {
  flex: none;
  padding: 8px 14px;
  border: 0;
  border-radius: 18px;
  color: var(--tt-light-text);
  font-size: 14px;
  font-weight: 600;
  background-color: var(--tt-light-card);
  cursor: pointer;
}

.tt-rows {
  display: flex;
  flex-direction: column;
}

.tt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  color: var(--tt-light-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: none;
  cursor: pointer;
}

.tt-row__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--tt-light-card);
}

.tt-row__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 15px;
}

.tt-row__text small {
  overflow: hidden;
  color: var(--tt-light-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-row > .view-icon {
  color: var(--tt-light-muted);
}

.tt-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--tt-light-text);
  font: 15px/1.4 var(--tt-font);
  background: none;
}

.tt-sheet[open] {
  display: grid;
  align-items: end;
  justify-items: center;
}

.tt-sheet::backdrop {
  background-color: var(--tt-overlay);
  animation: share-fade 250ms ease both;
}

.tt-sheet__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 70dvh;
  border-radius: 12px 12px 0 0;
  background-color: var(--tt-light-bg);
  box-shadow: 0 -8px 40px var(--tt-sheet-shadow);
  animation: share-rise 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tt-sheet.is-closing .tt-sheet__panel {
  animation: share-drop 250ms ease-in both;
}

.tt-sheet__header {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  touch-action: none;
}

.tt-sheet__header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.tt-sheet__handle {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--tt-light-divider);
  translate: -50% 0;
}

.tt-sheet__close {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: none;
  cursor: pointer;
}

.tt-sheet__body {
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.tt-comments {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 4px 0 16px;
  list-style: none;
}

.tt-comment {
  display: flex;
  gap: 12px;
}

.tt-comment img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.tt-comment p {
  margin: 0;
}

.tt-comment__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--tt-light-muted);
  font-size: 13px;
}

.tt-comment__badge {
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--tt-red);
  font-size: 11px;
  font-weight: 700;
  background-color: var(--tt-light-card);
}

.tt-comment__pin {
  font-size: 12px;
}

.tt-comment__text {
  margin-top: 2px;
  font-size: 15px;
}

.tt-comment__text a {
  color: var(--tt-red);
  font-weight: 600;
  text-decoration: none;
}

.tt-comment__ask {
  position: sticky;
  bottom: 0;
  width: 100%;
}

.tt-share__row {
  display: flex;
  gap: 4px;
  padding: 8px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tt-share__row + .tt-share__row {
  border-top: 1px solid var(--tt-light-divider);
}

.tt-share__item {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  padding: 4px 0;
  border: 0;
  color: var(--tt-light-text);
  font: 500 12px/1.2 var(--tt-font);
  text-align: center;
  text-decoration: none;
  background: none;
  cursor: pointer;
}

.tt-share__bubble {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--tt-light-card);
}

@keyframes tt-progress {
  to {
    width: 100%;
  }
}

@keyframes tt-marquee {
  to {
    translate: -100% 0;
  }
}

@keyframes tt-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes tt-pop {
  from {
    opacity: 0;
    scale: 0.6;
  }
}

@keyframes tt-bounce {
  40% {
    scale: 1.35;
  }

  70% {
    scale: 0.9;
  }
}

@keyframes tt-heart {
  0% {
    opacity: 0;
    scale: 0.4;
  }

  20% {
    opacity: 1;
    scale: 1.15;
  }

  60% {
    opacity: 1;
    scale: 1;
  }

  100% {
    opacity: 0;
    scale: 1.3;
    translate: -50% -110%;
  }
}

@media (min-width: 769px) {
  .tt {
    flex-direction: row;
  }

  .tt-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    width: 240px;
    height: auto;
    padding: 20px 12px;
    border-top: 0;
    border-right: 1px solid var(--tt-faint);
  }

  .tt:not([data-page="home"]) .tt-nav {
    border-right-color: var(--tt-light-divider);
  }

  .tt-nav__brand {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 0 16px 8px;
    border-radius: 10px;
    color: var(--tt-light-text);
    font-weight: 800;
    background-color: var(--tt-light-bg);
    box-shadow: -3px 0 0 var(--tt-cyan), 3px 0 0 var(--tt-red);
  }

  .tt:not([data-page="home"]) .tt-nav__brand {
    color: var(--tt-light-bg);
    background-color: var(--tt-light-text);
  }

  .tt-nav__item {
    flex: none;
    flex-direction: row;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
  }

  .tt-nav__item:hover {
    background-color: var(--tt-faint);
  }

  .tt:not([data-page="home"]) .tt-nav__item:hover {
    background-color: var(--tt-light-card);
  }

  .tt-nav__item.is-active {
    color: var(--tt-red);
  }

  .tt:not([data-page="home"]) .tt-nav__item.is-active {
    color: var(--tt-red);
  }

  .tt-nav__icon {
    width: 32px;
  }

  .tt-nav__item--create .tt-nav__label {
    display: inline;
  }

  .tt-nav__item--create .tt-nav__icon {
    width: 32px;
    height: 24px;
    margin: 0;
    border-radius: 6px;
    box-shadow: -3px 0 0 var(--tt-cyan), 3px 0 0 var(--tt-red);
  }

  .tt-nav__cv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: auto;
    border-radius: 8px;
    color: var(--tt-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--tt-red);
  }

  .tt-nav__cv:hover {
    background-color: var(--tt-red-hover);
  }

  .tt-tabs {
    top: 16px;
    right: auto;
    left: 24px;
    justify-content: flex-start;
  }

  .tt-tabs__search {
    display: none;
  }

  .tt-feed {
    top: 16px;
    bottom: 16px;
  }

  .tt-post {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
  }

  .tt-post__media {
    position: relative;
    inset: auto;
    flex: none;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
  }

  .tt-rail {
    position: static;
    flex: none;
    width: 56px;
    padding-bottom: 8px;
  }

  .tt-rail__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--tt-faint);
    filter: none;
  }

  .tt-rail__button:hover .tt-rail__icon {
    background-color: var(--tt-faint-hover);
  }

  .tt-rail__icon .view-icon {
    width: 24px;
    height: 24px;
  }

  .tt-stepper {
    position: absolute;
    top: 50%;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    translate: 0 -50%;
  }

  .tt-stepper button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--tt-text);
    background-color: var(--tt-faint);
    cursor: pointer;
  }

  .tt-stepper button:hover {
    background-color: var(--tt-faint-hover);
  }

  .tt-page:not(.tt-home) {
    padding: 0 max(24px, calc(50% - 360px)) 32px;
  }

  .tt-grid {
    margin-right: 0;
    margin-left: 0;
  }

  .tt-grid--2 {
    grid-template-columns: repeat(4, 1fr);
  }

  .tt-grid--3 {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .tt-grid--3 .tt-tile {
    border-radius: 8px;
  }

  .tt-sheet[open] {
    align-items: center;
  }

  .tt-sheet--details[open] {
    align-items: stretch;
    justify-items: end;
  }

  .tt-sheet__panel {
    max-width: 480px;
    border-radius: 12px;
    animation-name: share-pop;
  }

  .tt-sheet.is-closing .tt-sheet__panel {
    animation-name: share-pop-out;
  }

  .tt-sheet--details .tt-sheet__panel {
    width: 400px;
    max-height: none;
    border-radius: 0;
  }

  .tt-sheet__handle {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tt-nav {
    width: 72px;
  }

  .tt-nav__label,
  .tt-nav__cv span,
  .tt-nav__item--create .tt-nav__label {
    display: none;
  }

  .tt-nav__brand {
    margin-left: 4px;
  }
}

.reduce-motion .tt *,
.reduce-motion .tt-sheet * {
  animation: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .tt *,
  .tt-sheet * {
    animation: none;
    transition: none;
  }
}
