/* ---- BASE & AUTH ---- */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #E6ECF0;
    color: #14171A;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.ui-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
}

.auth-backdrop {
    width: 100vw;
    height: 100dvh;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(20, 23, 26, 0.52);
}

.auth-box {
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(20, 23, 26, 0.22);
    width: 390px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-hero-band {
    position: relative;
    background: #0055FF;
    padding: 18px 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #0044CC;
}

.auth-hero-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    min-width: 0;
}

.auth-hero-logo {
    height: 28px;
    width: 124px;
    display: block;
    flex-shrink: 0;
    shape-rendering: geometricPrecision;
}

.auth-card-body {
    padding: 18px 24px 22px;
}

.auth-field-group {
    margin-bottom: 10px;
}

.auth-field-label {
    display: block;
    margin: 0 0 4px 0;
    font-size: 11.5px;
    font-weight: 700;
    color: #14171A;
}

.auth-field-hint {
    font-weight: 500;
    color: #657786;
    font-size: 11px;
}

.auth-box .auth-field-group input {
    margin: 0;
}

.auth-box input {
    margin: 0 0 10px 0;
    background: #FFFFFF;
}

.auth-box input:focus {
    border-color: #0055FF;
    box-shadow: 0 0 0 2px rgba(0, 85, 255, 0.14);
}

.auth-box button {
    margin-top: 4px;
    height: 40px;
    border-radius: 9999px;
    background: #0055FF;
    border: 1px solid #0055FF;
    color: #FFFFFF;
    font-weight: 700;
}

.auth-box button:hover {
    background: #0044CC;
    border-color: #0044CC;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #14171A;
    margin-bottom: 10px;
}

.auth-box h2 {
    margin: 0 0 6px 0;
    font-size: 19px;
    color: #14171A;
}

.auth-sub {
    margin: 0 0 16px 0;
    font-size: 12px;
    color: #657786;
    line-height: 1.45;
}

.auth-switch {
    margin-top: 15px;
    font-size: 12px;
    color: #657786;
}

.auth-switch a {
    color: #14171A;
    text-decoration: underline;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 6px;
    border: 1px solid #CCD6DD;
    background: #FFFFFF;
    color: #14171A;
    box-sizing: border-box;
    font-size: 13px;
    outline: none;
}

input:focus {
    border-color: #0055FF;
}

button {
    width: 100%;
    padding: 10px 14px;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    color: #14171A;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

button:hover {
    background: #EBF2FF;
    border-color: #0055FF;
    color: #0055FF;
}

button:disabled {
    background: #E1E8ED;
    border-color: #CCD6DD;
    color: #657786;
    cursor: not-allowed;
}

button, input, textarea, select {
    font-family: inherit;
}

.error-msg {
    color: #DC2626;
    font-size: 12px;
    margin-bottom: 6px;
    min-height: 1.1rem;
}

.success-msg {
    color: #17BF63;
}

/* ---- MAIN INTERFACE ---- */
#main-interface {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#globe-container {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    background: #06080d;
    position: relative;
    z-index: 1;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

#globe-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#globe-container > div {
    pointer-events: none !important;
}

#globe-container > .globe-tech-hud,
#globe-container .globe-tech-hud *,
#globe-container .weather-beacon-pill,
#globe-container .weather-beacon-pill *,
#globe-container .local-post-pin,
#globe-container .local-post-pin *,
#globe-container .auto-post-preview-card,
#globe-container .auto-post-preview-card *,
#globe-container .place-hover-tooltip.is-post-preview,
#globe-container .place-hover-tooltip.is-post-preview *,
#globe-container .globe-preview-card,
#globe-container .globe-preview-card * {
    pointer-events: auto !important;
}

.feed-container {
    position: relative;
    flex: 0 0 420px;
    width: 420px;
    height: 100%;
    z-index: 200;
}

#feed-overlay {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #F5F8FA;
    border-left: 1px solid #E1E8ED;
    overflow: hidden;
}

#feed-header {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 40;
}

/* ---- SIDEBAR HEADER & ATMOSPHERIC CONTROLS ---- */
.sidebar-top {
    position: relative;
    padding: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E1E8ED;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 9px 12px;
    margin-bottom: 8px;
    background: #0055FF;
    border-bottom: 1px solid #0044CC;
    box-sizing: border-box;
}

.brand-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    white-space: nowrap;
}

.brand-logo-svg,
.brand-logo-img {
    height: 24px;
    width: 107px;
    display: block;
    flex-shrink: 0;
    shape-rendering: geometricPrecision;
}

.brand-tagline {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.015em;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 8px;
    padding-top: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.34);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}

.brand-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #17BF63;
}

.brand-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    background: #E1E8ED;
    color: #657786;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-menu-wrap {
    position: relative;
    min-width: 0;
    flex: 0 1 auto;
}

.user-pill {
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 3px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
    color: #14171A;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    transition: background 0.14s ease, box-shadow 0.14s ease;
}

.user-pill:hover {
    background: #F5F8FA;
    border-color: #FFFFFF;
    color: #14171A;
}

.user-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0055FF;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 10.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-pill-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #14171A;
    max-width: 165px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-pill-caret {
    width: 10px;
    height: 10px;
    color: #657786;
    flex-shrink: 0;
}

.user-account-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 172px;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 23, 26, 0.18);
    z-index: 1250;
    overflow: hidden;
}

.user-account-menu-head {
    padding: 7px 11px;
    border-bottom: 1px solid #E1E8ED;
    background: #F5F8FA;
}

.user-account-menu-display {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #14171A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-account-menu-handle {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #657786;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-account-menu-item {
    width: 100%;
    margin: 0;
    padding: 8px 11px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #14171A;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    text-align: left;
}

.user-account-menu-item:hover {
    background: #F5F8FA;
    border-color: transparent;
    color: #0055FF;
}

.user-account-menu-item.is-danger {
    color: #DC2626;
    border-top: 1px solid #E1E8ED;
}

.user-account-menu-item.is-danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

.user-account-menu-item .ui-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.btn-logout {
    width: 22px;
    height: 22px;
    padding: 0;
    flex-shrink: 0;
    background: transparent;
    color: #657786;
    border: none;
    border-radius: 50%;
}

.btn-logout:hover {
    background: #FEE2E2;
    border-color: transparent;
    color: #DC2626;
}

.location-context-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 9px;
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    margin: 0 12px 7px 12px;
}

.location-context-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.compose-location-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 5px;
    margin-top: 5px;
    border-top: 1px solid rgba(204, 214, 221, 0.72);
    width: 100%;
    min-width: 0;
}

.compose-pin-tag {
    color: #657786;
    font-weight: 700;
    flex-shrink: 0;
}

.location-context-bar.regime-storm {
    background: #FEF2F2;
    border-color: rgba(239, 68, 68, 0.4);
}

.location-context-bar.regime-serene {
    background: #DCFCE7;
    border-color: rgba(22, 163, 74, 0.45);
}

.location-context-main {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.context-pin {
    color: #0055FF;
    display: flex;
    flex-shrink: 0;
}

.context-pin .ui-icon {
    width: 12px;
    height: 12px;
}

.context-area-title {
    font-size: 12px;
    font-weight: 700;
    color: #14171A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.area-weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.area-weather-pill .ui-icon {
    width: 10px;
    height: 10px;
}

.context-area-sub {
    font-size: 10px;
    color: #657786;
    white-space: nowrap;
    flex-shrink: 0;
}

.location-context-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.btn-follow-loc {
    width: auto;
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    background: #FFFFFF;
    color: #0055FF;
    border: 1px solid #0055FF;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.btn-follow-loc:hover {
    background: #EBF2FF;
    border-color: #0044CC;
    color: #0044CC;
}

.btn-follow-loc.is-following {
    background: #EBF2FF;
    color: #0055FF;
    border-color: #BFDBFE;
}

.btn-follow-loc.is-following:hover {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.btn-compose-toggle {
    width: auto;
    flex-shrink: 0;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    background: #0055FF;
    color: #FFFFFF;
    border: 1px solid #0055FF;
    border-radius: 9999px;
    white-space: nowrap;
}

.btn-compose-toggle:hover,
.btn-compose-toggle.is-open {
    background: #0044CC;
    border-color: #0044CC;
    color: #FFFFFF;
}

/* ---- COMPOSE DRAWER + HAPPINESS SLIDER ---- */
.compose-drawer {
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    padding: 9px;
    margin: 0 12px 8px 12px;
}

.compose-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 6px;
    margin-bottom: 6px;
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 6px;
}

.coords-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #657786;
    min-width: 0;
    flex: 1 1 auto;
}

#selected-coords-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coords-label .ui-icon {
    color: #657786;
    flex-shrink: 0;
}

.btn-gps-inline {
    width: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 2px 7px;
    font-size: 10.5px;
    font-weight: 600;
    background: #F5F8FA;
    color: #14171A;
    border: 1px solid #CCD6DD;
    border-radius: 5px;
    cursor: pointer;
}

.btn-gps-inline:hover {
    background: #EBF2FF;
    border-color: #0055FF;
    color: #0055FF;
}

.post-textarea {
    width: 100%;
    height: 58px;
    margin-bottom: 6px;
    background: #FFFFFF;
    color: #14171A;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
    padding: 7px 9px;
    box-sizing: border-box;
    resize: none;
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
}

.post-textarea:focus {
    border-color: #0055FF;
    box-shadow: 0 0 0 2px rgba(0, 85, 255, 0.12);
}

.happiness-slider-box {
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.happiness-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.happiness-title {
    font-size: 11px;
    font-weight: 600;
    color: #657786;
}

.mood-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.mood-pill .ui-icon {
    width: 11px;
    height: 11px;
}

.happiness-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #E0245E 0%, #EA580C 28%, #0055FF 55%, #0D9488 76%, #16A34A 100%);
    outline: none;
    padding: 0;
    margin: 4px 0 5px 0;
    border: none;
}

.happiness-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #14171A;
    border: 2px solid #FFFFFF;
    cursor: pointer;
}

.happiness-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: #657786;
    font-weight: 600;
}

.happiness-scale-labels span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.post-btn-group {
    display: flex;
    gap: 6px;
}

.btn-secondary {
    flex: 1;
    background: #F5F8FA;
    color: #14171A;
    border: 1px solid #CCD6DD;
    font-size: 11.5px;
    padding: 7px 10px;
    border-radius: 6px;
}

.btn-secondary:hover {
    background: #CCD6DD;
}

.btn-primary {
    flex: 2;
    background: #0055FF;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 1px solid #0055FF;
}

.btn-primary:hover {
    background: #0044CC;
    border-color: #0044CC;
    color: #FFFFFF;
}

.status-msg {
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
    min-height: 1rem;
}

.active-tag-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 9px;
    margin: 0 12px 6px 12px;
    background: #EBF2FF;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    font-size: 11.5px;
    color: #14171A;
}

.btn-clear-tag {
    width: auto;
    padding: 2px 7px;
    font-size: 10.5px;
    background: transparent;
    border: none;
    color: #0055FF;
}

.btn-clear-tag:hover {
    background: rgba(0, 85, 255, 0.1);
    color: #0044CC;
}

.feed-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    background: #FFFFFF;
}

.feed-tab {
    width: auto;
    flex: 1;
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    color: #657786;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
}

.feed-tab:hover {
    color: #0055FF;
    background: #F5F8FA;
    border-color: transparent;
}

.feed-tab.active {
    color: #0055FF;
    font-weight: 700;
    border-bottom-color: #0055FF;
}

.feed-count-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #EBF2FF;
    color: #0055FF;
    margin-left: 2px;
    margin-right: 4px;
}

/* ---- FEED LIST & POST CARDS ---- */
.feed-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 24px 0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-list::-webkit-scrollbar {
    width: 4px;
}

.feed-list::-webkit-scrollbar-thumb {
    background: #CCD6DD;
    border-radius: 2px;
}

.feed-empty {
    text-align: center;
    padding: 50px 16px;
    color: #657786;
}

.feed-empty-icon .ui-icon {
    width: 28px;
    height: 28px;
    color: #657786;
    margin-bottom: 8px;
}

.feed-empty-title {
    font-weight: 700;
    color: #14171A;
    margin-bottom: 4px;
    font-size: 13px;
}

.feed-empty-sub {
    font-size: 11.5px;
}

.post-card {
    padding: 11px 14px;
    background: #FFFFFF;
    border: none;
    border-bottom: 1px solid #E1E8ED;
    border-radius: 0;
    transition: background 0.12s ease;
    cursor: pointer;
}

.post-card:hover {
    background: #F5F8FA;
}

.post-card.mood-card-storm {
    border-left: 3px solid #E0245E;
}

.post-card.mood-card-tense {
    border-left: 3px solid #f97316;
}

.post-card.mood-card-calm {
    border-left: 3px solid #657786;
}

.post-card.mood-card-bright {
    border-left: 3px solid #0D9488;
}

.post-card.mood-card-sunny {
    border-left: 3px solid #16A34A;
}

.post-card.is-hero {
    background: #F0F6FF;
}

.tweet-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tweet-main {
    flex: 1;
    min-width: 0;
}

.tweet-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.tweet-author-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.tweet-dot {
    color: #8899A6;
    font-size: 11px;
}

.tweet-geo-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.breaking-tag {
    display: inline-block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #B91C1C;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: baseline;
}

.post-location-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: #657786;
    min-width: 0;
}

.post-location-label .ui-icon {
    width: 10px;
    height: 10px;
}

.post-loc-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-mood-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.post-mood-badge .ui-icon {
    width: 10px;
    height: 10px;
}

.post-distance-badge {
    font-size: 9.5px;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 3px;
    background: #E1E8ED;
    color: #657786;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #CCD6DD;
    color: #14171A;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.post-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.post-user {
    font-weight: 700;
    color: #14171A;
    font-size: 12.5px;
    white-space: nowrap;
}

.post-handle {
    font-weight: 400;
    font-size: 11px;
    color: #657786;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0055FF;
    color: #ffffff;
    flex-shrink: 0;
}

.role-badge .ui-icon {
    width: 8px;
    height: 8px;
}

.post-time {
    font-size: 10.5px;
    color: #657786;
    white-space: nowrap;
}

.post-content {
    font-size: 12.5px;
    line-height: 1.42;
    color: #14171A;
    margin-top: 1px;
    word-break: break-word;
}

.hashtag-link {
    color: #0055FF;
    text-decoration: none;
    font-weight: 500;
}

.hashtag-link:hover {
    color: #0044CC;
    text-decoration: underline;
}

