.page-content .footnotes { font-size: 0.9em; color: var(--text-tertiary); }
.page-content .footnotes hr { display: none; }
.page-content .footnotes ol { padding-left: 1.25rem; }
.page-content .footnotes a[href^="#fnref"] { text-decoration: none; }
/* PREMIUM GALLERY DESIGN SYSTEM */

:root {
  /* Vital Minimalism Tokens */
  --color-bg:        #0a0a0a;
  --color-bg-elev:   #111213;
  --color-surface:   #161718;
  --color-fg:        #e7e7e7;
  --color-fg-muted:  #a8a8a8;
  --color-fg-subtle: #7a7a7a;
  --color-accent:    #7af0ff;
  --color-accent-2:  #b9ff7a;
  --color-accent-3:  #7aa8ff;
  --color-danger:    #ff5c5c;
  --color-warn:      #f2c94c;
  --color-ok:        #59e38f;
  --color-hairline:  #2a2a2a;

  /* Semantic mapping (existing code relies on these) */
  --white: #ffffff;
  --black: #000000;
  --surface: var(--color-bg);
  --surface-elevated: var(--color-bg-elev);
  --text-primary: var(--color-fg);
  --text-secondary: var(--color-fg-muted);
  --text-tertiary: var(--color-fg-subtle);
  --border: var(--color-hairline);
  --border-strong: #3a3a3a;

  /* Optional legacy gray scale kept for compatibility (not used for light tints) */
  --gray-50:  #151515;
  --gray-100: #17181a;
  --gray-200: #1c1d1f;
  --gray-300: #232527;
  --gray-400: #2a2c2e;
  --gray-500: #313437;
  --gray-600: #3a3d41;
  --gray-700: #44484c;
  --gray-800: #4e5358;
  --gray-900: #585e64;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radius Scale */
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows tuned for dark UI */
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.6);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 30px rgba(0,0,0,0.4);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.45);
  --shadow-2xl: 0 32px 64px rgba(0,0,0,0.5);

  /* Animations */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0.0, 1, 1);
  --ease-in-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Hide number input arrows for a cleaner look */
.settings-input.no-spinner::-webkit-outer-spin-button,
.settings-input.no-spinner::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.settings-input.no-spinner { -moz-appearance: textfield; appearance: textfield; }

@media (prefers-color-scheme: light) {
  :root {
    --color-bg:       #f7f7f7;
    --color-bg-elev:  #ffffff;
    --color-surface:  #ffffff;
    --color-fg:       #0a0a0a;
    --color-fg-muted: #4a4a4a;
    --color-fg-subtle:#6b6b6b;
    --color-hairline: #e8e8e8;

    --surface: var(--color-bg);
    --surface-elevated: var(--color-bg-elev);
    --text-primary: var(--color-fg);
    --text-secondary: var(--color-fg-muted);
    --text-tertiary: var(--color-fg-subtle);
    --border: var(--color-hairline);
    --border-strong: #d8d8d8;

    /* Light grays when needed */
    --gray-50:  #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Shadows softened for light mode */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-2xl: 0 30px 60px rgba(0,0,0,0.16);
  }
}

/* RESET & BASE STYLES */
/* Harmonize native form controls */
input[type="checkbox"] {
  accent-color: var(--color-accent);
}


*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* CMS pages typography */
.page-content p { line-height: 1.7; margin: 0 0 12px; }
.page-content h1, .page-content h2, .page-content h3 { margin: 12px 0 8px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.page-content th, .page-content td { border: 1px solid var(--border); padding: 6px 8px; }
.page-content pre { background: var(--surface-elevated); padding: 10px; border-radius: 8px; overflow: auto; }
.page-content img { max-width: 100%; height: auto; display: block; margin: 8px auto; border-radius: 8px; }

/* CMS page: refined native typography */
.page-content {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.75;
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page-content > * + * { margin-top: 0.9em; }

.page-content h1 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(28px, 4.5vw, 40px);
  text-wrap: balance;
}
.page-content h2 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(22px, 3.2vw, 28px);
}
.page-content h3 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  font-size: clamp(18px, 2.4vw, 22px);
}

