/* ──────────────────────────────────────────────────────────────────────
   My Profile (owner-only) — layered on top of profile-public.css.

   The public-profile page already establishes the two-column grid, card
   styles, stat tiles, and tab strip pattern. This file:
     - Overrides the page wrapper class to keep namespaces clean
       (`.mp-*` instead of `.pp-*`).
     - Adds the editable surfaces (pencil buttons, inline-edit dialog,
       chip picker, avatar edit badge, banner overlay).
     - Provides the right-rail components (Star progress bars, notification
       toggles, account quick links) that are unique to the owner view.

   Dark-mode first; light-mode overrides at the bottom. Two breakpoints:
     - 960px → sidebar drops below the main column.
     - 560px → tighter spacing and smaller hero.
   ───────────────────────────────────────────────────────────────────── */

/* Design-token scope.
   Variables are shared by both the /profile/me wrapper (.mp-page) and
   the /profile/{handle} wrapper (.pp-page) so the .mp-card markup we
   reuse on the public page resolves background / border / text-colour
   correctly. Layout properties stay on .mp-page only (the public page
   has its own .pp-page layout). */
.mp-page,
.pp-page {
    --mp-bg:        #0d111a;
    --mp-card:      #131826;
    --mp-card-2:    #1a2030;
    --mp-border:    #232a3c;
    --mp-pill-bg:       #1a2030;
    --mp-pill-bg-hover: #232a3c;
    --mp-text:      #e6e8ec;
    --mp-text-2:    #b8c0cf;
    --mp-text-3:    #8b93a3;
    --mp-text-4:    #6b7385;
    --mp-accent:    #E05A2B;
    --mp-accent-h:  #c84f24;
    --mp-accent-soft: rgba(224,90,43,0.16);
}

.mp-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 96px;
    color: var(--mp-text);
}

.mp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}
@media (max-width: 960px) {
    .mp-grid { grid-template-columns: minmax(0, 1fr); }
    .mp-aside { order: 2; }
}