.post-ext-link {
    color: #0055FF;
    text-decoration: underline;
    text-decoration-color: rgba(0, 85, 255, 0.35);
    text-underline-offset: 2px;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-ext-link:hover {
    color: #0044CC;
    text-decoration-color: #0044CC;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0 0 -6px;
    padding-top: 5px;
    border-top: 1px solid #E1E8ED;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    color: #657786;
}

.post-actions-primary,
.post-actions-tools {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.post-actions-primary {
    gap: 8px;
}

.post-actions-tools {
    margin-left: auto;
    gap: 2px;
    flex-shrink: 0;
}

.btn-action-post,
.post-stat-item,
.post-fly-hint {
    width: auto;
    min-width: 0;
    height: 24px;
    margin: 0;
    padding: 0 6px;
    background: transparent;
    color: #657786;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-action-post {
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.btn-action-post.is-icon-only,
.post-fly-hint.is-icon-only {
    width: 24px;
    padding: 0;
}

.btn-action-post .ui-icon,
.post-stat-item .ui-icon,
.post-fly-hint .ui-icon {
    width: 13px;
    height: 13px;
    display: block;
    flex-shrink: 0;
}

.btn-action-post:hover {
    color: #14171A;
    background: rgba(101, 119, 134, 0.10);
    border-color: transparent;
}

.btn-action-post.btn-repost-post.reposted,
.btn-action-post.btn-repost-post:hover {
    color: #17BF63;
    background: rgba(23, 191, 99, 0.10);
}

.btn-action-post.btn-like-post.liked,
.btn-action-post.btn-like-post:hover {
    color: #E0245E;
    background: rgba(224, 36, 94, 0.10);
}

.btn-action-post.btn-like-post.liked .ui-icon path,
.btn-action-post.btn-like-post.liked svg path {
    fill: currentColor;
    stroke: currentColor;
}

.btn-action-post.btn-comment-post.commented,
.btn-action-post.btn-comment-post:hover {
    color: #0055FF;
    background: rgba(0, 85, 255, 0.10);
}

.btn-action-post.btn-comment-post.commented .ui-icon path,
.btn-action-post.btn-comment-post.commented svg path {
    fill: currentColor;
    stroke: currentColor;
}

.btn-action-post.btn-edit-post:hover {
    color: #0055FF;
    background: rgba(0, 85, 255, 0.10);
}

.btn-action-post.btn-delete-post:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.10);
}

.btn-action-post.btn-report-post:hover {
    color: #B45309;
    background: rgba(245, 158, 11, 0.12);
}

.btn-action-post .ui-icon {
    transition: transform 0.15s ease;
}

.btn-action-post:active .ui-icon {
    transform: scale(1.18);
}

.post-card:hover .post-fly-hint {
    color: #14171A;
}

.post-actions.is-compact-actions .btn-action-post,
.post-actions.is-compact-actions .post-stat-item,
.post-actions.is-compact-actions .post-fly-hint {
    height: 22px;
    font-size: 11px;
}

/* Feed Post In-Card Conversation Snippet */
.post-conversation-snippet {
    margin-top: 6px;
    padding: 6px 8px;
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.post-conversation-snippet:hover {
    background: #EBF2FF;
    border-color: #CCD6DD;
}

.snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    font-size: 9.5px;
    font-weight: 700;
    color: #657786;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.snippet-link {
    color: #0055FF;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.post-conversation-snippet:hover .snippet-link {
    color: #0044CC;
    text-decoration: underline;
}

.snippet-reply {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #14171A;
    overflow: hidden;
}

.snippet-author {
    font-weight: 700;
    color: #14171A;
    font-size: 11px;
    flex-shrink: 0;
}

.snippet-mood {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 9.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.snippet-mood .ui-icon {
    width: 9px;
    height: 9px;
}

.snippet-text {
    color: #657786;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- CLEAN MINIMALIST GLOBE OVERLAY & CENTER-TOP UNIFIED SEARCH ---- */
.globe-clean-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 320;
}

.globe-center-search-dock {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 32px));
    min-width: 220px;
    z-index: 260;
    pointer-events: auto;
}

.center-search-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 999px;
    padding: 0 12px 0 14px;
    height: 40px;
    box-shadow: 0 8px 28px rgba(20, 23, 26, 0.14);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.center-search-pill:focus-within {
    background: #FFFFFF;
    border-color: #0055FF;
    box-shadow: 0 4px 16px rgba(0, 85, 255, 0.20), 0 0 0 2px rgba(0, 85, 255, 0.16);
}

.center-search-icon {
    display: flex;
    align-items: center;
    color: #657786;
    margin-right: 9px;
    flex-shrink: 0;
}

.center-search-icon .ui-icon {
    width: 15px;
    height: 15px;
}

.center-search-pill input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #14171A;
    font-size: 13px;
    font-weight: 500;
}

.center-search-pill input::placeholder {
    color: #657786;
}

.btn-clear-globe-search {
    margin-left: 6px;
}

.center-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 12px;
    overflow: hidden;
    max-height: 410px;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(20, 23, 26, 0.16);
    z-index: 330;
}

.search-section-label {
    padding: 7px 14px 4px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #657786;
    background: #F5F8FA;
    border-bottom: 1px solid #E1E8ED;
}

.center-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid #E1E8ED;
    transition: background 0.14s ease;
}

.center-search-item:last-child {
    border-bottom: none;
}

.center-search-item:hover {
    background: #F5F8FA;
}

.search-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    color: #657786;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-item-icon .ui-icon {
    width: 13px;
    height: 13px;
}

.search-item-icon.is-continent {
    background: #EBF2FF;
    border-color: #BFDBFE;
    color: #0055FF;
}

.search-item-icon.is-country {
    background: rgba(0, 85, 255, 0.10);
    border-color: #BFDBFE;
    color: #0055FF;
}

.search-item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: #EEF3F7;
    border: 1px solid #CCD6DD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #14171A;
    flex-shrink: 0;
}

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

.search-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-item-main strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #14171A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-main span {
    font-size: 11px;
    color: #657786;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-pill {
    font-size: 10px;
    font-weight: 600;
    color: #14171A;
    background: #EEF3F7;
    border: 1px solid #CCD6DD;
    border-radius: 999px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.search-item-follow-btn {
    width: auto;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #0055FF;
    background: #FFFFFF;
    color: #0055FF;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.search-item-follow-btn:hover {
    background: #EBF2FF;
    border-color: #0044CC;
    color: #0044CC;
}

.search-item-follow-btn.is-following {
    background: #EBF2FF;
    border-color: #BFDBFE;
    color: #0055FF;
}

.search-item-follow-btn.is-following:hover {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.globe-presence-corner {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 200;
    pointer-events: auto;
}

.hud-progress-wrap {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 220px;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    padding: 8px 10px;
    pointer-events: auto;
}

.hud-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: #14171A;
    margin-bottom: 5px;
}

.hud-progress-bar {
    width: 100%;
    height: 4px;
    background: #E1E8ED;
    border-radius: 2px;
    overflow: hidden;
}

.hud-progress-fill {
    height: 100%;
    background: #0055FF;
    transition: width 0.25s ease;
}

/* Single-line hover tooltip anchored at exact 3D city coordinate */
.place-hover-anchor {
    width: 0;
    height: 0;
    position: relative;
    pointer-events: none !important;
}

.place-hover-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 7px));
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 5px;
    padding: 2px 7px;
    color: #14171A;
    font-size: 11px;
    line-height: 1.3;
    align-items: baseline;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(20, 23, 26, 0.14);
    white-space: nowrap;
    pointer-events: none !important;
}

.place-tt-name {
    font-weight: 600;
    color: #14171A;
}

.place-tt-sub {
    font-size: 9.5px;
    color: #657786;
}

.place-tt-sub.is-center {
    color: #0055FF;
    font-weight: 700;
}

.place-tt-mood {
    font-size: 10px;
    font-weight: 800;
}

/* ---- GLOBAL WEATHER BEACONS, LOCAL POST PINS & ON-GLOBE PREVIEW CARD ---- */
.weather-beacon-anchor,
.local-post-anchor,
.globe-preview-anchor {
    width: 0;
    height: 0;
    position: relative;
    z-index: 60;
}

.weather-beacon-pill {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 6px));
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    color: #14171A;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(20, 23, 26, 0.14);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.weather-beacon-pill:hover {
    transform: translate(-50%, calc(-100% - 8px)) scale(1.05);
}

.weather-beacon-pill .beacon-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.weather-beacon-pill.beacon-storm {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #B91C1C;
}

.weather-beacon-pill.beacon-storm .beacon-icon {
    color: #DC2626;
}

.weather-beacon-pill.beacon-serene {
    background: #ECFDF5;
    border-color: #6EE7B7;
    color: #047857;
}

.weather-beacon-pill.beacon-serene .beacon-icon {
    color: #0E8A4F;
}

.beacon-place {
    font-weight: 700;
}

.beacon-topic {
    color: #14171A;
    font-weight: 600;
    opacity: 0.92;
}

.local-post-pin {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 5px));
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    color: #14171A;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 23, 26, 0.14);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.local-post-pin:hover {
    border-color: #0055FF;
    color: #0055FF;
}

.pin-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #657786;
    flex-shrink: 0;
}

.local-post-pin.pin-storm {
    border-color: rgba(239, 68, 68, 0.45);
}

.local-post-pin.pin-storm .pin-dot {
    background: #E0245E;
}

.local-post-pin.pin-serene {
    border-color: rgba(16, 185, 129, 0.40);
}

.local-post-pin.pin-serene .pin-dot {
    background: #17BF63;
}

.globe-preview-card {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: min(410px, calc(100vw - 24px));
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 12px;
    padding: 12px 14px;
    color: #14171A;
    font-size: 12px;
    box-shadow: 0 16px 42px rgba(20, 23, 26, 0.22);
    z-index: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.gp-thread-body {
    max-height: 310px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #CCD6DD transparent;
}

.gp-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    min-width: 0;
}

.gp-place {
    font-weight: 700;
    font-size: 11px;
    color: #14171A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.gp-follow-btn {
    width: auto;
    margin-left: auto;
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 9999px;
    border: 1px solid #0055FF;
    background: #FFFFFF;
    color: #0055FF;
    cursor: pointer;
    white-space: nowrap;
}

.gp-follow-btn:hover {
    background: #EBF2FF;
    border-color: #0044CC;
    color: #0044CC;
}

.gp-follow-btn.is-following {
    background: #EBF2FF;
    border-color: #BFDBFE;
    color: #0055FF;
}

.gp-follow-btn.is-following:hover {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.gp-mood {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
}

.gp-mood .ui-icon {
    width: 10px;
    height: 10px;
}

.gp-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-bottom: 6px;
}

.gp-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #0055FF;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.gp-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.gp-author-meta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gp-name {
    font-weight: 700;
    color: #14171A;
}

.gp-handle {
    color: #657786;
}

.gp-text {
    font-size: 12px;
    line-height: 1.45;
    color: #14171A;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Globe Card Active Conversation Box */
.gp-replies-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E1E8ED;
}

.gp-replies-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: #657786;
    margin-bottom: 5px;
    font-weight: 600;
}

.gp-reply-item {
    padding: 6px 8px;
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 11.5px;
    line-height: 1.35;
}

.gp-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 2px;
}

.gp-reply-author {
    font-weight: 600;
    color: #14171A;
    font-size: 11px;
}

.gp-reply-mood {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9.5px;
    font-weight: 700;
}

.gp-reply-mood .ui-icon {
    width: 9px;
    height: 9px;
}

.gp-reply-text {
    color: #14171A;
    font-size: 11.5px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gp-quick-reply {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
}

.gp-reply-input {
    flex: 1;
    min-width: 0;
    margin: 0;
    height: 30px;
    box-sizing: border-box;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
    padding: 0 9px;
    color: #14171A;
    font-size: 11.5px;
}

.gp-reply-input:focus {
    border-color: #657786;
    outline: none;
}

.gp-reply-send {
    width: auto;
    flex-shrink: 0;
    height: 30px;
    background: #0055FF;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 0 13px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gp-reply-send:hover {
    background: #0044CC;
    color: #FFFFFF;
}

.gp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #EEF3F7;
    font-size: 10.5px;
    color: #657786;
    margin-top: 8px;
}

.gp-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gp-stat .ui-icon {
    width: 12px;
    height: 12px;
}

.gp-stat.is-liked {
    color: #E0245E;
}

.gp-stat.is-liked .ui-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.gp-stat.is-commented {
    color: #0055FF;
}

.gp-stat.is-commented .ui-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.gp-view-thread {
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    color: #0055FF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
}

.gp-view-thread:hover {
    background: #EBF2FF;
    border-color: #0055FF;
    color: #0044CC;
}

/* Modal Conversation View */
.thread-modal-backdrop {
    position: fixed;
    inset: 0;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(20, 23, 26, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.thread-modal-box {
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 24px 64px rgba(20, 23, 26, 0.20);
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.thread-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #E1E8ED;
    background: #FFFFFF;
    flex-shrink: 0;
}

.thread-modal-title {
    font-weight: 700;
    font-size: 14px;
    color: #14171A;
}

.thread-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: #CCD6DD transparent;
}

.thread-loading,
.thread-error {
    text-align: center;
    padding: 36px 16px;
    font-size: 12.5px;
    color: #657786;
}

.thread-error {
    color: #DC2626;
}

.thread-parent-post {
    padding-bottom: 14px;
    border-bottom: 1px solid #E1E8ED;
    margin-bottom: 14px;
}

.thread-lead-content {
    font-size: 14px;
    line-height: 1.5;
    color: #14171A;
    margin: 6px 0;
}

.thread-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 0 -7px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #657786;
}

.thread-meta-primary,
.thread-meta-tools {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.thread-meta-primary {
    gap: 10px;
}

.thread-meta-tools {
    margin-left: auto;
    gap: 2px;
    flex-shrink: 0;
}

.thread-meta-item {
    height: 26px;
    margin: 0;
    padding: 0 7px;
    border-radius: 9999px;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #657786;
}

.thread-meta-item .ui-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.thread-meta-item.is-liked {
    color: #E0245E;
}

.thread-meta-item.is-liked .ui-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.thread-meta-item.is-commented {
    color: #0055FF;
}

.thread-meta-item.is-commented .ui-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.thread-replies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread-no-replies {
    text-align: center;
    padding: 30px 10px;
    color: #657786;
    font-size: 12px;
}

.thread-reply-item {
    padding: 8px 0 4px 0;
    background: transparent;
    border: none;
}

.thread-replies-nest {
    margin-left: 15px;
    border-left: 2px solid #E1E8ED;
    padding-left: 12px;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thread-replies-nest.is-deep-nest {
    margin-left: 0;
    border-left-color: #E1E8ED;
    padding-left: 10px;
}

.comment-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 0 0 -7px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    color: #657786;
}

.comment-actions-primary,
.comment-actions-tools {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.comment-actions-primary {
    gap: 8px;
}

.comment-actions-tools {
    margin-left: auto;
    gap: 2px;
    flex-shrink: 0;
}

.btn-reply-comment {
    width: auto;
    height: 24px;
    margin: 0;
    padding: 0 7px;
    border-radius: 9999px;
    border: 1px solid transparent;
    box-sizing: border-box;
    background: transparent;
    color: #657786;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn-reply-comment:hover {
    background: rgba(0, 85, 255, 0.10);
    border-color: transparent;
    color: #0055FF;
}

.btn-reply-comment .ui-icon {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}

.inline-comment-reply {
    margin-top: 8px;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
}

.inline-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #657786;
    margin-bottom: 6px;
}

.inline-reply-header .reply-target {
    color: #0055FF;
}

.inline-reply-input-wrap {
    margin-bottom: 8px;
}

.inline-reply-input {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
    padding: 7px 10px;
    color: #14171A;
    font-size: 12px;
}

.inline-reply-input:focus {
    border-color: #657786;
    outline: none;
}

.inline-reply-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-mood-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.inline-mood-label {
    font-size: 11px;
    color: #657786;
    font-weight: 600;
}

.inline-slider {
    flex: 1;
    min-width: 60px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    height: 4px;
    accent-color: #14171A;
}

.inline-mood-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-inline-submit {
    width: auto;
    flex-shrink: 0;
    background: #0055FF;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    padding: 6px 14px;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.btn-inline-submit:hover {
    background: #0044CC;
    color: #FFFFFF;
}

.thread-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.thread-reply-content {
    font-size: 12.5px;
    color: #14171A;
}

.thread-reply-box {
    padding: 12px 16px;
    border-top: 1px solid #E1E8ED;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.thread-reply-error {
    font-size: 11.5px;
    color: #DC2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
}

.thread-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.thread-slider-label {
    color: #657786;
    font-weight: 600;
    white-space: nowrap;
}

.thread-slider-wrap input[type=range] {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    height: 4px;
    accent-color: #14171A;
}

.thread-mood-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.thread-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-input-row input {
    flex: 1;
    min-width: 0;
    margin: 0;
    height: 36px;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
    padding: 0 12px;
    color: #14171A;
    font-size: 12.5px;
}

.thread-input-row input:focus {
    border-color: #657786;
    outline: none;
}

.thread-input-row button {
    width: auto;
    flex-shrink: 0;
    height: 36px;
    background: #0055FF;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    padding: 0 18px;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.thread-input-row button:hover {
    background: #0044CC;
    color: #FFFFFF;
}

/* ==========================================================================
   FIGMA-STYLE MULTI-USER PRESENCE, CURSORS & FOLLOW MODE
   ========================================================================== */

/* 1. Globe Avatar Marker: Chatterra speech-bubble silhouette (circle + bottom-left pointer) matching the brand icon. */
.figma-cursor-anchor {
    position: relative;
    width: 0;
    height: 0;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.25s ease;
    z-index: 60;
}

.figma-cursor-anchor:hover {
    z-index: 95;
}

.figma-cursor-wrap {
    position: absolute;
    left: -5px;
    top: -35px;
    display: inline-flex;
    align-items: center;
}

.globe-avatar-bubble {
    position: relative;
    width: 36px;
    height: 36px;
    transition: transform 0.16s ease;
}

.figma-cursor-anchor:hover .globe-avatar-bubble {
    transform: translateY(-2px);
}

.globe-bubble-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    pointer-events: none;
    shape-rendering: geometricPrecision;
}