.page-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(242, 201, 76, 0.7); /* warm yellow accent */
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-normal) var(--ease-out), text-decoration-color var(--duration-normal) var(--ease-out);
}
.page-content a:hover {
  text-decoration-color: rgba(242, 201, 76, 1);
}

.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
}
.page-content li + li { margin-top: 0.35em; }

.page-content blockquote {
  margin: 1em 0;
  padding: 12px 14px 12px 16px;
  background: var(--surface-elevated);
  border-left: 3px solid var(--color-warn);
  border-radius: 10px;
  color: var(--text-secondary);
}
.page-toc { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface-elevated); }
.page-toc ul { list-style: none; padding-left: 0; margin: 0; }
.page-toc li { margin: 4px 0; }
.page-toc li.lv2 { margin-left: 8px; }
.page-toc li.lv3 { margin-left: 16px; }
.page-toc a { text-decoration: none; color: var(--text-secondary); }
.page-toc a:hover { color: var(--text-primary); }

/* Admonitions */
.admon { border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; background: var(--surface-elevated); }
.admon-note { border-left-color: #f2c94c; }
.admon-info { border-left-color: #7aa8ff; }
.admon-tip { border-left-color: #59e38f; }
.admon-warning { border-left-color: #f2c94c; }
.admon-danger { border-left-color: #ff5c5c; }
.admon-success { border-left-color: #59e38f; }
.admon-quote { border-left-color: var(--border-strong); font-style: italic; }

/* Details (collapsible) */
.md-details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-elevated); }
.md-details > summary { cursor: pointer; padding: 10px 12px; font-weight: 600; color: var(--text-primary); }
.md-details[open] > summary { border-bottom: 1px solid var(--border); }
.md-details > *:not(summary) { padding: 10px 12px; }

.page-content code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}
.page-content pre code {
  display: block;
  padding: 0;
  border: none;
  background: none;
}
.page-content pre {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.page-content table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.page-content thead th {
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-weight: 600;
}
.page-content tbody tr:nth-child(odd) { background: rgba(255,255,255,0.03); }

.page-content hr {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 16px 0;
}

.page-content figure { margin: 1.25em 0; }
.page-content figcaption {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9em;
  margin-top: 6px;
}

/* Responsive embeds */
.page-content iframe,
.page-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 10px;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, button {
    border: none;
    outline: none;
    background: none;
}

/* NAVIGATION */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0a0a0a; /* solid black */
    border-bottom: 1px solid var(--border);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Prevent auth button text from pushing the logo or causing overflow */
#auth-btn {
  max-width: 50vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  #auth-btn { max-width: 40vw; }
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
    color: transparent;
    background: linear-gradient(135deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0.8) 25%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,0.8) 75%,
        rgba(255,255,255,1) 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    mix-blend-mode: exclusion; /* subtle negative relative to backdrop */
    animation: gradientShift 6s ease infinite; /* slightly slower */
    cursor: pointer;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.logo:hover {
    opacity: 0.8;
}

.nav-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.nav-btn[aria-pressed="true"] { background: var(--text-primary); color: var(--surface); }

.nav-btn:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Danger button variant */
.nav-btn.nav-btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.nav-btn.nav-btn-danger:hover { filter: brightness(1.05); }

/* GALLERY */

.gallery {
    padding: 0 var(--space-xl) var(--space-4xl);
    max-width: 1800px;
    margin: 0 auto;
    columns: 4;
    column-gap: var(--space-xl);
    column-fill: balance;
}

/* Managed masonry mode: explicit columns for better lazy-loading behavior on desktop */
.gallery.masonry-managed {
    /* disable CSS multi-column behavior */
    columns: initial;
    column-gap: 0;
    /* use grid to host explicit column containers */
    display: grid;
    grid-template-columns: repeat(var(--masonry-cols, 4), 1fr);
    gap: var(--space-xl);
}
.gallery.masonry-managed .masonry-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    min-width: 0;
}
/* Full-width utility blocks inside managed grid */
.gallery.masonry-managed .mono-col { grid-column: 1 / -1; }
/* avoid double vertical spacing inside managed columns */
.gallery.masonry-managed .image-card { margin-bottom: 0; }

@media (max-width: 1400px) {
    .gallery {
        columns: 3;
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
    .gallery.masonry-managed { --masonry-cols: 3; }
}

@media (max-width: 900px) {
    .gallery {
        columns: 2;
    }
    .gallery.masonry-managed { --masonry-cols: 2; }
}

@media (max-width: 600px) {
    .gallery {
        columns: 1;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    .gallery.masonry-managed { --masonry-cols: 1; }
}

/* Settings page: single centered column (override gallery columns) */
.gallery.settings-mode { columns: 1; max-width: 720px; margin: 0 auto; column-gap: 0; padding: 0 var(--space-lg) var(--space-3xl); }
/* Ensure managed masonry does not interfere with settings mode */
.gallery.settings-mode.masonry-managed { display: block; grid-template-columns: none; gap: 0; }
@media (max-width: 768px) { .gallery.settings-mode { padding-left: var(--space-md); padding-right: var(--space-md); } }
@media (max-width: 480px) { .gallery.settings-mode { padding-left: var(--space-sm); padding-right: var(--space-sm); } }

/* Monolithic row spans gallery width */
.mono-col { width: 100%; max-width: none; column-span: all; break-inside: avoid; }

/* VERIFY BANNER */
.verify-banner {
    margin: 4px auto 8px;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background: var(--surface-elevated);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}
.verify-banner .vb-body {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.verify-banner .vb-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-warn);
    background: rgba(242, 201, 76, 0.10);
    box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.25);
    flex: 0 0 auto;
}
.verify-banner .vb-text { line-height: 1.35; min-width: 0; }
.verify-banner .vb-title { font-weight: 700; letter-spacing: -0.01em; }
.verify-banner .vb-subtitle { color: var(--text-secondary); font-size: 0.92em; }
.verify-banner .vb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

@media (max-width: 600px) {
  .verify-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .verify-banner .vb-body { align-items: flex-start; }
  .verify-banner .vb-actions { width: 100%; }
  .verify-banner .vb-actions .nav-btn { width: 100%; }
}

/* IMAGE CARDS */

.image-card {
    break-inside: avoid;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-elevated);
    border: none;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Iridescent shimmer across title text */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.image-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.image-card img {
    width: 100%;
    height: auto;
    filter: none;
    transform: scale(1);
    transition: transform var(--duration-slow) var(--ease-out);
}

/* Transient BW negative flash on enter/leave; zoom handled by transform transition */
@keyframes troughFlash {
  0%   { filter: none; }
  40%  { filter: grayscale(1) invert(1) saturate(0.8); }
  100% { filter: none; }
}
.image-card.hovering img { transform: scale(1.02); animation: troughFlash var(--duration-slow) var(--ease-out) 1; }
.image-card.leaving img  { transform: scale(1);    animation: troughFlash var(--duration-slow) var(--ease-out) 1; }

/* Mobile: focused card subtle emphasis */
@media (max-width: 600px) {
  .image-card.focused {
    box-shadow: 0 16px 36px rgba(0,0,0,0.45);
    border-color: var(--border-strong);
  }
}

.image-meta { padding: var(--space-lg); background: transparent; }

.image-title { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-xs); line-height: 1.4; }

.image-author { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); line-height: 1.4; }