/* ══════════ HEADER CARD ══════════════════════════════════════════════ */
.mp-header-card {
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}
.mp-banner {
    height: 200px;
    cursor: pointer;
    position: relative;
    background:
        radial-gradient(60% 90% at 12% 20%, rgba(224,90,43,0.32), transparent 70%),
        radial-gradient(70% 110% at 88% 100%, rgba(34,197,94,0.18), transparent 70%),
        linear-gradient(135deg, #1d2233 0%, #0f1320 100%);
    transition: filter 0.2s ease;
}
.mp-banner--has-image {
    background-size: cover;
    background-repeat: no-repeat;
}

/* ── Reposition mode (LinkedIn-style drag-to-crop) ──────────────── */
.mp-banner--repositioning {
    cursor: grab;
}
.mp-banner--repositioning:active { cursor: grabbing; }
.mp-banner--repositioning .mp-banner-overlay { display: none; }

.mp-reposition-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    z-index: 5;
    gap: 12px;
}
.mp-reposition-bar.hidden { display: none; }
.mp-reposition-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}
.mp-reposition-actions {
    display: flex;
    gap: 8px;
}
.mp-reposition-actions button {
    padding: 5px 14px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.mp-reposition-cancel {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.mp-reposition-cancel:hover { background: rgba(255,255,255,0.25); }
.mp-reposition-save {
    background: var(--mp-accent, #e05a2b);
    color: #fff;
}
.mp-reposition-save:hover { opacity: 0.9; }
.mp-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.18s ease;
    background: rgba(0,0,0,0.35);
}
.mp-banner:hover .mp-banner-overlay,
.mp-banner:focus-visible .mp-banner-overlay { opacity: 1; }

.mp-header-body { position: relative; padding: 0 24px 22px; }

.mp-avatar-wrap { position: relative; display: inline-block; }
.mp-avatar {
    width: 120px; height: 120px;
    margin-top: -64px;
    border-radius: 9999px;
    background: var(--mp-accent);
    border: 4px solid var(--mp-card);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-avatar-edit {
    position: absolute;
    right: 2px; bottom: 2px;
    width: 28px; height: 28px;
    border-radius: 9999px;
    background: var(--mp-card-2);
    border: 2px solid var(--mp-card);
    color: var(--mp-text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.mp-avatar-edit:hover { background: var(--mp-accent); color: #fff; }

.mp-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: -1;
}

.mp-banner--uploading,
.mp-avatar-wrap--uploading .mp-avatar {
    opacity: 0.5;
    pointer-events: none;
}

.mp-identity { margin-top: 14px; }
.mp-identity-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Inline-editable identity ──────────────────────────────────────── */
.mp-name-row,
.mp-location-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mp-name {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--mp-text);
}
.mp-meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--mp-text-3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.mp-location-row { cursor: pointer; }
.mp-location-row:hover { color: var(--mp-text); }
.mp-dot {
    width: 3px; height: 3px;
    background: var(--mp-text-3);
    border-radius: 9999px;
    opacity: 0.7;
    display: inline-block;
}
.mp-pencil {
    background: transparent;
    border: 0;
    color: var(--mp-text-3);
    cursor: pointer;
    width: 22px; height: 22px;
    border-radius: 9999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.mp-pencil:hover { background: rgba(255,255,255,0.06); color: var(--mp-text); }

.mp-empty-hint {
    color: var(--mp-text-4);
    font-style: italic;
}

/* ── Travel-style chips + picker ───────────────────────────────────── */
.mp-styles-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}
.mp-styles-current {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mp-style-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--mp-border);
    color: var(--mp-text-2);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}
.mp-style-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px dashed var(--mp-border);
    color: var(--mp-accent);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.mp-style-edit-btn:hover { background: var(--mp-accent-soft); }

.mp-style-picker {
    margin-top: 12px;
    background: var(--mp-card-2);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    padding: 14px 16px;
}
.mp-style-picker[hidden] { display: none; }
.mp-style-picker-help {
    font-size: 12px;
    color: var(--mp-text-3);
    margin-bottom: 10px;
}
.mp-style-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mp-style-pick {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--mp-border);
    color: var(--mp-text-2);
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mp-style-pick:hover { background: rgba(255,255,255,0.07); }
.mp-style-pick.is-on {
    background: var(--mp-accent);
    border-color: var(--mp-accent);
    color: #fff;
}
/* Hide the check glyph on unselected pills — JS uses .is-on toggling
   instead of conditionally cloning the icon. */
.mp-style-pick-check { display: none; }
.mp-style-pick.is-on .mp-style-pick-check { display: inline; }

/* Loading state — applied to the page wrapper while the API call is
   in flight. Skeleton dimming keeps the layout stable without showing
   the "Add location" / "—" placeholders as final values. */
.mp-page--loading .mp-main,
.mp-page--loading .mp-aside { opacity: 0.55; }
.mp-page--loading [data-bind] { color: transparent; background: rgba(255,255,255,0.04); border-radius: 4px; }
.mp-style-picker-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* ── Buttons (header + dialog use the same scale) ──────────────────── */
.mp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 9999px;
    background: transparent;
    color: var(--mp-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.mp-btn--ghost {
    background: transparent;
    border: 1px solid var(--mp-border);
    color: var(--mp-text-2);
}
.mp-btn--ghost:hover { background: rgba(255,255,255,0.05); color: var(--mp-text); }
.mp-btn--primary {
    background: var(--mp-accent);
    color: #fff;
    font-weight: 700;
}
.mp-btn--primary:hover { background: var(--mp-accent-h); }
.mp-btn--primary:disabled { opacity: 0.65; cursor: default; }

/* ══════════ STATS ════════════════════════════════════════════════════ */
.mp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.mp-stat {
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 16px 18px;
}
.mp-stat-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.1;
}
.mp-stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: var(--mp-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ══════════ BIO ══════════════════════════════════════════════════════ */
.mp-bio-card {
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
    position: relative;
}
.mp-bio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.mp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-text-3);
    font-weight: 700;
}
.mp-bio-text {
    margin: 0;
    font-size: 14px;
    color: var(--mp-text);
    line-height: 1.6;
}

/* ══════════ TABS ═════════════════════════════════════════════════════ */
.mp-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--mp-border);
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mp-tabs::-webkit-scrollbar { display: none; }
.mp-tab {
    background: transparent;
    border: 0;
    color: var(--mp-text-3);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.mp-tab:hover { color: var(--mp-text); }
.mp-tab.is-active {
    color: var(--mp-text);
    border-bottom-color: var(--mp-accent);
}

.mp-pane { display: none; }
.mp-pane.is-active { display: block; }
.mp-pane[hidden] { display: none; }

.mp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 12px;
}
.mp-section-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}
.mp-section-link {
    font-size: 12px;
    color: var(--mp-text-3);
    text-decoration: none;
}
.mp-section-link:hover { color: var(--mp-accent); }

