:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efe9df;
  --ink: #231f20;
  --muted: #6c625c;
  --line: #ded5ca;
  --accent: #23615b;
  --accent-strong: #184843;
  --focus: #d79b46;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 18px;
}

.brand h1,
.toolbar h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.search {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  outline: none;
}

.search input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(215, 155, 70, 0.18);
}

.people-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.people-meta strong {
  color: var(--ink);
  font-size: 20px;
}

.people-list {
  display: grid;
  gap: 6px;
}

.person-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.person-button:hover,
.person-button.active {
  border-color: var(--line);
  background: var(--surface-2);
}

.person-name {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.person-total {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.content {
  min-width: 0;
  padding: 26px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.muted {
  margin: 7px 0 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-strong);
}

.hidden {
  display: none;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 55vh;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty strong {
  color: var(--ink);
  font-size: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.photo-link {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.photo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.photo-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-one {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: 46vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 20px 14px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
  }
}
