/* The app's home screen in a phone, in the page's light or dark colors.
   Sizes follow the brand proposal (a 300px wide phone). */
.app-mock {
  --frame: #1F1A2E;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 620px;
  overflow: hidden;
  border: 9px solid var(--frame);
  border-radius: 46px;
  color: var(--ink);
  background: var(--bg);
  box-shadow: var(--shadow);
  font-family: var(--text);
  line-height: 1.3;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  .app-mock {
    --frame: #050407;
    box-shadow: 0 0 0 2px var(--line);
  }
}

.app-mock__screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 26px 18px 0;
}

.app-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-mock__hello {
  font-size: 15px;
  font-weight: 800;
}

.app-mock__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--primary-text);
  background: var(--chip);
  font-size: 13px;
  font-weight: 800;
}

.app-mock__summary {
  display: grid;
  gap: 2px;
}

.app-mock__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.app-mock__total {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.app-mock__income {
  color: var(--good);
  font-size: 12px;
  font-weight: 800;
}

.app-mock__chart {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: var(--surface);
}

.app-mock__donut {
  flex: none;
  width: 96px;
  height: 96px;
}

.app-mock__segment {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
}

.app-mock__segment--coral { stroke: var(--coral); }
.app-mock__segment--violet { stroke: var(--violet); }
.app-mock__segment--sky { stroke: var(--sky); }
.app-mock__segment--sun { stroke: var(--sun); }

.app-mock__legend {
  display: grid;
  flex: 1;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.app-mock__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-mock__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.app-mock__dot--coral { background: var(--coral); }
.app-mock__dot--violet { background: var(--violet); }
.app-mock__dot--sky { background: var(--sky); }
.app-mock__dot--sun { background: var(--sun); }

.app-mock__legend-name {
  flex: 1;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mock__legend-pct {
  color: var(--muted);
  white-space: nowrap;
}

/* The screen's one highlight card. */
.app-mock__owed {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 24px;
  color: var(--on-primary);
  background: var(--primary);
}

.app-mock__owed-meta {
  font-size: 12px;
  font-weight: 700;
}

.app-mock__owed-amount {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.app-mock__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-mock__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-mock__tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--on-tile);
}

.app-mock__tile--coral { background: var(--coral); }
.app-mock__tile--sky { background: var(--sky); }

.app-mock__tile-icon {
  width: 18px;
  height: 18px;
}

.app-mock__item-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.app-mock__item-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mock__item-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mock__item-amount {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Bottom navigation: Home, Groups, a raised +, Reports, Profile. */
.app-mock__nav {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  height: 66px;
  padding: 0 10px;
  background: var(--surface);
}

.app-mock__nav-icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.app-mock__nav-icon--active {
  color: var(--primary);
}

.app-mock__add {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 18px;
  color: var(--on-primary);
  background: var(--primary);
}

.app-mock__add-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}