.mp-feed-empty,
.mp-deeplink {
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    color: var(--mp-text-3);
    font-size: 13px;
    text-align: center;
    padding: 36px 16px;
}
.mp-deeplink { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mp-deeplink p { margin: 0; color: var(--mp-text-2); }

.mp-banner-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(99,102,241,0.10);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #c7d2fe;
    margin-bottom: 14px;
}
.mp-banner-info svg { color: #F2B544; flex-shrink: 0; margin-top: 2px; }
.mp-banner-info strong { color: #e0e7ff; }

/* ── Quick actions ─────────────────────────────────────────────────── */
.mp-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.mp-quick {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--mp-text);
}
.mp-quick:hover { border-color: var(--mp-accent); }
.mp-quick-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mp-quick-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}
.mp-quick-sub {
    display: block;
    font-size: 12px;
    color: var(--mp-text-3);
    margin-top: 2px;
}

/* ── Trips grid (Overview) ─────────────────────────────────────────── */
.mp-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.mp-trip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--mp-text);
}
.mp-trip:hover { border-color: var(--mp-accent); }
.mp-trip-cover {
    width: 56px; height: 40px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(45deg,
            rgba(255,255,255,0.04) 0 6px,
            transparent 6px 12px),
        linear-gradient(135deg, #2a2f3a, #1c2030);
    flex-shrink: 0;
    position: relative;
}
.mp-trip-cover::after {
    content: '';
    position: absolute;
    left: 8px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 9999px;
    background: var(--mp-accent);
}
.mp-trip-body { flex: 1; min-width: 0; }
.mp-trip-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.mp-trip-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--mp-text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.mp-trip-open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mp-text-2);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--mp-border);
    padding: 5px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* ── Communities row ───────────────────────────────────────────────── */
