html.archive, html.archive body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
}

html.archive #app {
  min-height: 100vh;
}

html.archive button,
html.archive input {
  font: inherit;
}

html.archive .gate,
html.archive .shelf {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}

html.archive .mast {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 80px;
}

html.archive .mast h1,
html.archive .top h1 {
  margin: 0;
  font-family: "Palatino Linotype", "Songti SC", serif;
  font-weight: 500;
  font-size: 84px;
  letter-spacing: 0.12em;
  line-height: 1;
}

html.archive .mast p {
  margin: 22px 0 0;
  color: #5c5854;
  letter-spacing: 0.22em;
  font-size: 14px;
}

html.archive .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px 72px 0;
}

html.archive label {
  display: block;
  margin-top: 22px;
  color: #5c5854;
  font-size: 13px;
  letter-spacing: 0.16em;
}

html.archive input {
  width: 100%;
  margin-top: 8px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e3e0db;
  background: transparent;
  color: #1a1a1a;
  outline: none;
}

html.archive .go {
  margin-top: 36px;
  width: 100%;
  height: 48px;
  border: 0;
  background: #1a1a1a;
  color: #ffffff;
  letter-spacing: 0.28em;
  cursor: pointer;
}

html.archive .quiet {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c5854;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-align: left;
}

html.archive .err {
  min-height: 22px;
  margin-top: 16px;
  color: #9a4030;
  font-size: 13px;
}

html.archive .shelf {
  grid-template-columns: 1fr;
  width: min(920px, calc(100% - 96px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

html.archive .top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
}

html.archive .top h1 {
  font-size: 48px;
}

html.archive .top a {
  color: #5c5854;
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 13px;
}

html.archive .top .sites {
  margin-right: 18px;
}

html.archive .path {
  margin: 0 0 8px;
  color: #5c5854;
  font-size: 14px;
}

html.archive .path button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

html.archive .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px 14px;
  margin: 8px 0 28px;
}

html.archive .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

html.archive .card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f2f2f2;
}

html.archive .card b {
  overflow: hidden;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html.archive .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid #e3e0db;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

html.archive .row:last-child {
  border-bottom: 1px solid #e3e0db;
}

html.archive .row b {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.03em;
}

html.archive .row span {
  color: #5c5854;
  font-size: 13px;
}

html.archive .empty {
  padding: 48px 0;
  color: #5c5854;
}

html.archive .watch {
  width: min(920px, calc(100% - 96px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

html.archive .watch video,
html.archive .watch img,
html.archive .watch iframe,
html.archive .watch audio,
html.archive .watch .sheet {
  display: block;
  width: 100%;
  margin-top: 28px;
}

html.archive .watch video,
html.archive .watch iframe {
  background: #1a1a1a;
}

html.archive .watch img {
  height: auto;
}

html.archive .watch iframe,
html.archive .watch .sheet {
  min-height: 70vh;
  border: 1px solid #e3e0db;
  background: #fff;
}

html.archive .watch .sheet {
  box-sizing: border-box;
  padding: 24px;
  overflow: auto;
  white-space: pre-wrap;
  color: #1a1a1a;
}

html.archive .watch .note {
  margin-top: 24px;
  color: #5c5854;
  line-height: 1.7;
}

html.archive .watch .note a {
  color: #1a1a1a;
}

@media (max-width: 800px) {
  html.archive .gate {
    grid-template-columns: 1fr;
  }
  html.archive .mast,
  html.archive .panel {
    padding: 40px 24px;
  }
  html.archive .mast h1 {
    font-size: 52px;
  }
  html.archive .shelf,
  html.archive .watch {
    width: calc(100% - 40px);
  }
}