.globe-bubble-shadow {
    fill: rgba(10, 15, 25, 0.24);
    stroke: rgba(10, 15, 25, 0.16);
    stroke-width: 38;
    stroke-linejoin: round;
    pointer-events: none;
}

.globe-bubble-follow-ring {
    fill: none;
    stroke: rgba(23, 191, 99, 0.42);
    stroke-width: 58;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.globe-bubble-shape {
    stroke: #ffffff;
    stroke-width: 28;
    stroke-linejoin: round;
    paint-order: stroke fill;
    transition: stroke-width 0.16s ease;
}

.figma-cursor-anchor:hover .globe-bubble-shape {
    stroke-width: 34;
}

.figma-avatar-circle {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    image-rendering: auto;
}

.figma-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50%;
}

/* Hover-only Name Pill: Completely invisible until hover */
.figma-hover-pill {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(20, 23, 26, 0.15);
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.figma-cursor-anchor:hover .figma-hover-pill {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.figma-hover-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #14171A;
}

.figma-hover-label {
    font-size: 10px;
    color: #657786;
    padding-left: 5px;
    border-left: 1px solid #CCD6DD;
}

/* 2. HUD Presence Facepile in Top Bar */
.hud-presence-facepile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 3px 10px;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(20, 23, 26, 0.12);
}

.presence-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #14171A;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.presence-pulse-dot {
    width: 7px;
    height: 7px;
    background: #17BF63;
    border-radius: 50%;
    box-shadow: none;
    animation: presencePulse 2s infinite ease-in-out;
}

.presence-pulse-dot.is-idle {
    background: #94A3B8;
    animation: none;
}

@keyframes presencePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.presence-avatar-stack {
    display: flex;
    align-items: center;
    margin-left: 2px;
}

.presence-stack-item {
    position: relative;
    margin-left: -6px;
    cursor: pointer;
    transition: transform 0.15s ease, z-index 0.15s ease;
}

.presence-stack-item:first-child {
    margin-left: 0;
}

.presence-stack-item:hover {
    transform: translateY(-2px) scale(1.15);
    z-index: 10;
}

.presence-stack-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(20, 23, 26, 0.12);
}

.presence-stack-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.presence-stack-avatar > span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.presence-stack-more {
    color: #657786;
    background: #EEF3F7;
    font-size: 9.5px;
    font-weight: 700;
}

.presence-stack-item.is-followed-peer {
    z-index: 6;
}

.presence-stack-item.is-followed-peer .presence-stack-avatar {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.38), 0 3px 10px rgba(16, 185, 129, 0.35);
    animation: followedRoamingGlow 2.1s infinite ease-in-out;
}

.presence-followed-star {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: 1.5px solid #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.45);
    pointer-events: none;
}

@keyframes followedRoamingGlow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.40), 0 3px 8px rgba(16, 185, 129, 0.30); }
    50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.65), 0 4px 12px rgba(16, 185, 129, 0.55); }
}

.presence-stack-item.is-following .presence-stack-avatar {
    outline: 2px solid #0055FF;
    outline-offset: 1px;
    animation: followPulse 1.8s infinite ease-in-out;
}

@keyframes followPulse {
    0%, 100% { outline-color: #0055FF; }
    50% { outline-color: #ffffff; }
}

/* 3. Floating Follow Banner (below center search bar) */
.hud-follow-banner {
    position: absolute;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 999px;
    padding: 6px 10px 6px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(20, 23, 26, 0.15);
    z-index: 950;
    pointer-events: auto;
    animation: slideDownFollowBanner 0.22s ease-out;
}

@keyframes slideDownFollowBanner {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.follow-avatar-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #0055FF;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
}

.follow-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.follow-avatar-pill > span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

.follow-text {
    font-size: 12px;
    color: #14171A;
}

.follow-text strong {
    color: #0055FF;
}

.follow-subtext {
    font-size: 11px;
    color: #657786;
    padding-left: 6px;
    border-left: 1px solid #CCD6DD;
}

.btn-stop-follow {
    width: auto;
    flex-shrink: 0;
    background: #EEF3F7;
    color: #14171A;
    border: 1px solid #CCD6DD;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-stop-follow:hover {
    background: #EBF2FF;
    border-color: #0055FF;
    color: #0055FF;
}

.btn-stop-follow kbd {
    background: #FFFFFF;
    border: 1px solid #8899A6;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 9px;
    color: #657786;
}

@media (max-width: 1380px) {
    .globe-presence-corner {
        top: auto;
        bottom: 14px;
        right: 14px;
    }
}

@media (max-width: 900px) {
    #main-interface {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        overflow: hidden;
    }

    #globe-container {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 42dvh;
    }

    .feed-container {
        position: relative;
        flex: 1 1 auto;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 100%;
        height: 58dvh;
        min-width: 0;
    }

    #feed-overlay {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-left: none;
        border-top: 1px solid #E1E8ED;
    }

    .globe-center-search-dock {
        width: calc(100% - 24px);
        top: 10px;
    }

    .globe-presence-corner {
        top: auto;
        bottom: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
    }

    .globe-preview-card {
        width: min(370px, calc(100vw - 20px));
        max-height: calc(42dvh - 16px);
        overflow-y: auto;
    }

    .gp-thread-body {
        max-height: 140px;
    }

    .thread-modal-box,
    .profile-modal-card {
        width: calc(100% - 20px);
        max-height: 90dvh;
    }
}

@media (max-width: 640px) {
    .brand-tag {
        display: none;
    }

    .header-user-actions {
        gap: 4px;
    }

    .user-pill {
        padding: 2px 7px 2px 3px;
        gap: 4px;
    }

    .user-pill-name {
        max-width: 125px;
    }
}


/* ---- LIVE SEARCH BAR ---- */
.feed-search-row {
    margin-bottom: 8px;
}
.feed-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    border-radius: 999px;
    padding: 0 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.feed-search-input-wrap:focus-within {
    border-color: #0055FF;
    background: #FFFFFF;
}
.feed-search-icon {
    display: flex;
    align-items: center;
    color: #657786;
    margin-right: 6px;
}
.feed-search-icon .ui-icon {
    width: 13px;
    height: 13px;
}
.feed-search-input {
    flex: 1;
    height: 30px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 11.5px;
    color: #14171A;
    padding: 0;
}
.feed-search-input::placeholder {
    color: #657786;
}
.active-filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EBF2FF;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    color: #14171A;
    margin: 0 12px 7px 12px;
}
.active-filter-banner strong {
    color: #0055FF;
}
.active-filter-banner.is-region-scope {
    background: #EBF2FF;
    border-color: #93C5FD;
    color: #14171A;
}
.active-filter-banner.is-region-scope strong {
    color: #0044CC;
}
.btn-clear-filter {
    width: auto;
    padding: 2px 7px;
    background: transparent;
    border: none;
    color: #0055FF;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.btn-clear-filter:hover {
    background: rgba(0, 85, 255, 0.12);
    color: #0044CC;
}

/* ---- USER PROFILE MODAL ---- */
.profile-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    background: rgba(20, 23, 26, 0.45);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-modal-card {
    width: 520px;
    max-width: 100%;
    height: min(680px, 86vh);
    max-height: 88vh;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(20, 23, 26, 0.20);
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-state-msg {
    padding: 36px 24px;
    text-align: center;
    font-size: 13px;
    color: #657786;
}

.modal-error-msg {
    color: #DC2626;
}

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

.profile-modal-card {
    position: relative;
}

.profile-cover-banner {
    height: 76px;
    background: #0055FF;
    border-bottom: 1px solid #0044CC;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-cover-watermark {
    position: absolute;
    right: 54px;
    top: 15px;
    height: 46px;
    width: 46px;
    opacity: 0.18;
    pointer-events: none;
    shape-rendering: geometricPrecision;
}

.profile-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.profile-header-content {
    padding: 12px 18px 14px 18px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #E1E8ED;
    flex-shrink: 0;
}

.profile-avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: -42px;
    margin-bottom: 10px;
    padding-right: 0;
    position: relative;
    z-index: 3;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.btn-avatar-upload {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid #0055FF;
    color: #14171A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 23, 26, 0.16);
    transition: background 0.15s, color 0.15s;
}

.btn-avatar-upload:hover {
    background: #0055FF;
    color: #FFFFFF;
}

.btn-avatar-upload .ui-icon {
    width: 12px;
    height: 12px;
}

.profile-pic-edit-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-pic-edit-row input {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.btn-upload-photo {
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 85, 255, 0.10);
    border: 1px solid #0055FF;
    color: #0055FF;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-upload-photo:hover {
    background: #0055FF;
    border-color: #0055FF;
    color: #FFFFFF;
}

.profile-avatar-lg {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    background: #0055FF;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(20, 23, 26, 0.16);
}
.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-follow-toggle {
    width: auto;
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-follow-toggle:hover {
    background: #0044CC;
    border-color: #0044CC;
    color: #FFFFFF;
}
.btn-follow-toggle.is-following {
    background: transparent;
    color: #14171A;
    border-color: #8899A6;
}
.btn-follow-toggle.is-following:hover {
    border-color: #E0245E;
    color: #E0245E;
    background: rgba(239, 68, 68, 0.1);
}

.btn-edit-profile {
    width: auto;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #CCD6DD;
    background: #F5F8FA;
    color: #14171A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
}
.btn-edit-profile:hover {
    background: #E1E8ED;
    border-color: #8899A6;
}

.btn-profile-logout {
    width: auto;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #DC2626;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, border-color 0.15s;
}

.btn-profile-logout:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #B91C1C;
}

.profile-names {
    margin-bottom: 8px;
}
.profile-display-name {
    font-size: 17px;
    font-weight: 700;
    color: #14171A;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-username {
    font-size: 12.5px;
    color: #657786;
}

.profile-bio {
    font-size: 13px;
    line-height: 1.45;
    color: #14171A;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11.5px;
    color: #657786;
    margin-bottom: 12px;
}
.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.profile-meta-item .ui-icon {
    width: 13px;
    height: 13px;
    color: #657786;
}

.profile-stats-row {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
}
.profile-stat-count {
    font-weight: 700;
    color: #14171A;
}
.profile-stat-label {
    color: #657786;
    margin-left: 3px;
}

/* Edit Profile Form */
.profile-edit-box {
    margin-top: 12px;
    padding: 12px;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 36vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CCD6DD transparent;
}
.profile-edit-error {
    font-size: 11.5px;
    color: #DC2626;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
}
.profile-edit-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-edit-field label {
    font-size: 10.5px;
    font-weight: 600;
    color: #657786;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-edit-field input,
.profile-edit-field textarea {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    color: #14171A;
    outline: none;
    font-family: inherit;
}
.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
    border-color: #657786;
}
.profile-edit-field input:disabled {
    background: #F5F8FA;
    color: #657786;
    cursor: not-allowed;
}
.profile-edit-hint {
    font-size: 10.5px;
    color: #657786;
    line-height: 1.35;
}
.profile-edit-field textarea {
    resize: vertical;
    min-height: 50px;
}
.profile-edit-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
.btn-save-profile {
    width: auto;
    background: #0055FF;
    color: #FFFFFF;
    border: 1px solid #0055FF;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-save-profile:hover {
    background: #0044CC;
    border-color: #0044CC;
    color: #FFFFFF;
}
.btn-cancel-profile {
    width: auto;
    background: transparent;
    color: #657786;
    border: 1px solid #CCD6DD;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
.btn-cancel-profile:hover {
    background: #E1E8ED;
    color: #14171A;
}

.profile-feed-header {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #14171A;
    border-bottom: 1px solid #E1E8ED;
    background: #FFFFFF;
}

.profile-posts-wrap {
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    padding: 12px 16px;
    background: #F5F8FA;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #CCD6DD transparent;
}

.profile-posts-wrap .post-card {
    border: 1px solid #E1E8ED;
    border-radius: 8px;
}

.clickable-user {
    cursor: pointer;
    transition: color 0.15s;
}
.clickable-user:hover {
    color: #0055FF;
    text-decoration: underline;
}
.post-avatar.clickable-avatar {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.post-avatar.clickable-avatar:hover {
    transform: scale(1.08);
}

/* ---- FOLLOWED USERS ON EARTH & ENHANCED PROFILE TABS ---- */
.figma-cursor-anchor.is-followed-cursor {
    z-index: 45 !important;
}

.figma-cursor-anchor.is-followed-cursor .globe-avatar-bubble {
    transform: scale(1.18);
}

.figma-cursor-anchor.is-followed-cursor .globe-bubble-follow-ring {
    opacity: 1;
    stroke: rgba(16, 185, 129, 0.72);
    stroke-width: 74;
    animation: followedCursorPulse 2.2s infinite ease-in-out;
}

.figma-cursor-anchor.is-followed-cursor .globe-bubble-shape {
    stroke: #10B981;
    stroke-width: 38;
}

@keyframes followedCursorPulse {
    0%, 100% { stroke-opacity: 0.45; }
    50% { stroke-opacity: 0.95; }
}

.figma-followed-vip-pill {
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    border: 1.5px solid #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    pointer-events: auto;
    transition: opacity 0.15s ease;
}

.figma-cursor-anchor.is-followed-cursor .figma-followed-vip-pill {
    display: inline-flex;
}

.figma-cursor-anchor.is-followed-cursor:hover .figma-followed-vip-pill {
    opacity: 0;
    pointer-events: none;
}

.figma-followed-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #047857;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 999px;
    padding: 1px 6px;
}

/* Dedicated glowing solo Event pills on Earth when Events filter tab is active */
.event-globe-anchor {
    width: 0;
    height: 0;
    position: relative;
    z-index: 70;
}

.event-globe-pill {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 8px));
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 230px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.96) 0%, rgba(124, 58, 237, 0.96) 100%);
    color: #FFFFFF;
    border: 1.5px solid #FACC15;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.42), 0 0 0 2px rgba(250, 204, 21, 0.28);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.event-globe-pill:hover {
    transform: translate(-50%, calc(-100% - 10px)) scale(1.05);
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.56), 0 0 0 3px rgba(250, 204, 21, 0.42);
}

