@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #2C3E50;
  --primary-dark: #34495E;
  --secondary: #7F8C8D;
  --accent: #BDC3C7;
  --light: #ECF0F1;
  --bg: #FFF8E1;
  --bg-card: #FFFFFF;
  --bg-warm: #FFF3E0;
  --text-primary: #3E2723;
  --text-secondary: #5D4037;
  --text-muted: #8D6E63;
  --border: #FFE0B2;
  --border-light: #FFF3E0;
  --shadow-sm: 0 1px 3px rgba(255, 143, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(255, 143, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(255, 143, 0, 0.12);
  --shadow-hover: 0 8px 28px rgba(255, 143, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

::selection {
  background: var(--secondary);
  color: var(--text-primary);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ===== App Shell ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(255, 143, 0, 0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  animation: buzzing 2s ease-in-out infinite;
}

@keyframes buzzing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

.app-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
}

.app-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-add:active {
  transform: translateY(0);
}

.btn-add-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* ===== Feed ===== */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-controls {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 160, 0, 0.15);
}

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

.location-filter {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-width: 160px;
}

.location-filter:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 160, 0, 0.15);
}

.tip-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 4px;
}

/* ===== Tips Grid ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ===== Tip Card ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tip-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.5s ease both;
  display: flex;
  flex-direction: column;
}

.tip-card:nth-child(1) { animation-delay: 0s; }
.tip-card:nth-child(2) { animation-delay: 0.06s; }
.tip-card:nth-child(3) { animation-delay: 0.12s; }
.tip-card:nth-child(4) { animation-delay: 0.18s; }
.tip-card:nth-child(5) { animation-delay: 0.24s; }
.tip-card:nth-child(6) { animation-delay: 0.3s; }
.tip-card:nth-child(n+7) { animation-delay: 0.36s; }

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.tip-photo-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-warm);
}

.tip-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tip-card:hover .tip-photo {
  transform: scale(1.03);
}

.tip-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tip-category-inline {
  padding: 16px 20px 0;
}

.tip-category-badge.no-photo {
  position: static;
  display: inline-block;
  background: var(--bg-warm);
  border: 1px solid var(--border);
}

.tip-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tip-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tip-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.tip-location,
.tip-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.meta-icon {
  font-size: 0.75rem;
}

.tip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.tip-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.upvote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
}

.upvote-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.05);
}

.upvote-btn:active {
  transform: scale(0.97);
}

.upvote-icon {
  font-size: 0.9rem;
}

.upvote-count {
  min-width: 12px;
  text-align: center;
}

/* ===== Skeleton Loading ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-bar,
.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.search-skeleton {
  height: 48px;
  border-radius: var(--radius-md);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.skeleton-image {
  height: 200px;
  border-radius: 0;
}

.skeleton-line {
  margin: 16px 20px 0;
  height: 14px;
}

.skeleton-line.wide { width: 80%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.short { width: 40%; margin-bottom: 20px; }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.55;
}

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

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

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

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

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm);
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* ===== Form ===== */
.tip-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group-half {
  flex: 1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 160, 0, 0.15);
}

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

.form-input.input-error {
  border-color: #e53935;
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238D6E63' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.error-text {
  font-size: 0.78rem;
  color: #e53935;
  font-weight: 500;
}

.char-count {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== Photo Upload ===== */
.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload-area:hover {
  border-color: var(--secondary);
  background: var(--bg);
}

.upload-icon {
  font-size: 1.8rem;
}

.upload-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.file-input-hidden {
  display: none;
}

.photo-preview-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.photo-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.photo-remove:hover {
  background: rgba(0, 0, 0, 0.75);
}

.upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 225, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ===== Submit Button ===== */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 143, 0, 0.3);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 143, 0, 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
  }

  .app-title {
    font-size: 1.2rem;
  }

  .app-subtitle {
    font-size: 0.7rem;
  }

  .btn-add-text {
    display: none;
  }

  .btn-add {
    padding: 10px 14px;
    border-radius: 50%;
  }

  .btn-add-icon {
    font-size: 1.3rem;
  }

  .main-content {
    padding: 16px;
  }

  .feed-controls {
    flex-direction: column;
  }

  .location-filter {
    min-width: auto;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 18px;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    align-self: flex-end;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}

@media (max-width: 380px) {
  .logo-icon {
    font-size: 1.6rem;
  }

  .app-title {
    font-size: 1.05rem;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to The Buzz Board — your neighborhood's local news tip board! Here you can see all the latest tips shared by your neighbors.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Use the search bar to find tips by keyword, or filter by location using the dropdown.", "view": "user", "highlight_selector": ".feed-controls", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Each tip card shows the title, description, location, time posted, and a photo if one was uploaded. Tap the fire button to upvote important stories!", "view": "user", "highlight_selector": ".tip-card", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Ready to share something? Tap the '+ New Tip' button in the header to open the submission form.", "view": "user", "highlight_selector": ".btn-add", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Fill in the title, description, choose a category, add your location, and optionally upload a photo. Then hit 'Post Tip' to share with the neighborhood!", "view": "user", "highlight_selector": ".tip-form", "wait_for": "tap_to_continue"}
]
-->

.tipster-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tipster-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tipster-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tipster-avatar-fallback {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.tipster-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tips-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.tips-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-light);
}

.tips-map-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tips-map-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tips-map-badge {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 10px;
}

.tips-map-container {
  height: 320px;
  width: 100%;
}

.tips-map-empty {
  padding: 12px 16px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .tips-map-container {
    height: 260px;
  }

  .tips-map-header {
    flex-direction: column;
    align-items: stretch;
  }
}

.reaction-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.reaction-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-status-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--secondary);
  background: var(--bg);
}

.reaction-status-btn.active {
  background: rgba(255, 160, 0, 0.14);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.reaction-status-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.reaction-status-emoji {
  font-size: 0.9rem;
}

.reaction-status-label {
  white-space: nowrap;
}

.reaction-status-count {
  min-width: 10px;
  text-align: center;
}

.presence-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.presence-bar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.14);
}

.presence-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.presence-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.presence-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.presence-user,
.presence-more,
.presence-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.presence-user {
  padding: 5px 10px 5px 6px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  max-width: 100%;
}

.presence-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.presence-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.presence-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.presence-more {
  padding: 5px 10px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

.presence-empty {
  color: var(--text-muted);
  padding: 4px 0;
}

@media (max-width: 640px) {
  .presence-bar {
    padding: 12px 14px;
  }

  .presence-user-name {
    max-width: 92px;
  }
}

.tip-category-badge {
  text-transform: capitalize;
}

.tip-category-badge.no-photo {
  text-transform: capitalize;
}

.tip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.share-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.share-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.share-btn-primary {
  color: var(--primary);
}

.share-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.share-icon {
  font-size: 0.85rem;
}

.share-label {
  white-space: nowrap;
}

.share-status {
  font-size: 0.75rem;
  color: var(--primary-dark);
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .tip-actions {
    width: 100%;
    justify-content: space-between;
  }

  .share-controls {
    flex: 1 1 auto;
  }

  .share-btn {
    padding: 6px 10px;
  }
}