/* Caption clamp + expand */
.image-caption { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.image-caption.expanded { -webkit-line-clamp: unset; line-clamp: unset; }
/* Caption links: inherit caption color and use subtle underline */
.image-caption a { color: inherit; text-decoration: underline; }
.image-caption a:visited { color: inherit; }
.image-caption a:hover { opacity: 0.85; }

/* Single image page: caption uses JS-driven max-height, not -webkit-line-clamp */
#single-caption { display: block; }

/* Single image page header: keep image centered; title should not push layout */
.single-header { display:flex; align-items:center; gap: 12px; min-width:0; padding-bottom: 16px; }
.single-username { flex: 0 0 auto; }
.single-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.single-title.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  flex-basis: 100%;
}
/* Click affordance */
.single-title.expandable:not(.expanded)::after { content: " \25BE"; opacity: 0.6; font-size: 0.9em; }
.single-title.expandable.expanded::after { content: " \25B4"; opacity: 0.6; font-size: 0.9em; }
.single-title:not(.expanded):hover { text-decoration: underline dotted; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .single-header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px !important; }
  .single-meta-line { justify-content: space-between; width: 100%; align-items: center; }
  .single-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 70vw;
  }

/* Prevent horizontal overflow due to long usernames on profile header */
.profile-username {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure the profile header doesn't cause horizontal scroll on small screens */
@media (max-width: 640px) {
  .nav, .mono-col, .gallery {
    overflow-x: hidden;
  }
}
}

