body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: #222;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 720px;
  margin: 120px auto;
  padding: 20px;
}

h1 {
  font-weight: 600;
  font-size: 36px;
  margin-bottom: 8px;
}

.tagline {
  font-size: 20px;
  color: #444;
  margin-bottom: 40px;
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.links {
  margin-top: 40px;
}

a {
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 60px;
  font-size: 14px;
  color: #777;
}

/* --- browser chrome --- */

.browser-controls {
  margin: 20px 0;
}

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  cursor: pointer;
  color: #0a66c2;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.path-display {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  word-break: break-all;
}

.folder-item {
  margin-bottom: 10px;
}

/* --- image grid --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .15s;
}

.gallery a:hover img {
  opacity: .8;
}

/* --- lightbox --- */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.open {
  display: flex;
}

#lbControls {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  z-index: 1001;
}

#lbControlStack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#lbControls #lbPrev,
#lbControls #lbNext,
#lbControls #lbClose,
#lbControls #lbRotate {
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

#lbUpdate,
#lbSelectFull,
#lbSelectCrop,
#lbSubmit {
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: 1px solid #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
}


#lbImg {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center center;
}


/* --- toast  --- */

#updateToast {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 2000;
  pointer-events: none;
}

#updateToast.show {
  display: block;
}

#lbCabinet {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  z-index: 1001;
  pointer-events: none;
}

.report-button {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;

  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;

  color: #0066cc;
  background: #fff;

  border: 1px solid #ccc;
  border-radius: 5px;

  text-decoration: none;
  vertical-align: middle;
}

.report-button:hover {
  background: #f2f2f2;
}