.mp-comm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mp-comm {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--mp-text);
    min-width: 160px;
}
.mp-comm:hover { border-color: var(--mp-accent); }
.mp-comm-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.mp-comm-icon--orange { background: #FF6B3D; }
.mp-comm-icon--amber  { background: #F2B544; color: #1a1a1a; }
.mp-comm-icon--pink   { background: #FF6B9D; }
.mp-comm-icon--green  { background: #4ADE80; color: #1a1a1a; }
.mp-comm-icon--blue   { background: #6B8FFF; }
.mp-comm-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
}
.mp-comm-new {
    display: block;
    font-size: 11px;
    color: var(--mp-accent);
    margin-top: 2px;
}

/* ── Drafts ────────────────────────────────────────────────────────── */
.mp-draft {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.mp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mp-text-3);
}
.mp-draft-kind {
    background: rgba(99,102,241,0.18);
    color: #a5b4fc;
    padding: 1px 8px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mp-draft-kind--poll       { background: rgba(168, 85,247,0.20); color: #c4b5fd; }
.mp-draft-kind--itinerary  { background: rgba(224, 90, 43,0.20); color: #fdba74; }
.mp-draft-title {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

/* ══════════ RIGHT RAIL ═══════════════════════════════════════════════ */
.mp-aside {
    position: sticky;
    top: 24px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 960px) { .mp-aside { position: static; } }

.mp-side-card {
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 16px 18px;
}
.mp-side-title {
    margin: 0 0 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-text-3);
    font-weight: 700;
}

/* ── Star progress bars ────────────────────────────────────────────── */
.mp-prog + .mp-prog { margin-top: 16px; }
.mp-prog-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}
.mp-prog-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mp-text-2);
}
.mp-prog-icon { font-size: 14px; }
.mp-prog-count { font-weight: 700; color: var(--mp-text); }
.mp-prog-bar {
    height: 6px;
    background: rgba(255,255,255,0.07);
    border-radius: 3px;
    overflow: hidden;
}
.mp-prog-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.mp-prog-fill--gold { background: #F2B544; }
.mp-prog-fill--blue { background: #6B8FFF; }
.mp-prog-fill--green { background: #10B981; }
.mp-prog-foot {
    margin-top: 5px;
    font-size: 11px;
    color: var(--mp-text-4);
}

/* ── Notification toggles ──────────────────────────────────────────── */
.mp-notif {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mp-notif li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: var(--mp-text-2);
}
.mp-notif-hint {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--mp-text-4);
    border-top: 1px solid var(--mp-border);
    padding-top: 10px;
}
.mp-switch {
    width: 34px; height: 20px;
    border-radius: 12px;
    padding: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--mp-border);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.mp-switch-thumb {
    width: 14px; height: 14px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.30);
    transform: translateX(0);
    transition: transform 0.15s ease;
}
.mp-switch.is-on {
    background: var(--mp-accent);
    border-color: var(--mp-accent);
}
.mp-switch.is-on .mp-switch-thumb { transform: translateX(14px); }

/* ── Account links ─────────────────────────────────────────────────── */
.mp-side-card--links { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.mp-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--mp-text);
    font-size: 13px;
    font-weight: 500;
}
.mp-link-row:hover { background: rgba(255,255,255,0.04); }
.mp-link-row svg { color: var(--mp-text-3); }
.mp-link-arrow { margin-left: auto; }
.mp-link-meta {
    margin-left: auto;
    font-size: 12px;
    color: var(--mp-text-3);
}
.mp-link-meta--ok { color: #4ADE80; }

/* ══════════ DIALOG + TOAST ═══════════════════════════════════════════ */
.mp-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mp-dialog[hidden] { display: none; }
.mp-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,12,20,0.62);
}
.mp-dialog-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.50);
}
.mp-dialog-panel h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.mp-dialog-label {
    display: block;
    font-size: 12px;
    color: var(--mp-text-3);
    margin-bottom: 8px;
}
.mp-dialog-input,
.mp-dialog-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    color: var(--mp-text);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
}
.mp-dialog-textarea { resize: vertical; min-height: 90px; }
.mp-dialog-input[hidden],
.mp-dialog-textarea[hidden] { display: none; }
.mp-dialog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--mp-text-4);
}
.mp-dialog-error { color: #f87171; }
.mp-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* ── Quiz card ──────────────────────────────────────────────────────── */
.mp-quiz-persona {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.mp-quiz-emoji { font-size: 32px; line-height: 1; flex-shrink: 0; }
.mp-quiz-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--mp-text);
    margin-bottom: 2px;
}
.mp-quiz-desc {
    font-size: 12px;
    color: var(--mp-text-3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-quiz-secondary {
    margin-top: 10px;
    font-size: 12px;
    color: var(--mp-text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}
.mp-quiz-secondary-label { opacity: 0.7; }
.mp-quiz-retake {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    font-size: 12px;
}
.mp-quiz-cta-text {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--mp-text-3);
    line-height: 1.45;
}
.mp-quiz-cta {
    width: 100%;
    justify-content: center;
    font-size: 13px;
}

/* ── Social / Network card ─────────────────────────────────────────── */
.mp-social-row {
    display: flex;
    align-items: stretch;
}
.mp-social-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}
.mp-social-btn:hover { background: var(--mp-accent-soft); }
.mp-social-count {
    font-size: 22px;
    font-weight: 800;
    color: var(--mp-text);
}
.mp-social-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mp-text-3);
    font-weight: 600;
}
.mp-social-divider {
    width: 1px;
    background: var(--mp-border);
    margin: 4px 0;
}