/* LIGHTBOX */

.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: var(--space-xl); opacity: 0; visibility: hidden; transition: all var(--duration-normal) var(--ease-out); }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox-container { position: relative; max-width: 90vw; max-height: 90vh; animation: lightboxZoom 0.4s var(--ease-spring) both; display: grid; grid-template-rows: 1fr auto; }
.lightbox.active .lightbox-container {
    animation: lightboxZoom 0.4s var(--ease-spring) both;
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.985) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-close {
    position: absolute;
    top: -var(--space-3xl);
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.lightbox-close:hover {
    background: var(--surface);
    color: var(--text-primary);
    transform: scale(1.05);
}

.lightbox-content { background: var(--surface-elevated); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-2xl); border: none; display: grid; grid-template-rows: 1fr auto; }
.lightbox-image { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.lightbox-info { padding: var(--space-xl); display: flex; justify-content: space-between; align-items: flex-start; background: var(--surface-elevated); border-top: none; max-height: 20vh; overflow-y: auto; gap: var(--space-lg); }
.lightbox-metadata { flex: 1; min-width: 0; }
.lightbox-info .image-title { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-xs); }
.lightbox-info .image-author { font-size: 0.875rem; color: var(--text-secondary); }

.like-btn { 
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    margin-left: 0;
}
.like-btn.collect-btn { font-size: 18px; }

.like-btn:hover { background: var(--surface); color: var(--text-primary); border-color: var(--border-strong); transform: scale(1.05); }

.collect-btn.collected { background: var(--text-primary); color: var(--surface); border-color: var(--text-primary); }

/* Subtle transparency for overlayed collect on single image */
#single-collect {
  border: none;
  background: var(--surface-elevated);
}

#single-collect:hover {
  background: var(--surface);
}

#single-collect.collected {
  background: var(--text-primary);
  color: var(--surface);
  border: none;
}

/* Collect button variant */
/* retained above */

/* AUTH MODAL */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: modalSlideUp 0.4s var(--ease-spring) both;
}

.auth-modal.active .auth-container {
    animation: modalSlideUp 0.4s var(--ease-spring) both;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 1;
}

.auth-close:hover {
    color: var(--text-secondary);
    background: var(--surface-elevated);
    border-radius: var(--radius-full);
}

.auth-content {
    background: var(--surface-elevated);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
    letter-spacing: -0.025em;
}

.auth-tabs {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    text-align: center;
}

.auth-tab.active {
    background: var(--surface-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.auth-form input {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

/* Do not apply text input styles to checkboxes inside auth forms */
.auth-form input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: none;
}

.auth-form input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(122,240,255,0.2);
}

.auth-form input::placeholder {
    color: var(--text-tertiary);
}

/* Slightly reduce vertical padding for auth inputs to compact layout */
.auth-form input { padding-top: 12px; padding-bottom: 12px; }
.auth-form .auth-submit { margin-top: 2px; }

.auth-submit {
    padding: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--surface);
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
    margin-bottom: var(--space-lg);
}

