html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

.app-shell {
  width: min(100%, 471px);
  box-shadow: none;
}

.ui-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}

.app-status-bar {
  height: 37px;
  padding: 10px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
}

.app-status-bar > strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.25px;
}

.app-device-status {
  height: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-signal {
  width: 18px;
  height: 12px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.app-signal b { width: 3px; border-radius: 2px; background: #08080a; }
.app-signal b:nth-child(1) { height: 4px; }
.app-signal b:nth-child(2) { height: 7px; }
.app-signal b:nth-child(3) { height: 9px; }
.app-signal b:nth-child(4) { height: 12px; }

.app-wifi {
  width: 15px;
  height: 11px;
  border: 2px solid #08080a;
  border-color: #08080a transparent transparent;
  border-radius: 50%;
  position: relative;
  transform: translateY(2px);
}

.app-wifi::before,
.app-wifi::after {
  content: '';
  position: absolute;
  left: 50%;
  border: 2px solid #08080a;
  border-color: #08080a transparent transparent;
  border-radius: 50%;
  transform: translateX(-50%);
}

.app-wifi::before { width: 9px; height: 7px; top: 2px; }
.app-wifi::after { width: 3px; height: 3px; top: 6px; border-width: 2px 0 0; }

.app-battery {
  width: 21px;
  height: 10px;
  border: 1.4px solid #79777b;
  border-radius: 3px;
  position: relative;
}

.app-battery::before {
  content: '';
  position: absolute;
  inset: 1.4px;
  border-radius: 1px;
  background: #08080a;
}

.app-battery::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 5px;
  right: -3px;
  top: 1px;
  border-radius: 0 2px 2px 0;
  background: #79777b;
}

.topbar.app-header {
  position: relative;
  top: auto;
  z-index: 30;
  width: 100%;
  height: 54px;
  padding: 0 16px 0 23px;
  display: grid;
  grid-template-columns: minmax(128px, 1fr) auto 96px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e8e6eb;
  background: #fff;
  backdrop-filter: none;
}

.app-header-title {
  margin: 0;
  overflow: hidden;
  color: #0b0a0d;
  font-size: 17px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.35px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-header-location {
  position: absolute;
  left: 184px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0d0c10;
  font-size: 14px;
  white-space: nowrap;
}

.app-header-location .ui-icon:first-child { width: 16px; height: 16px; stroke-width: 2; }
.app-header-location .ui-icon:last-child { width: 12px; height: 12px; stroke-width: 2; }

.app-header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 23px;
}

.app-header-notifications {
  width: 25px;
  height: 31px;
  display: grid;
  place-items: center;
  position: relative;
}

.app-header-notifications > .ui-icon { width: 25px; height: 25px; stroke-width: 1.7; }

.app-header-notifications b {
  position: absolute;
  right: -7px;
  top: -2px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f23b4d;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
}

.app-header-avatar {
  width: 37px;
  height: 37px;
  overflow: hidden;
  display: block;
  border-radius: 50%;
  background: #f3f1f3;
}

.app-header-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }

.topbar.app-header-back {
  padding: 0 16px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
}

.app-back-button {
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e6eb;
  border-radius: 10px;
  background: #fff;
  color: #111014;
  font-size: 28px;
  line-height: 1;
}

.app-header-page-title {
  overflow: hidden;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bottom-nav.app-bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 27px;
  width: min(calc(100% - 17px), 454px);
  height: 63px;
  padding: 3px 15px 2px 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  border: 1px solid #e8e6eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: none;
}

.bottom-nav.app-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #111014;
  font-weight: 400;
}

.bottom-nav.app-bottom-nav a.active { color: #6033d7; font-weight: 650; }
.bottom-nav.app-bottom-nav .ui-icon { width: 22px; height: 22px; stroke-width: 1.7; }
.bottom-nav.app-bottom-nav small { font-size: 11px; line-height: 1; }

.app-home-indicator {
  position: fixed;
  z-index: 55;
  left: 50%;
  bottom: 8px;
  width: 126px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #08080a;
}

body:not(.discover-page) .page-content { padding-bottom: 118px; }
.discover-page .page-content { padding-bottom: 118px; }

@media (max-width: 390px) {
  .topbar.app-header { padding-inline: 16px; grid-template-columns: minmax(104px, 1fr) auto 78px; gap: 8px; }
  .app-header-location { position: static; font-size: 12px; }
  .app-header-actions { gap: 12px; }
}

/* Shared application chrome: the heading is the exact same component as home. */
.app-global-header {
  height: 49px;
  padding: 8px 15px;
  border-bottom: 1px solid #ebe9ed;
  background: #fff;
}

.app-global-header .discover-heading {
  height: 32px;
  display: grid;
  grid-template-columns: auto auto 1fr 34px 34px;
  align-items: center;
  gap: 12px;
}

.app-global-header .discover-logo,
.app-global-header .discover-logo img {
  width: 73px;
  height: 22px;
  display: block;
}

.app-global-header .discover-logo img { object-fit: contain; }

.app-global-header .discover-location {
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111016;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.app-global-header .discover-location > .ui-icon:first-child {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.app-global-header .discover-location .location-chevron {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.app-global-header .discover-bell {
  grid-column: 4;
  width: 32px;
  height: 32px;
  position: relative;
  display: block;
}

.app-global-header .discover-bell > .ui-icon {
  position: absolute;
  width: 25px;
  height: 25px;
  left: 3px;
  top: 3px;
  color: #111016;
  stroke-width: 1.8;
}

.app-global-header .discover-bell b {
  position: absolute;
  right: 3px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1283d;
  box-shadow: 0 0 0 1.5px #fff;
}

.app-global-header .discover-avatar,
.app-global-header .discover-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}

.app-global-header .discover-avatar {
  grid-column: 5;
  overflow: hidden;
  border: 1px solid #d3d0d5;
}

.app-global-header .discover-avatar img { object-fit: cover; }

.app-context-bar {
  height: 46px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ebe9ed;
  background: #fff;
}

.app-context-bar > strong {
  overflow: hidden;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bottom-nav.app-bottom-nav {
  bottom: 0;
  width: min(100%, 471px);
  height: 54px;
  padding: 3px 0 4px;
  grid-template-columns: repeat(3, 1fr);
  border: 0;
  border-top: 1px solid #e8e6eb;
  border-radius: 0;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px);
}

.app-home-indicator { display: none; }

body:not(.discover-page) .page-content,
.discover-page .page-content {
  padding-bottom: 72px;
}

@media (max-width: 390px) {
  .app-global-header .discover-heading { gap: 8px; }
  .app-global-header .discover-location { margin-left: 4px; font-size: 13px; gap: 5px; }
}