.event-globe-pill .ui-icon {
    width: 12px;
    height: 12px;
    color: #FDE047;
    flex-shrink: 0;
}

.event-globe-title {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px;
}

.event-globe-loc {
    font-size: 9.5px;
    font-weight: 600;
    color: #EDE9FE;
    opacity: 0.92;
    padding-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.following-activity-anchor {
    width: 0;
    height: 0;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.following-activity-pin {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 6px));
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 3px;
    background: #FFFFFF;
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(20, 23, 26, 0.16);
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.following-activity-pin:hover {
    transform: translate(-50%, calc(-100% - 8px)) scale(1.05);
    border-color: #12A152;
    background: #FFFFFF;
}

.flw-pin-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #17BF63;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
    border: 1.5px solid #17BF63;
}

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

.flw-pin-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 10.5px;
}

.flw-pin-meta strong {
    color: #14171A;
    font-weight: 700;
}

.flw-pin-meta span {
    color: #657786;
    font-weight: 500;
}

.profile-stat-btn {
    width: auto;
    font-weight: 400;
    background: transparent;
    border: none;
    padding: 3px 6px;
    margin: -3px -6px;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    transition: background 0.14s ease;
}

.profile-stat-btn:hover {
    background: #E1E8ED;
}

.profile-tabs-bar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E1E8ED;
    background: #FFFFFF;
    padding: 0 14px;
    gap: 6px;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs-bar::-webkit-scrollbar {
    display: none;
}

.profile-tab-btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #657786;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 10px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-tab-btn:hover {
    background: transparent;
    border-color: transparent;
    color: #14171A;
}

.profile-tab-btn.active {
    color: #0055FF;
    font-weight: 700;
    border-bottom-color: #0055FF;
}

.btn-watch-live {
    width: auto;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #0E7C41;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, color 0.15s;
}

.btn-watch-live:hover {
    background: #17BF63;
    border-color: #17BF63;
    color: #FFFFFF;
}

.btn-watch-live .ui-icon {
    width: 12px;
    height: 12px;
}

.profile-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #0E7C41;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 4px;
}

.profile-earth-item {
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.15s, background 0.15s;
}

.profile-earth-item:hover {
    border-color: #8899A6;
    background: #F5F8FA;
}

.profile-earth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-earth-place {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #14171A;
}

.profile-earth-place .ui-icon {
    width: 13px;
    height: 13px;
    color: #657786;
}

.profile-earth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.profile-earth-badge .ui-icon {
    width: 10px;
    height: 10px;
}

.profile-earth-meta {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: #657786;
}

.profile-earth-snippet {
    font-size: 12px;
    color: #14171A;
    line-height: 1.4;
}

.profile-earth-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #657786;
    font-weight: 600;
    margin-top: 2px;
}

.profile-earth-cta .ui-icon {
    width: 11px;
    height: 11px;
}

.profile-connection-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.profile-connection-row:hover {
    border-color: #8899A6;
    background: #F5F8FA;
}

.profile-connection-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #EEF3F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #14171A;
    flex-shrink: 0;
}

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

.profile-connection-info {
    flex: 1;
    min-width: 0;
}

.profile-connection-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #14171A;
}

.profile-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #17BF63;
    box-shadow: none;
}

.profile-connection-handle {
    font-size: 11px;
    color: #657786;
}

.profile-connection-bio {
    font-size: 11.5px;
    color: #657786;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.btn-follow-sm {
    width: auto;
    flex-shrink: 0;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #FFFFFF;
    cursor: pointer;
}

.btn-follow-sm:hover {
    background: #0044CC;
    border-color: #0044CC;
    color: #FFFFFF;
}

.btn-follow-sm.is-following {
    background: transparent;
    color: #14171A;
    border-color: #8899A6;
}

.btn-follow-sm.is-following:hover {
    border-color: #E0245E;
    color: #E0245E;
    background: rgba(239, 68, 68, 0.1);
}



/* Header user actions + Notification Bell */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 0 1 auto;
}

.notif-wrap {
    position: static;
    flex-shrink: 0;
}

.btn-notif {
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    border-radius: 5px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-notif:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border-color: transparent;
}

.btn-notif .ui-icon {
    width: 13px;
    height: 13px;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #E0245E;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0055FF;
    pointer-events: none;
}

.notif-dropdown {
    position: absolute;
    top: 48px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(380px, calc(100dvh - 100px));
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20, 23, 26, 0.22);
    z-index: 1200;
    overflow: hidden;
}

@media (max-width: 900px) {
    .notif-dropdown {
        max-height: calc(58dvh - 64px);
    }

    .notif-list {
        max-height: calc(58dvh - 110px);
    }

    .user-pill-name {
        max-width: 145px;
    }
}

@media (max-width: 640px) {
    .notif-dropdown {
        left: 8px;
        right: 8px;
    }

    .brand-logo-svg,
    .brand-logo-img {
        height: 24px;
        width: 107px;
    }

    .figma-cursor-wrap {
        left: -4px;
        top: -31px;
    }

    .globe-avatar-bubble {
        width: 32px;
        height: 32px;
    }

    .figma-avatar-circle {
        left: 4px;
        top: 4px;
        width: 24px;
        height: 24px;
    }

    .user-pill-name {
        max-width: 125px;
    }

    .header-user-actions {
        gap: 4px;
    }
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #E1E8ED;
    font-size: 12px;
    font-weight: 700;
    color: #14171A;
}

.btn-notif-read {
    width: auto;
    margin: 0;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 600;
    background: transparent;
    border: 1px solid #E1E8ED;
    color: #657786;
    border-radius: 6px;
    cursor: pointer;
}

.btn-notif-read:hover {
    color: #0055FF;
    background: #EBF2FF;
    border-color: #0055FF;
}

.notif-list {
    max-height: 330px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.notif-empty {
    padding: 24px 12px;
    text-align: center;
    font-size: 12px;
    color: #657786;
}

.notif-item {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E1E8ED;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    color: #14171A;
    transition: background 0.12s ease;
}

.notif-item:hover {
    background: rgba(0, 85, 255, 0.08);
}

.notif-item.is-unread {
    background: rgba(0, 85, 255, 0.06);
}

.notif-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #EEF3F7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #14171A;
}

.notif-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.notif-text {
    font-size: 11.5px;
    line-height: 1.35;
    color: #14171A;
}

.notif-text strong {
    color: #14171A;
}

.notif-snippet {
    font-size: 11px;
    color: #657786;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 10px;
    color: #657786;
}

/* Integrated Mood-Send Widget */
.mood-send-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.mood-chips-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.mood-chip {
    width: 100%;
    margin: 0;
    padding: 5px 4px;
    border-radius: 7px;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    color: #657786;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.14s ease;
}

.mood-chip .ui-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.mood-chip:hover {
    color: #14171A;
    background: #FFFFFF;
    border-color: #AAB8C2;
}

.mood-chip.active {
    background: #EBF2FF;
    border-color: #0055FF;
    color: #0055FF;
}

.btn-primary.btn-mood-send {
    border-color: #0055FF !important;
}

.mood-send-dot {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.mood-send-range {
    margin: 0 !important;
}

.btn-mood-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
}

.mood-send-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Comment Like / Dislike Reactions */
.btn-comment-react {
    width: auto;
    height: 24px;
    margin: 0;
    padding: 0 7px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid transparent;
    box-sizing: border-box;
    color: #657786;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn-comment-react .ui-icon {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}

.btn-comment-react:hover {
    color: #14171A;
    background: rgba(101, 119, 134, 0.10);
    border-color: transparent;
}

.btn-comment-react.active-like {
    color: #17BF63;
    background: rgba(23, 191, 99, 0.12);
    border-color: rgba(23, 191, 99, 0.35);
}

.btn-comment-react.active-dislike {
    color: #E0245E;
    background: rgba(224, 36, 94, 0.12);
    border-color: rgba(224, 36, 94, 0.35);
}

/* Self Pin distinction on Globe */
.following-activity-pin.is-self-pin {
    border-color: #0055FF;
    background: #EBF2FF;
}

.following-activity-pin.is-self-pin .flw-pin-meta strong {
    color: #0055FF;
}

/* Unified Compact Mood Pills & Interactive Thread/Preview Actions */
.mood-chips-row.is-compact {
    gap: 3px;
}

.mood-chips-row.is-compact .mood-chip {
    padding: 3px 3px;
    font-size: 9.5px;
    border-radius: 6px;
}

.mood-chips-row.is-compact .mood-chip .ui-icon {
    width: 10px;
    height: 10px;
}

.thread-reply-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-reply-controls.is-unified {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.inline-reply-controls.is-unified .btn-inline-submit {
    align-self: flex-end;
}

.gp-reply-composer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
}

.thread-action-btn,
.gp-stat-btn {
    width: auto;
    height: 26px;
    margin: 0;
    padding: 0 7px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid transparent;
    box-sizing: border-box;
    color: #657786;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.thread-action-btn.is-icon-only {
    width: 26px;
    padding: 0;
}

.gp-stat-btn {
    height: 24px;
    padding: 0 6px;
    font-size: 11.5px;
}

.thread-action-btn .ui-icon,
.gp-stat-btn .ui-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
}

.thread-action-btn:hover,
.gp-stat-btn:hover {
    color: #14171A;
    background: rgba(101, 119, 134, 0.10);
    border-color: transparent;
}

.thread-action-repost:hover,
.thread-action-btn.is-reposted,
.gp-stat-btn.is-reposted {
    color: #17BF63;
    background: rgba(23, 191, 99, 0.10);
    border-color: transparent;
}

.thread-action-btn.is-reposted,
.gp-stat-btn.is-reposted {
    border-color: rgba(23, 191, 99, 0.30);
}

.thread-action-like:hover,
.thread-action-btn.is-liked,
.gp-stat-btn.is-liked {
    color: #E0245E;
    background: rgba(224, 36, 94, 0.10);
    border-color: transparent;
}

.thread-action-btn.is-liked,
.gp-stat-btn.is-liked {
    border-color: rgba(224, 36, 94, 0.30);
}

.thread-action-btn.is-liked .ui-icon path,
.gp-stat-btn.is-liked .ui-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.thread-action-edit:hover {
    color: #0055FF;
    background: rgba(0, 85, 255, 0.10);
}

.thread-action-delete:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.10);
}

.thread-action-report:hover {
    color: #B45309;
    background: rgba(245, 158, 11, 0.12);
}

.capital-label-pill {
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 6px));
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #CCD6DD;
    color: #14171A;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(20, 23, 26, 0.16);
}

.map-place-label {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 5px));
    user-select: none;
}

.map-place-label.is-major {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #CCD6DD;
    color: #14171A;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(20, 23, 26, 0.18);
}

.map-place-label.is-major .map-place-dot {
    display: none;
}

.map-place-label .map-place-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7DD3FC;
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.75);
    flex-shrink: 0;
}

.map-place-label.is-city {
    transform: translate(-50%, calc(-100% - 3px));
    color: #F8FAFC;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(4, 9, 20, 0.98), 0 0 8px rgba(4, 9, 20, 0.92);
}

.map-place-label.is-town {
    transform: translate(-50%, calc(-100% - 2px));
    color: #CBD5E1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(4, 9, 20, 0.98), 0 0 6px rgba(4, 9, 20, 0.90);
}

.map-place-label.is-town .map-place-dot {
    width: 3px;
    height: 3px;
    background: #94A3B8;
    box-shadow: none;
}

/* Guest mode & Account verification auth modal */
#auth-container {
    position: fixed;
    inset: 0;
    z-index: 9500;
}

.auth-box {
    position: relative;
}

.auth-box .auth-modal-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.auth-box .error-msg:empty {
    display: none;
}

.auth-reason-banner {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #EBF2FF;
    border: 1px solid #BFDBFE;
    color: #0044CC;
    font-size: 12px;
    line-height: 1.4;
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    background: #F5F8FA;
    border-radius: 10px;
    border: 1px solid #E1E8ED;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.auth-verify-card {
    margin-top: 6px;
    padding: 12px;
    border-radius: 10px;
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    text-align: left;
}

.auth-verify-summary {
    font-size: 12.5px;
    color: #14171A;
    line-height: 1.45;
    margin-bottom: 10px;
}

.auth-verify-code-input {
    text-align: center;
    font-size: 20px !important;
    font-weight: 700;
    letter-spacing: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.auth-verify-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.auth-box .auth-verify-back {
    width: 100%;
    height: auto;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #CCD6DD;
    border-radius: 8px;
    background: #FFFFFF;
    color: #657786;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.auth-box .auth-verify-back:hover {
    background: #EEF3F7;
    border-color: #BCC7D0;
    color: #14171A;
}

.auth-dev-code {
    display: inline-block;
    margin: 2px 0 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(180, 83, 9, 0.14);
    color: #78350F;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.auth-box .auth-mode-tab {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 7px 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #657786;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-box .auth-mode-tab:hover {
    background: #E1E8ED;
    border-color: transparent;
    color: #14171A;
}

.auth-box .auth-mode-tab.active {
    background: #EBF2FF;
    border-color: #BFDBFE;
    color: #14171A;
}

.auth-privacy-note {
    margin-top: 14px;
    font-size: 11px;
    color: #657786;
    text-align: center;
    line-height: 1.4;
}

.ml-result {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ml-result-title {
    font-size: 12px;
    color: #0E7C41;
    font-weight: 600;
}

.ml-open-btn {
    display: inline-block;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #17BF63;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.auth-box .ml-copy-btn,
.ml-copy-btn {
    width: auto;
    height: auto;
    margin: 0;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid #0055FF;
    background: #FFFFFF;
    color: #0055FF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-box .ml-copy-btn:hover,
.ml-copy-btn:hover {
    background: #EBF2FF;
    border-color: #0044CC;
    color: #0044CC;
}

.guest-badge {
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

button.btn-header-signin {
    width: auto;
    height: auto;
    margin: 0;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #FFFFFF;
    background: #FFFFFF;
    color: #0055FF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

button.btn-header-signin:hover {
    background: #EBF2FF;
    border-color: #EBF2FF;
    color: #0044CC;
}

.guest-limit-banner {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 85, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.guest-limit-banner.is-compact {
    margin-top: 10px;
    padding: 9px 12px;
}

.guest-limit-text {
    font-size: 12px;
    color: #14171A;
    line-height: 1.45;
    flex: 1 1 auto;
    min-width: 0;
}

button.btn-guest-signin {
    width: auto;
    height: auto;
    margin: 0;
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.btn-guest-signin:hover {
    background: #0044CC;
}

.user-avatar-sm.has-img {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.profile-link-input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #CCD6DD;
    background: #FFFFFF;
    color: #14171A;
    font-size: 11px;
    box-sizing: border-box;
}

.user-avatar-sm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 999px;
}

/* Editing, Reporting & Moderation Console */
.post-edited-tag {
    font-size: 10.5px;
    color: #657786;
    margin-left: 4px;
    font-style: italic;
}

.btn-mod-console {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
    position: relative;
}

.mod-btn-label {
    display: none;
}

.btn-mod-console:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: transparent;
    color: #FFFFFF;
}

.btn-mod-console .ui-icon {
    width: 13px;
    height: 13px;
}

.mod-open-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    background: #E0245E;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid #0055FF;
    pointer-events: none;
}

.btn-comment-delete,
.btn-comment-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: transparent;
    color: #657786;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: color 0.14s ease, background 0.14s ease;
}

.btn-comment-delete .ui-icon,
.btn-comment-report .ui-icon {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}

.btn-comment-delete:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.10);
    border-color: transparent;
}

.btn-comment-report:hover {
    color: #B45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: transparent;
}

.mod-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 26, 0.48);
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mod-modal-box {
    width: 100%;
    max-width: min(500px, calc(100vw - 20px));
    max-height: 88vh;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(20, 23, 26, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    color: #14171A;
}

.mod-modal-box.is-wide {
    max-width: min(780px, calc(100vw - 20px));
}

.mod-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #E1E8ED;
    background: #F5F8FA;
    min-width: 0;
}

.mod-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #14171A;
}

