:root {
  --bg: #eeece6;
  --surface: rgba(255, 252, 245, 0.86);
  --surface-strong: #fffdf8;
  --ink: #18211e;
  --muted: #5e6a65;
  --line: rgba(24, 33, 30, 0.1);
  --accent: #0c8b77;
  --accent-deep: #0a695c;
  --accent-soft: #dbf4ef;
  --danger: #b94b3b;
  --shadow-lg: 0 24px 80px rgba(31, 42, 39, 0.14);
  --shadow-md: 0 14px 40px rgba(31, 42, 39, 0.1);
  --shadow-sm: 0 4px 16px rgba(31, 42, 39, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1180px, calc(100vw - 48px));
  --font-display: "Avenir Next Condensed", "DIN Alternate", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "Avenir Next", "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-120px);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(241, 178, 74, 0.18), transparent 34%),
    linear-gradient(180deg, #f5f1ea 0%, #ece8df 48%, #f3f0ea 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden],
.is-hidden {
  display: none !important;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  top: 80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(12, 139, 119, 0.18);
}

.ambient-two {
  right: -70px;
  top: 420px;
  width: 220px;
  height: 220px;
  background: rgba(241, 178, 74, 0.18);
}

.ambient-three {
  left: 55%;
  bottom: 120px;
  width: 300px;
  height: 300px;
  background: rgba(25, 56, 91, 0.11);
}

.site-header,
.section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.page-main {
  padding-bottom: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(255, 251, 244, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent) 0%, #1e4e69 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong,
.hero h1,
.page-hero h1,
.section-head h2,
.section-head h1,
.auth-copy h2,
.profile-banner h1,
.detail-title,
.admin-card h2,
.detail-subhead h2,
.quick-panel strong,
.info-card strong {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.brand-copy strong {
  font-size: 1.1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.site-nav a.is-current {
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(12, 139, 119, 0.12);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.user-badge-admin {
  background: rgba(20, 71, 98, 0.12);
  color: #144762;
}

.user-badge-danger {
  background: rgba(185, 75, 59, 0.12);
  color: var(--danger);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(24, 33, 30, 0.08);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #144762 100%);
  color: white;
  box-shadow: 0 12px 28px rgba(12, 139, 119, 0.22);
}

.button-secondary,
.button-muted {
  background: rgba(24, 33, 30, 0.06);
  color: var(--ink);
}

.button:disabled,
.review-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.section {
  position: relative;
  padding: 64px 0 0;
}

.hero,
.page-hero {
  display: grid;
  gap: 28px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding-top: 88px;
}

.page-hero {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 88px;
}

.page-hero.page-hero-split {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-copy,
.hero-showcase,
.quick-panel,
.search-shell,
.upload-dropzone,
.upload-form,
.auth-copy,
.auth-panel,
.profile-banner,
.admin-card,
.detail-layout,
.detail-section,
.info-card,
.page-hero-copy,
.page-hero-side,
.link-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.hero-copy,
.page-hero-copy {
  padding: 42px;
}

.page-hero-copy p:last-child,
.hero-text,
.section-head p,
.detail-description,
.auth-copy p,
.site-footer p,
.review-list p,
.search-summary,
.text-link {
  color: var(--muted);
}

.page-hero-side {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.hero-text {
  margin: 20px 0 0;
  max-width: 42rem;
  font-size: 1.05rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-metrics div,
.detail-meta div,
.stats-grid article {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
}

.hero-metrics dt,
.showcase-topline span,
.quick-panel span,
.info-card span,
.pill,
.review-list span,
.detail-meta span,
.search-summary span,
.mini-feed span,
.profile-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-metrics dd {
  margin: 8px 0 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.hero-showcase {
  padding: 22px;
}

.showcase-frame {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42));
}

.showcase-topline,
.section-head,
.search-toolbar,
.detail-subhead,
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.showcase-controls {
  display: flex;
  gap: 10px;
}

.showcase-controls button,
.segment-group button,
.chip-row button,
.social-buttons button,
.tag-cloud a {
  border: 0;
  border-radius: 999px;
  background: rgba(24, 33, 30, 0.08);
  color: var(--ink);
}

.showcase-controls button {
  width: 38px;
  height: 38px;
}

.hero-slides {
  min-height: 410px;
  margin-top: 18px;
}

.hero-slide {
  display: none;
  border-radius: 24px;
  overflow: hidden;
}

.hero-slide.is-active {
  display: block;
  animation: fadeUp 0.45s ease;
}

.hero-slide-visual,
.artwork-visual,
.detail-visual,
.related-card-visual {
  background: var(--visual-bg);
  background-size: cover;
  background-position: center;
}

.hero-slide-visual {
  min-height: 360px;
  padding: 26px;
  display: flex;
  align-items: flex-end;
}

.hero-slide-copy,
.artwork-overlay,
.upload-preview-card div {
  width: min(320px, 100%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(6, 14, 14, 0.34);
  color: white;
  backdrop-filter: blur(14px);
}

.hero-slide-copy strong,
.artwork-overlay strong {
  display: block;
  font-size: 1.15rem;
}

.hero-slide-copy p,
.artwork-overlay span {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(24, 33, 30, 0.18);
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--accent);
}

.hero-sidecards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-sidecards article,
.info-card,
.link-card,
.quick-panel {
  padding: 20px;
}

.hero-sidecards article {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-sidecards article span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-sidecards article strong {
  display: block;
  margin-top: 8px;
}

.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.compact-head h2 {
  font-size: 1.65rem;
}

.segment-group,
.chip-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment-group button,
.chip-row button,
.social-buttons button,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.segment-group button.is-active,
.chip-row button.is-active {
  background: var(--accent);
  color: white;
}

.panel-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.panel-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid-3 {
  grid-template-columns: 1fr 1fr 1.1fr;
}

.link-grid,
.stack-grid,
.policy-grid {
  display: grid;
  gap: 16px;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card {
  display: block;
}

.link-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.link-card strong {
  display: block;
  margin-top: 8px;
}

.mini-feed,
.review-list,
.comment-list,
.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.mini-feed li,
.review-list li,
.comment-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mini-feed li:last-child,
.review-list li:last-child,
.comment-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-feed strong,
.review-list strong,
.comment-list strong {
  display: block;
}

.review-item-shell {
  display: grid;
  gap: 14px;
}

.review-item-media .review-item-shell {
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: start;
}

.review-visual {
  position: relative;
  display: block;
  min-height: 112px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--review-visual-bg);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.review-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(14, 18, 22, 0.54) 100%);
}

.review-visual span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.review-content {
  min-width: 0;
}

.admin-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 17, 21, 0.58);
  backdrop-filter: blur(18px);
}

.admin-preview-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(248, 249, 244, 0.96);
  box-shadow: 0 28px 80px rgba(24, 31, 34, 0.24);
  overflow: auto;
}

.admin-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 74px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
}

.admin-preview-media {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 139, 119, 0.08), rgba(241, 178, 74, 0.14));
}

.admin-preview-media img,
.admin-preview-gradient {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.admin-preview-media img {
  object-fit: contain;
  background: rgba(14, 18, 22, 0.1);
}

.admin-preview-gradient {
  background: var(--preview-bg);
}

.admin-preview-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.admin-preview-head h2 {
  margin-top: 6px;
}

.admin-preview-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-preview-position {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-preview-meta span,
.admin-preview-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(12, 139, 119, 0.08);
  color: var(--accent-deep);
  font-size: 0.84rem;
}

.admin-preview-description {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.admin-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.is-admin-preview-open {
  overflow: hidden;
}

.info-list {
  margin-top: 14px;
}

.info-list li {
  position: relative;
  padding-left: 16px;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

[data-home-featured-grid] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

[data-home-featured-grid] > .empty-state {
  grid-column: 1 / -1;
  margin-top: 0;
}

.art-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.art-card-link {
  display: block;
}

.artwork-visual {
  position: relative;
  min-height: 220px;
  height: var(--visual-height, 320px);
  padding: 16px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.24s ease;
}

.art-card-link:hover .artwork-visual,
.art-card-link:focus-visible .artwork-visual {
  transform: scale(1.015);
}

.art-card-topline {
  position: absolute;
  inset: 16px 16px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.art-card-body {
  padding: 16px 18px 18px;
}

.art-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.art-card-meta strong {
  display: block;
}

.art-card-meta span,
.art-card-stats,
.review-list p,
.comment-list span,
.art-card-empty {
  color: var(--muted);
}

.art-card-stats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.empty-state {
  margin-top: 26px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--muted);
  text-align: center;
}

.masonry-grid > .empty-state {
  grid-column: 1 / -1;
}

.search-shell,
.upload-form,
.auth-panel {
  padding: 24px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-summary {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-summary {
  color: var(--muted);
  font-size: 0.88rem;
}

.search-toolbar {
  align-items: end;
}

.search-field,
.sort-field,
.upload-form label,
.auth-form label {
  display: grid;
  gap: 8px;
}

.search-field input,
.upload-form input,
.upload-form textarea,
.upload-form select,
.auth-form input,
.sort-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(24, 33, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.chip-row-search {
  margin-top: 18px;
}

.section-head-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.sort-field-inline {
  min-width: 180px;
}

.upload-layout,
.auth-shell,
.admin-layout,
.stats-grid,
.policy-grid,
.detail-page-grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

/* ---- upload page ---- */

.upload-page-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.upload-layout {
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.upload-dropzone {
  position: relative;
  min-height: 420px;
  padding: 24px;
  border: 2px dashed rgba(12, 139, 119, 0.22);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.upload-dropzone.is-dragover {
  background: rgba(219, 244, 239, 0.7);
  border-color: var(--accent);
}

.upload-dropzone.is-disabled {
  opacity: 0.62;
  border-style: solid;
  border-color: rgba(24, 33, 30, 0.1);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder,
.upload-preview {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
}

.upload-placeholder-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 139, 119, 0.1), rgba(241, 178, 74, 0.12));
  color: var(--accent);
  margin-bottom: 4px;
}

.upload-placeholder strong {
  font-size: 1.15rem;
}

.upload-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 24em;
}

.upload-preview-card {
  width: 100%;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 24px;
}

/* upload form */
.upload-form {
  padding: 28px;
}

.upload-field {
  display: grid;
  gap: 6px;
}

.upload-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.upload-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.upload-input-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: var(--muted);
  flex-shrink: 0;
  z-index: 1;
}

.upload-input-icon-top {
  top: 14px;
}

.upload-input-wrap input,
.upload-input-wrap textarea,
.upload-input-wrap select {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(24, 33, 30, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-input-wrap input:focus,
.upload-input-wrap textarea:focus,
.upload-input-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 139, 119, 0.1);
  background: #fff;
}

.upload-input-wrap input::placeholder,
.upload-input-wrap textarea::placeholder {
  color: rgba(24, 33, 30, 0.32);
}

.upload-input-wrap textarea {
  padding-top: 13px;
  padding-left: 42px;
  resize: vertical;
  min-height: 84px;
}

.upload-input-wrap select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235e6a65' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* visibility */
.visibility-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.visibility-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.visibility-option {
  cursor: pointer;
}

.visibility-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visibility-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(24, 33, 30, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.visibility-option input:checked + .visibility-card {
  border-color: var(--accent);
  background: rgba(12, 139, 119, 0.06);
  box-shadow: 0 0 0 3px rgba(12, 139, 119, 0.1);
}

.visibility-card svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.visibility-option input:checked + .visibility-card svg {
  color: var(--accent);
}

.visibility-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.visibility-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.upload-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  margin-top: 4px;
}

.upload-info-cards {
  display: grid;
  gap: 14px;
}

/* ---- auth page ---- */

.auth-page-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.auth-shell {
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.auth-copy {
  padding: 48px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-copy::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 139, 119, 0.10), transparent 70%);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.auth-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.auth-copy > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 28em;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.auth-features li:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

.auth-feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(12, 139, 119, 0.1);
  color: var(--accent-deep);
}

.auth-panel {
  padding: 38px;
}

/* tabs */
.auth-tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(24, 33, 30, 0.04);
  margin-bottom: 32px;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.auth-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* login mode switch link */
.auth-switch-mode {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.auth-switch-mode:hover {
  color: var(--accent-deep);
}

/* forms */
.auth-form {
  display: none;
  gap: 18px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  background: rgba(24, 33, 30, 0.03);
  padding: 12px 16px;
  border-radius: 12px;
}

.auth-form-back {
  margin-bottom: 2px;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-back-btn:hover {
  background: rgba(24, 33, 30, 0.05);
  color: var(--ink);
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: var(--muted);
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid rgba(24, 33, 30, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 139, 119, 0.08);
  background: #fff;
}

.auth-input-wrap input::placeholder {
  color: rgba(24, 33, 30, 0.32);
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-password-toggle:hover {
  background: rgba(24, 33, 30, 0.06);
  color: var(--ink);
}

.auth-password-toggle .eye-off { display: block; }
.auth-password-toggle .eye-on  { display: none; }

.auth-password-toggle.showing .eye-off { display: none; }
.auth-password-toggle.showing .eye-on  { display: block; }

.auth-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
}

.auth-form-actions .text-link {
  font-size: 0.88rem;
}

.auth-submit {
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

/* code input row */
.code-input-row {
  display: flex;
  gap: 8px;
}

.code-input-row .button {
  white-space: nowrap;
  font-size: 0.84rem;
  padding: 0 16px;
}

/* divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(24, 33, 30, 0.1);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* social login */
.social-login {
  display: flex;
  justify-content: center;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(24, 33, 30, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
}

.social-btn.wechat:hover {
  background: #f0faf5;
  border-color: #2dc100;
}

.social-btn.qq:hover {
  background: #f0f6ff;
  border-color: #12b7f5;
}

/* demo account */
.auth-demo {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(24, 33, 30, 0.03);
  font-size: 0.84rem;
  color: var(--muted);
}

.auth-demo summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
}

.auth-demo summary:hover {
  color: var(--ink);
}

.auth-demo-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.auth-demo-list code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(24, 33, 30, 0.07);
  font-size: 0.82rem;
}

/* session card (logged-in state) */
.auth-session-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(12, 139, 119, 0.06), rgba(241, 178, 74, 0.04));
}

.auth-session-card strong {
  font-size: 1.2rem;
}

.auth-session-card p {
  margin: 0;
  color: var(--muted);
}

.auth-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(145deg, #234e60 0%, var(--accent) 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-meta strong {
  font-size: 1.3rem;
}

.admin-access {
  margin-top: 26px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.admin-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-layout-wide {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.admin-card {
  padding: 24px;
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(148px, 0.8fr);
  gap: 12px;
  margin-top: 18px;
}

.admin-tools-log {
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  align-items: end;
}

.admin-tools-log > * {
  min-width: 0;
}

.admin-tools-log .admin-search {
  grid-column: 1 / -1;
}

.admin-tools-log [data-admin-log-export] {
  width: 100%;
  min-height: 46px;
  white-space: nowrap;
}

.admin-sync-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.admin-sync-status.is-error {
  background: rgba(185, 75, 59, 0.08);
  color: var(--danger);
}

.admin-sync-status.is-loading {
  background: rgba(12, 139, 119, 0.08);
  color: var(--accent-deep);
}

.admin-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(24, 33, 30, 0.04);
}

.admin-batch-status {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-batch-actions,
.page-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-search,
.admin-filter {
  display: grid;
  gap: 8px;
}

.admin-search span,
.admin-filter span,
.admin-section-meta,
.admin-pagination-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-search input,
.admin-filter select,
.admin-filter input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  color: var(--text);
}

.admin-search input:focus,
.admin-filter select:focus,
.admin-filter input:focus {
  outline: none;
  border-color: rgba(12, 139, 119, 0.34);
  box-shadow: 0 0 0 4px rgba(12, 139, 119, 0.08);
}

.admin-section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.admin-pagination button,
.page-pagination button {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
}

.admin-pagination button[disabled],
.page-pagination button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-pagination-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-empty {
  padding-top: 6px;
}

.review-empty.is-loading strong::after {
  content: " ...";
}

.review-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.review-select input {
  margin: 0;
}

.review-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.review-actions button {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
}

.review-actions .approve {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.review-actions .reject {
  background: rgba(185, 75, 59, 0.12);
  color: var(--danger);
}

.admin-log-list .review-item-shell {
  gap: 10px;
}

.banner-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.banner-stack article {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 139, 119, 0.08), rgba(241, 178, 74, 0.14));
}

.detail-page {
  padding-top: 96px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 24px;
  margin-top: 20px;
}

.detail-visual-page {
  min-height: 400px;
  border-radius: 24px;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.detail-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-section {
  padding: 24px;
}

.comment-composer {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(24, 33, 30, 0.04);
}

.comment-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.comment-composer-head strong {
  font-size: 1rem;
}

.comment-composer-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(24, 33, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  resize: vertical;
}

.comment-form-actions,
.comment-item-head,
.comment-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-length {
  color: var(--muted);
  font-size: 0.84rem;
}

.comment-item-text {
  margin: 10px 0 0;
  color: var(--ink);
}

.comment-item-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.comment-item-actions button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(24, 33, 30, 0.08);
  color: var(--muted);
}

.comment-flag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(241, 178, 74, 0.16);
  color: #9a6607;
  font-size: 0.82rem;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.related-card {
  padding: 12px;
  border-radius: 20px;
  background: rgba(24, 33, 30, 0.04);
}

.related-card-visual {
  min-height: 140px;
  border-radius: 16px;
}

.related-card strong {
  display: block;
  margin-top: 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 72px 0;
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(24, 33, 30, 0.9);
  color: white;
  box-shadow: var(--shadow-md);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero,
  .page-hero,
  .page-hero.page-hero-split,
  .upload-layout,
  .auth-shell,
  .admin-layout,
  .panel-grid-2,
  .panel-grid-3,
  .detail-layout,
  .detail-page-grid {
    grid-template-columns: 1fr;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .masonry-grid,
  [data-home-featured-grid] {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-visual-page {
    min-height: 340px;
  }

  .section-head-actions {
    justify-items: stretch;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100vw - 24px, 100vw - 24px);
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .page-hero {
    padding-top: 56px;
  }

  .hero-sidecards,
  .detail-meta,
  .related-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

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

  .masonry-grid,
  [data-home-featured-grid] {
    grid-template-columns: repeat(2, 1fr);
  }

  .upload-row,
  .visibility-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .button {
    flex: 1;
  }

  .hero-copy,
  .page-hero-copy,
  .hero-showcase,
  .quick-panel,
  .search-shell,
  .upload-dropzone,
  .upload-form,
  .auth-copy,
  .auth-panel,
  .profile-banner,
  .admin-card,
  .detail-layout,
  .detail-section,
  .info-card,
  .page-hero-side,
  .link-card {
    border-radius: 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.4rem;
  }

  .hero-metrics,
  .stats-grid,
  .detail-meta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .masonry-grid,
  [data-home-featured-grid] {
    grid-template-columns: 1fr;
  }

  .showcase-topline,
  .section-head,
  .search-toolbar,
  .detail-subhead,
  .admin-card-head,
  .admin-section-meta,
  .admin-pagination,
  .page-summary-row,
  .admin-batch-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-tools,
  .section-head-actions {
    grid-template-columns: 1fr;
  }

  .comment-composer-head,
  .comment-form-actions,
  .comment-item-head,
  .comment-item-actions,
  .auth-session-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .review-item-media .review-item-shell {
    grid-template-columns: 1fr;
  }

  .review-visual {
    min-height: 156px;
  }

  .admin-batch-actions,
  .page-pagination {
    width: 100%;
  }

  .admin-batch-actions .button,
  .page-pagination button {
    flex: 1;
    justify-content: center;
  }

  .admin-preview-modal {
    padding: 16px;
  }

  .admin-preview-dialog {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .admin-preview-media,
  .admin-preview-media img,
  .admin-preview-gradient {
    min-height: 240px;
  }

  .admin-preview-actions {
    flex-direction: column;
    align-items: stretch;
  }

    .admin-preview-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- index page additions ---- */

.hero-metrics dt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-metric-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.quick-entry-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-entry-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12, 139, 119, 0.1), rgba(241, 178, 74, 0.12));
  color: var(--accent);
}

.quick-entry-item strong {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- discover page additions ---- */

.empty-follow-hint {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  border: 1px dashed rgba(24, 33, 30, 0.12);
}

/* ---- detail page additions ---- */

.detail-meta-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
  color: var(--muted);
}

.detail-meta div span {
  display: inline-flex;
  align-items: center;
}

.comment-form .upload-input-wrap textarea {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(24, 33, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-form .upload-input-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 139, 119, 0.1);
  background: #fff;
}

.related-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---- profile page additions ---- */

.profile-stat-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.profile-edit-controls {
  margin-top: 8px;
}

.profile-avatar.has-avatar {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.profile-avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 36px;
  margin: 0 auto 12px;
}

.edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.edit-avatar-btn {
  cursor: pointer;
}

/* Form elements for profile edit modal */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-label + .form-label {
  margin-top: 16px;
}

.form-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 139, 119, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 90px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- admin page additions ---- */

.admin-search .upload-input-wrap input,
.admin-filter .upload-input-wrap input,
.admin-filter .upload-input-wrap select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px 12px 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-search .upload-input-wrap input:focus,
.admin-filter .upload-input-wrap input:focus,
.admin-filter .upload-input-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 139, 119, 0.1);
  background: #fff;
}

.admin-filter .upload-input-wrap select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235e6a65' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.admin-filter .upload-input-wrap input[type="date"] {
  padding-right: 14px;
  min-width: 0;
}

.admin-search .upload-input-icon,
.admin-filter .upload-input-icon {
  left: 12px;
  width: 16px;
  height: 16px;
}

.banner-stack article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-stack article:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.banner-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}
