:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.94);
  --line: #d9e0ef;
  --text: #162033;
  --muted: #64718a;
  --accent: #4f46e5;
  --pink: #ef5da8;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

.picture-share-page {
  background: radial-gradient(circle at top, #ffffff 0, #eef3ff 35%, var(--bg) 100%);
  color: var(--text);
}

.picture-share-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.picture-share-page .hero-card,
.picture-share-page .composer-card,
.picture-share-page .photo-card,
.picture-share-page .audit-tips {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.picture-share-page .hero-card {
  border-radius: 28px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.picture-share-page .eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.picture-share-page h1, .picture-share-page h2, .picture-share-page h3, .picture-share-page p { margin-top: 0; }
.picture-share-page h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 16px; }
.picture-share-page .hero-copy { max-width: 700px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.picture-share-page .hero-badge {
  min-width: 160px;
  border-radius: 24px;
  padding: 28px 20px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}
.picture-share-page .composer-card {
  margin-top: 28px;
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 24px;
}
.picture-share-page .single-column-card { grid-template-columns: 1fr; }
.picture-share-page .upload-layout { grid-template-columns: minmax(280px, 0.95fr) 1fr; display: grid; gap: 24px; align-items: stretch; }
.picture-share-page .upload-panel { display: grid; gap: 18px; }
.picture-share-page .upload-dropzone {
  min-height: 320px;
  border: 2px dashed #b9c4e2;
  border-radius: 24px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  cursor: pointer;
  transition: .25s ease;
  background: linear-gradient(180deg, rgba(79,70,229,.05), rgba(239,93,168,.08));
  text-align: center;
}
.picture-share-page .upload-dropzone:hover { border-color: var(--accent); transform: translateY(-2px); }
.picture-share-page .upload-icon { font-size: 2rem; }
.picture-share-page .upload-dropzone strong { font-size: 1.2rem; }
.picture-share-page .upload-dropzone span { color: var(--muted); line-height: 1.6; }
.picture-share-page #previewImage {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 18px;
  margin-top: 12px;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.18);
}
.picture-share-page .audit-tips { border-radius: 20px; padding: 20px; }
.picture-share-page .audit-tips ul { padding-left: 18px; color: var(--muted); line-height: 1.8; }
.picture-share-page #mailConfigNote { color: var(--muted); margin-bottom: 0; }
.picture-share-page .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.picture-share-page .field-grid label:last-child { grid-column: 1 / -1; }
.picture-share-page label span { display: block; font-weight: 700; margin-bottom: 10px; }
.picture-share-page input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}
.picture-share-page input:focus { outline: 2px solid rgba(79,70,229,.25); border-color: var(--accent); }
.picture-share-page .actions-row { margin-top: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.picture-share-page .primary-btn, .picture-share-page .like-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.picture-share-page .primary-btn { background: linear-gradient(135deg, var(--accent), var(--pink)); color: white; box-shadow: 0 12px 28px rgba(79,70,229,.28); }
.picture-share-page .primary-btn:hover, .picture-share-page .like-btn:hover { transform: translateY(-1px) scale(1.01); }
.picture-share-page .form-status, .picture-share-page .refresh-note, .picture-share-page .card-author, .picture-share-page .card-description, .picture-share-page .vote-feedback { color: var(--muted); }
.picture-share-page .gallery-page-section { margin-top: 28px; }
.picture-share-page .gallery-section { margin-top: 36px; }
.picture-share-page .section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.picture-share-page .gallery-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.picture-share-page .photo-card { position: relative; border-radius: 24px; overflow: hidden; }
.picture-share-page .card-rank {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 32, 51, 0.78);
  color: white;
  font-weight: 800;
}
.picture-share-page .card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.picture-share-page .card-body { padding: 20px; }
.picture-share-page .card-topline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.picture-share-page .card-title { margin-bottom: 8px; font-size: 1.2rem; }
.picture-share-page .likes-pill { white-space: nowrap; background: #ffe3f1; color: #b4236d; padding: 8px 12px; border-radius: 999px; font-weight: 700; }
.picture-share-page .card-meta { display: grid; gap: 12px; margin: 18px 0; }
.picture-share-page .card-meta dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.picture-share-page .card-meta dd { margin: 0; font-weight: 600; }
.picture-share-page .card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.picture-share-page .like-btn { background: #162033; color: white; min-width: 104px; }
.picture-share-page .like-btn.liked { background: linear-gradient(135deg, #ef5da8, #f97316); animation: pulseLike .55s ease; }
.picture-share-page .like-btn:disabled { opacity: .65; cursor: not-allowed; }
.picture-share-page .nav-link, .picture-share-page .secondary-link {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.9);
  font-weight: 700;
}
.picture-share-page .nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: white;
  border-color: transparent;
}
.picture-share-page .gallery-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

@keyframes pulseLike {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@media (max-width: 900px) {
  .picture-share-page .upload-layout,
  .picture-share-page .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .picture-share-shell { width: min(100% - 20px, 1180px); margin-top: 20px; }
  .picture-share-page .hero-card,
  .picture-share-page .composer-card { padding: 20px; border-radius: 22px; }
  .picture-share-page .hero-card,
  .picture-share-page .section-head,
  .picture-share-page .card-actions,
  .picture-share-page .gallery-actions { flex-direction: column; align-items: stretch; }
  .picture-share-page .field-grid { grid-template-columns: 1fr; }
}
