/* ============================================
   Member Komuniti MVP - Styles
   Aligned with Command Center visual system
   Multi-event support
   ============================================ */

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.5;
}

/* ===== Design Tokens (Canonical Command Center) ===== */
:root {
    /* Premium Dark Navy-Led Palette - Main Workspace */
    --color-bg: #f5f4f1;
    --color-surface: #ffffff;
    --color-surface-warm: #faf9f7;
    --color-surface-cool: #f0f1f4;
    --color-border: #d4d2cc;
    --color-border-strong: #b8b5ad;
    --color-border-light: #e8e6e2;

    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;

    /* Dark Navy Accents */
    --color-navy: #1e293b;
    --color-navy-light: #334155;
    --color-navy-dark: #0f172a;
    --color-navy-subtle: #f1f5f9;

    /* Primary Action - Deep Navy */
    --color-primary: #1e3a5f;
    --color-primary-hover: #152a45;
    --color-primary-text: #ffffff;
    --color-accent: #2563eb;
    --color-accent-light: #dbeafe;

    /* Signal Colors */
    --color-teal: #0d9488;
    --color-teal-light: #e0f2f5;
    --color-teal-dark: #0f766e;
    --color-amber: #d97706;
    --color-amber-light: #fef3c7;
    --color-amber-dark: #92400e;
    --color-orange: #ea580c;
    --color-orange-light: #ffedd5;
    --color-orange-dark: #9a3412;
    --color-green: #16a34a;
    --color-green-light: #dcfce7;
    --color-green-dark: #166534;
    --color-purple: #7c3aed;
    --color-purple-light: #ede9fe;
    --color-purple-dark: #5b21b6;
    --color-red: #dc2626;
    --color-red-light: #fee2e2;
    --color-red-dark: #991b1b;

    /* Spacing - More intentional */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --space-4xl: 40px;

    /* Typography */
    --font-serif: Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Larger, more readable sizes */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-md: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 20px;
    --font-size-2xl: 26px;
    --font-size-3xl: 32px;

    /* Shadows - Enhanced depth */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-focus: 0 0 0 3px rgba(30, 58, 95, 0.1);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
}

/* ===== Layout ===== */
.app-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
}

/* ===== Header ===== */
.header {
    background: var(--color-primary);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===== Preview Banner ===== */
.preview-banner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-amber-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-amber);
}

.preview-icon {
    font-size: var(--font-size-md);
}

.preview-text {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-amber-dark);
}

.preview-return-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.preview-return-btn:hover {
    background: var(--color-surface-warm);
    border-color: var(--color-primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.header-subtitle {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: var(--space-xs);
}

.header-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ===== Context Switcher ===== */
.context-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
}

.context-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.context-options {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    flex: 1;
}

.context-option {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.context-option:hover {
    border-color: var(--color-border);
    background: var(--color-surface-cool);
}

.context-option.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.context-option.context-create {
    border-style: dashed;
    color: var(--color-text-tertiary);
}

.context-option.context-create:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-surface-warm);
}

.context-icon {
    font-size: var(--font-size-sm);
}

.context-name {
    white-space: nowrap;
}

/* ===== Navigation ===== */
.nav-tabs {
    display: flex;
    background: var(--color-surface-warm);
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 var(--space-xl);
    gap: var(--space-xl);
}

.nav-tab {
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.nav-tab:hover {
    color: var(--color-text-secondary);
}

.nav-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ===== Main Content ===== */
.main-content {
    padding: var(--space-xl);
}

.section-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

/* ===== Membership Cards ===== */
.membership-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.membership-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.membership-card:hover {
    border-color: var(--color-border);
    background: var(--color-surface);
}

.membership-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-xs);
    color: var(--color-primary-text);
}

.membership-info {
    flex: 1;
}

.membership-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.membership-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.membership-arrow {
    color: var(--color-text-muted);
}

/* ===== Concierge Panel ===== */
.concierge-panel {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    color: white;
}

.concierge-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.concierge-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.concierge-info {
    flex: 1;
}

.concierge-name {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.concierge-role {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

.concierge-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
}

.concierge-context {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.concierge-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--font-size-md);
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}

