:root {
  color: #18221d;
  background: #f7f8fb;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.identity img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.app-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.app-version {
  color: #65716b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.summary div,
.site-panel {
  border: 1px solid #dbe2de;
  border-radius: 8px;
  background: #ffffff;
}

.summary div {
  padding: 14px 16px;
}

.summary span {
  display: block;
  color: #65716b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.summary strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #18221d;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-panel {
  margin-top: 10px;
  overflow: hidden;
}

.site-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-list a {
  display: block;
  overflow: hidden;
  padding: 13px 16px;
  border-bottom: 1px solid #edf1ef;
  color: #214f3c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-list a:hover {
  background: #f1f6f4;
}

@media (max-width: 640px), (max-aspect-ratio: 3 / 4) {
  .app-name {
    display: none;
  }

  .summary {
    grid-template-columns: 1fr;
  }
}