.auth-submit:hover {
    background: #cfcfcf;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.auth-error {
    padding: var(--space-md);
    background: rgba(255,92,92,0.08);
    border: 1px solid rgba(255,92,92,0.35);
    border-radius: var(--radius-lg);
    color: var(--color-danger);
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

/* UPLOAD ZONE */

.upload-zone {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

/* ToS/Privacy consent row in auth modal */
.auth-legal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: center;
    margin-top: 4px;
}
.auth-legal a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--text-primary); }
.auth-legal input { width: 14px; height: 14px; flex: 0 0 auto; accent-color: var(--color-ok); }

.upload-zone.active {
    display: flex;
}

.upload-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.upload-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: uploadBounce 0.3s var(--ease-spring) both;
}

@keyframes uploadBounce {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.upload-content {
    background: var(--surface-elevated);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-2xl);
    padding: var(--space-4xl) var(--space-2xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.upload-content:hover {
    border-color: var(--text-primary);
    background: var(--surface);
}

.upload-content svg {
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.upload-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.upload-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* LOADING */

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--text-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* UTILITIES */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .nav-content {
        padding: var(--space-md) var(--space-lg);
    }
    
    .gallery {
        padding-top: 0px;
    }
    
    .lightbox {
        padding: var(--space-md);
    }
    
    .lightbox-close {
        top: -var(--space-2xl);
    }
    
    .lightbox-info {
        padding: var(--space-lg);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .like-btn {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .auth-content {
        padding: var(--space-xl);
    }
}

/* Mobile: nudge auth modal toward top for keyboard usability */
@media (max-width: 600px) {
    .auth-modal { align-items: flex-start; padding: var(--space-md); overflow-y: auto; }
    .auth-container { margin-top: max(12px, env(safe-area-inset-top)); }
    .auth-content { max-height: calc(100vh - 24px - env(safe-area-inset-top)); overflow: auto; }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fallback for environments without blend modes */
@supports not (mix-blend-mode: exclusion) {
  .logo {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    color: var(--text-primary);
    mix-blend-mode: normal;
    animation: none;
  }
}

/* DARK MODE SUPPORT (if needed later) */

@media (prefers-color-scheme: dark) {
    /* Tokens already define dark; overrides not required */
}

/* Profile Menu */
.profile-menu {
  backdrop-filter: blur(8px);
  z-index: 5000;
}
.profile-menu .profile-item:hover {
  background: rgba(255,255,255,0.06);
}

/* Password toggle button inside auth fields */
.password-toggle {
  align-self: flex-start;
  margin-top: -6px;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}
.password-toggle:hover {
  opacity: 1;
}

/* Four-segment strength bars (register + settings) */
#password-strength, #pw-strength {
  height: 8px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
#password-strength .pw-seg, #pw-strength .pw-seg {
  position: relative;
  background: var(--border);
  overflow: hidden;
}
#password-strength .pw-seg:first-child, #pw-strength .pw-seg:first-child {
  border-top-left-radius: var(--radius-full);
  border-bottom-left-radius: var(--radius-full);
}
#password-strength .pw-seg:last-child, #pw-strength .pw-seg:last-child {
  border-top-right-radius: var(--radius-full);
  border-bottom-right-radius: var(--radius-full);
}
#password-strength .pw-seg .fill, #pw-strength .pw-seg .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  transition: width var(--duration-normal) var(--ease-out);
}
#password-strength .pw-seg:nth-child(1) .fill, #password-strength .pw-seg:nth-child(1) .fill { background: #ff0f0f; }
#password-strength .pw-seg:nth-child(2) .fill, #password-strength .pw-seg:nth-child(2) .fill { background: #f5740b; }
#password-strength .pw-seg:nth-child(3) .fill, #password-strength .pw-seg:nth-child(3) .fill { background: #f3db05; }
#password-strength .pw-seg:nth-child(4) .fill, #password-strength .pw-seg:nth-child(4) .fill { background: #10b948; }

/* Shimmer reward on final segment when fully strong */
#password-strength .pw-seg:nth-child(4) .fill.shimmer,
#pw-strength .pw-seg:nth-child(4) .fill.shimmer {
  background: linear-gradient(90deg, #34d399 0%, #10b981 50%, #34d399 100%);
  background-size: 200% 100%;
  animation: strengthShimmer 2.2s ease-in-out infinite;
}

@keyframes strengthShimmer { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }

/* Inline bio styling */
.user-bio { color: var(--text-primary); }
.user-bio a { color: var(--text-primary); text-decoration: underline; }
.user-bio a:hover { opacity: 0.85; }

/* Align profile header/upload/bio with gallery */
#profile-top { max-width: 1800px; margin: 0 auto; padding: calc(10px + var(--space-2xl)) var(--space-xl) 0; }
@media (max-width: 1400px) { #profile-top { padding-left: var(--space-lg); padding-right: var(--space-lg); } }
/* Mobile-only: tighter top padding */
@media (max-width: 600px)  { #profile-top { padding: calc(20px + var(--space-2xl)) var(--space-xl) 0; } }
/* Monolithic row spans gallery width */
.mono-col { width: 100%; max-width: none; column-span: all; break-inside: avoid; }

/* Settings layout centered single column */
.settings-wrap { max-width: 720px; margin: 33px auto; padding: 0 16px; display: grid; gap: 24px; width: 100%; }

/* Group card aesthetic for clarity on dark background */
.settings-group { display: grid; gap: 10px; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-lg); box-shadow: var(--shadow-md); }
.settings-label { color: var(--text-secondary); font-size: 0.9rem; }

/* Global settings input styling so fields outside settings groups (e.g., bio editor, forgot password) are dark themed */
.settings-input {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}

/* Inputs: strong contrast + fluid width */
.settings-group .settings-input,
.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="password"],
.settings-group input[type="number"],
.settings-group textarea,
.settings-group select {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}
.settings-group input::placeholder,
.settings-group textarea::placeholder { color: var(--text-tertiary); }

/* Actions: wrap on small screens; avoid overflow */
.settings-actions { display:flex; gap: 12px; flex-wrap: wrap; }

/* File inputs harmony */
.settings-group input[type="file"] { color: var(--text-secondary); font-family: var(--font-mono); }
.settings-group input[type="file"]::file-selector-button { background: var(--surface-elevated); border: 1px solid var(--border); color: var(--text-primary); border-radius: var(--radius-lg); padding: 8px 12px; cursor: pointer; }
.settings-group input[type="file"]::file-selector-button:hover { background: var(--surface); }

/* Focus ring consistent on dark UI */
.settings-input:focus,
.settings-group input:focus,
.settings-group textarea:focus,
.settings-group select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(122,240,255,0.12);
}