.btn:focus-visible {
    box-shadow: var(--shadow-focus);
}

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

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

.btn-primary:focus-visible {
    box-shadow: var(--shadow-focus);
}

.btn-primary:disabled {
    background: var(--color-border);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-warm);
    border-color: var(--color-border-strong);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--color-surface-warm);
    border-color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: var(--color-surface-warm);
    color: var(--color-text-primary);
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.btn-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
}

/* ===== Idea Cards ===== */
.idea-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.idea-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.15s ease;
}

.idea-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

/* Clickable card regions for navigation */
.idea-card-nav {
    cursor: pointer;
}

.idea-card-nav:hover {
    opacity: 0.9;
}

.idea-title.idea-card-nav:hover {
    color: var(--color-primary);
}

.idea-cover {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.idea-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%);
}

.idea-scope-badges {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.idea-content {
    padding: var(--space-lg);
}

.idea-header {
    margin-bottom: var(--space-md);
}

.idea-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.idea-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.idea-scope {
    display: flex;
    gap: var(--space-xs);
}

.scope-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scope-public {
    background: var(--color-purple-light);
    color: var(--color-purple);
}

.scope-klac {
    background: var(--color-primary);
    color: white;
}

.scope-sfac {
    background: var(--color-teal);
    color: white;
}

.scope-circle,
.scope-close-friends,
.scope-padel-crew {
    background: var(--color-purple);
    color: white;
}

.idea-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.idea-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-surface-cool);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
}

/* ===== Engagement Bar ===== */
.engagement-bar {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border-light);
}

.engagement-bar.large {
    gap: var(--space-2xl);
    padding: var(--space-lg) 0;
}

.engagement-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.engagement-stat span:first-child {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
}

.engagement-stat span:last-child {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.engagement-stat.active span:first-child {
    color: var(--color-green);
}

.engagement-stat.host-badge {
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-amber-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
}

.engagement-stat.host-badge span {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-amber-dark);
}

.stat-number {
    font-size: var(--font-size-lg) !important;
    font-weight: 700;
}

.stat-label {
    font-size: var(--font-size-sm) !important;
}

/* ===== Event Summary Bar (Feed Cards) ===== */
.event-summary-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-teal-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.event-summary-icon {
    font-size: var(--font-size-sm);
}

.event-summary-text {
    font-size: var(--font-size-xs);
    color: var(--color-teal-dark);
    font-weight: 500;
}

/* ===== Idea Actions ===== */
.idea-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

/* ===== Events Section (Idea Detail) ===== */
.events-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-surface-warm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.events-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.events-section-header h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 0;
}

.events-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-tertiary);
}

.events-empty p {
    margin-bottom: var(--space-md);
}

/* ===== Event Cards ===== */
.event-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all 0.15s ease;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
}

.event-card-confirmed {
    border-color: var(--color-green);
    background: var(--color-green-light);
}

.event-card-draft {
    border-color: var(--color-amber);
    background: var(--color-amber-light);
    border-style: dashed;
}

.event-card-cancelled {
    opacity: 0.6;
    border-color: var(--color-border-light);
}

.event-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.event-status-badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-status-draft {
    background: var(--color-amber);
    color: white;
}

.event-status-published {
    background: var(--color-accent);
    color: white;
}

.event-status-confirmed {
    background: var(--color-green);
    color: white;
}

.event-status-cancelled {
    background: var(--color-text-muted);
    color: white;
}

.event-card-label {
    font-size: var(--font-size-xs);
    color: var(--color-amber-dark);
    font-weight: 500;
}