.mod-modal-body {
    padding: 14px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #657786;
    margin-bottom: 4px;
    display: block;
}

.mod-textarea,
.mod-select,
.mod-input {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #CCD6DD;
    background: #FFFFFF;
    color: #14171A;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}

.mod-textarea {
    min-height: 92px;
    resize: vertical;
}

.mod-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.mod-btn-primary,
.mod-btn-secondary,
.mod-btn-danger,
.mod-btn-warn {
    width: auto;
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.mod-btn-primary {
    background: #0055FF;
    color: #fff;
}

.mod-btn-primary:hover {
    background: #0044CC;
}

.mod-btn-secondary {
    background: #F5F8FA;
    color: #14171A;
    border-color: #CCD6DD;
}

.mod-btn-secondary:hover {
    background: #E1E8ED;
}

.mod-btn-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #B91C1C;
    border-color: rgba(239, 68, 68, 0.45);
}

.mod-btn-danger:hover {
    background: rgba(220, 38, 38, 0.35);
}

.mod-btn-warn {
    background: rgba(217, 119, 6, 0.2);
    color: #B45309;
    border-color: rgba(245, 158, 11, 0.45);
}

.mod-btn-warn:hover {
    background: rgba(217, 119, 6, 0.35);
}

.mod-status-msg {
    font-size: 12px;
    color: #DC2626;
    min-height: 16px;
}

.mod-status-msg.is-ok {
    color: #15803D;
}

.mod-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 16px 0 16px;
    border-bottom: 1px solid #E1E8ED;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.mod-tab {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #657786;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.mod-tab.active {
    color: #0055FF;
    border-bottom-color: #0055FF;
}

.mod-item-card {
    padding: 11px 13px;
    border-radius: 11px;
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.mod-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    min-width: 0;
}

.mod-item-meta {
    font-size: 11.5px;
    color: #657786;
}

.mod-item-preview {
    font-size: 12.5px;
    color: #14171A;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    padding: 7px 9px;
    word-break: break-word;
}

.mod-item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.mod-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.mod-pill.is-admin {
    background: rgba(168, 85, 247, 0.22);
    color: #6D28D9;
}

.mod-pill.is-moderator {
    background: #EBF2FF;
    color: #0055FF;
}

.mod-pill.is-user {
    background: rgba(100, 116, 139, 0.22);
    color: #14171A;
}

.mod-pill.is-banned {
    background: rgba(239, 68, 68, 0.24);
    color: #B91C1C;
}

.mod-pill.is-pending,
.mod-pill.is-open {
    background: rgba(245, 158, 11, 0.22);
    color: #B45309;
}

.mod-pill.is-resolved,
.mod-pill.is-verified {
    background: rgba(34, 197, 94, 0.2);
    color: #15803D;
}

.mod-pill.is-dismissed,
.mod-pill.is-rejected {
    background: rgba(100, 116, 139, 0.24);
    color: #14171A;
}

.mod-empty {
    padding: 24px 12px;
    text-align: center;
    color: #657786;
    font-size: 13px;
}

/* Backend Statistics Dashboard (Old-Twitter light style) */
.mod-stats-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.mod-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mod-stat-card {
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 10px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mod-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #0055FF;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mod-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #14171A;
    line-height: 1.15;
    margin: 2px 0;
}

.mod-stat-sub {
    font-size: 11px;
    color: #657786;
    line-height: 1.35;
}

.mod-stats-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mod-stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mod-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    font-size: 11.5px;
    color: #14171A;
}

.mod-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #17BF63;
    flex-shrink: 0;
}

/* ---- LOCATION FOLLOWING FEED BAR & CHIPS ---- */
.following-sources-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px 9px 12px;
    background: #F5F8FA;
    border-top: 1px solid #E1E8ED;
}

.following-sources-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.following-sources-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #657786;
}

.following-add-loc-btn {
    width: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    background: #FFFFFF;
    color: #0055FF;
    border: 1px solid #CCD6DD;
    border-radius: 9999px;
    cursor: pointer;
}

.following-add-loc-btn:hover {
    background: #EBF2FF;
    border-color: #0055FF;
}

.following-sources-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 76px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.following-loc-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 9999px;
    overflow: hidden;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.following-loc-chip:hover {
    border-color: #0055FF;
}

.following-loc-go {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px 3px 8px;
    background: transparent;
    border: none;
    color: #14171A;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    min-width: 0;
}

.following-loc-go:hover {
    color: #0055FF;
}

.following-loc-icon {
    display: inline-flex;
    color: #0055FF;
    flex-shrink: 0;
}

.following-loc-icon .ui-icon {
    width: 11px;
    height: 11px;
}

.following-loc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.following-loc-remove {
    width: 20px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    border-left: 1px solid #E1E8ED;
    color: #657786;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.following-loc-remove:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.following-sources-empty {
    font-size: 11.5px;
    color: #657786;
    line-height: 1.35;
}

.post-follow-match-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    color: #0055FF;
    background: #EBF2FF;
    border: 1px solid #BFDBFE;
    white-space: nowrap;
}

.profile-following-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #657786;
    margin: 6px 0 6px 0;
}

.profile-connection-avatar.is-location {
    background: #EBF2FF;
    border-color: #BFDBFE;
    color: #0055FF;
}

.profile-connection-avatar.is-location .ui-icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 640px) {
    .mod-stats-grid,
    .mod-stats-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mod-btn-label {
        display: none;
    }

    .btn-mod-console {
        padding: 0;
    }

    .mod-modal-backdrop {
        padding: 10px;
    }

    .mod-modal-box,
    .mod-modal-box.is-wide {
        max-height: 92vh;
        border-radius: 13px;
    }
}

/* =========================================================
   PWA Install Banner, iOS Guide & Web Push Controls
   (Old Twitter Crisp Light Theme: #0055FF / #FFFFFF / #E1E8ED)
   ========================================================= */

.notif-push-bar {
    padding: 9px 12px;
    background: #F5F8FA;
    border-bottom: 1px solid #E1E8ED;
}

.notif-push-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notif-push-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.35;
    color: #14171A;
    font-weight: 500;
}

.notif-push-text.is-muted {
    color: #657786;
}

.notif-push-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #14171A;
}

.push-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17BF63;
    box-shadow: 0 0 0 2px rgba(23, 191, 99, 0.2);
}

.notif-push-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-push-enable {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 9999px;
    border: none;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-push-enable:hover {
    background: #0044CC;
}

.btn-push-enable:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-push-ghost {
    width: auto;
    margin: 0;
    padding: 3px 8px;
    border-radius: 9999px;
    border: 1px solid #CCD6DD;
    background: #FFFFFF;
    color: #14171A;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.btn-push-ghost:hover {
    border-color: #0055FF;
    color: #0055FF;
    background: #EBF2FF;
}

.btn-push-ghost.is-danger:hover {
    border-color: #E0245E;
    color: #E0245E;
    background: #FFF0F5;
}

.notif-push-prefs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E1E8ED;
}

.push-pref-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #14171A;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.push-pref-item input[type="checkbox"] {
    accent-color: #0055FF;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.notif-push-feedback {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #0055FF;
}

.btn-install-inline {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 5px 8px;
    border: 1px dashed #93C5FD;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0055FF;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.btn-install-inline:hover {
    background: #EBF2FF;
    border-color: #0055FF;
}

.pwa-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1.5px solid #0055FF;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 85, 255, 0.18), 0 2px 8px rgba(20, 23, 26, 0.1);
    z-index: 1450;
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 85, 255, 0.25);
}

.pwa-install-icon svg,
.pwa-install-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.pwa-install-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.pwa-install-title {
    font-size: 13px;
    font-weight: 700;
    color: #14171A;
    line-height: 1.25;
}

.pwa-install-sub {
    font-size: 11px;
    color: #657786;
    line-height: 1.3;
    margin-top: 2px;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pwa-install-btn {
    width: auto;
    margin: 0;
    padding: 7px 13px;
    border: none;
    border-radius: 9999px;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: #0044CC;
}

.pwa-guide-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 26, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1600;
}

.pwa-guide-modal {
    width: 100%;
    max-width: 390px;
    background: #FFFFFF;
    border: 1px solid #CCD6DD;
    border-radius: 16px;
    box-shadow: 0 20px 44px rgba(20, 23, 26, 0.25);
    padding: 18px;
}

.pwa-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E1E8ED;
}

.pwa-guide-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-guide-brand svg,
.pwa-guide-brand img {
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}

.pwa-guide-brand h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #14171A;
}

.pwa-guide-brand span {
    display: block;
    font-size: 11.5px;
    color: #657786;
}

.pwa-guide-steps {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwa-guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #14171A;
}

.pwa-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.pwa-inline-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #EBF2FF;
    color: #0055FF;
    vertical-align: middle;
}

.pwa-inline-ico .ui-icon {
    width: 14px;
    height: 14px;
}

.pwa-guide-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

.pwa-guide-done {
    width: 100%;
    padding: 9px 14px;
    border-radius: 9999px;
}

@media (max-width: 900px) {
    .notif-list {
        max-height: calc(58dvh - 165px);
    }
}

/* ---- TAGLINE, WORD/CHAR COUNTERS & CROSS-PLATFORM SHARE MENU ---- */
.auth-hero-tagline {
    margin: 0;
    padding-left: 9px;
    padding-top: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.36);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.015em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.auth-verify-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #14171A;
}

.ml-dev-box {
    margin: 10px 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    font-size: 11.5px;
    color: #78350F;
    line-height: 1.4;
}

.ml-dev-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.ml-dev-link {
    color: #0055FF;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.ml-dev-link:hover {
    text-decoration: underline;
}

.compose-limit-bar,
.gp-reply-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.25;
}

.compose-limit-bar.is-reply {
    margin-top: 5px;
    margin-bottom: 0;
}

.compose-limit-rule {
    color: #657786;
    font-weight: 500;
}

.compose-limit-rule strong {
    color: #14171A;
    font-weight: 700;
}

.compose-limit-counter {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #657786;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 9999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.compose-limit-counter.is-compact {
    font-size: 10px;
    padding: 1px 7px;
}

.compose-limit-counter.is-warn {
    color: #B45309;
    background: #FFFBEB;
    border-color: #FCD34D;
}

.compose-limit-counter.is-over {
    color: #DC2626;
    background: #FEF2F2;
    border-color: #FCA5A5;
}

.post-textarea.is-limit-exceeded,
.mod-textarea.is-limit-exceeded,
.gp-reply-input.is-limit-exceeded,
.inline-reply-input.is-limit-exceeded,
#thread-reply-input.is-limit-exceeded {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
}

.gp-reply-error {
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #DC2626;
    font-size: 11px;
    font-weight: 600;
}

.gp-share-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: transparent;
    color: #657786;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.gp-share-btn:hover {
    background: #EBF2FF;
    border-color: #BFDBFE;
    color: #0055FF;
}

.gp-share-btn .ui-icon {
    width: 12px;
    height: 12px;
}

.btn-share-post:hover,
.thread-action-share:hover {
    color: #0055FF !important;
    background: #EBF2FF !important;
    border-color: #BFDBFE !important;
}

.share-modal-box {
    max-width: 440px;
}

.share-preview-card {
    background: #F5F8FA;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.share-preview-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 12.5px;
    margin-bottom: 4px;
    color: #14171A;
}

.share-preview-handle,
.share-preview-place {
    color: #657786;
    font-weight: 500;
}

.share-preview-text {
    font-size: 13px;
    line-height: 1.45;
    color: #14171A;
    margin-bottom: 6px;
    word-break: break-word;
}

.share-preview-brand {
    font-size: 11px;
    font-weight: 700;
    color: #0055FF;
}

.share-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    min-width: 0;
}

.share-link-input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #14171A;
    background: #F5F8FA;
    border: 1px solid #CCD6DD;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-share-copy {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-share-copy:hover {
    background: #0044CC;
    border-color: #0044CC;
    color: #FFFFFF;
}

.btn-share-native {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    margin: 0 0 10px 0;
    border-radius: 8px;
    border: 1px solid #BFDBFE;
    background: #EBF2FF;
    color: #0055FF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-share-native:hover {
    background: #DBEAFE;
}

.share-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.share-platform-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid #E1E8ED;
    background: #FFFFFF;
    color: #14171A;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.14s, background 0.14s;
}

.share-platform-btn:hover {
    border-color: #0055FF;
    background: #F5F8FA;
}

.share-plat-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    background: #14171A;
    flex-shrink: 0;
}