/* Typeface unification: use mono for text and fields; keep headers/buttons Inter */
.gallery, .user-bio, .settings-wrap, .settings-input, input, textarea, .image-caption, .lightbox-info, .auth-form input, .auth-error { font-family: var(--font-mono); }
.logo, h1, h2, h3, .nav-btn, .auth-submit, .like-btn { font-family: var(--font-family); }

/* Larger caption areas */
textarea.settings-input { min-height: 120px; }

/* Style input[type=file] to match buttons */
input[type="file"] { color: var(--text-secondary); font-family: var(--font-mono); }
input[type="file"]::file-selector-button { background: var(--surface-elevated); border: 1px solid var(--border); color: var(--text-primary); border-radius: var(--radius-lg); padding: 8px 12px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--surface); }

/* Mobile nav: restore transparent blur */
@media (max-width: 768px) {
  .nav { background: rgba(10,10,10,0.7); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
}

/* Always blurred nav; no border */
.nav { background: rgba(10,10,10,0.7); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); border-bottom: none; }

@media (prefers-color-scheme: light) {
  .nav {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px) saturate(120%) contrast(90%);
    -webkit-backdrop-filter: blur(12px) saturate(120%) contrast(90%);
  }

  .logo {
    mix-blend-mode: normal;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
  }
}