.event-host {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.event-card-details {
    margin-bottom: var(--space-md);
}

.event-card-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.event-card-icon {
    font-size: var(--font-size-sm);
    width: 20px;
    text-align: center;
}

.event-card-datetime {
    font-weight: 600;
}

.event-card-logistics {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-surface-warm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-style: italic;
}

.event-card-notes {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.event-card-rsvp {
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-md);
}

.rsvp-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.rsvp-count {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.rsvp-progress {
    flex: 1;
    height: 4px;
    background: var(--color-border-light);
    border-radius: 2px;
    overflow: hidden;
}

.rsvp-progress-bar {
    height: 100%;
    background: var(--color-green);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.rsvp-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.rsvp-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.rsvp-you {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-right: var(--space-sm);
}

.rsvp-you strong {
    color: var(--color-green);
    text-transform: capitalize;
}

.event-cancelled-notice {
    font-size: var(--font-size-xs);
    color: var(--color-red);
    font-weight: 500;
}

.event-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

/* ===== Draft Flow ===== */
.draft-container {
    max-width: 600px;
    margin: 0 auto;
}

.draft-header {
    margin-bottom: var(--space-lg);
}

.maya-guidance {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy-light) 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.maya-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-md);
    flex-shrink: 0;
}

.maya-message {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.draft-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    padding: var(--space-md) 0;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: var(--color-surface-cool);
    color: var(--color-text-tertiary);
}

.progress-step.active {
    background: var(--color-primary);
    color: white;
}

.progress-step.completed {
    background: var(--color-green);
    color: white;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-border-light);
}

.progress-line.completed {
    background: var(--color-green);
}

.draft-stage {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.stage-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.stage-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2xl);
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

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

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--color-red);
    margin-top: var(--space-xs);
    font-weight: 500;
}

/* ===== Option Cards ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.option-card {
    padding: var(--space-lg);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.option-card:hover {
    border-color: var(--color-border);
}

.option-card.selected {
    border-color: var(--color-primary);
    background: var(--color-surface-warm);
}

.option-icon {
    font-size: 24px;
    margin-bottom: var(--space-sm);
}

.option-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.option-sublabel {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-top: var(--space-xs);
}

/* ===== Cover Grid ===== */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.cover-option {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cover-option:hover {
    border-color: var(--color-border);
}

.cover-option.selected {
    border-color: var(--color-primary);
}

/* ===== Review Preview ===== */
.review-preview {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.review-cover {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.review-content {
    padding: var(--space-lg);
}

.review-content h3 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
}

.review-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ===== Scope Selector ===== */
.scope-selector {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.scope-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.scope-option:hover {
    border-color: var(--color-border);
}

.scope-option.selected {
    border-color: var(--color-primary);
    background: var(--color-surface-warm);
}

.scope-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scope-option.selected .scope-checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.scope-info {
    flex: 1;
}

.scope-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.scope-desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

/* ===== Review Panel ===== */
.review-panel {
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.review-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.review-value {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-primary);
}

/* ===== Draft Actions ===== */
.draft-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2xl);
}

/* ===== Idea Detail View ===== */
.idea-detail {
    max-width: 700px;
    margin: 0 auto;
}

.idea-detail-header {
    margin-bottom: var(--space-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-tertiary);
    cursor: pointer;
    margin-bottom: var(--space-md);
    transition: all 0.15s ease;
    outline: none;
}

.back-link:hover {
    color: var(--color-primary);
}

.back-link:focus-visible {
    box-shadow: var(--shadow-focus);
    border-radius: var(--radius-sm);
}

.idea-detail-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: var(--space-lg);
}

.idea-detail-scope {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.idea-detail-content {
    padding: 0 var(--space-md);
}

.idea-detail-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.idea-detail-meta {
    margin-bottom: var(--space-lg);
}

.idea-detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.idea-detail-section {
    margin-bottom: var(--space-2xl);
}

.idea-detail-section h3 {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.idea-full-description {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.idea-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--color-surface-warm);
    border-radius: var(--radius-lg);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.detail-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

/* ===== Need Help Banner ===== */
.need-help-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-purple-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.need-help-icon {
    font-size: 24px;
}

.need-help-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.need-help-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-purple);
    text-transform: uppercase;
}

.need-help-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ===== Raise Hand Section ===== */
.raise-hand-section {
    margin-bottom: var(--space-2xl);
}

.raise-hand-section h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.section-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-lg);
}

.raise-hand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.raise-hand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.raise-hand-card:hover:not(.disabled) {
    border-color: var(--color-primary);
    background: var(--color-surface-warm);
}

.raise-hand-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.raise-hand-icon {
    font-size: 24px;
}

.raise-hand-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.raise-hand-desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    text-align: center;
}

/* ===== Contribution Section ===== */
.contribution-section {
    margin-bottom: var(--space-2xl);
}

