html {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
}

body {
  margin: 24px;
}

h1 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.tree-list {
  margin: 0;
  padding-left: 2ch;
  list-style: none;
}

.root-list {
  padding-left: 0;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.chevron {
  display: inline-block;
  width: 1.5ch;
}

details[open] > summary .chevron {
  transform: rotate(90deg);
}

.section-label {
  margin-left: 2ch;
}

.file-row {
  margin-left: 4ch;
  white-space: nowrap;
  cursor: default;
}

.file-icon {
  display: inline-block;
  width: 5ch;
}

.file-name {
  display: inline-block;
  min-width: 34ch;
}

.file-description {
  display: inline-block;
  min-width: 28ch;
}

.file-actions {
  visibility: hidden;
}

.file-row:hover .file-actions,
.file-row:focus-within .file-actions {
  visibility: visible;
}

.action-button {
  display: inline-block;
  padding: 0 0.7ch;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

button.action-button {
  appearance: none;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 180ms ease;
}

.sheet-overlay.is-open {
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 16px 18px;
  border-top: 1px solid currentColor;
  border-radius: 16px 16px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform 180ms ease;
}

.bottom-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 48px;
  height: 4px;
  margin: 0 auto 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.bottom-sheet h2,
.sheet-file {
  margin: 0 0 10px;
  font-size: 1rem;
}

.sheet-action {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.sheet-action-icon,
.sheet-action-label {
  display: block;
}

.sheet-action-icon {
  margin-bottom: 2px;
}

button.sheet-action {
  appearance: none;
}

@media (hover: none) {
  .file-row {
    cursor: pointer;
  }

  .file-actions {
    display: none;
  }
}