/* Lightbox caption */
.lightbox-caption { margin-top: var(--space-2); color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; max-width: 70ch; }
.lightbox-caption a { color: inherit; text-decoration: underline; }

/* NSFW blur system with sick melting animation */
.nsfw-blurred {
  position: relative;
  cursor: pointer;
}



/* Dark melting overlay that starts covering everything */
.nsfw-blurred::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Use backdrop-filter for native blur without extra image layer; add glaze */
  background: linear-gradient(135deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.25) 100%);
  backdrop-filter: blur(16px) saturate(0.6) brightness(0.9);
  -webkit-backdrop-filter: blur(16px) saturate(0.6) brightness(0.9);
  pointer-events: none;
  z-index: 2;
  /* Default fully covered; reveal handled via mask or opacity (fallback) */
  opacity: 1;
}

/* NO hover effects on blurred images - they should remain static */
.nsfw-blurred:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.nsfw-blurred img { filter: none; transform: scale(1) !important; animation: none !important; }

/* Hover effects ONLY work after blur is revealed */
.nsfw-revealed:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.nsfw-revealed:hover img {
  transform: scale(1.02);
  animation: troughFlash var(--duration-slow) var(--ease-out) 1;
}

/* Default fallback: fade overlay away if masking unsupported */
.nsfw-blurred.revealing::before { animation: nsfwRevealFade 1800ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

/* Keep base image sharp during reveal; overlay provides the blur */

@keyframes nsfwRevealFade { to { opacity: 0; } }

/* Prefer mask-based circular reveal from top-left when supported */
@supports ((-webkit-mask-image: radial-gradient(circle at 0 0, transparent 0, black 0)) or (mask-image: radial-gradient(circle at 0 0, transparent 0, black 0))) {
  @property --reveal {
    syntax: '<length-percentage>';
    inherits: false;
    initial-value: 0%;
  }
  .nsfw-blurred::before {
    --reveal: 0%;
    -webkit-mask-image: radial-gradient(
      circle at 0 0,
      rgba(0,0,0,0) clamp(0%, calc(var(--reveal) - 10%), 100%),
      rgba(255,255,255,1) clamp(0%, calc(var(--reveal) + 10%), 100%)
    );
    mask-image: radial-gradient(
      circle at 0 0,
      rgba(0,0,0,0) clamp(0%, calc(var(--reveal) - 10%), 100%),
      rgba(255,255,255,1) clamp(0%, calc(var(--reveal) + 10%), 100%)
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    will-change: -webkit-mask-image, mask-image;
  }
  .nsfw-blurred.revealing::before { animation: nsfwReveal 1800ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important; }
  @keyframes nsfwReveal { to { --reveal: 220%; } }
}



/* Once revealed, remove blur permanently and restore normal behavior */
.nsfw-revealed {
  cursor: pointer !important;
}

.nsfw-revealed img {
  filter: none !important;
  will-change: auto;
}

.nsfw-revealed::before {
  display: none;
}

/* Ensure consistent focus across inputs and textarea */
.settings-input:focus { outline: none; border-color: var(--text-primary); box-shadow: 0 0 0 2px rgba(122,240,255,0.12); }

/* Mobile profile actions: show compact Options menu, hide inline buttons */
@media (max-width: 600px) {
  .profile-actions-inline { display: none !important; }
  .profile-actions-menu { display: block !important; }
  .profile-actions { gap: 4px; }
}

/* Simple link-like button (restore readable color) */
.link-btn { background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 6px 10px; }
.link-btn:hover { text-decoration: underline; }

/* Posts/Collections tabs */
.tab-group { display:flex; gap:8px; align-items:center; border-radius: 12px; padding:0; background: transparent; border: none; margin-bottom: 8px; }
.tab-btn { padding:8px 12px; border-radius:8px; color: var(--text-secondary); background: transparent; border: none; font-family: var(--font-family); }
.tab-btn:hover { background: var(--surface); color: var(--text-primary); }
.tab-btn[aria-pressed="true"], .tab-btn.active, .tab-btn[aria-selected="true"] { background: var(--text-primary); color: var(--surface); box-shadow: var(--shadow-sm); }

/* Admin tabs: segmented pill w/ scroll on small screens */
.admin-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 999px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.admin-tabs::-webkit-scrollbar { height: 6px; }
.admin-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.admin-tabs .tab-btn {
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
/* Keyboard focus ring */
.admin-tabs .tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122,240,255,0.25), inset 0 0 0 1px var(--border);
}
@media (max-width: 600px) {
  .admin-tabs { gap: 4px; padding: 4px; }
  .admin-tabs .tab-btn { padding: 8px 12px; }
}

/* Mobile: stack tabs vertically, full-width buttons, no horizontal scroll */
@media (max-width: 600px) {
  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    width: 100%;
  }
  .admin-tabs .tab-btn {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    white-space: normal;
  }
}