.contribution-section h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.contribution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contribution-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all 0.15s ease;
}

.contribution-btn:hover:not(.disabled) {
    background: var(--color-surface-cool);
    border-color: var(--color-border);
}

.contribution-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contribution-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: var(--color-surface-warm);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.gate-icon {
    font-size: 24px;
}

.gate-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.contribution-form {
    margin-top: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface-warm);
    border-radius: var(--radius-md);
}

.contribution-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* ===== Activity Section ===== */
.activity-section {
    margin-bottom: var(--space-2xl);
}

.activity-section h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-surface-warm);
    border-radius: var(--radius-md);
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface-cool);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-member {
    font-weight: 600;
    font-size: var(--font-size-xs);
}

.activity-kind {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: var(--space-xs);
}

.activity-kind.guest {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.activity-action {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.activity-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    font-style: italic;
    margin-top: var(--space-xs);
}

.activity-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.activity-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--color-text-tertiary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
}

/* ===== Personal Empty State ===== */
.personal-empty {
    background: var(--color-surface-warm);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl);
    margin-bottom: var(--space-xl);
}

.personal-empty .empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.personal-empty .empty-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.personal-empty .empty-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

/* ===== Circle Empty State ===== */
.circle-empty {
    background: var(--color-purple-light);
    border: 2px dashed var(--color-purple);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl);
    margin-bottom: var(--space-xl);
}

.circle-empty .empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}

.circle-empty .empty-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-purple-dark);
    margin-bottom: var(--space-sm);
}

.circle-empty .empty-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Circle People Panel ===== */
.circle-people-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.people-section {
    margin-bottom: var(--space-lg);
}

.people-section:last-child {
    margin-bottom: 0;
}

.people-section-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.people-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.people-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface-warm);
    border-radius: 8px;
}

.people-row.previewing {
    background: var(--color-amber-light);
    border: 1px solid var(--color-amber);
}

.preview-action {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
}

.preview-action:hover {
    color: var(--color-primary);
    background: var(--color-surface);
}

.preview-badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-amber-dark);
    background: var(--color-amber);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.people-avatar {
    font-size: 20px;
    line-height: 1;
}

.people-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.people-name {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
}

.people-kind {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-navy-subtle);
    color: var(--color-navy);
}

.people-kind.guest {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.people-status {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: capitalize;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-surface-cool);
    color: var(--color-text-secondary);
}

