/* ===================================
   Photo Wall — Style Sheet
   Polkadot brand: DM Sans + DM Serif Display
   Monochrome + pink accent #FF2867
   =================================== */

/* --- CSS Variables --- */
:root {
  /* Grey scale */
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #e5e5e5;
  --grey-300: #d4d4d4;
  --grey-400: #a3a3a3;
  --grey-500: #737373;
  --grey-600: #525252;
  --grey-700: #404040;
  --grey-800: #262626;
  --grey-900: #171717;
  --grey-950: #0a0a0a;

  /* Accent */
  --pink: #FF2867;
  --pink-hover: #e6204d;

  /* Semantic */
  --bg: var(--grey-50);
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --text: var(--grey-900);
  --text-secondary: var(--grey-500);
  --text-muted: var(--grey-400);
  --border: var(--grey-200);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-lift: 0 8px 24px rgba(0,0,0,0.12);

  /* Spacing */
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 60px;
  --gap: 8px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;

  /* Fonts */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

/* Dark mode */
:root.dark {
  --bg: var(--grey-950);
  --bg-card: var(--grey-900);
  --bg-sidebar: var(--grey-900);
  --text: var(--grey-100);
  --text-secondary: var(--grey-400);
  --text-muted: var(--grey-600);
  --border: var(--grey-800);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --shadow-lift: 0 8px 24px rgba(0,0,0,0.4);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img, video {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Layout --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  max-width: 100%;
}

@media (max-width: 768px) {
  .app-main {
    margin-left: var(--sidebar-collapsed-width);
    padding: 1rem;
  }
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar-header {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  position: relative;
}

.sidebar-logo {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-logo-icon {
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.sidebar-label {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--transition-fast), width var(--transition);
}

.sidebar-collapse-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.sidebar-collapse-btn:hover {
  background: var(--grey-100);
  color: var(--text);
}

.dark {
  .sidebar-collapse-btn:hover {
    background: var(--grey-800);
  }
}

/* Collapsed state */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-label {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1rem 0;
}

.sidebar.collapsed .sidebar-logo {
  position: absolute;
  inset: 0;
  justify-content: center;
  align-items: center;
  opacity: 0.06;
  pointer-events: none;
}

.sidebar.collapsed .sidebar-collapse-btn {
  margin: 0 auto;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.sidebar-link svg {
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--grey-100);
  color: var(--text);
}

.dark {
  .sidebar-link:hover {
    background: var(--grey-800);
  }
}

.sidebar-link.router-link-active {
  background: var(--grey-100);
  color: var(--text);
}

.dark {
  .sidebar-link.router-link-active {
    background: var(--grey-800);
  }
}

/* Collapsed nav: center icons, even active background */
.sidebar.collapsed .sidebar-nav {
  padding: 0.5rem;
  align-items: center;
}

.sidebar.collapsed .sidebar-link {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.sidebar-footer {
  padding: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar.collapsed .sidebar-footer {
  align-items: center;
}

.sidebar.collapsed .sidebar-footer .sidebar-link {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 0;
}

/* Sidebar collapse: adjust main content */
.sidebar.collapsed ~ .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

/* Mobile: default to collapsed icon-only, but allow expanding */
@media (max-width: 768px) {
  .sidebar:not(.expanded) {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar:not(.expanded) .sidebar-label {
    opacity: 0;
    width: 0;
    pointer-events: none;
  }

  .sidebar:not(.expanded) .sidebar-header {
    justify-content: center;
    padding: 1rem 0;
  }

  .sidebar:not(.expanded) .sidebar-logo {
    position: absolute;
    inset: 0;
    justify-content: center;
    align-items: center;
    opacity: 0.06;
    pointer-events: none;
  }

  .sidebar:not(.expanded) .sidebar-collapse-btn {
    margin: 0 auto;
  }

  .sidebar:not(.expanded) .sidebar-nav {
    align-items: center;
  }

  .sidebar:not(.expanded) .sidebar-link {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .sidebar:not(.expanded) .sidebar-footer {
    align-items: center;
  }

  .sidebar:not(.expanded) .sidebar-footer .sidebar-link {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  /* Expanded mobile sidebar overlays content */
  .sidebar.expanded {
    position: fixed;
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
}

/* --- Typography --- */
.display-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

.view-header {
  margin-bottom: 2rem;
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* --- Masonry Grid --- */
.masonry-grid {
  columns: 4 280px;
  column-gap: var(--gap);
}

@media (max-width: 1200px) {
  .masonry-grid { columns: 3 240px; }
}

@media (max-width: 768px) {
  .masonry-grid { columns: 2 160px; }
}

@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
}

/* --- Media Card --- */
.media-card {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.media-card.loaded {
  opacity: 1;
}

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

.media-card img,
.media-card video {
  width: 100%;
  display: block;
  object-fit: cover;
}

.video-wrapper {
  position: relative;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: opacity var(--transition-fast);
}

.video-play-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.media-card-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-card);
}

/* --- Media Modal --- */
.media-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeIn 0.2s ease;
  padding: 2rem;
}

.media-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition-fast);
}

.media-modal-close:hover {
  background: rgba(255,255,255,0.2);
}

.media-modal-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.media-modal-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
}

.media-modal-caption {
  margin-top: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--pink);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--pink-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--grey-100);
  color: var(--text);
}

.dark {
  .btn-ghost:hover {
    background: var(--grey-800);
  }
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-danger-ghost:hover {
  color: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,40,103,0.1);
}

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

.char-count {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Upload --- */
.upload-view {
  max-width: 560px;
}

.upload-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-secondary);
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.upload-dropzone:hover {
  border-color: var(--pink);
  background: rgba(255,40,103,0.03);
}

.upload-preview {
  position: relative;
  margin-bottom: 1rem;
}

.preview-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.preview-media img,
.preview-media video {
  width: 100%;
}

.preview-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.upload-form {
  margin-bottom: 1rem;
}

.upload-actions {
  margin-bottom: 1rem;
}

.upload-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 4px;
  background: var(--grey-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 2px;
  transition: width var(--transition);
}

/* --- Messages --- */
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.message-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.message-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.dark {
  .message-error {
    background: rgba(220,38,38,0.1);
    border-color: rgba(220,38,38,0.3);
  }
  .message-success {
    background: rgba(22,163,74,0.1);
    border-color: rgba(22,163,74,0.3);
  }
}

/* --- Login --- */
.login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.login-card .display-title {
  font-size: 2rem;
  text-align: center;
}

.login-card .view-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-form .btn {
  margin-top: 0.5rem;
}

/* --- Not Found --- */
.not-found-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  gap: 0.5rem;
}

.not-found-view .display-title {
  font-size: 6rem;
  color: var(--text-muted);
}

/* --- Modal (generic) --- */
.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);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.modal-sm {
  max-width: 400px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.modal-body-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* --- Media Table (Manage) --- */
.manage-view {
  max-width: 900px;
}

.media-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.media-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.media-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.media-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.media-table tr:last-child td {
  border-bottom: none;
}

.media-table-thumb img,
.media-table-thumb video {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.media-table-caption {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-table-date {
  white-space: nowrap;
  color: var(--text-secondary);
}

.media-table-actions {
  display: flex;
  gap: 0.25rem;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--grey-100);
  color: var(--grey-600);
}

.dark {
  .badge {
    background: var(--grey-800);
    color: var(--grey-400);
  }
}

/* --- States --- */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  gap: 1rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Vue transitions */
.fade-enter-active,
.fade-leave-active {
  transition: opacity var(--transition);
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Stagger animation for masonry items */
.masonry-grid .media-card:nth-child(1) { animation-delay: 0ms; }
.masonry-grid .media-card:nth-child(2) { animation-delay: 50ms; }
.masonry-grid .media-card:nth-child(3) { animation-delay: 100ms; }
.masonry-grid .media-card:nth-child(4) { animation-delay: 150ms; }
.masonry-grid .media-card:nth-child(5) { animation-delay: 200ms; }
.masonry-grid .media-card:nth-child(6) { animation-delay: 250ms; }
.masonry-grid .media-card:nth-child(7) { animation-delay: 300ms; }
.masonry-grid .media-card:nth-child(8) { animation-delay: 350ms; }
.masonry-grid .media-card:nth-child(n+9) { animation-delay: 400ms; }

/* --- Install Guide Overlay --- */
.install-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 var(--transition-fast);
}

.install-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.install-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.install-desc {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.install-steps {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dark {
  .install-card {
    background: var(--grey-900);
  }
}

/* --- Capture View --- */
.capture-view {
  max-width: 640px;
  margin: 0 auto;
}

.capture-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-secondary);
}

.capture-error svg {
  opacity: 0.5;
}

.capture-viewfinder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-950);
}

.capture-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}

