:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --text: #2c2c2c;
  --muted: #6b7280;
  --accent: #003057;
  --accent-strong: #001f3d;
  --accent-light: #B3A369;
  --line: #e8e2da;
  --soft: #f3efe9;
  --danger: #b45353;
  --shadow: 0 18px 42px rgba(44, 44, 44, 0.08);
  --gold: #B3A369;
  --gold-dark: #9a8a55;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { width: min(100%, 1100px); margin: 0 auto; padding: 16px 16px 0; }
.stack { display: grid; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }

/* ═══ HERO ═══ */
.hero { position: relative; padding: 0; display: grid; overflow: hidden; }
.beach-hero { background: linear-gradient(180deg, var(--gold) 0%, var(--accent) 60%, var(--accent-strong) 100%); border-radius: 24px; margin-bottom: 8px; }
.hero-sky { position: absolute; top: 0; left: 0; right: 0; height: 60%; background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 32px 24px 48px; display: grid; gap: 16px; }
.hero-copy h1 { margin: 6px 0 8px; font-size: clamp(2.2rem, 8vw, 4rem); line-height: 0.95; color: white; text-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.hero-text { margin: 0; color: rgba(255,255,255,0.88); font-size: 1rem; line-height: 1.5; max-width: 42rem; }
.beach-hero .eyebrow { color: rgba(255,255,255,0.65); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-upload-btn { background: #B3A369 !important; color: #001f3d !important; font-weight: 800; font-size: 0.88rem; padding: 10px 18px; flex-shrink: 0; margin-top: 8px; }
.hero-upload-btn:hover { background: #9a8a55 !important; }
.hero-cta { background: var(--gold); color: var(--accent-strong); box-shadow: 0 4px 16px rgba(0,0,0,0.15); font-weight: 700; }
.hero-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
.hero-tabs { margin-top: 16px; background: #001f3d; border-radius: 999px; padding: 4px; display: flex; gap: 4px; }
.hero-tabs .main-tab { color: #d4cfc7; background: transparent; box-shadow: none; }
.hero-tabs .main-tab:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
.hero-tabs .main-tab.active { background: #B3A369 !important; color: #001f3d !important; font-weight: 800; box-shadow: none !important; }
.hero-wave-bottom { position: relative; z-index: 1; margin-top: -30px; line-height: 0; }
.hero-wave-bottom svg { width: 100%; height: 40px; display: block; }

/* ═══ BUTTONS ═══ */
.primary-button, .secondary-button { border: 0; border-radius: 999px; padding: 12px 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; transition: transform 0.1s, box-shadow 0.1s; }
.primary-button:active, .secondary-button:active { transform: scale(0.97); }
.primary-button { background: var(--accent); color: white; }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { background: var(--soft); color: var(--text); }
.secondary-button:hover { background: #ebe5de; }

/* ═══ STATS ═══ */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 18px 18px 0 0; }
.stat-ocean::before { background: var(--accent); }
.stat-sun::before { background: var(--gold); }
.stat-palm::before { background: var(--accent); }
.stat-sand::before { background: var(--gold-dark); }
.stat-label { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.stat-card strong { font-size: 1.25rem; }

/* ═══ UPLOAD ═══ */
.upload-card { padding: 18px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-header h2 { margin: 4px 0 0; font-size: 1.35rem; }
.helper-text { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.field-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.9rem; font-weight: 600; }
.field input, .search-box input { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 14px; padding: 14px 15px; transition: border-color 0.15s; }
.field input:focus, .search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,48,87,0.1); }

.beach-dropzone { margin-top: 14px; border: 2px dashed var(--gold); background: linear-gradient(180deg, #faf8f5 0%, #f3efe9 100%); border-radius: 22px; display: block; padding: 24px 18px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.beach-dropzone:hover, .beach-dropzone.dragover { border-color: var(--accent); background: linear-gradient(180deg, #f3efe9 0%, #ebe5de 100%); }
.dropzone input { width: 100%; min-height: 80px; }
.dropzone-content { display: grid; gap: 6px; margin-bottom: 10px; text-align: center; }
.dropzone-icon { font-size: 1.8rem; font-weight: 300; color: var(--accent); width: 48px; height: 48px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; }
.dropzone-content span { color: var(--muted); font-size: 0.92rem; }
.selected-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.selected-file-chip { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 0.82rem; }
.upload-actions { margin-top: 14px; display: grid; gap: 12px; }

/* ═══ PER-FILE PROGRESS ═══ */
.file-progress-list { display: grid; gap: 8px; }
.file-progress-item { display: grid; gap: 4px; }
.file-progress-label { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.file-progress-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.file-progress-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.file-progress-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.file-progress-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.15s; }
.file-progress-bar-fill.done { background: #27ae60; }
.file-progress-bar-fill.error { background: var(--danger); }
.progress-bar { width: 100%; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.2s; }

/* ═══ TOOLBAR ═══ */
.toolbar { display: grid; gap: 12px; }
.segmented { display: inline-flex; background: var(--soft); padding: 4px; border-radius: 999px; gap: 4px; width: fit-content; }
.segment { border: 0; background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 999px; font-weight: 700; transition: background 0.15s, color 0.15s; }
.segment.active { background: white; color: var(--text); box-shadow: 0 8px 16px rgba(44,44,44,0.08); }
.favorite-filter.active, .favorite-card-btn.active { background: var(--gold); color: var(--accent-strong); }
.heart-card-btn { font-size: 1rem; }
.heart-card-btn.active { color: #e74c3c; background: #fde8e8; }
.heart-card-btn .heart-count { font-size: 0.82rem; font-weight: 700; }
@keyframes heartPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.heart-card-btn.just-popped { animation: heartPop 0.3s ease; }
.filter-select { display: grid; gap: 6px; }
.filter-select span { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.filter-select select { width: 100%; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 14px; padding: 13px 14px; font-weight: 650; }
.filter-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,48,87,0.1); }

/* ═══ MASONRY GALLERY ═══ */
.gallery-header { margin-bottom: 12px; }
.gallery-masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-card { overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(44,44,44,0.12); }
.gallery-thumb-wrap { position: relative; background: #e9eef1; overflow: hidden; }
.gallery-thumb, .gallery-thumb-wrap video { width: 100%; display: block; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb.thumb-placeholder { aspect-ratio: 4 / 3; min-height: 160px; background: var(--soft); }
.gallery-card:hover .gallery-thumb, .gallery-card:hover .gallery-thumb-wrap video { transform: scale(1.03); }
.video-pill { position: absolute; left: 10px; top: 10px; border-radius: 999px; padding: 5px 10px; background: rgba(0,0,0,0.6); color: white; font-size: 0.72rem; font-weight: 600; backdrop-filter: blur(4px); }
.video-play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; background: rgba(0,0,0,0.45); border-radius: 999px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; pointer-events: none; backdrop-filter: blur(2px); }
.uploader-badge { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 0.75rem; font-weight: 600; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.uploader-avatar { width: 24px; height: 24px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.gallery-meta { padding: 12px; display: grid; gap: 6px; }
.gallery-name { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.3; word-break: break-word; }
.gallery-sub, .gallery-note { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.gallery-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.gallery-actions button, .gallery-actions a { border: 0; border-radius: 12px; padding: 10px 6px; text-align: center; text-decoration: none; background: var(--soft); color: var(--text); font-weight: 700; font-size: 0.78rem; transition: background 0.15s; }
.gallery-actions button:hover, .gallery-actions a:hover { background: #ebe5de; }
.gallery-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-tag-chip { border: 1px solid rgba(0,48,87,0.18); background: #eef4f7; color: var(--accent); border-radius: 999px; padding: 5px 9px; font-size: 0.76rem; font-weight: 700; cursor: pointer; }
.gallery-tag-chip:hover { background: #dfeaf0; }
.gallery-load-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0 16px; }
.gallery-load-more button { border: 1px solid rgba(0,48,87,0.18); border-radius: 999px; background: var(--card); color: var(--accent); padding: 12px 22px; font-weight: 800; box-shadow: var(--shadow); cursor: pointer; }
.gallery-load-more button:hover { background: #eef4f7; }
.empty-state { border: 1px dashed var(--line); border-radius: 20px; padding: 28px 16px; text-align: center; color: var(--muted); display: grid; gap: 6px; }
.hidden { display: none !important; }

/* ═══ VIEWER ═══ */
.viewer-dialog { width: min(96vw, 1100px); border: 0; padding: 0; border-radius: 24px; background: transparent; }
.viewer-dialog::backdrop { background: rgba(20, 26, 31, 0.78); backdrop-filter: blur(4px); }
.viewer-shell { display: flex; justify-content: flex-end; }
.viewer-close { border: 0; background: white; width: 44px; height: 44px; border-radius: 999px; font-size: 1.8rem; }
.viewer-body { background: var(--card); border-radius: 24px; overflow: hidden; display: grid; }
.viewer-media-wrap { background: #111827; min-height: 40vh; display: grid; place-items: center; }
.viewer-media-wrap img, .viewer-media-wrap video { width: 100%; max-height: 72vh; object-fit: contain; }
.viewer-meta { padding: 18px; display: grid; gap: 10px; overflow-y: auto; max-height: 80vh; }
.viewer-meta h3 { margin: 0; }
.viewer-meta-line, .viewer-note { margin: 0; color: var(--muted); line-height: 1.5; }
.viewer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ═══ VIDEO PLAYER ═══ */
.video-player-wrap { position: relative; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.video-player-wrap video { width: 100%; max-height: 65vh; display: block; }
.video-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity 0.3s; }
.video-player-wrap:hover .video-overlay { opacity: 1; }
.video-overlay button { background: rgba(255,255,255,0.2); border: 0; color: white; width: 40px; height: 40px; border-radius: 999px; font-size: 1.2rem; cursor: pointer; flex-shrink: 0; }
.video-overlay button:hover { background: rgba(255,255,255,0.3); }

/* ═══ TAGS ═══ */
.viewer-section { border-top: 1px solid var(--line); padding-top: 12px; }
.viewer-section-title { margin: 0 0 8px; font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 600; color: var(--text); }
.tag-chip .tag-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.9rem; padding: 0 2px; line-height: 1; }
.tag-chip .tag-remove:hover { color: var(--danger); }
.tag-input-row { display: flex; gap: 6px; }
.tag-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; }
.tag-add-btn { background: var(--accent); color: white; border: 0; border-radius: 10px; padding: 8px 14px; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.tag-add-btn:hover { background: var(--accent-strong); }

/* ═══ COMMENTS ═══ */
.comments-list { display: grid; gap: 8px; margin-bottom: 10px; max-height: 200px; overflow-y: auto; }
.comment-item { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.comment-author { font-weight: 700; font-size: 0.85rem; }
.comment-time { font-size: 0.75rem; color: var(--muted); }
.comment-body { margin: 0; font-size: 0.88rem; line-height: 1.4; color: var(--text); }
.comment-input-row { display: grid; gap: 6px; }
.comment-input-row input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; }
.comment-input-row textarea { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; resize: vertical; min-height: 60px; font-family: inherit; }
.comment-input-row textarea:focus, .comment-input-row input:focus { outline: none; border-color: var(--accent); }
.comment-submit-btn { padding: 8px 16px; font-size: 0.85rem; justify-self: start; }

/* ═══ FAB ═══ */
.fab-camera { display: none; position: fixed; bottom: 24px; right: 20px; width: 60px; height: 60px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--gold)); color: white; border: 0; box-shadow: 0 6px 20px rgba(0,48,87,0.4); z-index: 99; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fab-inner { font-size: 1.6rem; font-weight: 300; line-height: 1; }
.fab-camera:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(0,48,87,0.5); }
.fab-camera:active { transform: scale(0.92); box-shadow: 0 4px 12px rgba(0,48,87,0.3); }

/* ═══ FOOTER ═══ */
.login-screen { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--gold) 0%, var(--accent) 60%, var(--accent-strong) 100%); padding: 24px; }
.login-card { background: white; border-radius: 24px; padding: 40px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 24px 48px rgba(0,0,0,0.2); }
.login-emoji { font-size: 3.5rem; margin-bottom: 8px; }
.login-card h1 { margin: 6px 0 8px; font-size: 1.8rem; }
.login-subtitle { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px; }
.login-form { display: grid; gap: 12px; }
.login-form input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; font-size: 1rem; text-align: center; }
.login-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,48,87,0.1); }
.login-btn { width: 100%; padding: 14px; font-size: 1rem; }
.login-error { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; margin: 0; }

/* ═══ MOBILE BOTTOM NAV ═══ */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: #001f3d; padding: 6px 8px env(safe-area-inset-bottom, 8px); gap: 4px; justify-content: space-around; }
.mobile-nav .mobile-nav-btn { flex: 1; border: 0; background: transparent; color: #d4cfc7; padding: 10px 4px; font-size: 0.72rem; font-weight: 700; text-align: center; border-radius: 10px; display: grid; gap: 2px; place-items: center; }
.mobile-nav .mobile-nav-btn .mobile-nav-icon { font-size: 1.2rem; line-height: 1; }
.mobile-nav .mobile-nav-btn.active { background: #B3A369; color: #001f3d; }

/* ═══ TODAY'S MEALS ═══ */
.todays-card { padding: 20px; background: linear-gradient(135deg, var(--accent) 0%, #1a5276 100%); color: white; border: 0; }
.todays-header { margin-bottom: 14px; }
.todays-header .eyebrow { color: rgba(255,255,255,0.65); }
.todays-header h2 { margin: 4px 0 0; color: white; font-size: 1.4rem; }
.todays-meals { display: grid; gap: 10px; }
.todays-meal { background: rgba(255,255,255,0.12); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px); }
.todays-meal-type { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.75; margin-bottom: 4px; }
.todays-meal-host { font-size: 1.1rem; font-weight: 700; }
.todays-meal-menu { font-size: 0.88rem; opacity: 0.85; margin-top: 4px; }
.todays-meal-empty { font-size: 0.88rem; opacity: 0.6; font-style: italic; }
.todays-section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; margin-top: 8px; margin-bottom: 2px; }
.todays-section-label:first-child { margin-top: 0; }
.todays-section-tomorrow { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.15); }
.todays-meal-compact { padding: 10px 14px; }
.todays-meal-menu-compact { font-size: 0.8rem; }
.tomorrow-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tomorrow-col { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 12px; text-align: center; }
.tomorrow-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 4px; }
.tomorrow-host { font-size: 0.92rem; font-weight: 700; }
.tomorrow-menu { font-size: 0.75rem; opacity: 0.7; margin-top: 3px; }
.todays-no-trip { text-align: center; padding: 8px; opacity: 0.8; }

/* ═══ MAIN TABS ═══ */
.main-tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.main-tab { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 12px 14px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; transition: background 0.15s, color 0.15s; text-align: center; }
.main-tab.active { background: white; color: var(--text); box-shadow: 0 8px 16px rgba(44,44,44,0.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══ MEAL PLAN ═══ */
.meal-section { padding: 18px; }
.meal-filter-row { display: flex; gap: 8px; align-items: center; }
.filter-select-inline { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; font-weight: 600; }
.filter-select-inline:focus { outline: none; border-color: var(--accent); }
.meal-countdown { background: linear-gradient(135deg, var(--accent), #1a5276); color: white; border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; display: grid; gap: 4px; }
.meal-countdown .countdown-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.meal-countdown .countdown-meal { font-size: 1.1rem; font-weight: 700; }
.meal-countdown .countdown-host { font-size: 0.88rem; opacity: 0.9; }
.meal-countdown .countdown-menu { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }
.meal-plan-grid { display: grid; gap: 16px; }
.meal-day { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.meal-day-header { background: var(--soft); padding: 12px 16px; font-weight: 700; font-size: 1rem; border-bottom: 1px solid var(--line); }
.meals-in-day { display: grid; }
.meal-card { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.meal-card:last-child { border-bottom: 0; }
.meal-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meal-type { font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.meal-host-badge { display: inline-flex; align-items: center; gap: 4px; background: #eef4f7; color: var(--accent); border: 1px solid rgba(0,48,87,0.15); border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 700; }
.meal-menu { display: grid; gap: 3px; }
.meal-menu-item { font-size: 0.9rem; color: var(--text); padding-left: 12px; position: relative; }
.meal-menu-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 999px; background: var(--gold); }
.meal-menu-empty { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.meal-notes { font-size: 0.82rem; color: var(--muted); background: #fef9e7; border-radius: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); }
.meal-edit-row { display: flex; gap: 6px; margin-top: 6px; }
.meal-edit-btn { border: 0; background: var(--soft); color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.meal-edit-btn:hover { background: #ebe5de; color: var(--text); }

/* ═══ MEAL EDIT DIALOG ═══ */
.meal-edit-dialog { border: 0; padding: 0; border-radius: 20px; background: var(--card); max-width: 420px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.meal-edit-dialog::backdrop { background: rgba(20,26,31,0.6); backdrop-filter: blur(3px); }
.meal-edit-form { padding: 24px; display: grid; gap: 14px; }
.meal-edit-form h3 { margin: 0; }
.meal-edit-form label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.meal-edit-form input, .meal-edit-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 0.9rem; }
.meal-edit-form textarea { min-height: 60px; resize: vertical; }
.meal-edit-form input:focus, .meal-edit-form textarea:focus { outline: none; border-color: var(--accent); }
.meal-edit-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ═══ SHOPPING LIST ═══ */
.shopping-section { padding: 18px; }
.shopping-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.shop-stat { background: var(--soft); border-radius: 12px; padding: 10px; text-align: center; }
.shop-stat strong { display: block; font-size: 1.2rem; }
.shop-stat span { font-size: 0.75rem; color: var(--muted); }
.shop-stat.shop-stat-urgent strong { color: var(--danger); }
.shopping-add-form { background: var(--soft); border-radius: 16px; padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; }
.shopping-add-row { display: flex; gap: 8px; }
.shopping-add-row input:first-child { flex: 1; }
.shop-qty { width: 70px; }
.shop-priority { width: 90px; }
.shop-add-btn { white-space: nowrap; padding: 10px 16px; }
.shopping-add-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shopping-add-detail input, .shopping-add-detail select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 0.85rem; background: #fff; }
.shopping-add-detail input:focus, .shopping-add-detail select:focus { outline: none; border-color: var(--accent); }
.shopping-add-detail input:last-child { grid-column: 1 / -1; }
.shopping-filter-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.shopping-list { display: grid; gap: 8px; }
.shop-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; background: var(--card); transition: opacity 0.2s; }
.shop-item.shop-item-purchased { opacity: 0.7; }
.shop-item.shop-item-delivered { opacity: 0.5; }
.shop-item-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-item-name { font-weight: 700; font-size: 0.95rem; }
.shop-item-actions { display: flex; gap: 6px; align-items: center; }
.shop-action-btn { border: 0; padding: 6px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.shop-action-purchase { background: #e8f5e9; color: #2e7d32; }
.shop-action-purchase:hover { background: #c8e6c9; }
.shop-action-deliver { background: #e3f2fd; color: #1565c0; }
.shop-action-deliver:hover { background: #bbdefb; }
.shop-action-delete { background: #ffebee; color: #c62828; }
.shop-action-delete:hover { background: #ffcdd2; }
.shop-action-edit { background: #fff3e0; color: #e65100; }
.shop-action-edit:hover { background: #ffe0b2; }
.shop-item-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.shop-priority-chip { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.shop-priority-chip.urgent { background: #ffcdd2; color: #c62828; }
.shop-priority-chip.normal { background: var(--soft); color: var(--muted); }
.shop-priority-chip.low { background: #e8f5e9; color: #666; }
.shop-category-chip { font-size: 0.72rem; background: #eef4f7; color: var(--accent); padding: 3px 8px; border-radius: 999px; }
.shop-qty-chip { font-size: 0.78rem; color: var(--muted); }
.shop-item-requester { font-size: 0.78rem; color: var(--muted); }
.shop-item-purchased-info { font-size: 0.78rem; color: #2e7d32; }
.shop-item-notes { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.shop-empty { text-align: center; color: var(--muted); padding: 28px 16px; }

/* ═══ BEACH CAM ═══ */
.beachcam-section { padding: 18px; }
.beachcam-header { align-items: flex-start; gap: 12px; }
.beachcam-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.beachcam-refresh { padding: 9px 14px; font-size: 0.86rem; }
.beachcam-wrap { width: 100%; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 12px; }
.beachcam-wrap video { width: 100%; display: block; background: #000; border-radius: 12px; }
.beachcam-status { min-height: 1.2em; font-size: 0.86rem; color: var(--accent); text-align: center; margin: 0 0 8px; font-weight: 700; }
.beachcam-status-error { color: #9f2d20; }
.beachcam-caption { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 0; }
.beachcam-caption a { color: var(--accent); text-decoration: underline; }

/* ═══ FOOTER ═══ */
.beach-footer { margin-top: 32px; text-align: center; position: relative; }
.footer-wave { line-height: 0; margin-bottom: -4px; }
.footer-wave svg { width: 100%; height: 50px; display: block; }
.footer-text { color: var(--muted); font-size: 0.85rem; padding: 8px 0 24px; }

/* ═══ EYEBROW ═══ */
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; color: var(--accent); font-weight: 700; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 700px) {
  .app-shell { padding: 26px 22px 0; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .field-grid { grid-template-columns: 1fr 1.2fr; }
  .toolbar { grid-template-columns: auto auto; align-items: end; }
  .search-box { grid-column: 1 / -1; }
  .gallery-masonry { grid-template-columns: repeat(3, 1fr); }
  .viewer-body { grid-template-columns: minmax(0, 2fr) 340px; }
  .hero-content { padding: 40px 32px 56px; }
}
@media (min-width: 1024px) {
  .gallery-masonry { grid-template-columns: repeat(4, 1fr); }
  .toolbar { grid-template-columns: auto auto minmax(220px, 1fr) 150px 150px 150px; }
  .search-box { grid-column: auto; }
}
@media (max-width: 699px) {
  .fab-camera { display: flex; bottom: 80px; }
  .gallery-section { padding-bottom: 80px; }
  .hero-tabs { display: none; }
  .mobile-nav { display: flex; }
}