/* ── Followers / Following modal ───────────────────────────────────── */
.mp-dialog-panel--social {
    max-width: 420px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
.mp-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mp-border);
    margin-bottom: 0;
}
.mp-dialog-header h3 { margin: 0; font-size: 16px; color: var(--mp-text); }
.mp-dialog-close {
    width: 32px; height: 32px;
    border: none;
    background: none;
    color: var(--mp-text-3);
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.mp-dialog-close:hover { background: var(--mp-accent-soft); color: var(--mp-text); }

.mp-social-list {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}
.mp-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-radius: 8px;
    position: relative;
}
.mp-social-item:hover { background: rgba(255,255,255,0.04); }
.mp-social-avatar {
    width: 38px; height: 38px;
    border-radius: 9999px;
    background: var(--mp-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.mp-social-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-social-info { flex: 1; min-width: 0; }
.mp-social-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-social-handle {
    font-size: 11px;
    color: var(--mp-text-4);
}
.mp-social-action {
    opacity: 0;
    transition: opacity 0.15s;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--mp-border);
    background: none;
    color: var(--mp-text-3);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.mp-social-item:hover .mp-social-action,
.mp-social-action:focus { opacity: 1; }
.mp-social-action--danger { color: #f87171; border-color: #f8717144; }
.mp-social-action--danger:hover { background: #f8717118; }
.mp-social-action:hover { background: var(--mp-accent-soft); }
.mp-social-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--mp-text-4);
    font-size: 13px;
}

/* Mobile: always show action buttons (no hover) */
@media (hover: none) {
    .mp-social-action { opacity: 1; }
}
@media (max-width: 560px) {
    .mp-social-action { opacity: 1; }
    .mp-dialog-panel--social { max-height: 85vh; }
}

.mp-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: var(--mp-card-2);
    color: var(--mp-text);
    border: 1px solid var(--mp-border);
    border-radius: 9999px;
    padding: 10px 18px;
    font-size: 13px;
    z-index: 60;
    box-shadow: 0 6px 16px rgba(0,0,0,0.40);
}
.mp-toast[hidden] { display: none; }

/* ══════════ MOBILE ═══════════════════════════════════════════════════ */
@media (max-width: 560px) {
    .mp-page { padding: 16px 14px 96px; }
    .mp-header-body { padding: 0 16px 18px; }
    .mp-banner { height: 140px; }
    .mp-avatar { width: 96px; height: 96px; margin-top: -50px; font-size: 34px; }
    .mp-name { font-size: 22px; }
    .mp-stat-value { font-size: 20px; }
    .mp-header-actions { width: 100%; justify-content: flex-end; }
    .mp-tab { padding: 10px 10px; font-size: 13px; }
    .mp-quick-grid { grid-template-columns: 1fr; }
}

/* ══════════ LIGHT MODE ═══════════════════════════════════════════════ */
html:not(.dark) .mp-page,
html:not(.dark) .pp-page {
    --mp-bg:        #f6f7f9;
    --mp-card:      #ffffff;
    --mp-card-2:    #ffffff;
    --mp-border:    #e5e7eb;
    --mp-pill-bg:       #eff1f3;
    --mp-pill-bg-hover: #e5e7eb;
    --mp-text:      #0f172a;
    --mp-text-2:    #334155;
    --mp-text-3:    #64748b;
    --mp-text-4:    #94a3b8;
    --mp-accent-soft: rgba(224,90,43,0.10);
}
html:not(.dark) .mp-banner:not(.mp-banner--has-image) {
    background:
        radial-gradient(60% 90% at 12% 20%, rgba(224,90,43,0.20), transparent 70%),
        radial-gradient(70% 110% at 88% 100%, rgba(34,197,94,0.14), transparent 70%),
        linear-gradient(135deg, #eef2f7 0%, #dde3ee 100%);
}
html:not(.dark) .mp-avatar { border-color: #ffffff; }
html:not(.dark) .mp-avatar-edit { background: #f1f5f9; }
html:not(.dark) .mp-style-chip { background: #f1f5f9; }
html:not(.dark) .mp-style-pick { background: #f8fafc; color: #334155; }
html:not(.dark) .mp-style-pick:hover { background: #e2e8f0; }
html:not(.dark) .mp-style-pick.is-on { background: var(--mp-accent, #e05a2b); color: #fff; border-color: var(--mp-accent, #e05a2b); }
html:not(.dark) .mp-style-pick.is-on:hover { background: #c44d22; }
html:not(.dark) .mp-pencil:hover { background: #f1f5f9; }
html:not(.dark) .mp-btn--ghost:hover { background: #f1f5f9; }
html:not(.dark) .mp-quick:hover,
html:not(.dark) .mp-trip:hover,
html:not(.dark) .mp-comm:hover { border-color: var(--mp-accent); }
html:not(.dark) .mp-link-row:hover { background: #f1f5f9; }
html:not(.dark) .mp-switch {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
html:not(.dark) .mp-dialog-input,
html:not(.dark) .mp-dialog-textarea {
    background: #f9fafb;
}
html:not(.dark) .mp-banner-info {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}
html:not(.dark) .mp-banner-info strong { color: #1e1b4b; }
html:not(.dark) .mp-prog-bar { background: #e2e8f0; }
html:not(.dark) .mp-social-item:hover { background: rgba(0,0,0,0.03); }
html:not(.dark) .mp-social-action { border-color: #e2e8f0; color: #64748b; }
html:not(.dark) .mp-social-action:hover { background: #f1f5f9; }
html:not(.dark) .mp-social-action--danger { color: #ef4444; border-color: #ef444444; }
html:not(.dark) .mp-social-action--danger:hover { background: #fef2f2; }
html:not(.dark) .mp-trip-cover {
    background:
        repeating-linear-gradient(45deg,
            rgba(15,23,42,0.05) 0 6px,
            transparent 6px 12px),
        linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* ──────────────────────────────────────────────────────────────────
   Tab content cards — posts, comments, starred, guides, communities.
   Sized to match the public-profile feed cards so the user reads
   the same density across pages.
   ────────────────────────────────────────────────────────────────── */

.mp-list { display: flex; flex-direction: column; gap: 12px; }

.mp-card {
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 14px 16px;
}
.mp-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--mp-text-3);
    margin-bottom: 6px;
}
.mp-card-eyebrow-pill {
    background: rgba(242,181,68,0.20);
    color: #F2B544;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mp-card-comm {
    color: var(--mp-text);
    font-weight: 600;
    text-decoration: none;
}
.mp-card-comm:hover { text-decoration: underline; }
.mp-card-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-text);
    text-decoration: none;
    margin: 0 0 6px;
    line-height: 1.3;
}
.mp-card-title:hover { color: var(--mp-accent); }
.mp-card-title--sm { font-size: 14px; font-weight: 600; }
.mp-card-body {
    margin: 0;
    font-size: 14px;
    color: var(--mp-text-2);
    line-height: 1.55;
    /* Markdown image references (![alt](data:image/…)) in legacy posts
       can be hundreds of kB of text — clamp the height so the card
       doesn't blow up while still letting normal prose breathe. */
    overflow-wrap: anywhere;
    word-break: break-word;
}
.mp-card-body--redacted { color: var(--mp-text-3); font-style: italic; }
/* Inline images parsed from ![alt](url) markdown in post/comment bodies. */
.mp-card-body .pp-inline-img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    margin: 10px 0 4px;
    border: 1px solid var(--mp-border);
    background: var(--mp-card-2);
}
.mp-card-photo {
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mp-card-2);
    border: 1px solid var(--mp-border);
    /* Cap the visible area so a tall portrait doesn't dominate the post
       card. The image uses object-fit: contain so nothing is cropped. */
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-card-photo img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.mp-card-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--mp-text-3);
}
.mp-card-foot a { color: var(--mp-text-3); text-decoration: none; }
.mp-card-foot a:hover { color: var(--mp-text); }
.mp-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--mp-pill-bg);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mp-text-3);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.mp-pill:hover {
    background: var(--mp-pill-bg-hover);
    color: var(--mp-text);
}
.mp-pill--link { cursor: pointer; }

/* ── Full-card visuals (Feed / My Posts / Starred / My Comments) ─────
   Mirrors the community-page post card so a user's feed on /profile/me
   shows the same level of detail (type pill, photo, poll bars, place
   chips, action bar) as the community page itself. */

.mp-card--post { position: relative; }

/* "Edit" hover button for the author's own posts (top-right corner). */
.mp-post-edit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: none;
    align-items: center;
    gap: 4px;
    background: var(--mp-card-2);
    border: 1px solid var(--mp-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--mp-text-2);
    text-decoration: none;
    z-index: 2;
}
.mp-card--post:hover .mp-post-edit-btn { display: inline-flex; }
.mp-post-edit-btn:hover { color: var(--mp-text); background: var(--mp-card); }

.mp-starred-eyebrow { margin-bottom: 6px; }
.mp-card-when { color: var(--mp-text-3); }
.mp-edited { font-style: italic; color: var(--mp-text-4); }

/* "posted by u/{name}" byline + Local Guide diamond badge */
.mp-card-byline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--mp-text-3);
}
.mp-card-author {
    color: var(--mp-text);
    font-weight: 700;
    text-decoration: none;
}
.mp-card-author:hover { color: var(--mp-accent); }
.mp-author-badge {
    color: #10B981;
    font-size: 11px;
    line-height: 1;
}
html:not(.dark) .mp-author-badge { color: #059669; }
.mp-dot {
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 9999px;
    background: var(--mp-text-4);
    opacity: 0.6;
}

/* Title row: post-type pill + title, all one big click target. */
.mp-card-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    text-decoration: none;
    margin: 0 0 8px;
}
.mp-card-title-row .mp-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--mp-text);
}
.mp-card-title-row:hover .mp-card-title { color: var(--mp-accent); }

/* Place chips (location tags below the title). */
.mp-place-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}
.mp-place-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    background: var(--mp-card-2);
    border: 1px solid var(--mp-border);
    font-size: 11px;
    color: var(--mp-text-2);
}
.mp-place-chip svg { color: var(--mp-accent); }

/* Photo placeholder (used when a trip report has no photo). */
.mp-photo-placeholder {
    margin-top: 10px;
    border: 1px dashed var(--mp-border);
    border-radius: 10px;
    padding: 60px 16px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mp-text-4);
    background: repeating-linear-gradient(45deg, transparent 0 10px, var(--mp-card-2) 10px 11px);
}

/* Poll bars. */
.mp-poll { margin: 10px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.mp-poll-row {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--mp-card-2);
    font-size: 13px;
    color: var(--mp-text);
}
.mp-poll-row .fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--mp-accent-soft);
    border-radius: 8px;
    z-index: 0;
    transition: width 0.5s ease;
}
.mp-poll-row.leading .fill { background: rgba(224,90,43,0.28); }
.mp-poll-row.voted     { border-color: var(--mp-accent); }
.mp-poll-row .label,
.mp-poll-row .pct { position: relative; z-index: 1; }
.mp-poll-row .pct { float: right; font-weight: 700; color: var(--mp-text-2); }
.mp-poll-meta {
    font-size: 11px;
    color: var(--mp-text-4);
    margin-bottom: 2px;
}

/* Itinerary preview card — matches the rich design used on the
   community-detail page (community-detail.css `.itinerary-preview`):
   a flex row with a textured square thumbnail (80×56) showing the type
   emoji + a small orange location dot underneath, and the trip title +
   metadata to the right. */
.mp-itin-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: var(--mp-card-2);
}
.mp-itin-preview .thumb {
    width: 80px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0 8px,
            rgba(255,255,255,0.06) 8px 16px
        ),
        var(--mp-card);
    display: grid;
    place-items: center;
    position: relative;
    font-size: 22px;
    line-height: 1;
}
.mp-itin-preview .thumb::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--mp-accent);
    border-radius: 9999px;
    box-shadow: 0 0 0 4px rgba(224,90,43,0.22);
}
.mp-itin-preview .meta { flex: 1; min-width: 0; }
.mp-itin-preview .name { font-size: 14px; font-weight: 600; color: var(--mp-text); }
.mp-itin-preview .sub  { font-size: 12px; color: var(--mp-text-3); margin-top: 2px; }
.mp-itin-preview .sub a { color: inherit; text-decoration: none; }
.mp-itin-preview .sub a:hover { color: var(--mp-accent); text-decoration: underline; }