.capture-mode-toggle {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 3px;
}

.capture-mode-toggle button {
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.capture-mode-toggle button.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.capture-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.capture-flip-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background var(--transition-fast);
}

.capture-flip-btn:hover {
  background: rgba(0,0,0,0.6);
}

.capture-shutter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(255,255,255,0.3);
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.capture-shutter::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  transition: all var(--transition-fast);
}

.capture-shutter:hover::after {
  background: var(--grey-200);
}

.capture-shutter.video::after {
  border-radius: 50%;
  background: var(--pink);
}

.capture-shutter.recording {
  border-color: var(--pink);
}

.capture-shutter.recording::after {
  border-radius: 4px;
  inset: 16px;
  background: var(--pink);
  animation: pulse 1.5s ease infinite;
}

.capture-spacer {
  width: 44px;
}

/* Capture preview */
.capture-preview-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.capture-preview-media img,
.capture-preview-media video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #000;
}

.capture-preview-card .upload-form {
  padding: 1rem 1.25rem;
}

.capture-preview-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  justify-content: flex-end;
}

/* --- PWA Display Mode Utilities --- */
@media all and (display-mode: standalone) {
  .hide-in-pwa {
    display: none !important;
  }
}

@media not all and (display-mode: standalone) {
  .hide-in-browser {
    display: none !important;
  }
}