.share-platform-btn.is-whatsapp .share-plat-badge { background: #16A34A; }
.share-platform-btn.is-telegram .share-plat-badge { background: #0284C7; }
.share-platform-btn.is-linkedin .share-plat-badge { background: #0A66C2; }
.share-platform-btn.is-reddit .share-plat-badge { background: #EA580C; }
.share-platform-btn.is-facebook .share-plat-badge { background: #1877F2; }
.share-platform-btn.is-email .share-plat-badge { background: #657786; }

/* =========================================================================
   Tier System, Bits Economy & 1 m² Land-Claiming UI
   ========================================================================= */
.tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 9999px;
    border: 1px solid #CCD6DD;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.tier-pill.is-compact {
    padding: 0 5px;
    font-size: 9.5px;
}

.tier-pill-sym {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@keyframes tierPulse {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.tier-economy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E1E8ED;
    font-size: 11.5px;
    color: #14171A;
}

.tier-economy-bar.is-tier-up {
    animation: tierPulse 0.9s ease;
    border-color: #0284C7;
    background: #F0F9FF;
}

.tier-econ-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.tier-econ-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.tier-econ-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tier-econ-line strong {
    color: #0F172A;
    font-weight: 800;
}

.tier-econ-progress {
    width: 100%;
    height: 4px;
    border-radius: 9999px;
    background: #E2E8F0;
    overflow: hidden;
}

.tier-econ-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.btn-claim-land-hdr {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

.btn-claim-land-hdr:hover {
    background: #0044CC;
    border-color: #0044CC;
}

.btn-claim-land-hdr .ui-icon {
    width: 12px;
    height: 12px;
}

.profile-tier-card {
    margin: 10px 0 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #E1E8ED;
    background: #F8FAFC;
}

.profile-tier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-tier-next {
    font-size: 11px;
    color: #657786;
    font-weight: 600;
}

.profile-tier-bar {
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: #E2E8F0;
    overflow: hidden;
    margin-bottom: 10px;
}

.profile-tier-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.35s ease;
}

.profile-tier-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.profile-tier-metric {
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    border-radius: 8px;
    padding: 6px 8px;
}

.profile-tier-metric strong {
    display: block;
    font-size: 13px;
    color: #0F172A;
    font-weight: 800;
}

.profile-tier-metric span {
    display: block;
    font-size: 10px;
    color: #657786;
    font-weight: 600;
    margin-top: 1px;
}

.profile-tier-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10.5px;
    color: #475569;
    margin-bottom: 8px;
}

.profile-tier-src-pill {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 9999px;
    padding: 2px 8px;
    font-weight: 600;
}

.profile-tier-roadmap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.tier-step-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #94A3B8;
}

.tier-step-chip.is-reached {
    color: #0F172A;
    border-color: #CBD5E1;
}

.tier-step-chip.is-current {
    font-weight: 800;
}

.btn-profile-claim-cta {
    width: 100%;
    margin: 6px 0 0;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.btn-profile-claim-cta:hover {
    background: #0044CC;
}

.profile-land-item {
    padding: 10px 12px;
    border: 1px solid #E1E8ED;
    border-radius: 10px;
    background: #FFFFFF;
    margin-bottom: 8px;
}

.profile-land-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-land-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.profile-land-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #BFDBFE;
    background: #EFF6FF;
    color: #1D4ED8;
    white-space: nowrap;
}

.profile-land-meta {
    font-size: 11px;
    color: #657786;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.profile-land-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-land-action {
    width: auto;
    margin: 0;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-land-action:hover {
    border-color: #0055FF;
    color: #0055FF;
    background: #EFF6FF;
}

.btn-land-action.is-grow {
    border-color: #10B981;
    color: #065F46;
    background: #ECFDF5;
}

.btn-land-action.is-grow:hover {
    background: #D1FAE5;
    border-color: #059669;
}

/* 1:1 Earth Scale HUD indicator */
.hud-bottom-left-meta {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 42;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    user-select: none;
}

.hud-earth-scale {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: #E2E8F0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hud-earth-scale-bar {
    display: inline-block;
    width: 34px;
    height: 4px;
    border-bottom: 2px solid #38BDF8;
    border-left: 2px solid #38BDF8;
    border-right: 2px solid #38BDF8;
}

@media (max-width: 768px) {
    .hud-bottom-left-meta {
        left: 10px;
        bottom: auto;
        top: 66px;
    }
    .hud-earth-scale {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Land Claim Modal */
.land-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.land-modal-box {
    width: 100%;
    max-width: 470px;
    max-height: 92vh;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E1E8ED;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
    padding: 16px;
    box-sizing: border-box;
}

.land-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.land-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 7px;
}

.land-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    margin-bottom: 10px;
    font-size: 11.5px;
    color: #334155;
}

.land-modal-coords {
    font-size: 11px;
    color: #64748B;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.land-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.land-mode-tab {
    margin: 0;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}

.land-mode-tab.active {
    background: #0055FF;
    border-color: #0055FF;
    color: #FFFFFF;
}

.land-grow-picker {
    margin-bottom: 8px;
}

.land-picker-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.land-grow-select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 12px;
    font-weight: 600;
    box-sizing: border-box;
}

.land-canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.land-scale-pill {
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
    background: #F1F5F9;
    padding: 3px 9px;
    border-radius: 9999px;
    border: 1px solid #E2E8F0;
}

.land-canvas-shell {
    position: relative;
    width: 100%;
    height: 235px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1E293B;
    background: #0B1626;
    margin-bottom: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.land-droplet-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.land-canvas-scalebar {
    position: absolute;
    left: 10px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #E2E8F0;
    font-size: 10.5px;
    font-weight: 700;
    pointer-events: none;
}

.land-scalebar-line {
    display: inline-block;
    height: 5px;
    min-width: 16px;
    border-bottom: 2px solid #38BDF8;
    border-left: 2px solid #38BDF8;
    border-right: 2px solid #38BDF8;
}

.land-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.land-slider-row input[type="range"] {
    flex: 1;
    margin: 0;
    accent-color: #0055FF;
    cursor: pointer;
}

.land-diam-hint {
    font-size: 11px;
    font-weight: 700;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 3px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.land-form-row-droplet {
    grid-template-columns: 115px 1fr;
}

.land-grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.land-grid-pan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-land-pan {
    width: auto;
    margin: 0;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-land-pan:hover {
    border-color: #0055FF;
    color: #0055FF;
}

.land-grid-wrap {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 2px;
    padding: 5px;
    border-radius: 10px;
    background: #E2E8F0;
    border: 1px solid #CBD5E1;
    margin-bottom: 8px;
    user-select: none;
}

@keyframes pulseConflict {
    from { opacity: 0.75; }
    to { opacity: 1; }
}

.land-cell {
    aspect-ratio: 1 / 1;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease;
}

.land-cell.is-free {
    background: #FFFFFF;
    border-color: #CBD5E1;
}

.land-cell.is-free:hover {
    background: #E0F2FE;
    border-color: #0284C7;
    transform: scale(1.08);
    z-index: 2;
}

.land-cell.is-selected {
    background: #0055FF;
    border-color: #0039AD;
}

.land-cell.is-mine {
    background: #0E8A4F;
    border-color: #065F46;
}

.land-cell.is-other {
    background: #64748B;
    border-color: #334155;
}

.land-cell.is-conflict {
    background: #DC2626 !important;
    border-color: #991B1B !important;
    animation: pulseConflict 0.7s ease infinite alternate;
}

.land-grid-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 10.5px;
    color: #475569;
    margin-bottom: 10px;
}

.land-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.land-leg-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.land-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.btn-land-preset {
    width: auto;
    margin: 0;
    padding: 4px 9px;
    border-radius: 9999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.btn-land-preset.active {
    background: #0055FF;
    border-color: #0055FF;
    color: #FFFFFF;
}

.land-form-row {
    display: grid;
    grid-template-columns: 90px 90px 1fr;
    gap: 8px;
    align-items: end;
    margin-bottom: 10px;
}

.land-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 3px;
}

.land-field input {
    width: 100%;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 12.5px;
    box-sizing: border-box;
}

.land-status-msg {
    font-size: 11.5px;
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #334155;
}

.land-status-msg.is-error {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #B91C1C;
    font-weight: 600;
}

.land-status-msg.is-success {
    background: #ECFDF5;
    border-color: #6EE7B7;
    color: #065F46;
    font-weight: 600;
}

.btn-land-submit {
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #0055FF;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.btn-land-submit:hover:not(:disabled) {
    background: #0044CC;
}

.btn-land-submit:disabled {
    background: #94A3B8;
    border-color: #94A3B8;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .profile-tier-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .land-form-row {
        grid-template-columns: 1fr 1fr;
    }
    .land-form-row .land-field-label {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   Following Feed Filters, Settings Button & Mute Controls
   ========================================================= */

.following-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.following-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 9999px;
    background: #EFF3F4;
    border: 1px solid #E1E8ED;
}

.following-filter-btn {
    width: auto;
    margin: 0;
    padding: 4px 10px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #536471;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
    white-space: nowrap;
}

.following-filter-btn:hover {
    color: #0F1419;
}

.following-filter-btn.active {
    background: #FFFFFF;
    color: #0055FF;
    box-shadow: 0 1px 2px rgba(15, 20, 25, 0.08);
}

.following-settings-btn {
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #CFD9DE;
    background: #FFFFFF;
    color: #0F1419;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.following-settings-btn:hover {
    background: #F0F6FF;
    border-color: #93C5FD;
    color: #0055FF;
}

.following-settings-btn .ui-icon {
    width: 12px;
    height: 12px;
}

.following-loc-chip.is-muted {
    opacity: 0.68;
    border-style: dashed;
}

.following-loc-muted-pill {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
    margin-left: 2px;
}

.profile-following-hint {
    font-size: 11.5px;
    line-height: 1.4;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px 11px;
    margin-bottom: 10px;
}

.profile-connection-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-mute-sm {
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.btn-mute-sm .ui-icon {
    width: 12px;
    height: 12px;
}

.btn-mute-sm:hover:not(:disabled) {
    background: #F1F5F9;
    color: #0F1419;
    border-color: #94A3B8;
}

.btn-mute-sm.is-muted {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #B91C1C;
}

.btn-mute-sm.is-muted:hover:not(:disabled) {
    background: #FEE2E2;
    border-color: #F87171;
}

.muted-source-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-connection-row.is-muted .profile-connection-info {
    opacity: 0.72;
}

.feed-empty .btn-guest-signin.is-secondary {
    background: #FFFFFF;
    color: #0F1419;
    border: 1px solid #CFD9DE;
    margin-top: 6px;
}

.feed-empty .btn-guest-signin.is-secondary:hover {
    background: #F5F8FA;
    border-color: #94A3B8;
}

@media (max-width: 768px) {
    .following-controls-row {
        gap: 6px;
    }
    .following-filter-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    .following-settings-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    .profile-connection-actions {
        gap: 4px;
    }
    .btn-mute-sm {
        padding: 5px 8px;
        font-size: 10.5px;
    }
}

/* ---- UNIFIED CLOSE / DISMISS ICON BUTTONS ---- */
.btn-clear-globe-search,
.btn-clear-search,
.gp-close,
.thread-modal-close,
.inline-reply-close,
.profile-close-btn,
.mod-modal-close,
.land-modal-close,
.pwa-dismiss-btn,
.btn-modal-close,
.auth-box .auth-modal-close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #657786;
    line-height: 0;
    gap: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.btn-clear-globe-search:hover,
.btn-clear-search:hover,
.gp-close:hover,
.thread-modal-close:hover,
.inline-reply-close:hover,
.profile-close-btn:hover,
.mod-modal-close:hover,
.land-modal-close:hover,
.pwa-dismiss-btn:hover,
.btn-modal-close:hover {
    background: rgba(15, 23, 42, 0.08);
    border: none;
    border-color: transparent;
    color: #14171A;
}

.btn-clear-globe-search:active,
.btn-clear-search:active,
.gp-close:active,
.thread-modal-close:active,
.inline-reply-close:active,
.profile-close-btn:active,
.mod-modal-close:active,
.land-modal-close:active,
.pwa-dismiss-btn:active,
.btn-modal-close:active {
    background: rgba(15, 23, 42, 0.14);
}

.btn-clear-globe-search:focus-visible,
.btn-clear-search:focus-visible,
.gp-close:focus-visible,
.thread-modal-close:focus-visible,
.inline-reply-close:focus-visible,
.profile-close-btn:focus-visible,
.mod-modal-close:focus-visible,
.land-modal-close:focus-visible,
.pwa-dismiss-btn:focus-visible,
.btn-modal-close:focus-visible {
    outline: 2px solid #0055FF;
    outline-offset: 2px;
}

.btn-clear-globe-search,
.btn-clear-search,
.gp-close,
.inline-reply-close,
.pwa-dismiss-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.btn-clear-globe-search {
    margin-left: 6px;
}

.thread-modal-close .ui-icon,
.profile-close-btn .ui-icon,
.mod-modal-close .ui-icon,
.land-modal-close .ui-icon,
.btn-modal-close .ui-icon,
.auth-box .auth-modal-close .ui-icon {
    display: block;
    width: 14px;
    height: 14px;
}

.btn-clear-globe-search .ui-icon,
.btn-clear-search .ui-icon,
.gp-close .ui-icon,
.inline-reply-close .ui-icon,
.pwa-dismiss-btn .ui-icon {
    display: block;
    width: 12px;
    height: 12px;
}

.auth-box .auth-modal-close,
.profile-cover-banner ~ .profile-close-btn {
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    border: none;
    border-color: transparent;
}

.auth-box .auth-modal-close:hover,
.profile-cover-banner ~ .profile-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-color: transparent;
    color: #FFFFFF;
}

.auth-box .auth-modal-close:active,
.profile-cover-banner ~ .profile-close-btn:active {
    background: rgba(255, 255, 255, 0.28);
}

.auth-box .auth-modal-close:focus-visible,
.profile-cover-banner ~ .profile-close-btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* ============================================================
 * Infinite Scroll, Phase Dividers & Resurfaced Discussion Pill
 * ============================================================ */
.post-resurfaced-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: #0055FF;
    background: rgba(0, 85, 255, 0.09);
    border: 1px solid rgba(0, 85, 255, 0.22);
    white-space: nowrap;
}

.feed-phase-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 4px;
    color: #64748B;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.feed-phase-divider::before,
.feed-phase-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.feed-phase-divider span {
    padding: 4px 11px;
    border-radius: 999px;
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: center;
}

.feed-infinite-sentinel,
.feed-end-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px 26px;
    color: #64748B;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.feed-scroll-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(0, 85, 255, 0.18);
    border-top-color: #0055FF;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.feed-infinite-sentinel.is-loading .feed-scroll-spinner {
    opacity: 1;
    transform: scale(1);
    animation: feedSentinelSpin 0.7s linear infinite;
}

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

/* ============================================================
 * Rich Quick Hover Preview & Deep-Zoom Auto Center Previews
 * ============================================================ */
.auto-post-preview-anchor {
    width: 0;
    height: 0;
    position: relative;
    z-index: 65;
}

.place-hover-tooltip.is-post-preview,
.auto-post-preview-card {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 11px));
    width: 248px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    display: block;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 9px 11px 8px;
    color: #0F172A;
    font-size: 11.5px;
    line-height: 1.38;
    white-space: normal;
    text-align: left;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18), 0 1px 3px rgba(15, 23, 42, 0.08);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.place-hover-tooltip.is-post-preview {
    transform: translate(calc(-50% + var(--hover-shift-x, 0px)), calc(-100% - 11px));
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 95;
    border-color: #93C5FD;
}

.place-hover-tooltip.is-post-preview:hover {
    border-color: #0055FF;
    box-shadow: 0 10px 28px rgba(0, 85, 255, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
}

.place-hover-tooltip.is-post-preview.is-flipped-below {
    transform: translate(calc(-50% + var(--hover-shift-x, 0px)), 12px);
}

.auto-post-preview-card {
    cursor: pointer;
    z-index: 66;
}

/* Invisible pointer bridge between the post dot and popup card so villages underneath never hijack cursor movement */
.place-hover-tooltip.is-post-preview::before,
.auto-post-preview-card::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -14px;
    height: 15px;
    background: transparent;
}

.place-hover-tooltip.is-post-preview.is-flipped-below::before {
    bottom: auto;
    top: -14px;
}

.auto-post-preview-card:hover,
.auto-post-preview-card.is-hovered {
    border-color: #0055FF;
    box-shadow: 0 10px 28px rgba(0, 85, 255, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
    transform: translate(-50%, calc(-100% - 13px));
}

.place-hover-tooltip.is-post-preview::after,
.auto-post-preview-card::after {
    content: "";
    position: absolute;
    left: var(--arrow-left, 50%);
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-right: 1px solid #CBD5E1;
    border-bottom: 1px solid #CBD5E1;
    transform: translateX(-50%) rotate(45deg);
}

.place-hover-tooltip.is-post-preview.is-flipped-below::after {
    bottom: auto;
    top: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #93C5FD;
    border-top: 1px solid #93C5FD;
}

.place-hover-tooltip.is-post-preview::after,
.auto-post-preview-card:hover::after,
.auto-post-preview-card.is-hovered::after {
    border-right-color: #0055FF;
    border-bottom-color: #0055FF;
}

.gp-mini-top {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    min-width: 0;
}

.gp-mini-place {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-mini-place .ui-icon {
    width: 11px;
    height: 11px;
    color: #0055FF;
    flex-shrink: 0;
}

.gp-mini-rank {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    padding: 1px 5px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
}

.gp-mini-rank.is-center {
    color: #0055FF;
    background: rgba(0, 85, 255, 0.1);
}

.gp-mini-mood {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.gp-mini-mood .ui-icon {
    width: 10px;
    height: 10px;
}

.gp-mini-author {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    min-width: 0;
    font-size: 10.5px;
    color: #475569;
}

.gp-mini-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #0055FF;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 9px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.gp-mini-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.gp-mini-author-name {
    font-weight: 700;
    color: #0F172A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 96px;
}

.gp-mini-handle {
    color: #64748B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
}

.gp-mini-dot {
    color: #94A3B8;
    flex-shrink: 0;
}

.gp-mini-time {
    color: #64748B;
    flex-shrink: 0;
    white-space: nowrap;
}

.gp-mini-snippet {
    font-size: 11.5px;
    line-height: 1.4;
    color: #1E293B;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.gp-mini-tag {
    color: #0055FF;
    font-weight: 600;
}

.gp-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 5px;
    border-top: 1px solid #F1F5F9;
    font-size: 10px;
    color: #64748B;
}

.gp-mini-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: #475569;
}

.gp-mini-stat .ui-icon {
    width: 11px;
    height: 11px;
    color: #64748B;
}

.gp-mini-cta {
    font-weight: 700;
    color: #0055FF;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .place-hover-tooltip.is-post-preview,
    .auto-post-preview-card {
        width: 216px;
        padding: 7px 9px;
    }

    .gp-mini-snippet {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .gp-mini-handle {
        display: none;
    }
}

/* =========================================================
   Globe-First Land Workspace & Floating Land Focus HUD Bar
   ========================================================= */

#location-context-bar.is-hidden-for-land {
    display: none !important;
}

.tier-econ-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.btn-my-land-hdr {
    width: auto;
    margin: 0;
    padding: 5px 9px;
    border-radius: 9999px;
    border: 1px solid #A7F3D0;
    background: #ECFDF5;
    color: #065F46;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    transition: background 0.14s ease, border-color 0.14s ease;
}

.btn-my-land-hdr:hover {
    background: #D1FAE5;
    border-color: #10B981;
}

.btn-my-land-hdr .ui-icon {
    width: 12px;
    height: 12px;
}

.profile-land-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    font-size: 12px;
    margin-bottom: 10px;
}

.profile-land-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-land-body {
    flex: 1;
    min-width: 0;
}

/* Floating Bottom-Center Globe Land Focus Bar */
.hud-land-focus-bar {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 940;
    max-width: calc(100% - 28px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.42);
    color: #F8FAFC;
    pointer-events: auto;
    box-sizing: border-box;
}

.hlf-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.hlf-step-btn {
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hlf-step-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.hlf-counter {
    font-size: 11px;
    font-weight: 800;
    padding: 0 4px;
    color: #6EE7B7;
    white-space: nowrap;
}

.hlf-role-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #7DD3FC;
    white-space: nowrap;
    flex-shrink: 0;
}

.hlf-role-pill.is-mine {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.48);
    color: #6EE7B7;
}

