:root {
  color-scheme: dark;
  font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #efeff0;
  background: #000;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(28px, 12vh, 110px) max(20px, env(safe-area-inset-right))
    44px max(20px, env(safe-area-inset-left));
}
main { max-width: 560px; margin-inline: auto; }
header { display: grid; justify-items: center; gap: 10px; }
a { color: inherit; }
.location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 360px);
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #38383a;
  border-radius: 999px;
  background: #202022;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.location a, .return-link { color: #bfbfc5; text-underline-offset: 3px; }
.location .separator { color: #8b8b92; }
.return-link { font-size: 14px; }
section { margin-top: clamp(24px, 6vh, 54px); }
h1 {
  margin: 0 0 16px;
  color: #bfbfc5;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.files a, input, button {
  min-height: 48px;
  border: 1px solid #303032;
  border-radius: 10px;
  background: #151517;
  color: inherit;
  font: inherit;
}
.files a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.files a:hover, button:hover { background: #29292d; }
.files a::before {
  content: "";
  width: 16px;
  height: 14px;
  background: #a8a8af;
}
.folder-list a::before {
  clip-path: polygon(0 17%, 36% 17%, 52% 34%, 100% 34%, 100% 100%, 0 100%);
}
.file-list a::before {
  width: 12px;
  height: 15px;
  margin-left: 2px;
  clip-path: polygon(0 0, 65% 0, 100% 28%, 100% 100%, 0 100%);
}
.files a::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid #9b9ba3;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
form { display: grid; gap: 10px; max-width: 360px; margin-inline: auto; }
input { min-width: 0; padding: 10px 12px; border-color: #49494c; }
button { background: #252527; font-weight: 600; cursor: pointer; }
.error { margin: 0; color: #ffa7a7; line-height: 1.5; }
.screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid #efeff0; outline-offset: 3px; }
@media (max-width: 380px) {
  .files a { padding-inline: 10px; gap: 6px; }
}

.entry-memo {
  padding: 22px 20px 18px;
  color: #302513;
  border: 1px solid #c6ac6c;
  border-radius: 12px;
  background: repeating-linear-gradient(0deg, #e7d5a3 0 1px, transparent 1px 28px), #fbefc9;
  box-shadow: 0 9px 28px #0009;
}
.entry-memo .memo-label { font-weight: 750; }
.entry-memo input { background: #fff8df; border-color: #b19a6a; }
.entry-memo button { background: #5a4026; color: #fff4d3; border-color: #5a4026; }
.entry-memo button:hover { background: #6b4b2d; }
.entry-memo .error { color: #912829; }
.entry-memo :focus-visible { outline-color: #654b2e; }