/* Light-mode: swap the white-on-dark stripes for dark-on-light. */
html:not(.dark) .mp-itin-preview .thumb {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(15,23,42,0.04) 0 8px,
            rgba(15,23,42,0.07) 8px 16px
        ),
        #f1f5f9;
}

/* ── Action bar (vote / comment / star / share) ───────────────────── */
.mp-action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.mp-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: var(--mp-pill-bg);
    border: 1px solid transparent;
    color: var(--mp-text-3);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mp-action-pill:hover {
    background: var(--mp-pill-bg-hover);
    color: var(--mp-text);
}
.mp-action-pill svg { display: block; }

/* Vote pill — combined up / score / down with internal split. */
.mp-vote-pill { padding: 2px 4px; gap: 2px; }
.mp-vote-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 9999px;
    color: var(--mp-text-3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.mp-vote-btn:hover:not(:disabled) { background: var(--mp-pill-bg-hover); color: var(--mp-text); }
.mp-vote-btn.is-on.mp-vote-up   { color: var(--mp-accent); }
.mp-vote-btn.is-on.mp-vote-down { color: #6B8FFF; }
.mp-vote-btn:disabled { opacity: 0.5; cursor: wait; }
.mp-vote-score {
    min-width: 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--mp-text-2);
    padding: 0 2px;
}

/* Star pill — gold when active. */
.mp-star-pill { padding: 6px 10px; }
.mp-star-icon { font-size: 16px; line-height: 1; }
.mp-star-pill.is-on { color: #F2B544; }
.mp-star-pill.is-on:hover { color: #F2B544; }

/* Comment "Replying to" context strip in My Comments. */
.mp-comment-context {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 8px;
    padding: 8px 12px;
    border-left: 2px solid var(--mp-border);
    background: var(--mp-card-2);
    border-radius: 0 8px 8px 0;
    text-decoration: none;
}
.mp-comment-context:hover { border-left-color: var(--mp-accent); }
.mp-comment-context-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-text-4);
    font-weight: 700;
}
.mp-comment-context-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-text);
}
.mp-card-body--comment {
    font-size: 14.5px;
    color: var(--mp-text);
    line-height: 1.6;
}
.mp-card-foot--comment { margin-top: 12px; }