.hlf-meta {
    min-width: 0;
    max-width: 195px;
    flex: 1 1 auto;
}

.hlf-title {
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hlf-sub {
    font-size: 10.5px;
    color: #CBD5E1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hlf-zoom-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.hlf-zoom-btn {
    width: auto;
    margin: 0;
    padding: 4px 8px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #CBD5E1;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hlf-zoom-btn:hover {
    color: #FFFFFF;
}

.hlf-zoom-btn.active {
    background: #0055FF;
    color: #FFFFFF;
}

.hlf-manage-btn {
    width: auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(52, 211, 153, 0.5);
    background: #059669;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.hlf-manage-btn:hover {
    background: #10B981;
}

.hlf-close-btn {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hlf-close-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

/* Sidebar Land Tab Workspace */
.land-workspace {
    padding: 10px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.land-workspace .land-canvas-shell {
    height: 185px;
}

.land-portfolio-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ECFDF5 0%, #EFF6FF 100%);
    border: 1px solid #BFDBFE;
}

.land-portfolio-hero.is-guest {
    background: linear-gradient(135deg, #F0F9FF 0%, #F8FAFC 100%);
    border-color: #BAE6FD;
}

.land-hero-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.land-hero-metrics {
    font-size: 11px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.btn-land-overview {
    width: auto;
    margin: 0;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid #0055FF;
    background: #FFFFFF;
    color: #0055FF;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.btn-land-overview:hover {
    background: #0055FF;
    color: #FFFFFF;
}

.btn-land-overview .ui-icon {
    width: 13px;
    height: 13px;
}

.land-subtabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 5px;
    padding: 4px;
    border-radius: 11px;
    background: #EFF3F4;
    border: 1px solid #E1E8ED;
}

.land-subtab {
    width: 100%;
    margin: 0;
    padding: 7px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #536471;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.land-subtab.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 1px 3px rgba(15, 20, 25, 0.1);
}

.land-subtab-cnt {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #E2E8F0;
    color: #334155;
}

.land-subtab.active .land-subtab-cnt {
    background: #DBEAFE;
    color: #1D4ED8;
}

.land-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.land-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E1E8ED;
    cursor: pointer;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.land-card:hover {
    border-color: #93C5FD;
    background: #F8FAFC;
}

.land-card.is-selected {
    border-color: #059669;
    background: #F0FDF4;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.land-card.is-mine-card:not(.is-selected) {
    border-color: #A7F3D0;
}

.land-thumb-svg {
    flex: 0 0 auto;
    display: block;
    border-radius: 10px;
}

.land-card-body {
    flex: 1;
    min-width: 0;
}

.land-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}

.land-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.land-card-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    white-space: nowrap;
    flex-shrink: 0;
}

.land-card-badge.is-mine {
    background: #ECFDF5;
    color: #047857;
    border-color: #A7F3D0;
}

.land-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748B;
}

.land-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.btn-land-mini {
    width: auto;
    margin: 0;
    padding: 4px 9px;
    border-radius: 9999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-land-mini:hover {
    border-color: #0055FF;
    color: #0055FF;
}

.btn-land-mini.is-primary {
    border-color: #059669;
    background: #059669;
    color: #FFFFFF;
}

.btn-land-mini.is-primary:hover {
    background: #047857;
}

.land-studio-card {
    padding: 12px;
    border-radius: 13px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.land-studio-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.land-studio-kicker {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #059669;
}

.land-studio-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.land-zoom-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.land-zoom-pill {
    width: auto;
    margin: 0;
    padding: 4px 8px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}

.land-zoom-pill.active {
    background: #0055FF;
    color: #FFFFFF;
}

.land-rename-block {
    margin-bottom: 10px;
}

.land-rename-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.land-rename-lbl span {
    font-weight: 600;
    color: #059669;
}

.land-rename-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.land-rename-row input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 12.5px;
    color: #0F172A;
    margin: 0;
}

.btn-land-rename {
    width: auto;
    margin: 0;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid #059669;
    background: #ECFDF5;
    color: #065F46;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.btn-land-rename:hover:not(:disabled) {
    background: #059669;
    color: #FFFFFF;
}

.land-grow-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.land-grow-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.land-form-row-single {
    grid-template-columns: 1fr;
}

.land-voronoi-toggle-row {
    margin-top: 8px;
}

.btn-land-voronoi-toggle {
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px dashed #94A3B8;
    background: #F8FAFC;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-land-voronoi-toggle:hover {
    border-color: #0055FF;
    color: #0055FF;
    background: #EFF6FF;
}

.land-voronoi-wrap {
    margin-top: 10px;
}

.land-pick-banner {
    padding: 10px;
    border-radius: 10px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    margin-bottom: 10px;
}

.land-pick-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0055FF;
    margin-bottom: 3px;
}

.land-pick-text {
    font-size: 11.5px;
    color: #1E293B;
    line-height: 1.4;
    margin-bottom: 7px;
}

.land-pick-coords-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.land-empty-state {
    text-align: center;
    padding: 24px 14px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
}

.land-empty-icon {
    color: #0055FF;
    margin-bottom: 8px;
}

.land-empty-icon .ui-icon {
    width: 28px;
    height: 28px;
}

.land-empty-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.land-empty-sub {
    font-size: 12px;
    color: #64748B;
    line-height: 1.45;
    margin-bottom: 12px;
}

@media (max-width: 1440px) {
    .hud-land-focus-bar {
        bottom: 56px;
    }
}

@media (max-width: 900px) {
    .hud-land-focus-bar {
        bottom: 48px;
        left: 8px;
        right: 8px;
        transform: none;
        max-width: none;
        width: auto;
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 8px;
    }

    .hlf-meta {
        max-width: none;
        flex: 1 1 120px;
    }

    .tier-econ-actions .btn-my-land-hdr span,
    .tier-econ-actions .btn-claim-land-hdr span {
        font-size: 10.5px;
    }
}

/* =====================================================
   Polls Composer, Poll Stat Cards & Direct Messages UI
   ===================================================== */

.compose-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 9999px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    margin-bottom: 8px;
}

.compose-mode-tab {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.compose-mode-tab .ui-icon {
    width: 13px;
    height: 13px;
}

.compose-mode-tab.active {
    background: #FFFFFF;
    color: #0055FF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.compose-poll-builder {
    margin: 8px 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.poll-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.poll-builder-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 0.01em;
}

.poll-add-opt-btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid #BFDBFE;
    background: #EBF2FF;
    color: #0055FF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
}

.poll-add-opt-btn:hover {
    background: #DBEAFE;
}

.poll-max-note {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

.poll-opts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poll-opt-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.poll-opt-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.poll-opt-input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 12.5px;
    outline: none;
}

.poll-opt-input:focus {
    border-color: #0055FF;
    box-shadow: 0 0 0 2px rgba(0, 85, 255, 0.14);
}

.poll-opt-remove {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.poll-opt-remove:hover {
    color: #DC2626;
    border-color: #FECACA;
    background: #FEF2F2;
}

.poll-duration-box {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #E2E8F0;
}

.poll-duration-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 4px;
}

.poll-duration-lbl {
    color: #475569;
    font-weight: 600;
}

.poll-duration-val {
    color: #0055FF;
    font-weight: 800;
}

.poll-duration-slider {
    width: 100%;
    accent-color: #0055FF;
    cursor: pointer;
    margin: 2px 0;
}

.poll-duration-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94A3B8;
    font-weight: 600;
}

/* Rendered Poll Block in Feed, Thread, Profile & Globe */
.poll-block {
    margin: 8px 0 6px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.poll-block.is-compact {
    padding: 7px 8px;
}

.poll-options-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poll-option-btn {
    position: relative;
    width: 100%;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    text-align: left;
    overflow: hidden;
    cursor: default;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.poll-block.is-compact .poll-option-btn {
    padding: 6px 8px;
    font-size: 11.5px;
}

.poll-option-btn.is-clickable {
    cursor: pointer;
}

.poll-option-btn.is-clickable:hover {
    border-color: #0055FF;
    background: #F8FAFF;
}

.poll-option-btn.is-selected {
    border-color: #0055FF;
    box-shadow: inset 0 0 0 1px rgba(0, 85, 255, 0.25);
}

.poll-option-btn.is-winner {
    border-color: #0E8A4F;
}

.poll-option-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 85, 255, 0.11);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.poll-option-btn.is-selected .poll-option-fill {
    background: rgba(0, 85, 255, 0.18);
}

.poll-option-btn.is-winner .poll-option-fill {
    background: rgba(14, 138, 79, 0.16);
}

.poll-option-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
}

.poll-option-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0F172A;
    min-width: 0;
    word-break: break-word;
}

.poll-option-btn.is-selected .poll-option-label,
.poll-option-btn.is-winner .poll-option-label {
    font-weight: 800;
}

.poll-option-radio {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid #94A3B8;
    flex-shrink: 0;
}

.poll-option-check {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0055FF;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.poll-option-check .ui-icon {
    width: 10px;
    height: 10px;
}

.poll-option-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.poll-option-count {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

.poll-option-pct {
    font-size: 12px;
    font-weight: 800;
    color: #0F172A;
    min-width: 34px;
    text-align: right;
}

.poll-meta-footer {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

.poll-dur-tag {
    padding: 2px 7px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
}

.gp-mini-poll-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #EBF2FF;
    color: #0055FF;
    border: 1px solid #BFDBFE;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Header DM Button & Profile Message Button */
.dm-nav-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-dm-user {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9999px;
    border: 1px solid #BFDBFE;
    background: #EBF2FF;
    color: #0055FF;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-dm-user .ui-icon {
    width: 14px;
    height: 14px;
}

.btn-dm-user:hover {
    background: #0055FF;
    color: #FFFFFF;
    border-color: #0055FF;
}

/* Direct Messages Modal */
.dm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dm-modal-box {
    width: min(820px, 100%);
    height: min(610px, 88vh);
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.dm-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E2E8F0;
    background: #F8FAFC;
    min-height: 0;
}

.dm-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #E2E8F0;
}

.dm-sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
}

.dm-sidebar-title .ui-icon {
    width: 16px;
    height: 16px;
    color: #0055FF;
}

.dm-mobile-close {
    display: none;
    width: auto;
    border: none;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
}

.dm-search-wrap {
    padding: 10px 12px 6px;
}

.dm-peer-search {
    width: 100%;
    padding: 8px 11px;
    border-radius: 9999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    font-size: 12.5px;
    color: #0F172A;
    outline: none;
    box-sizing: border-box;
}

.dm-peer-search:focus {
    border-color: #0055FF;
}

.dm-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
    min-height: 0;
}

.dm-peer-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 11px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
    margin-bottom: 2px;
}

.dm-peer-item:hover {
    background: #EEF2FF;
}

.dm-peer-item.active {
    background: #E0EAFF;
}

.dm-peer-avatar,
.dm-head-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0055FF;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.dm-peer-avatar-img,
.dm-head-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dm-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #17BF63;
    border: 2px solid #FFFFFF;
}

.dm-peer-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dm-peer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.dm-peer-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-peer-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dm-peer-preview {
    font-size: 11.5px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-start-hint {
    color: #94A3B8;
    font-style: italic;
}

.dm-mutual-note {
    padding: 9px 12px;
    border-top: 1px solid #E2E8F0;
    font-size: 11px;
    color: #64748B;
    text-align: center;
}

.dm-chat-pane {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    min-height: 0;
    min-width: 0;
}

.dm-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #E2E8F0;
    min-height: 56px;
}