.invitation-pending .people-status {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.invitation-accepted .people-status {
    background: var(--color-green-light);
    color: var(--color-green-dark);
}

.invitation-declined .people-status {
    background: var(--color-red-light);
    color: var(--color-red-dark);
}

.people-empty {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    font-style: italic;
}

.declined-section {
    opacity: 0.7;
}

.declined-title {
    color: var(--color-text-tertiary);
}

.declined-list .people-row {
    background: var(--color-surface-cool);
}

/* ===== Invitation Form ===== */
.people-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.people-section-header .people-section-title {
    margin-bottom: 0;
}

.invitation-form {
    background: var(--color-surface-cool);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.invitation-form .form-group {
    margin-bottom: var(--space-md);
}

.invitation-form .form-group:last-child {
    margin-bottom: 0;
}

.invitation-form-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.invitation-actions {
    display: flex;
    gap: var(--space-sm);
    margin-left: auto;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .main-content {
        padding: var(--space-md);
    }

    .context-switcher {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .context-options {
        width: 100%;
        justify-content: stretch;
    }

    .context-option {
        flex: 1;
        justify-content: center;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .cover-grid {
        grid-template-columns: 1fr;
    }

    .idea-detail-grid {
        grid-template-columns: 1fr;
    }

    .raise-hand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .draft-actions {
        flex-direction: column;
        gap: var(--space-md);
    }

    .idea-actions {
        flex-wrap: wrap;
    }

    .engagement-bar {
        gap: var(--space-md);
    }

    .rsvp-actions {
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .events-section-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .event-card-actions {
        flex-direction: column;
    }
}

/* ===== Utility ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ===== Upcoming Events View ===== */
.upcoming-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.upcoming-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.upcoming-section .section-title {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.upcoming-event-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.upcoming-event-row:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.upcoming-event-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.upcoming-datetime {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.upcoming-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
}

.upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.upcoming-event-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.upcoming-context {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-surface-warm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
}

.upcoming-status {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.upcoming-status.going {
    background: var(--color-green-light);
    color: var(--color-green-dark);
}

.upcoming-status.maybe {
    background: var(--color-amber-light);
    color: var(--color-amber-dark);
}

.upcoming-status.hosting {
    background: var(--color-purple-light);
    color: var(--color-purple-dark);
}

.upcoming-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--color-text-tertiary);
}

.upcoming-empty .empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.upcoming-empty .empty-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.upcoming-empty .empty-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Relationship Page Styles
   ============================================ */

/* Relationship entry point in Personal Feed */
.relationship-entry {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.relationship-entry:hover {
    background: var(--color-surface-warm);
    border-color: var(--color-border-strong);
}

.relationship-entry-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.relationship-entry-content {
    flex: 1;
    min-width: 0;
}

.relationship-entry-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
}

.relationship-entry-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.relationship-entry-arrow {
    font-size: 20px;
    color: var(--color-text-tertiary);
}

/* Relationship page layout */
.relationship-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.relationship-header {
    margin-bottom: var(--space-lg);
}

.relationship-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: var(--space-xs) 0;
}

.relationship-header .back-link:hover {
    color: var(--color-text-primary);
}

.relationship-content {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
}

.relationship-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.relationship-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xl);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-surface-warm);
    border-radius: var(--radius-md);
}

.relationship-section {
    margin-bottom: var(--space-xl);
}

.relationship-section:last-child {
    margin-bottom: 0;
}

.relationship-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.relationship-empty {
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    background: var(--color-surface-warm);
    border-radius: var(--radius-lg);
}

/* Relationship Idea card */
.relationship-idea-card {
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: var(--space-md);
}

.relationship-idea-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.relationship-idea-header {
    margin-bottom: var(--space-sm);
}

.relationship-idea-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: var(--color-navy-subtle);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.relationship-idea-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.relationship-idea-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.relationship-idea-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* Relationship Event row */
.relationship-event-row {
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
}

.relationship-event-datetime {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.relationship-event-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.relationship-event-location {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.relationship-event-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.relationship-event-status {
    display: inline-block;
    padding: 2px var(--space-xs);
    background: var(--color-success-subtle);
    color: var(--color-success);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== Share Section ===== */
.share-section {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Persistent shared state - button-style control */
.share-section-shared {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.share-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.share-selector-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.share-destination-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary-text);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

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

.share-cancel-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

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

.share-result {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.share-success {
    background: var(--color-green-light);
    border: 1px solid var(--color-green);
}

.share-duplicate {
    background: var(--color-amber-light);
    border: 1px solid var(--color-amber);
}

.share-error {
    background: var(--color-red-light);
    border: 1px solid var(--color-red);
}

.share-result-message {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.share-success .share-result-message {
    color: var(--color-green-dark);
}

.share-duplicate .share-result-message {
    color: var(--color-amber-dark);
}

.share-error .share-result-message {
    color: var(--color-red-dark);
}

.share-view-link {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
}

.share-view-link:hover {
    color: var(--color-primary-hover);
}

/* ===== Governed Share References ===== */
.governed-share-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: box-shadow 0.15s ease;
}

.governed-share-available {
    cursor: pointer;
}

.governed-share-available:hover {
    box-shadow: var(--shadow-md);
}

.governed-share-unavailable {
    background: var(--color-surface-cool);
    border-style: dashed;
}

.governed-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.governed-share-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.governed-share-context {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-navy-subtle);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
}

.governed-share-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.governed-share-unavailable .governed-share-title {
    color: var(--color-text-tertiary);
    font-style: italic;
}

.governed-share-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.governed-share-unavailable .governed-share-description {
    color: var(--color-text-muted);
}

.governed-share-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-sm);
}

.governed-share-provenance {
    color: var(--color-text-muted);
    font-style: italic;
}

.governed-share-message {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    background: var(--color-surface-warm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
    margin-top: var(--space-sm);
}