/* Comment-type pill colour (matches community.js — uses indigo). */
.profile-feed-kind--comment {
    background: rgba(99,102,241,0.18);
    color: #a5b4fc;
}

/* Mobile tweaks: drop label on Share button to save room. */
@media (max-width: 560px) {
    .mp-share-pill span { display: none; }
    .mp-action-pill { padding: 6px 10px; }
    .mp-card-title-row .mp-card-title { font-size: 16px; }
}

/* Light-mode overrides for the new card visuals. */
html:not(.dark) .mp-post-edit-btn { background: #fff; }
html:not(.dark) .mp-poll-row .fill { background: rgba(224,90,43,0.10); }
html:not(.dark) .mp-poll-row.leading .fill { background: rgba(224,90,43,0.18); }
html:not(.dark) .mp-vote-btn.is-on.mp-vote-down { color: #2563eb; }
html:not(.dark) .mp-photo-placeholder {
    background: repeating-linear-gradient(45deg, transparent 0 10px, #f1f5f9 10px 11px);
}
html:not(.dark) .profile-feed-kind--comment { color: #4338ca; background: rgba(99,102,241,0.12); }

.mp-section-foot { margin-top: 12px; text-align: right; }

/* ── My Guides cards (overrides public-profile dest line spacing) ──── */
.mp-guide-card {
    display: block;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--mp-text);
    transition: transform 0.15s ease, border-color 0.15s ease;
    position: relative;
}
.mp-guide-card:hover { transform: translateY(-2px); border-color: var(--mp-accent); }
.mp-guide-cover {
    aspect-ratio: 16 / 9;
    background: #2a2f3a center/cover no-repeat;
    position: relative;
}
.mp-guide-status {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(15,23,42,0.78);
    color: #fde68a;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.mp-guide-body { padding: 12px 14px 14px; }
.mp-guide-dest {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--mp-text-3);
}
.mp-guide-title {
    margin: 4px 0 6px;
    font-size: 15px; font-weight: 700; line-height: 1.3;
}
.mp-guide-meta {
    font-size: 12px;
    color: var(--mp-text-3);
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}

/* ── My Communities grid ──────────────────────────────────────────── */
.mp-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 14px;
}
.mp-community-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--mp-card);
    border: 1px solid var(--mp-border);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
}
.mp-community-card:hover { border-color: var(--mp-accent); }
.mp-community-icon {
    width: 64px; height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--mp-accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
}
.mp-community-icon--orange { background: #FF6B3D; }
.mp-community-icon--amber  { background: #F2B544; color: #1a1a1a; }
.mp-community-icon--pink   { background: #FF6B9D; }
.mp-community-icon--green  { background: #4ADE80; color: #1a1a1a; }
.mp-community-icon--blue   { background: #6B8FFF; }
.mp-community-body { flex: 1; min-width: 0; }
.mp-community-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-text);
    text-decoration: none;
    display: inline-block;
}
.mp-community-name:hover { color: var(--mp-accent); }
.mp-community-meta {
    font-size: 12px;
    color: var(--mp-text-3);
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    margin-top: 2px;
}
.mp-community-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--mp-text-2);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-leave-btn { flex-shrink: 0; }
@media (max-width: 560px) {
    .mp-community-grid { grid-template-columns: 1fr; }
    .mp-community-card { flex-wrap: wrap; }
    .mp-community-card .mp-leave-btn { margin-left: auto; }
}
