:root {
  --accent: #65B800; --accent-dark: #4F9200; --accent-light: #EAF6D8;
  --bg: #F7F8F3; --card: #FFFFFF; --text: #1C1E1A; --text-muted: #6B7368; --border: #E7EAE1; --danger: #E0483C;
  --radius-lg: 20px; --radius-md: 14px; --radius-sm: 10px; --shadow: 0 2px 12px rgba(30, 40, 20, 0.06); --nav-height: 64px; --header-height: 56px; font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--bg); position: sticky; top: 0; z-index: 20; }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.topbar .brand .leaf { color: var(--accent); font-size: 20px; }
.topbar .back-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); border: 1px solid var(--border); font-size: 18px; }
.topbar .avatar-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; border: none; font-size: 14px; overflow: hidden; padding: 0; }
.topbar-avatar-image, .profile-avatar-image, .user-avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.screen { flex: 1; padding: 8px 16px calc(var(--nav-height) + 24px); max-width: 640px; width: 100%; margin: 0 auto; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-height); background: var(--card); border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); font-size: 11px; font-weight: 600; background: none; border: none; flex: 1; padding: 8px 0; }
.nav-item .icon { font-size: 20px; }
.nav-item.active { color: var(--accent-dark); }
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 18px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .05s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: #FBE7E4; color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; padding: 0; }
.fab { position: fixed; right: 20px; bottom: calc(var(--nav-height) + 20px); width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 26px; box-shadow: 0 6px 16px rgba(101, 184, 0, 0.4); z-index: 25; border: none; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #FBFCF9; font-size: 15px; color: var(--text); font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.form-error { background: #FBE7E4; color: var(--danger); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; }
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-logo { font-size: 28px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.auth-logo .leaf { color: var(--accent); }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent-dark); font-weight: 700; }
.tabs { display: flex; gap: 6px; background: var(--card); border-radius: var(--radius-md); padding: 4px; margin-bottom: 14px; }
.tab { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-muted); background: none; border: none; }
.tab.active { background: var(--accent); color: #fff; }
.trip-card { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; align-items: center; }
.trip-cover { width: 72px; height: 72px; border-radius: var(--radius-md); background: var(--accent-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; }
.trip-cover img { width: 100%; height: 100%; object-fit: cover; }
.trip-info { flex: 1; min-width: 0; }
.trip-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.trip-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.trip-dates { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.trip-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.badge-a_venir { background: #E6F0FF; color: #2A6DD6; }
.badge-en_cours { background: var(--accent-light); color: var(--accent-dark); }
.badge-termine { background: #F0EFEA; color: var(--text-muted); }
.trip-header h1 { font-size: 20px; margin: 4px 0 2px; }
.trip-header .dates { color: var(--text-muted); font-size: 13px; }
#map-container { position: relative; height: 46vh; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 4px; }
#leaflet-map { width: 100%; height: 100%; }
.map-zoom-controls { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 15; }
.map-zoom-controls button { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 18px; box-shadow: var(--shadow); }
.marker-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.12); padding: 14px 16px 18px; transform: translateY(105%); transition: transform .25s ease; z-index: 20; max-height: 60%; overflow-y: auto; }
.marker-sheet.open { transform: translateY(0); }
.marker-sheet .close-x { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: none; font-size: 16px; }
.marker-detail-overlay { position: fixed; inset: 0; z-index: 110; overflow-y: auto; background: var(--card); padding: 0 16px calc(24px + env(safe-area-inset-bottom)); animation: marker-detail-in .2s ease-out; }
.marker-detail-overlay .close-x { position: fixed; right: 12px; top: 12px; z-index: 4; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.48); color: #fff; font-size: 18px; }
.modal-backdrop.above-marker-detail { z-index: 130; }
.marker-detail-media { margin: 0 -16px; height: min(58vh, 560px); min-height: 280px; background: #111; }
.marker-viewer { position: relative; width: 100%; height: 100%; overflow: hidden; }
.marker-viewer-slide { position: absolute; inset: 0; display: none; width: 100%; max-width: none; height: 100%; object-fit: contain; background: #111; }
.marker-viewer-slide.active { display: block; }
.marker-viewer-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 42px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.2); color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.marker-viewer-arrow.prev { left: 10px; }
.marker-viewer-arrow.next { right: 10px; }
.marker-viewer-counter { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; }
.marker-viewer-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; }
.media-lightbox { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; background: #050505; }
.media-lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 48px 52px; }
.media-lightbox-stage img, .media-lightbox-stage video { width: 100%; max-width: none; height: 100%; object-fit: contain; }
.media-lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 20px; cursor: pointer; }
.media-lightbox-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer; }
.media-lightbox-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 70px; border: 0; border-radius: 12px; background: rgba(255,255,255,.2); color: #fff; font-size: 46px; line-height: 1; cursor: pointer; }
.media-lightbox-arrow.prev { left: 10px; }
.media-lightbox-arrow.next { right: 10px; }
.media-lightbox-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.marker-detail-info { padding: 18px 0 8px; }
.marker-detail-title { font-size: 21px; font-weight: 800; line-height: 1.2; padding-right: 44px; }
.marker-detail-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; color: var(--text-muted); font-size: 13px; }
.marker-detail-actions { display: flex; gap: 4px; margin: 8px 0 16px; }
.marker-detail-actions .marker-like-btn { flex: 0 0 auto !important; padding: 7px 10px; }
.marker-detail-actions .marker-likes-btn { flex: 0 0 30px; min-width: 30px; margin-left: 0; padding: 7px 0; }
.marker-comments-visible { border-top: 1px solid var(--border); padding-top: 12px; }
.marker-comments-visible #marker-comments-list { max-height: none !important; overflow: visible !important; margin: 8px 0 12px !important; }
.edit-marker-media-list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.edit-marker-media-item { position: relative; flex: 0 0 92px; }
.edit-marker-media-item img, .edit-marker-media-item video { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; background: #222; }
.edit-marker-media-item .btn { width: 100%; margin-top: 5px; padding: 6px 4px; font-size: 11px; }
.edit-marker-media-empty { color: var(--text-muted); font-size: 12px; padding: 8px 0; }
.upload-progress { margin-top: 8px; }
.upload-progress-label { display: block; color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-progress-track { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--accent-light); }
.upload-progress-track > div { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .15s ease; }
.video-upload-confirm-warning { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; }
.video-upload-confirm-size { display: grid; gap: 5px; max-height: 180px; overflow: auto; padding: 11px; border-radius: 10px; background: var(--bg); font-size: 13px; overflow-wrap: anywhere; }
.video-upload-confirm-note { margin: 12px 0 16px; color: var(--text-muted); font-size: 12px; }
.video-upload-confirm-actions { display: flex; gap: 10px; }
.video-upload-confirm-actions button { flex: 1; }
.upload-progress.error .upload-progress-track > div { background: var(--danger); }
@keyframes marker-detail-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.likes-modal .modal-sheet { position: relative; }
.modal-close-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); font-size: 16px; cursor: pointer; }
.marker-sheet-thumbs { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0; }
.marker-sheet-thumbs img, .marker-sheet-thumbs video { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; }
.leaflet-div-icon-nv { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 2px solid #fff; }
.marker-number { position: relative; z-index: 2; }
.marker-media-preview { position: absolute; left: 50%; bottom: 27px; width: 76px; max-width: none; height: 76px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); opacity: 0; transform: translate(-50%, 8px) scale(.8); transition: opacity .18s ease, transform .18s ease; pointer-events: auto; cursor: pointer; background: #222; }
.marker-preview-visible .marker-media-preview { opacity: 1; transform: translate(-50%, 0) scale(1); }
.marker-list-thumb { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex: 0 0 68px; background: var(--accent-light); }
.marker-list-video { display: flex; align-items: center; justify-content: center; color: #fff; background: #39433a; font-size: 20px; }
.video-processing-thumb, .edit-video-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 120px; min-height: 88px; padding: 8px; border-radius: 10px; background: #eef2e8; color: var(--text-muted); text-align: center; font-size: 11px; }
.video-processing-thumb progress { width: 90%; height: 6px; accent-color: var(--accent); }
.video-processing-icon { font-size: 22px; }
.video-processing-thumb.failed, .edit-video-processing.failed, .video-card-processing.failed, .video-processing-view.failed { background: #fbe7e4; color: var(--danger); }
.video-processing-view { display: none; align-items: center; justify-content: center; color: #fff; text-align: center; }
.video-processing-view.active { display: flex; }
.video-processing-view > div { display: grid; justify-items: center; gap: 12px; padding: 20px; }
.video-processing-view span { font-size: 40px; }
.video-processing-view progress { width: min(65vw, 260px); height: 8px; accent-color: var(--accent); }
.video-card-processing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: #333a30; color: #fff; font-size: 30px; }
.video-card-processing small { font-size: 12px; }
.marker-preview-processing { display: flex; align-items: center; justify-content: center; border-radius: 10px !important; background: #333a30; color: #fff; font-size: 25px; }
.media-thumb.video-processing-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #39433a; font-size: 28px; }
.media-thumb.video-processing-tile small { font-size: 11px; }
.marker-list-empty { display: flex; align-items: center; justify-content: center; font-size: 25px; }
.markers-slider { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: thin; }
.markers-slider > .card { flex: 0 0 min(82vw, 360px); scroll-snap-align: start; margin-bottom: 0; }
.marker-card { position: relative; min-height: 220px; overflow: hidden; text-align: left; cursor: pointer; width: 100%; padding: 0; border: 1px solid rgba(101,184,0,.12); background: linear-gradient(145deg, #fff 0%, #fbfdf8 100%); }
.marker-card-cover { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.marker-card-empty { display: flex; align-items: center; justify-content: center; background: var(--accent-light); font-size: 48px; }
.marker-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 15%, rgba(0,0,0,.75) 100%); }
.marker-card:not(.has-cover) .marker-card-shade { display: none; }
.marker-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 14px; }
.marker-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: auto; }
.marker-card-counts { display: flex; flex-direction: column; gap: 4px; margin-left: auto; color: #fff; font-size: 12px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.marker-card:not(.has-cover) .marker-card-counts { color: var(--text-muted); text-shadow: none; }
.marker-card-title { margin-top: 12px; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.marker-card-meta { display: flex; gap: 5px; margin-top: 6px; color: rgba(255,255,255,.84); font-size: 12px; }
.marker-card:not(.has-cover) .marker-card-title { color: var(--text); text-shadow: none; }
.marker-card:not(.has-cover) .marker-card-meta { color: var(--text-muted); }
.like-user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.marker-like-btn { justify-content: space-between; }
.marker-likes-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; margin-left: 10px; cursor: pointer; }
.leaflet-div-icon-nv.role-visitor { background: #9AA39A; }
.leaflet-div-icon-nv.role-other { background: #2A6DD6; }
.sub-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin: 10px 0 14px; overflow-x: auto; }
.sub-tab { padding: 8px 2px; font-weight: 700; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; background: none; border-left: none; border-right: none; border-top: none; white-space: nowrap; }
.sub-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.media-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media-thumb { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--accent-light); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.15); color: #fff; font-size: 22px; }
.media-thumb .like-badge { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.55); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; display: flex; align-items: center; gap: 3px; }
.media-thumb .media-size { position: absolute; top: 5px; left: 5px; padding: 3px 6px; border-radius: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; }
.viewer-overlay { position: fixed; inset: 0; background: rgba(10,12,8,0.96); z-index: 100; display: flex; flex-direction: column; }
.viewer-top { display: flex; justify-content: flex-end; padding: 14px; }
.viewer-top button { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 18px; }
.viewer-media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 8px; position: relative; }
.viewer-media img, .viewer-media video { max-height: 100%; max-width: 100%; border-radius: 8px; }
.viewer-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; z-index: 5; }
.viewer-nav-btn.prev { left: 8px; } .viewer-nav-btn.next { right: 8px; }
.viewer-panel { background: #fff; border-radius: 18px 18px 0 0; padding: 14px 16px 24px; max-height: 45%; overflow-y: auto; }
.comment-item { display: flex; gap: 10px; margin-bottom: 14px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author-line { display: flex; align-items: baseline; gap: 8px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-text { font-size: 14px; margin-top: 2px; }
.comment-actions { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.comment-actions button { padding: 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; font: inherit; }
.comment-actions button:hover { color: var(--accent-dark); text-decoration: underline; }
.comment-thread-card { padding: 9px 0; border-bottom: 1px solid var(--border); }
.comment-replies { margin-top: 4px; }
.comment-thread-reply { padding-left: 9px; border-left: 2px solid var(--accent-light); }
.comment-input-bar { display: flex; gap: 8px; align-items: center; position: sticky; bottom: 0; background: #fff; padding: 10px 0; }
.comment-input-bar input { flex: 1; }
.comment-input-bar button { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 16px; }
.friend-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.friend-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar-crop-help { margin: -4px 0 14px; color: var(--text-muted); font-size: 13px; }
.avatar-crop-preview { width: min(72vw, 320px); aspect-ratio: 1; overflow: hidden; margin: 0 auto 14px; border-radius: 50%; background: #20241f; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.avatar-crop-preview canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.avatar-crop-preview canvas.dragging { cursor: grabbing; }
.avatar-crop-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.avatar-zoom-control { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; color: var(--text-muted); font-size: 13px; }
.avatar-zoom-control input { width: min(42vw, 190px); accent-color: var(--accent); }
.avatar-crop-actions { display: flex; gap: 10px; }
.avatar-crop-actions button { flex: 1; }
.friend-name { font-weight: 700; font-size: 15px; }
.friend-username { font-size: 12px; color: var(--text-muted); }
.friend-actions { display: flex; gap: 8px; margin-left: auto; }
.checkbox-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.role-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.role-owner { background: #FFF1D6; color: #B27B00; }
.role-traveler { background: var(--accent-light); color: var(--accent-dark); }
.role-visitor { background: #EDEEF2; color: #5B6270; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.activity-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.activity-text b { font-weight: 700; }
.activity-time { font-size: 11px; color: var(--text-muted); }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-md); background: var(--card); margin-bottom: 8px; box-shadow: var(--shadow); font-size: 14px; }
.admin-user-tag { display: flex; flex-direction: column; gap: 3px; color: var(--text-muted); font-size: 11px; }
.admin-user-tag select { padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.member-role-control { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.member-role-current { color: var(--text-muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.member-role-toggle { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: #f4f6f0; }
.member-role-option { min-height: 34px; padding: 6px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.member-role-option.active { background: var(--accent-light); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }
.member-role-option:disabled { opacity: .65; cursor: wait; }
.admin-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-box { background: var(--card); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow); }
.stat-box .value { font-size: 22px; font-weight: 800; color: var(--accent-dark); }
.stat-box .label { font-size: 12px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }
.toast-root { position: fixed; top: 14px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: #1C1E1A; color: #fff; padding: 10px 18px; border-radius: 30px; font-size: 13px; box-shadow: var(--shadow); }
.toast.error { background: var(--danger); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,12,8,0.5); z-index: 90; display: flex; align-items: flex-end; }
.modal-sheet { background: #fff; width: 100%; border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
.modal-sheet h2 { margin-top: 0; }
.integrated-dialog-message { margin: 8px 0 18px; color: var(--text); font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.integrated-dialog-actions { display: flex; gap: 10px; margin-top: 16px; }
.integrated-dialog-actions .btn { flex: 1; }
.integrated-prompt-label span { display: block; margin-bottom: 6px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--accent-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-row { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; word-break: break-all; }
@media (min-width: 720px) { .app { max-width: 900px; margin: 0 auto; } .bottom-nav { max-width: 900px; margin: 0 auto; } }