.dm-chat-header-empty {
    font-size: 13.5px;
    font-weight: 700;
    color: #64748B;
}

.dm-head-peer {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    padding: 2px 6px 2px 0;
    cursor: pointer;
    text-align: left;
}

.dm-head-names {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.dm-head-names strong {
    font-size: 13.5px;
    color: #0F172A;
}

.dm-head-names span {
    font-size: 11.5px;
    color: #64748B;
}

.dm-close-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.dm-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.dm-messages-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F8FAFC;
    min-height: 0;
}

.dm-chat-placeholder {
    margin: auto;
    text-align: center;
    max-width: 280px;
    color: #64748B;
}

.dm-placeholder-icon .ui-icon {
    width: 34px;
    height: 34px;
    color: #0055FF;
    margin-bottom: 8px;
}

.dm-placeholder-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.dm-placeholder-sub {
    font-size: 12px;
    line-height: 1.45;
}

.dm-msg-row {
    display: flex;
    width: 100%;
}

.dm-msg-row.is-mine {
    justify-content: flex-end;
}

.dm-msg-row.is-theirs {
    justify-content: flex-start;
}

.dm-msg-bubble {
    max-width: min(76%, 390px);
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.42;
}

.dm-msg-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.dm-msg-row.is-theirs .dm-msg-bubble {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    border-bottom-left-radius: 4px;
}

.dm-msg-row.is-mine .dm-msg-bubble {
    background: #0055FF;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.dm-msg-meta {
    margin-top: 3px;
    font-size: 10px;
    opacity: 0.72;
    text-align: right;
}

.dm-chat-error {
    padding: 8px 14px;
    background: #FEF2F2;
    color: #DC2626;
    border-top: 1px solid #FECACA;
    font-size: 12px;
    font-weight: 600;
}

.dm-composer-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.dm-message-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    max-height: 96px;
    padding: 9px 14px;
    border-radius: 19px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    resize: none;
    outline: none;
}

.dm-message-input:focus {
    border-color: #0055FF;
    background: #FFFFFF;
}

.dm-send-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 9999px;
    border: none;
    background: #0055FF;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.dm-send-btn .ui-icon {
    width: 14px;
    height: 14px;
}

.dm-send-btn:hover {
    background: #0044CC;
    color: #FFFFFF;
}

.dm-send-btn:disabled {
    opacity: 0.55;
    background: #94A3B8;
    color: #FFFFFF;
    cursor: wait;
}

.dm-empty-hint {
    padding: 20px 12px;
    text-align: center;
    font-size: 12px;
    color: #64748B;
    line-height: 1.45;
}

@media (max-width: 680px) {
    .dm-modal-box {
        grid-template-columns: 1fr;
        grid-template-rows: 185px 1fr;
        height: 90vh;
    }

    .dm-sidebar {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }

    .dm-mobile-close {
        display: inline-flex;
    }

    .dm-close-btn {
        display: none;
    }
}




/* Auto previews start as a small bubble (avatar + first words); hover or tap shows the full card */
@keyframes gpAutoFadeIn { from { opacity: 0; } to { opacity: 1; } }
.auto-post-preview-card { animation: gpAutoFadeIn 0.28s ease; }
.auto-post-preview-card.is-compact {
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 210px;
    padding: 4px 10px 4px 4px;
    border-radius: 16px;
}
.auto-post-preview-card.is-compact .gp-mini-top,
.auto-post-preview-card.is-compact .gp-mini-footer,
.auto-post-preview-card.is-compact .gp-mini-event-meta,
.auto-post-preview-card.is-compact .gp-mini-author > :not(.gp-mini-avatar) { display: none; }
.auto-post-preview-card.is-compact .gp-mini-author { margin: 0; flex: 0 0 auto; }
.auto-post-preview-card.is-compact .gp-mini-snippet {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
    max-width: 170px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Moderator console: Visitors tab */
.mod-vis-range { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mod-vis-range .mod-btn-secondary.is-active { background: #0055FF; color: #fff; border-color: #0055FF; }
.mod-vis-delta { font-size: 12px; font-weight: 700; margin-left: 6px; color: #64748B; vertical-align: middle; }
.mod-vis-delta.is-up { color: #16A34A; }
.mod-vis-delta.is-down { color: #DC2626; }
.mod-vis-chart { width: 100%; height: 180px; display: block; }
.mod-vis-bar { fill: #BFDBFE; }
.mod-vis-bar.is-member { fill: #0055FF; }
.mod-vis-line { fill: none; stroke: #F59E0B; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mod-vis-baseline { stroke: #E2E8F0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mod-vis-axis { font-size: 10px; fill: #94A3B8; }
.mod-vis-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #64748B; margin-top: 6px; flex-wrap: wrap; }
.mod-vis-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #BFDBFE; margin-left: 8px; }
.mod-vis-key.is-member { background: #0055FF; }
.mod-vis-key.is-line { background: #F59E0B; height: 3px; }
.mod-vis-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 90px; align-items: end; }
.mod-vis-hour { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mod-vis-hour span { width: 100%; background: #0055FF; border-radius: 2px 2px 0 0; min-height: 1px; opacity: 0.85; }
.mod-vis-hour em { font-style: normal; font-size: 9px; color: #94A3B8; height: 12px; }
.mod-vis-row { display: grid; grid-template-columns: minmax(80px, 1.2fr) 2fr auto; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; }
.mod-vis-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-vis-track { height: 6px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.mod-vis-track span { display: block; height: 100%; background: #0055FF; border-radius: 3px; }
.mod-vis-table-wrap { overflow-x: auto; }
.mod-vis-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mod-vis-table th, .mod-vis-table td { padding: 5px 8px; text-align: right; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
.mod-vis-table th:first-child, .mod-vis-table td:first-child { text-align: left; }
.mod-vis-table th { color: #64748B; font-weight: 600; }

/* Mood slider (0–100 %), replaces the five mood chips */
.mood-slider { --mood-color: #0055FF; --mood-bg: #EBF2FF; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 6px; border: 1px solid #E1E8ED; border-radius: 10px; background: #FFFFFF; }
.mood-slider.is-compact { padding: 6px 8px 4px; gap: 4px; }
.mood-slider-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mood-color); }
.mood-slider-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--mood-bg); }
.mood-slider-icon .ui-icon { width: 13px; height: 13px; }
.mood-slider-value { margin-left: auto; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 9999px; background: var(--mood-bg); }
.mood-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.mood-range:focus { outline: none; }
.mood-range::-webkit-slider-runnable-track { height: 8px; border-radius: 9999px; background: linear-gradient(90deg, #D91B24 0%, #D91B24 12%, #C2410C 35%, #0055FF 56%, #0D9488 76%, #15803D 92%, #15803D 100%); }
.mood-range::-moz-range-track { height: 8px; border-radius: 9999px; background: linear-gradient(90deg, #D91B24 0%, #D91B24 12%, #C2410C 35%, #0055FF 56%, #0D9488 76%, #15803D 92%, #15803D 100%); }
.mood-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--mood-color); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25); transition: transform 0.12s ease; }
.mood-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--mood-color); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25); }
.mood-range:active::-webkit-slider-thumb, .mood-range:focus-visible::-webkit-slider-thumb { transform: scale(1.12); }
.mood-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--mood-bg), 0 1px 4px rgba(15, 23, 42, 0.25); }
.mood-slider-scale { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: #94A3B8; }
.mood-slider.is-compact .mood-range { height: 18px; }
.mood-slider.is-compact .mood-range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; border-width: 3px; }

.mod-vis-chart.is-small { height: 120px; }
.mod-vis-bar.is-posts { fill: #10B981; }
.mod-vis-hour.is-posts span { background: #10B981; }

/* ---- SEO About & FAQ Modal (Visible SSR fallback without JS; modal with JS) ---- */
.chatterra-about-sheet {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    overflow-y: auto;
    box-sizing: border-box;
}
body.chatterra-js-active .chatterra-about-sheet {
    display: none;
}
body.chatterra-js-active .chatterra-about-sheet.is-open {
    display: flex;
}
.chatterra-about-card {
    background: #FFFFFF;
    color: #14171A;
    border: 1px solid #CCD6DD;
    border-radius: 14px;
    max-width: 620px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.25);
}
.chatterra-about-head {
    background: #0055FF;
    color: #FFFFFF;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.chatterra-about-head h1 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
}
.chatterra-about-lead {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}
button.chatterra-about-close {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
body:not(.chatterra-js-active) .chatterra-about-close {
    display: none;
}
.chatterra-about-body {
    padding: 20px 22px;
    font-size: 14px;
    line-height: 1.55;
}
.chatterra-about-body h2 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #0F172A;
}
.chatterra-about-body section + section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #E1E8ED;
}
.chatterra-about-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
    color: #334155;
}
.chatterra-about-body details {
    border: 1px solid #E1E8ED;
    border-radius: 10px;
    padding: 10px 13px;
    margin-bottom: 8px;
    background: #F8FAFC;
}
.chatterra-about-body summary {
    cursor: pointer;
    list-style: none;
}
.chatterra-about-body summary h3 {
    display: inline;
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
}
.chatterra-about-body details p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #475569;
}
button.btn-header-about {
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    margin: 0;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
button.btn-header-about:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
}
.chatterra-about-body p {
    margin: 0 0 10px;
    color: #334155;
}
.chatterra-compare-wrap {
    overflow-x: auto;
    border: 1px solid #E1E8ED;
    border-radius: 10px;
}
.chatterra-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    background: #FFFFFF;
}
.chatterra-compare-table th,
.chatterra-compare-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #E1E8ED;
    vertical-align: top;
}
.chatterra-compare-table thead th {
    background: #F8FAFC;
    color: #0F172A;
    font-weight: 700;
}
.chatterra-compare-table tbody tr:last-child td {
    border-bottom: none;
}
.chatterra-about-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E1E8ED;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
}
.chatterra-about-footer a {
    color: #0055FF;
    font-weight: 600;
    text-decoration: none;
}
.chatterra-about-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   Events Composer, Real Address Geocoding & Event Cards
   ===================================================== */
.compose-event-builder {
    max-height: 360px;
    overflow-y: auto;
}

.event-builder-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.event-field-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.event-field-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
}

.event-addr-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-addr-resolved-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
    font-size: 10.5px;
    font-weight: 700;
}

.event-address-results {
    margin-top: 4px;
    border: 1px solid #CBD5E1;
    border-radius: 9px;
    background: #FFFFFF;
    max-height: 155px;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.event-geo-item,
.event-invite-res-item {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 7px 10px;
    border: none;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
    color: #0F172A;
    cursor: pointer;
    font-size: 11.5px;
}

.event-geo-item:last-child,
.event-invite-res-item:last-child {
    border-bottom: none;
}

.event-geo-item:hover,
.event-invite-res-item:hover {
    background: #EFF6FF;
    color: #0055FF;
}

.event-geo-short {
    font-weight: 700;
    color: #0F172A;
}

.event-geo-full {
    font-size: 10.5px;
    color: #64748B;
    line-height: 1.3;
}

.event-geo-empty {
    padding: 8px 10px;
    font-size: 11px;
    color: #64748B;
}

.event-inline-err {
    margin-top: 4px;
    font-size: 11px;
    color: #DC2626;
    font-weight: 600;
}

.event-scope-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.event-scope-btn {
    width: auto;
    flex: 1;
    min-width: 82px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.event-scope-btn:hover {
    border-color: #7C3AED;
    color: #6D28D9;
    background: #F5F3FF;
}

.event-scope-btn.active {
    background: #6D28D9;
    border-color: #6D28D9;
    color: #FFFFFF;
}

.event-invite-picker {
    margin-top: 6px;
}

.event-invitee-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.event-invite-hint {
    font-size: 11px;
    color: #64748B;
}

.event-invite-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #EDE9FE;
    color: #5B21B6;
    border: 1px solid #DDD6FE;
    font-size: 11px;
    font-weight: 700;
}

.event-chip-x {
    width: auto;
    padding: 0 2px;
    border: none;
    background: transparent;
    color: #5B21B6;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.event-chip-x:hover {
    background: transparent;
    color: #DC2626;
}

/* Rendered Event Cards in Feed, Thread & Profile */
.event-block {
    margin: 8px 0 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F5F3FF 0%, #F8FAFC 100%);
    border: 1px solid #DDD6FE;
}

.event-block.is-compact {
    padding: 8px 9px;
}

.event-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.event-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #6D28D9;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.event-type-pill .ui-icon {
    width: 11px;
    height: 11px;
}

.event-scope-pill,
.event-invited-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
}

.event-scope-pill {
    background: #FFFFFF;
    color: #475569;
    border: 1px solid #CBD5E1;
}

.event-scope-pill.is-followers,
.event-scope-pill.is-selected {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.event-invited-pill {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.event-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
}

.event-card-when {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #6D28D9;
}

.event-venue-line {
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.event-card-addr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
}

.event-card-addr {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 11.5px;
    color: #475569;
    min-width: 0;
    word-break: break-word;
}

.event-card-addr .ui-icon {
    width: 13px;
    height: 13px;
    color: #6D28D9;
    flex-shrink: 0;
    margin-top: 1px;
}

.event-locate-btn {
    width: auto;
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 9999px;
    border: 1px solid #C4B5FD;
    background: #FFFFFF;
    color: #6D28D9;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}

.event-locate-btn:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    color: #FFFFFF;
}

.event-going-stack {
    display: flex;
    align-items: center;
    margin-top: 6px;
}

.event-going-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #FFFFFF;
    background: #6D28D9;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    overflow: hidden;
    margin-left: -4px;
}

.event-going-avatar:first-child {
    margin-left: 0;
}

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

.event-rsvp-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.event-rsvp-btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.event-rsvp-btn,
.event-invite-toggle {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.event-rsvp-btn .ui-icon {
    width: 12px;
    height: 12px;
}

.event-rsvp-btn:hover {
    border-color: #6D28D9;
    color: #6D28D9;
    background: #F5F3FF;
}

.event-rsvp-btn.is-active.is-going {
    background: #6D28D9;
    border-color: #6D28D9;
    color: #FFFFFF;
}

.event-rsvp-btn.is-active.is-interested {
    background: #0055FF;
    border-color: #0055FF;
    color: #FFFFFF;
}

.event-rsvp-btn.is-active.is-declined {
    background: #E2E8F0;
    border-color: #94A3B8;
    color: #334155;
}

.event-invite-toggle {
    border-color: #C4B5FD;
    color: #6D28D9;
    background: #EDE9FE;
}

.event-invite-toggle:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    color: #FFFFFF;
}

.event-invite-box {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px dashed #DDD6FE;
}

.event-compact-stats {
    margin-top: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #6D28D9;
}

.gp-mini-event-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #EDE9FE;
    color: #6D28D9;
    border: 1px solid #DDD6FE;
    font-size: 9.5px;
    font-weight: 800;
    flex-shrink: 0;
}

.gp-mini-event-meta {
    margin: 4px 0 3px;
    padding: 5px 7px;
    border-radius: 7px;
    background: #F5F3FF;
    border: 1px solid #DDD6FE;
    font-size: 11px;
    color: #1E1B4B;
    line-height: 1.3;
}

.gp-mini-event-meta strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-mini-event-addr {
    margin-top: 2px;
    font-size: 10px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card.is-event-card {
    border-left: 3px solid #7C3AED;
}


