:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
  background: #e9e9ed;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #e9e9ed;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.site-browser {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
  background: #f5f5f7;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.08);
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 18px;
}

.page-head span {
  display: block;
  margin-bottom: 4px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 700;
}

.page-head h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-head > strong {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: #6e6e73;
  font-size: 12px;
}

.site-links {
  display: grid;
  gap: 10px;
}

.site-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.035);
}

.site-link:active {
  transform: scale(0.985);
  background: #ededf0;
}

.site-link:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 2px;
}

.site-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 850;
}

.moment .site-mark {
  background: #dff5e8;
  color: #137a42;
}

.lead .site-mark {
  background: #fce7e5;
  color: #b42318;
}

.report .site-mark {
  background: #e2effc;
  color: #0066cc;
}

.quote .site-mark {
  background: #f4e8c9;
  color: #7a5400;
}

.order .site-mark {
  background: #e8e2fb;
  color: #5942a8;
}

.site-copy {
  min-width: 0;
}

.site-copy strong,
.site-copy small {
  display: block;
}

.site-copy strong {
  font-size: 16px;
  line-height: 1.3;
}

.site-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-arrow {
  color: #8e8e93;
  font-size: 26px;
  line-height: 1;
  text-align: right;
}

footer {
  padding: 22px 0 4px;
  color: #8e8e93;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 359px) {
  .site-browser {
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-link {
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    gap: 9px;
    padding: 10px;
  }

  .site-mark {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 431px) {
  body {
    padding: 20px 0;
  }

  .site-browser {
    min-height: calc(100vh - 40px);
    border: 1px solid rgba(60, 60, 67, 0.12);
    border-radius: 8px;
  }
}
