@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/NotoSansSC-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: "Noto Sans SC", sans-serif;
  color: #1d2129;
  background: #e9edf2;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 2px solid #165dff;
  outline-offset: 2px;
}

#app {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.device {
  --design-height: 945px;
  position: relative;
  isolation: isolate;
  width: 375px;
  height: min(var(--design-height), calc(100dvh - 48px));
  min-height: min(690px, 100dvh);
  flex: none;
  overflow: hidden;
  background: #f5f7f9;
  box-shadow: 0 20px 60px #1e2d4a24;
}
.device[data-page="messages"] { --design-height: 1126px; }
.device[data-page="catalog"] { --design-height: 800px; }
.device[data-page="customize"] { --design-height: 1038px; }
.top-glow {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 190px;
  background: linear-gradient(#c4d7f7 0%, #f5f7f9 59%);
}

.topbar { height: 98px; position: relative; z-index: 2; }
.statusbar {
  position: relative;
  height: 44px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}
.status-time { position: absolute; left: 33px; top: 13px; line-height:22px; }
.status-icons {
  position: absolute;
  right: 14px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 14px;
}
.status-icons img { display: block; object-fit: contain; }
.status-icons img:nth-child(1) { width: 20px; height: 14px; }
.status-icons img:nth-child(2) { width: 16px; height: 14px; }
.status-icons img:nth-child(3) { width: 25px; height: 14px; }
.navbar {
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.navbar .page-name {
  flex: 1;
  margin: 0;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  color: #111;
  white-space: nowrap;
}
.navbar:not(.work) .page-name {
  position: absolute;
  top: 45px;
  left: 50%;
  width: auto;
  line-height: 51.223px;
  transform: translateX(-50%);
}
.navbar:not(.work) .mini-pill { margin-left: auto; }
.navbar.work .page-name {
  flex: 0 1 auto;
  text-align: left;
  font-size: 16px;
  letter-spacing: 0;
}
.navbar.work { gap: 12px; }
.navbar.work .nav-left { width: 16px; }
.nav-left {
  width: 18px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  flex: none;
}
.nav-left img { width: 16px; height: 16px; }
.mini-pill {
  display: block;
  width: 87px;
  height: 32px;
  flex: none;
  object-fit: contain;
}
.navbar.work .mini-pill { margin-left: auto; }

.scroll {
  position: absolute;
  inset: 98px 0 34px;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.scroll::-webkit-scrollbar { display: none; }
.work-scroll { bottom: 99px; padding: 6px 16px 30px; }
.sub-scroll { padding: 6px 16px 30px; }
.home-indicator {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: #fff;
}
.home-indicator::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 6px;
  border-radius: 9px;
  background: #000;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.banner {
  position: relative;
  width: 338px;
  max-width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}
.banner img {
  position: absolute;
  width: 109.08%;
  height: 443.27%;
  max-width: none;
  left: -4.6%;
  top: -48.32%;
}
.white-card { background: #fff; border-radius: 8px; }
.my-apps {
  height: 234px;
  margin-top: 16px;
  padding: 16px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  font-size: 14px;
  font-weight: 500;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #86909c;
  font-size:14px;
  white-space: nowrap;
}
.text-link .chevron { font-size: 21px; line-height:22px; font-weight: 300; }
.my-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 33px;
  row-gap: 16px;
  margin-top: 16px;
}
.my-app-grid .app-tile {
  width: 100%;
  justify-self: stretch;
  gap: 8px;
}
.my-app-grid .app-tile span {
  width: max-content;
  max-width: 82px;
  overflow: visible;
  text-overflow: clip;
}
.app-tile {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #1d2129;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}
.app-tile img { display: block; width: 44px; height: 44px; object-fit: contain; }
.app-tile span {
  width: 100%;
  font-size:14px;
  line-height:22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-tile:active img, .app-list-icon:active { transform: scale(.94); }
.pager { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.pager i { width: 20px; height: 2px; background: #c9cdd4; border-radius: 2px; }
.pager i:first-child { background: #165dff; }

.message-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}
.message-heading { display: flex; align-items: flex-start; min-height: 27px; }
.main-tabs { display: flex; gap: 16px; }
.main-tab {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
  height: 27px;
  padding: 0 0 9px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #8390a5;
}
.main-tab.active { color: #165dff; }
.main-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 17px;
  width: 14px;
  height: 2px;
  background: #165dff;
  border-radius: 2px;
}
.count {
  min-width: 20px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #e6f3ff;
  color: #165dff;
  font-size:14px;
  line-height:22px;
}
.message-heading .text-link { margin: 0 0 0 auto; line-height:22px; }
.subtabs { display: flex; gap: 6px; margin-top: 12px; }
.subtab {
  flex: 1;
  height: 27px;
  padding: 0 2px;
  border: 1px solid #c8d3e6;
  border-radius: 14px;
  background: #fff;
  color: #697891;
  font-size:14px;
  white-space: nowrap;
}
.subtab.active { color: #fff; border-color: #165dff; background: #165dff; }
.notifications { margin-top: 12px; }
.notification + .notification { margin-top: 12px; }
.notification.with-separator {
  border-top: 1px solid #e7edf7;
  padding-top: 12px;
}
.notification-title { display: flex; align-items: center; height: 24px; gap: 6px; }
.notification-tag {
  flex: none;
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 12px;
  color: #165dff;
  background: #eaf3ff;
  font-size:14px;
  font-weight: 500;
}
.notification-name {
  min-width: 0;
  font-size: 14px;
  line-height:22px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #132542;
}
.unread {
  flex: none;
  color: #fff;
  background: #ff5961;
  font-size:14px;
  line-height:22px;
  padding: 0 3px;
}
.notification-body {
  margin: 8px 0 0;
  color: #86909c;
  font-size:14px;
  line-height:22px;
}
.notification-date {
  display: block;
  margin-top: 8px;
  color: #c9cdd4;
  font-size:14px;
  font-weight: 500;
  line-height:22px;
}
.empty-state { padding: 38px 0; color: #9aa8bb; text-align: center; font-size:14px; }

.bottom-nav {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 34px;
  height: 65px;
}
.bottom-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/home_imgFrame.svg") center / 375px 65px no-repeat;
}
.nav-item {
  position: absolute;
  top: 20px;
  width: 36px;
  height: 41px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #86909c;
  font-size:14px;
  font-weight: 500;
}
.nav-item:nth-child(1) { left: 20px; }
.nav-item:nth-child(2) { left: 98px; }
.nav-item:nth-child(4) { left: 241px; }
.nav-item:nth-child(5) { left: 319px; }
.nav-item.active { color: #165dff; }
.nav-item img { width: 22px; height: 22px; object-fit: contain; }
.nav-item .small-icon { width: 16px; height: 16px; margin: 3px; }
.nav-plus {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #165dff;
  color: #fff;
  font-size: 36px;
  line-height: 39px;
  font-weight: 300;
  box-shadow: 0 0 0 4px #fff;
}

.search-row { display: flex; gap: 8px; margin-bottom: 16px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
}
.search-box img { width: 16px; height: 16px; flex: none; }
.search-box input { border: 0; outline: 0; width: 100%; font-size:14px; background: transparent; color: #1d2129; }
.search-box input::placeholder { color: #86909c; }
.settings-button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid #e5e6eb;
  border-radius: 18px;
  background: #fff;
  color: #165dff;
  font-size:14px;
}
.settings-button img { width: 16px; height: 16px; }
.category-tabs { display: flex; gap: 12px; margin: 0 0 16px; }
.category-tab {
  width: 78px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #68758b;
  font-size:14px;
  white-space: nowrap;
}
.category-tab:first-child { width: 56px; }
.category-tab.active { color: #fff; background: #165dff; }
.category-card { padding: 12px; margin-bottom: 16px; }
.category-title { margin: 0 0 16px; font-size:14px; font-weight: 500; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 72px); gap: 24px 10px; }
.catalog-grid .app-tile { width: 72px; gap: 8px; }
.catalog-grid .app-tile span { font-size:14px; font-weight: 400; }

.edit-heading { display: flex; justify-content: space-between; align-items: center; height: 32px; margin-bottom: 10px; }
.edit-heading h2 { margin: 0; font-size: 14px; font-weight: 500; }
.save-button { border: 0; border-radius: 17px; padding: 5px 17px; background: #165dff; color: #fff; font-size:14px; }
.selected-panel { padding: 16px 10px 18px; background: #fff; margin-bottom: 16px; }
.selected-grid { display: grid; grid-template-columns: repeat(4, 76px); gap: 16px 6px; width: 322px; max-width: 100%; margin: 0 auto; }
.selected-tile { position: relative; cursor: grab; }
.selected-grid .app-tile, .extra-grid .app-tile { width: 76px; height: 76px; gap: 8px; }
.selected-tile:active { cursor: grabbing; }
.remove-button {
  position: absolute;
  z-index: 1;
  top: -9px;
  left: calc(50% + 8px);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}
.app-remove-circle { display: block; max-width: none; overflow: visible; pointer-events: none; }
.app-remove-minus { position: absolute; left: 10.5px; top: 13px; width: 7px; height: 2px; border-radius: 1px; background: #fff; pointer-events: none; }
.drag-note { display: flex; align-items: center; gap: 5px; margin: 17px 0 18px; color: #86909c; font-size:14px; white-space: nowrap; }
.drag-note::before, .drag-note::after { content: ""; height: 1px; flex: 1; background: #e5e6eb; }
.extra-grid { display: grid; grid-template-columns: repeat(4, 76px); gap: 16px 6px; width: 322px; max-width: 100%; margin: 0 auto; }
.extra-grid:empty, .extra-grid:empty + .drag-note { display: none; }
.available-heading { margin: 0 0 14px; font-size: 14px; font-weight: 500; }
.available-list { overflow: hidden; border-radius: 10px; background: #fff; padding: 0 12px; }
.available-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 62px;
  border: 0;
  border-bottom: 1px solid #e7edf7;
  padding: 0;
  background: transparent;
  text-align: left;
  color: #1d2129;
  font-size:14px;
}
.available-row:last-child { border-bottom: 0; }
.available-row img { width: 44px; height: 44px; flex: none; }
.available-row .plus-small { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: #165dff; color: white; display: grid; place-items: center; font-size: 22px; line-height:22px; font-weight: 300; }
.available-row.added { opacity: .48; }
.available-row.added .plus-small { background: #a4b2c8; font-size: 16px; }

.toast {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 116px;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  padding: 9px 13px;
  border-radius: 8px;
  background: #1d2129ed;
  color: #fff;
  font-size:14px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 18px #1d212932;
}
.sheet-backdrop { position: absolute; z-index: 6; inset: 0; background: #0006; }
.sheet { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; max-height: 78%; overflow: auto; background: #f5f7f9; border-radius: 18px 18px 0 0; padding: 16px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; font-weight: 500; }
.sheet-close { border: 0; background: none; font-size: 22px; color: #86909c; }
.sheet .notification { background: white; border-radius: 8px; padding: 12px; margin: 8px 0 0; }

@media (max-width: 420px) {
  #app { display: block; padding: 0; }
  .device { width: 100vw; height: 100dvh; min-height: 0; box-shadow: none; }
  .banner { width: 100%; }
}
