* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* padding: 30px 20px; */
  background: #ffffff;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

main {
  /* max-width: 700px; */
  margin: 0 auto;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

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

.explorer {
  font-size: 12px;
}

.header-row {
  display: grid;
  grid-template-columns: 1fr 190px 70px 90px;
  column-gap: 12px;
  padding: 4px 12px;
  border-bottom: 1px solid #e3e3e3;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 600;
  user-select: none;
}

.header-row .cell {
  display: flex;
  align-items: center;
  gap: 3px;
}

.header-row .cell:not(:first-child) {
  border-left: 1px solid #e3e3e3;
  margin-left: -6px;
  padding-left: 6px;
}

.header-row .cell.col-name {
  display: flex;
  justify-content: space-between;
}

.sort-arrow {
  font-size: 9px;
  color: #9a9a9e;
}

.tree {
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 1fr 190px 70px 90px;
  column-gap: 12px;
  align-items: center;
  padding: 3px 8px;
  margin: 1px 4px;
  white-space: nowrap;
  user-select: none;
  border-radius: 6px;
}

.row.clickable {
  cursor: pointer;
}

.row.even {
  background: #eef0f2;
}

.row.odd {
  background: #ffffff;
}

.row.clickable:hover {
  background: #dce6f5;
}

.name-cell {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.col-date,
.col-size,
.col-kind {
  color: #444;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle {
  display: inline-block;
  width: 12px;
  flex-shrink: 0;
  font-size: 9px;
  color: #9a9a9e;
  margin-right: 4px;
  text-align: center;
  transform: rotate(0deg);
  transition: transform 0.1s ease;
}

.toggle.expanded {
  transform: rotate(90deg);
}

.folder-icon {
  width: 15px;
  height: 12px;
  margin-right: 6px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='14'><path d='M1 2 h5 l1.5 2 H15 v9 H1 z' fill='%235AC8FA' stroke='%233A9BDB' stroke-width='0.6'/></svg>");
}

.label {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-panel {
  padding: 10px 12px 16px;
  background: #fafafa;
}

.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.photos img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
}

.content-text {
  margin: 0;
  font-size: 13px;
  color: #333;
  max-width: 480px;
  line-height: 1.4;
  white-space: normal;
}

.content-status {
  color: #8e8e93;
  font-style: italic;
}