/* Admin user search result rows */
.user-results { display:grid; gap:8px; }
.user-row { display:flex; gap:8px; align-items:center; justify-content:space-between; border:1px solid var(--border); border-radius:8px; padding:8px; background: var(--surface-elevated); max-width:100%; overflow:hidden; }
.user-row .actions { display:flex; gap:8px; flex-wrap:wrap; }
.user-row .left { min-width:0; }
.user-row .left .handle { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-row .left .id { font-size:12px; color: var(--text-secondary); word-break: break-all; }
@media (max-width: 600px) {
  .user-row { flex-direction: column; align-items: stretch; gap:6px; }
  .user-row .actions .nav-btn { width: 100%; }
}

/* Avatar preview */
.avatar-row { display:flex; align-items:center; gap:12px; }
.avatar-preview { width: 64px; height: 64px; border-radius: 50%; background: var(--border); background-size: cover; background-position: center; display:block; border: none; }
@media (min-width: 601px) {
  .settings-group .avatar-row { display: grid; grid-template-columns: 80px 1fr; align-items: start; column-gap: 16px; }
  .settings-group .avatar-preview { width: 80px; height: 80px; }
}

/* Password input eye toggle */
.pw-wrap input[type="password"], .pw-wrap input[type="text"] { padding-right: 48px; }
.pw-eye {
  color: var(--text-tertiary);
  transition: opacity var(--duration-fast) var(--ease-out);
  font-size: 18px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}
.pw-eye:hover { opacity: 1; background: var(--surface); }

/* Admin Invites: responsive cards */
.invite-row { display:grid; grid-template-columns: 1fr auto; gap:8px; align-items:center; border:1px solid var(--border); border-radius:8px; padding:8px; background: var(--surface-elevated); }
.invite-row .left { min-width:0; }
.invite-row .left .code { font-family: var(--font-mono); word-break: break-all; }
.invite-row .left .invite-meta { font-size:12px; color: var(--text-secondary); opacity:.8; }
.invite-row .invite-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width: 600px) {
  .invite-row { grid-template-columns: 1fr; }
  .invite-row .invite-actions { justify-content: stretch; }
  .invite-row .invite-actions .nav-btn { width: 100%; }
}

/* Pager unify styling */
.pager { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.pager .pager-controls { display:flex; gap:8px; align-items:center; }
@media (max-width: 600px) {
  .pager { flex-direction: column; align-items: stretch; gap:6px; }
  .pager .pager-controls { justify-content: space-between; }
}

/* Invite prune link spacing */
.invite-prune { margin-top:8px; display:flex; justify-content:flex-end; }

@media (min-width: 601px) {
  #profile-logout {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
  }

  #profile-logout:hover {
    filter: brightness(1.05);
  }
}

.single-image-view-wrapper {
  text-align: center;
}
.single-image-view {
  display: inline-block;
  text-align: left;
  max-width: 100%;
}

.single-meta-line {
  flex-shrink: 0;
}
.single-header.expanded {
  flex-wrap: wrap;
  align-items: flex-start;
}