/* Ciravo / Apple Design. Quiet content surfaces, floating chrome, a single red accent. */
:root {
  --canvas: #101013;
  --surface: #1b1b20;
  --surface-raised: #25252c;
  --hairline: #ffffff14;
  --text-primary: #f6f4f2;
  --text-secondary: #b3b1bb;
  --text-tertiary: #a3a0ac;
  --accent: #de3541;
  --accent-text: #ff8590;
  --accent-tint: #de354119;
  --chrome: #1a1a2085;
  --red: var(--accent);
  --panel: var(--surface);
  --line: var(--hairline);
  --muted: var(--text-secondary);
  --ui-surface: var(--surface);
  --ui-field: var(--surface-raised);
  --ui-border: #ffffff26;
  --ui-muted: var(--text-secondary);
  --ui-accent: var(--accent);
  color: var(--text-primary);
  background: var(--canvas);
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-optical-sizing: auto;
  color-scheme: dark;
}
body, .app-shell, .main-app, .onboarding { background: var(--canvas); }
.desktop { font-family: -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", sans-serif; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { transition: background-color 140ms ease, color 140ms ease; }
button:active { filter: brightness(1.12); }
:is(button,a,input,textarea,select,summary):focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.ui-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.eyebrow, .desktop .desk-kicker { color: var(--text-secondary); font-family: inherit; font-size: .7rem; font-weight: 600; line-height: 1.5; letter-spacing: .1em; }

/* Phone chrome leaves the photos and conversations in charge. */
.topbar { height: calc(72px + env(safe-area-inset-top)); border: 0; background: #1010138c; padding-inline: 24px; backdrop-filter: blur(24px) saturate(160%); }
.topbar::after { content: ""; position: absolute; inset: auto 0 -12px; height: 12px; background: linear-gradient(#101013a8, transparent); pointer-events: none; }
.topbar-title, #sectionTitle { font-size: 1.5rem; font-weight: 750; letter-spacing: -.065em; }
.topbar-actions { display: flex; gap: 4px; padding: 0; border: 0; box-shadow: none; background: none; }
.topbar-actions .top-action { width: 44px; height: 44px; border: 0; background: none; box-shadow: none; color: var(--text-secondary); }
.topbar-actions .top-action svg { width: 21px; height: 21px; }
.topbar-actions .top-create { background: var(--surface-raised); color: var(--text-primary); border-radius: 50%; }
.topbar-actions .top-create::before, .topbar-actions .top-create::after { display: none; }
#mainContent { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.bottom-nav { width: min(calc(100% - 40px), 540px); height: 72px; padding: 5px 8px; bottom: calc(16px + env(safe-area-inset-bottom)); border: 1px solid #ffffff1c; border-radius: 26px; background: var(--chrome); box-shadow: 0 12px 32px #0005, inset 0 1px #ffffff08; backdrop-filter: blur(28px) saturate(130%); }
.bottom-nav::before, .bottom-nav::after { display: none; }
.nav-item { padding: 8px 2px; gap: 4px; color: var(--text-secondary); font-size: 0.6875rem; font-weight: 550; }
.nav-item.active { color: var(--accent-text); text-shadow: none; }
.nav-icon { width: auto; height: 24px; background: none; box-shadow: none; border: 0; }
.nav-icon svg { width: 23px; height: 23px; }
.nav-blob { top: 5px; height: 60px; width: calc((100% - 16px)/4 - 8px); border: 0; border-radius: 20px; background: #ffffff06; box-shadow: none; }
.nav-blob::before, .nav-blob::after { display: none; }
.page-heading { padding: 28px 24px 24px; }
.page-heading h1, .discover-head h1 { font-size: clamp(2rem, 7vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; margin: 0; }
.page-heading>p:last-child { margin-top: 8px; color: var(--text-secondary); font-size: .9rem; }
.discover-head { padding: 20px 24px 24px; justify-content: space-between; align-items: center; gap: 12px; }
.discover-head p { margin: 6px 0 0; color: var(--text-secondary); font-size: 0.875rem; }
.discover-location { max-width: 46%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: none; color: var(--text-secondary); font-size: 0.75rem; }
.discover-location strong { font-weight: 550; }
.discover-location>span:first-child { color: var(--text-secondary); }
.explore-switch { margin: 0 24px 20px; padding: 4px; background: #212127; border: 0; border-radius: 13px; }
.explore-switch button { min-height: 40px; font-weight: 600; }
.explore-switch button[aria-pressed=true] { background: #3a3a43; border-radius: 10px; box-shadow: 0 2px 5px #0002; }
.discovery-controls { padding: 0 24px; margin-bottom: 16px; }
.discovery-controls #discoveryStatus { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.5; }
.discovery-controls #discoveryStatus:empty { display: none; }
.discovery-controls .glass-control { background: var(--surface-raised); border: 0; border-radius: 10px; box-shadow: none; min-height: 44px; font-weight: 550; }
#developmentLocation { margin: 12px 0; font-size: 0.6875rem; opacity: .8; }
#developmentLocation select { border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); min-height: 36px; }
.section-heading { margin: 24px 0 14px; padding-inline: 24px; }
.section-heading h2 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.02em; }
#featuredEvent, .event-feed { padding-inline: 24px; }
.event-card { border: 0; background: var(--surface); border-radius: 20px; box-shadow: none; }
.featured-card .event-art { height: auto; aspect-ratio: 1.52; }
.event-art { background: #25222a; }
.event-art::after { background: linear-gradient(transparent 20%,#0005); }
.photo-caption { font-size: 0.6875rem; font-weight: 550; text-transform: none; letter-spacing: .02em; left: 18px; bottom: 15px; }
.event-body { padding: 18px; }
.card-meta { font-family: inherit; font-size: 0.6875rem; color: var(--text-secondary); gap: 12px; }
.flair { background: none; padding: 0; color: var(--accent-text); text-transform: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0; }
.event-title { margin: 10px 0 7px; font-size: 1.4375rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.event-venue { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.event-footer { border-color: var(--hairline); padding-top: 14px; }
.source-link { font-size: 0.75rem; font-weight: 550; color: var(--text-secondary); }
.interest-button { min-height: 44px; padding: 10px 13px; background: #2b2b33; border: 0; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.interest-button.selected { background: var(--accent-tint); color: var(--accent-text); border: 0; }
.event-feed { gap: 12px; }
.event-row, .event-row:first-child, .event-row:last-child, .event-row:only-child { padding: 12px; border: 0; border-radius: 18px; min-height: 134px; }
.event-row-photo { width: 88px; height: 110px; border-radius: 12px; }
.event-row-main { gap: 14px; align-items: center; }
.event-row-copy small { color: var(--accent-text); font-size: 0.625rem; font-weight: 600; letter-spacing: 0; }
.event-row-copy strong { font-size: 1.0rem; font-weight: 650; line-height: 1.3; margin: 5px 0; letter-spacing: -.015em; }
.event-row-copy>span, .event-row-copy>time { color: var(--text-secondary); font-size: 0.6875rem; font-family: inherit; line-height: 1.6; }
.event-row-actions { width: 48px; flex: none; gap: 8px; }
.event-row-actions .row-interest { font-size: 0; width: 44px; height: 44px; padding: 0; }
.event-row-actions .row-interest::before { content: '+'; font-size: 1.4375rem; font-weight: 400; }
.event-row-actions .row-interest.selected::before { content: '✓'; font-size: 1.125rem; }
.event-row-actions .source-link { font-size: 0.625rem; }
.photo-placeholder { background: #25242d; color: #a4a0b4; font-weight: 650; }
.chip-row { padding: 0 24px 16px; gap: 8px; }
.chip { border: 0; border-radius: 12px; padding: 10px 15px; min-height: 44px; font-size: 0.8125rem; font-weight: 550; background: var(--surface); color: var(--text-secondary); }
.chip.active { background: #37313a; color: var(--accent-text); }
.discover-empty, .empty-campus { min-height: 240px; margin: 0; padding: 32px 24px; border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); box-shadow: none; }
.discover-empty::before { display: none; }
.discover-empty h2, .empty-campus h2 { font-weight: 650; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; margin-top: 20px; }
.discover-empty p, .empty-campus p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.55; max-width: 280px; }
.empty-orbit { width: 56px; height: 56px; border: 0; background: #2b2932; box-shadow: none; }
.empty-orbit span { font-size: 1.9375rem; color: var(--text-secondary); }
.glass-control, .primary-button, .auth-choice { box-shadow: none; border-radius: 14px; }
.glass-control { border: 1px solid var(--hairline); background: var(--surface-raised); font-weight: 550; }
.primary-button { background: var(--accent); font-weight: 600; min-height: 50px; }

/* Conversations read like a social feed, with one surface per post. */
.social-head { padding: 24px; background: none; border: 0; }
.social-head h1 { font-size: 1.6875rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.18; margin: 7px 0 10px; }
.social-community-label { color: var(--accent-text)!important; font-size: 0.8125rem!important; font-weight: 600; margin: 0!important; }
.social-head>p:last-child { color: var(--text-secondary); font-size: 0.875rem; }
.campus-toolbar { padding: 0 24px 18px; gap: 16px; }
.campus-toolbar strong { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.campus-toolbar small { color: var(--text-secondary); font-size: 0.75rem; }
.campus-toolbar button { border: 0; background: var(--surface-raised); color: var(--text-primary); border-radius: 12px; min-height: 44px; font-size: 0.75rem; box-shadow: none; backdrop-filter: none; }
.campus-feed { padding-inline: 24px; gap: 14px; }
.post-card { padding: 20px; background: var(--surface); border: 0; border-radius: 20px; }
.community-avatar { width: 38px; height: 38px; background: #38323b; color: #f4c8ce; font-weight: 550; font-size: 0.9375rem; }
.post-header strong { font-size: 0.875rem; font-weight: 600; }
.post-header div span { font-size: 0.75rem; color: var(--text-secondary); margin-top: 3px; }
.post-message { background: none; border-radius: 0; padding: 0; margin: 16px 0; font-size: 0.9375rem; line-height: 1.6; color: var(--text-primary); }
.post-actions { gap: 20px; border-top: 1px solid var(--hairline); padding: 10px 0 0; }
.post-actions button { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; }
.post-actions .liked { color: var(--accent-text); }
.social-empty { margin: 0 24px; }
.social-empty>span { font-size: 1.875rem; color: var(--text-secondary); }
.campus-feed .social-empty { margin: 0; }
.saved-event-list { display: grid; padding-inline: 24px; gap: 14px; }
.saved-event-list .empty-campus { margin: 0; }
.saved-signup-badge { background: var(--accent-tint); border: 0; color: var(--accent-text); }

/* Identity and account controls share the same grouping on both platforms. */
.own-profile { position: relative; flex-direction: row-reverse; align-items: center; gap: 18px; margin: 24px 24px 0; padding: 24px; background: var(--surface); border-radius: 22px; min-height: 140px; }
.own-profile-title h1 { font-size: 1.5625rem; font-weight: 650; letter-spacing: -.025em; white-space: normal; overflow: visible; }
.own-profile-head>p { font-size: 0.8125rem; line-height: 1.5; color: var(--text-secondary); max-width: none; }
.own-profile .profile-avatar { width: 64px; height: 64px; background: #57343e; color: #ffd3d8; border: 0; box-shadow: none; font-size: 1.625rem; font-weight: 550; }
.profile-gear { background: none; border: 0; color: var(--text-secondary); margin-left: auto; }
.profile-stats { background: none; border: 0; margin: 16px 24px 24px; padding: 20px 0; }
.profile-stats strong { font-size: 1.4375rem; font-weight: 600; }
.profile-stats span { font-size: 0.75rem; color: var(--text-secondary); }
.profile-stats>div+div { border-color: var(--hairline); }
.profile-posts { margin-inline: 24px; }
.profile-posts-title { border: 0; padding: 0 0 16px; }
.profile-posts-title h2 { font-size: 1.1875rem; font-weight: 650; }
.profile-posts-title .glass-control { min-height: 44px; border-radius: 12px; font-size: 0.8125rem; }
.profile-post-empty { background: var(--surface); border-radius: 20px; min-height: 220px; justify-content: center; padding: 28px; }
.profile-post-empty>span { display: none; }
.profile-post-empty strong { font-size: 1.125rem; font-weight: 600; }
.profile-post-empty p { font-size: 0.8125rem; color: var(--text-secondary); }
.draft-row { background: var(--surface); border: 0; padding: 16px; border-radius: 16px; gap: 10px; flex-wrap: wrap; }
.draft-icon { border-radius: 10px; background: #322a34; color: var(--accent-text); }
.draft-row strong { font-size: 0.875rem; font-weight: 600; }
.draft-row small { color: var(--text-secondary); font-size: 0.75rem; }
.host-event-actions { width: 100%; justify-content: flex-end; }
.host-event-actions .glass-control { min-height: 44px; font-size: 0.75rem; }
.settings-page { padding: 24px; }
.settings-head { margin: 0 0 26px; padding: 0; }
.settings-head h1 { font-size: 1.875rem; font-weight: 650; letter-spacing: -.03em; }
.settings-group { background: var(--surface); border: 0; border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.settings-group .setting-row { border: 0; background: none; border-radius: 0; padding: 18px; min-height: 76px; }
.settings-group .setting-row+.setting-row { border-top: 1px solid var(--hairline); }
.setting-row strong { font-size: 0.9375rem; font-weight: 550; }
.setting-row small { color: var(--text-secondary); font-size: 0.75rem; }
.setting-row .setting-symbol { background: #2b2b34; color: var(--text-secondary); border-radius: 10px; }
.setting-row .setting-copy { flex: 1; min-width: 0; text-align: left; }
.settings-group .setting-row { justify-content: flex-start; text-align: left; }
.settings-page .signout-button, .settings-page .delete-account-button { min-height: 48px; width: 100%; border: 0; background: var(--surface); border-radius: 14px; font-weight: 550; margin: 0 0 12px; }
.profile-disclosure { color: var(--text-secondary); font-size: 0.75rem; margin: 20px 0; }

/* Maps keep their tools floating above content. */
.map-screen .explore-switch { margin: 12px 24px 18px; }
.map-stage { border-radius: 20px; margin: 0 16px; height: calc(100dvh - 250px - env(safe-area-inset-top)); min-height: 240px; overflow: hidden; border: 1px solid var(--hairline); }
.map-stage-top { padding: 14px; gap: 12px; }
.map-stage-top button { background: var(--chrome); border: 1px solid #ffffff26; box-shadow: 0 4px 16px #0003; border-radius: 12px; min-height: 44px; backdrop-filter: blur(20px); font-weight: 600; }
.map-stage-bottom { bottom: 18px; left: 12px; right: 12px; border-radius: 10px; color: #fff; background: #17171f70; backdrop-filter: blur(14px); font-size: 0.5625rem; padding: 8px 12px; }
.map-drawer { background: #1b1b20b3; backdrop-filter: blur(30px) saturate(150%); border: 1px solid var(--hairline); box-shadow: 16px 0 50px #0006; }
.drawer-header { border-color: var(--hairline); }
.drawer-header h2 { font-weight: 650; font-size: 1.375rem; letter-spacing: -.02em; }
.drawer-header button { min-width: 44px; min-height: 44px; color: var(--text-secondary); }
.map-drawer .drawer-header { touch-action: none; cursor: grab; }
.map-drawer .drawer-header:active { cursor: grabbing; }
.radius-control { border-color: var(--hairline); }
.radius-control p, #mapDiscoveryStatus { font-size: 0.8125rem; color: var(--text-secondary); }
.radius-heading { font-size: 0.6875rem; letter-spacing: .03em; }
.map-nearby-card { background: var(--surface-raised); border: 0; border-radius: 16px; box-shadow: none; }
.map-nearby-copy>small { color: var(--text-secondary); font-family: inherit; font-size: 0.625rem; }
.map-nearby-copy>small i { display: none; }
.map-nearby-copy>button { font-size: 1.125rem; font-weight: 650; }
.map-nearby-copy p, .map-nearby-copy>div { color: var(--text-secondary); font-size: 0.75rem; }

/* Forms and modal surfaces. Gesture motion is owned by fluid-motion, never CSS. */
.party-dialog, .value-picker, .sheet-panel, .notification-popover { border: 1px solid #ffffff30; background: #202026a6; box-shadow: 0 24px 90px #0005; backdrop-filter: blur(32px) saturate(150%); }
.party-dialog { border-radius: 24px; padding: 24px; }
.party-intro h2 { font-size: 1.8125rem; font-weight: 650; letter-spacing: -.03em; }
.party-intro p { font-size: 0.875rem; color: var(--text-secondary); }
.party-dialog fieldset { border: 0; background: #ffffff04; border-radius: 16px; }
.party-dialog legend { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.party-dialog label { font-size: 0.875rem; font-weight: 550; }
.party-dialog :is(input,textarea,select) { background: #2c2c34; border: 1px solid #ffffff17; border-radius: 12px; font-size: 1.0rem; min-height: 50px; }
.party-dialog button { background: #34343e; border: 0; font-weight: 550; border-radius: 12px; }
.party-dialog [data-party-close] { min-width: 60px; font-weight: 500; border-radius: 12px; background: #ffffff08; }
.party-dialog .party-submit { padding-block: 14px 2px; }
.party-dialog [value=publish] { background: var(--accent); }
.party-dialog::before, .sheet-handle { display: none!important; }
.fluid-surface, .fluid-surface[open] { animation: none!important; transition: none!important; }
.fluid-grip { height: 28px; width: 100%; display: flex; align-items: center; justify-content: center; flex: none; cursor: grab; touch-action: none; user-select: none; }
.fluid-grip::after { content: ''; width: 34px; height: 4px; border-radius: 4px; background: #85818e; }
.fluid-grip:active { cursor: grabbing; }
.sheet-panel { border-radius: 28px 28px 0 0; padding-top: 0; }
.sheet-close { position: relative; display: block; margin: 0 16px 10px auto; width: 44px; height: 44px; background: #ffffff0c; border: 0; color: var(--text-secondary); border-radius: 50%; font-size: 1.5625rem; }
.simple-sheet { padding: 8px 24px 30px; }
.simple-sheet h2, .detail-copy h2 { font-weight: 650; letter-spacing: -.025em; }
.simple-sheet>p, .detail-copy>p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }
.simple-sheet :is(input,textarea), .setup-form :is(input,textarea) { min-height: 50px; font-size: 1.0rem; border: 1px solid #ffffff17; background: var(--surface-raised); border-radius: 12px; }
.simple-sheet label, .setup-form label { font-weight: 550; font-size: 0.875rem; }
.sheet-options { border: 0; border-radius: 14px; }
.sheet-options button { min-height: 56px; background: var(--surface-raised); font-weight: 550; font-size: 0.875rem; border-color: var(--hairline); }
.conversation-message { background: #ffffff06; border-radius: 16px; font-size: 0.9375rem; }
.detail-facts { border-color: var(--hairline); }
.detail-facts strong { font-size: 0.875rem; font-weight: 550; }
.detail-facts small { font-family: inherit; font-size: 0.75rem; color: var(--text-secondary); }
.value-picker { padding-top: 0; border-radius: 28px 28px 0 0; }
.value-picker header strong { font-weight: 600; }
.value-picker header button { color: var(--accent-text); font-size: 0.9375rem; }
.wheel-frame::before { border-color: #ffffff12; background: #ffffff06; border-radius: 12px; }
.value-wheel [role=option] { font-size: 1.375rem; color: var(--text-secondary); }
.value-wheel [aria-selected=true] { color: #fff; font-weight: 600; }
.picker-exact input { background: var(--surface-raised); border-color: #ffffff26; }
.party-dialog :is(input,textarea,select), .simple-sheet :is(input,textarea), .setup-form :is(input,textarea), .desktop .desk-form :is(input,select,textarea), .desktop .desk-compose textarea { border-color: #716c7a; }
.notification-popover { border-radius: 20px; transform-origin: top right; max-width: calc(100dvw - 24px); overflow: auto; }
.notification-popover header { border-color: var(--hairline); }
.notification-popover h2 { font-weight: 600; }
.toast { background: #33333ded; border-color: #ffffff1c; border-radius: 14px; font-weight: 500; font-size: 0.8125rem; box-shadow: 0 8px 24px #0003; }

/* Desktop: a stable sidebar for navigation, an expansive content canvas. */
.desktop, .desktop .desk-app { --red: var(--accent); --bg: var(--canvas); --panel: var(--surface); --line: var(--hairline); --muted: var(--text-secondary); background: var(--canvas); color: var(--text-primary); }
.desktop .desk-app { display: grid; grid-template-columns: 220px minmax(0,1fr); }
.desktop .desk-sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; height: 100dvh; overflow-y: auto; padding: 34px 20px 20px; background: #17171ca6; backdrop-filter: blur(28px) saturate(150%); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 28px; z-index: 520; }
.desktop .desk-workspace { grid-column: 2; min-width: 0; }
.desktop .desk-sidebar .desk-app-brand { margin: 0 16px 20px; font-size: 1.8125rem; font-weight: 750; letter-spacing: -.065em; }
.desktop .desk-sidebar nav { display: grid; gap: 8px; }
.desktop .desk-nav-item { min-height: 50px; padding: 12px 16px; gap: 14px; background: none; border: 0; border-radius: 13px; font-size: 0.875rem; font-weight: 550; color: var(--text-secondary); box-shadow: none; }
.desktop .desk-nav-item>.ui-icon { width: 21px; height: 21px; }
.desktop .desk-nav-item>span { font-size: inherit; }
.desktop .desk-nav-item:hover { background: #ffffff06; color: #fff; }
.desktop .desk-nav-item.active { color: var(--accent-text); background: #de354112; box-shadow: none; }
.desktop .desk-sidebar-create { border: 1px solid #ffffff1c; background: #24242b; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 10px; border-radius: 13px; font-size: 0.8125rem; font-weight: 550; min-height: 48px; }
.desktop .desk-sidebar-create:hover { background: #303039; }
.desktop .desk-sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 16px 0 0; border: 0; border-top: 1px solid var(--hairline); background: none; text-align: left; color: var(--text-primary); min-width: 0; }
.desktop .desk-sidebar-profile>span:nth-child(2) { flex: 1; min-width: 0; }
.desktop .desk-sidebar-profile strong { display: block; font-weight: 550; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop .desk-sidebar-profile small { display: block; font-size: 0.6875rem; color: var(--text-secondary); margin-top: 3px; }
.desktop .desk-sidebar-profile>.ui-icon { width: 17px; color: var(--text-secondary); }
.desktop .desk-sidebar-profile .desk-profile-trigger { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #57343e; color: #ffd3d8; display: grid; place-items: center; font-size: 0.875rem; font-weight: 550; flex: none; }
.desktop .desk-sidebar-profile.active strong { color: var(--accent-text); }
.desktop .desk-workspace { min-width: 0; }
.desktop .desk-topbar { height: 72px; padding-inline: clamp(24px,3.2vw,52px); grid-template-columns: 1fr auto; gap: 12px; border: 0; background: #10101385; backdrop-filter: blur(24px) saturate(150%); z-index: 500; }
.desktop .desk-topbar::after { content: ''; position: absolute; inset: auto 0 -12px; height: 12px; background: linear-gradient(#101013aa,transparent); pointer-events: none; }
.desktop .desk-view-label { color: var(--text-secondary); font-size: 0.8125rem; font-weight: 550; }
.desktop .desk-topbar-end { gap: 14px; }
.desktop :is(.desk-search-trigger,.desk-notification-trigger) { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-secondary); border: 0; border-radius: 12px; background: transparent; }
.desktop :is(.desk-search-trigger,.desk-notification-trigger):hover { color: var(--text-primary); background: #ffffff09; }
.desktop :is(.desk-search-trigger,.desk-notification-trigger) .ui-icon { width: 20px; height: 20px; }
.desktop .desk-app .desk-toolbar-create { min-height: 40px; border: 0; border-radius: 12px; background: #292930; box-shadow: none; display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 0.75rem; }
.desktop .desk-toolbar-create .ui-icon { width: 16px; height: 16px; }
.desktop .desk-view { max-width: 1400px; margin-inline: auto; padding: 16px clamp(24px,3.2vw,52px) 64px; }
.desktop .desk-page-heading { min-height: 100px; padding: 14px 0 26px; border: 0; align-items: center; }
.desktop .desk-page-heading h1 { font-size: 2.375rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.desktop .desk-page-heading p { margin: 9px 0 0; font-size: 0.9375rem; color: var(--text-secondary); }
.desktop .desk-app .desk-outline-button, .desktop .desk-app .desk-red-button, .desktop .desk-pill-button { border-radius: 12px; font-size: 0.8125rem; font-weight: 550; min-height: 44px; padding-inline: 16px; box-shadow: none; }
.desktop .desk-app .desk-outline-button { border: 1px solid #ffffff16; background: #ffffff05; }
.desktop .desk-red-button { background: var(--accent); border-color: var(--accent); }
.desktop .desk-control-bar { padding: 20px; background: var(--surface); border-radius: 18px; border: 0; }
.desktop .desk-location-controls { gap: 16px; }
.desktop .desk-location-controls .desk-red-button { background: #34313b; color: var(--text-primary); border: 0; min-height: 44px; }
.desktop .desk-location-controls .desk-outline-button { min-height: 44px; }
.desktop .desk-location-controls :is(select,label) { font-size: 0.75rem; color: var(--text-secondary); }
.desktop .desk-radius-control { flex: 1; min-width: 145px; max-width: 240px; }
.desktop .desk-radius-control .radius-slider { min-width: 60px; }
.desktop .desk-location-controls select, .desktop .desk-category-filter select { background: var(--surface-raised); border: 1px solid #ffffff15; border-radius: 10px; min-height: 42px; }
.desktop .desk-status { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.6; }
.desktop .desk-status:empty { display: none; }
.desktop .desk-discover-layout { gap: 24px; padding-top: 32px; grid-template-columns: minmax(0,1fr) 245px; }
.desktop .desk-section-head { margin-bottom: 18px; }
.desktop .desk-section-head h2 { font-size: 1.3125rem; font-weight: 650; letter-spacing: -.02em; }
.desktop .desk-section-head>span { font-family: inherit; color: var(--text-secondary); font-size: 0.75rem; }
.desktop .desk-event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.desktop .desk-discover-empty .desk-event-grid, .desktop .desk-saved-empty .desk-event-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.desktop .desk-event-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid #ffffff08; border-radius: 20px; min-width: 0; box-shadow: none; }
.desktop .desk-event-card:hover { border-color: #ffffff2a; }
.desktop .desk-event-open { display: flex; flex-direction: column; flex: initial; }
.desktop .desk-event-image { position: relative; width: 100%; height: auto; min-height: 0; aspect-ratio: 1.4; background: #25242d; }
.desktop .desk-event-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.desktop .desk-image-placeholder { min-height: 0; height: 100%; font-size: 2.0rem; color: #a49eb2; background: #282631; }
.desktop .desk-image-placeholder>span { color: var(--accent-text); }
.desktop .desk-event-category { position: absolute; left: 14px; top: 14px; background: #17171ed9; color: #fff; border: 1px solid #ffffff26; padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(12px); font-size: 0.6875rem; font-weight: 550; }
.desktop .desk-event-info { padding: 18px 18px 12px; gap: 8px; }
.desktop .desk-event-info small { color: var(--text-secondary); font-family: inherit; font-size: 0.6875rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.desktop .desk-event-info strong { font-size: 1.3125rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.desktop .desk-event-info>span { color: var(--text-secondary); font-size: 0.75rem; line-height: 1.6; }
.desktop .desk-event-actions { border: 0; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 12px 18px 18px; justify-content: flex-start; }
.desktop .desk-event-actions>span { flex: 1; color: var(--text-secondary); font-size: 0.75rem; }
.desktop .desk-app .desk-event-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; min-height: 36px; padding: 8px 10px; background: #2d2d36; font-size: 0.6875rem; color: var(--text-primary); font-weight: 550; }
.desktop .desk-event-actions .ui-icon { width: 15px; height: 15px; }
.desktop .desk-app .desk-event-actions button.is-saved { background: var(--accent-tint); color: var(--accent-text); }
.desktop .desk-event-actions a { color: var(--text-secondary); font-size: 0.6875rem; font-weight: 550; min-height: 36px; display: inline-flex; align-items: center; }
.desktop .desk-app .desk-event-actions a { border: 0; border-radius: 0; background: none; box-shadow: none; padding-inline: 0; }
.desktop .desk-category-filter { margin-bottom: 20px; font-size: 0.75rem; color: var(--text-secondary); }
.desktop .desk-panel { border: 0; border-radius: 18px; background: var(--surface); }
.desktop .desk-nearby-panel, .desktop .desk-social-links { padding: 20px; }
.desktop .desk-nearby-panel button { border-color: var(--hairline); min-height: 54px; }
.desktop .desk-nearby-panel button strong { font-size: 0.8125rem; font-weight: 550; }
.desktop .desk-nearby-panel button>span { font-size: 0.6875rem; color: var(--text-secondary); }
.desktop .desk-empty { min-height: 230px; border: 1px solid var(--hairline); background: var(--surface); border-radius: 20px; padding: 32px; }
.desktop .desk-empty h3 { font-size: 1.125rem; font-weight: 550; color: var(--text-primary); }
.desktop .desk-event-grid>.desk-empty { grid-column: 1/-1; }
.desktop .desk-social-layout { max-width: 780px; display: block; }
.desktop .desk-campus-name { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 24px; }
.desktop .desk-compose { padding: 20px; border-radius: 18px; margin-bottom: 24px; }
.desktop .desk-compose>label { font-size: 0.8125rem; font-weight: 550; }
.desktop .desk-compose textarea { background: #ffffff04; border: 1px solid #ffffff15; border-radius: 12px; font-size: 0.9375rem; padding: 14px; margin-block: 12px; line-height: 1.6; }
.desktop .desk-compose>div>span { font-size: 0.75rem; color: var(--text-secondary); }
.desktop .desk-post { padding: 24px; }
.desktop .desk-post-author>span { background: #38323b; color: #f4c8ce; box-shadow: none; width: 40px; height: 40px; font-weight: 550; }
.desktop .desk-post-author strong { font-size: 0.875rem; font-weight: 600; }
.desktop .desk-post-author small { font-size: 0.75rem; color: var(--text-secondary); }
.desktop .desk-post>p { font-size: 0.9375rem; line-height: 1.6; color: var(--text-primary); background: none; padding: 0; }
.desktop .desk-post-actions { gap: 20px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.desktop .desk-app .desk-post-actions button { display: flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500; }
.desktop .desk-saved-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 24px; }
.desktop .desk-drafts { padding: 20px; }
.desktop .desk-draft { border-color: var(--hairline); }
.desktop .desk-draft strong { font-weight: 600; font-size: 1.0rem; }
.desktop .desk-draft>span { color: var(--text-secondary); font-size: 0.75rem; }
.desktop .desk-profile-page { max-width: 950px; padding-top: 32px; }
.desktop .desk-profile-page .own-profile { padding: 32px; margin: 0 0 20px; min-height: 180px; gap: 24px; }
.desktop .desk-profile-page .own-profile h1 { font-size: 2.125rem; font-weight: 650; letter-spacing: -.03em; }
.desktop .desk-profile-page .own-profile p { font-size: 0.875rem; }
.desktop .desk-profile-page .profile-avatar { width: 80px; height: 80px; font-size: 2.125rem; }
.desktop .desk-account-settings { margin: 0 0 20px; }
.desktop .desk-account-settings>summary { border: 0; background: var(--surface); font-size: 0.8125rem; font-weight: 550; border-radius: 12px; }
.desktop .desk-account-settings .desk-profile-settings { padding: 24px; margin-top: 12px; max-width: none; }
.desktop .desk-profile-page .profile-stats { margin: 0 0 28px; border: 0; background: var(--surface); padding: 24px; border-radius: 18px; }
.desktop .desk-profile-page .desk-drafts { background: none; }
.desktop .desk-profile-page .desk-draft { padding: 20px; background: var(--surface); border: 0; border-radius: 16px; margin-bottom: 12px; }
.desktop .desk-form label { font-size: 0.8125rem; font-weight: 550; }
.desktop .desk-form :is(input,select,textarea) { min-height: 48px; background: var(--surface-raised); border: 1px solid #ffffff1c; border-radius: 11px; font-size: 0.9375rem; padding: 12px 14px; }
.desktop .desk-form .desk-legal-consent input { min-height: 17px; border-radius: 4px; padding: 0; }
.desktop .desk-preview-note, .desktop .desk-consent-summary { color: var(--text-secondary); line-height: 1.6; }
.desktop .desk-dialog { background: #222229ad; border: 1px solid #ffffff30; border-radius: 24px; padding: 28px; box-shadow: 0 30px 100px #0005; backdrop-filter: blur(32px) saturate(150%); }
.desktop .desk-dialog-close { width: 44px; height: 44px; background: #ffffff09; border: 0; border-radius: 50%; color: var(--text-secondary); }
.desktop .desk-dialog h2 { font-weight: 650; letter-spacing: -.025em; }
.desktop .desk-dialog-facts { border-color: var(--hairline); font-family: inherit; }
.desktop .desk-dialog-backdrop { background: #0008; backdrop-filter: blur(8px); }
.desktop .desk-dialog-links { gap: 14px; }
.desktop .desk-dialog-image { border-radius: 16px; }
.desktop .desk-dialog-layer--search { align-items: flex-start; justify-content: center; padding-top: min(14dvh,140px); }
.desktop .desk-dialog-layer--search .desk-dialog { width: min(640px,calc(100% - 48px)); height: auto; max-height: 72dvh; padding: 30px; overflow: hidden; }
.desktop .desk-search-field { min-height: 54px; display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 12px; margin-top: 22px; padding: 0 16px; color: var(--text-secondary); background: #ffffff0a; border: 1px solid #ffffff18; border-radius: 15px; }
.desktop .desk-search-field:focus-within { color: var(--text-primary); border-color: #ffffff38; box-shadow: 0 0 0 4px #ffffff08; }
.desktop .desk-search-field .ui-icon { width: 20px; height: 20px; }
.desktop .desk-search-input { width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 1rem; }
.desktop .desk-search-input::-webkit-search-cancel-button { filter: invert(1); opacity: .55; }
.desktop .desk-search-results { max-height: calc(72dvh - 180px); margin-top: 14px; overflow: auto; overscroll-behavior: contain; }
.desktop .desk-search-hint { margin: 0; padding: 22px 4px; color: var(--text-secondary); font-size: .8125rem; }
.desktop .desk-search-result { width: 100%; min-height: 64px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; background: transparent; color: var(--text-primary); text-align: left; }
.desktop .desk-search-result:hover { background: #ffffff08; border-radius: 12px; }
.desktop .desk-search-result-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-raised); color: var(--accent-text); }
.desktop .desk-search-result-icon .ui-icon { width: 18px; height: 18px; }
.desktop .desk-search-result strong, .desktop .desk-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop .desk-search-result strong { font-size: .875rem; font-weight: 600; }
.desktop .desk-search-result small { margin-top: 4px; color: var(--text-secondary); font-size: .75rem; }
.desktop .desk-search-result>span:last-child { color: var(--text-secondary); font-size: 1.25rem; }
.desktop .desk-map-view { padding: 0 20px 20px; height: auto; }
.desktop .desk-map-layout { --map-list-width: 310px; height: calc(100dvh - 92px); min-height: 520px; grid-template-columns: 310px minmax(0,1fr); border-radius: 20px; overflow: hidden; border: 1px solid var(--hairline); }
.desktop .desk-map-list { background: var(--surface); border: 0; }
.desktop .desk-map-list-head { background: var(--surface); padding: 22px; }
.desktop .desk-map-list-head h2 { font-size: 1.1875rem; }
.desktop .desk-location-accuracy { display: none; }
.desktop .desk-map-event-card { border: 0; border-radius: 16px; background: var(--surface-raised); box-shadow: none; }
.desktop .desk-map-event-kicker { color: var(--text-secondary); font-family: inherit; letter-spacing: 0; font-size: 0.625rem; }
.desktop .desk-map-event-kicker i { display: none; }
.desktop .desk-map-event-title { font-weight: 650; font-size: 1.125rem; }
.desktop .desk-map-event-copy p, .desktop .desk-map-event-details { color: var(--text-secondary); font-size: 0.75rem; }
.desktop .desk-map-toolbar, .desktop .desk-map-controls { background: #1e1e2685; border: 1px solid #ffffff30; border-radius: 16px; backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 6px 24px #0003; }
.desktop .desk-map-toolbar { left: 18px; top: 18px; padding: 8px; transform: none; }
.desktop .desk-map-controls { left: 18px; right: 18px; top: auto; bottom: 20px; padding: 12px; }
.desktop .desk-map-toolbar .desk-red-button { background: #31313b; border: 0; font-size: 0.8125rem; }
.desktop .desk-map-search-hint { display: none; }
.desktop .desk-map-expand { border-radius: 12px; background: #1e1e26e8; border: 1px solid #ffffff24; width: 44px; height: 44px; }

@media (max-width: 1200px) and (min-width: 1024px) {
  .desktop .desk-app { grid-template-columns: 180px minmax(0,1fr); }
  .desktop .desk-sidebar { width: 180px; padding-inline: 14px; }
  .desktop .desk-discover-layout { grid-template-columns: minmax(0,1fr); }
  .desktop .desk-side-column { grid-template-columns: 1fr 1fr; }
  .desktop .desk-discover-empty .desk-event-grid, .desktop .desk-saved-empty .desk-event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop .desk-map-layout { --map-list-width: 270px; grid-template-columns: 270px minmax(0,1fr); }
  .desktop .desk-map-controls .desk-dev-location { display: none; }
}
@media (min-width: 1024px) { .fluid-grip { display: none; } }
@media (max-width: 1023px) {
  .party-dialog { border-radius: 28px 28px 0 0; padding-top: 0; }
  .party-intro { padding-top: 10px; }
  .party-dialog fieldset { background: #ffffff05; padding: 8px 16px 20px; }
  .party-dialog :is(input,textarea,select) { background: #2c2c34; }
  .party-dialog legend { padding: 0 4px; }
  .party-dialog .party-actions button { min-height: 48px; }
}
@media (max-width: 390px) {
  .topbar { padding-inline: 20px; }
  .discover-head { padding-inline: 20px; gap: 8px; }
  .discover-head h1 { font-size: 1.875rem; }
  .discover-head p { font-size: 0.75rem; }
  .discover-location { padding: 8px; font-size: 0.6875rem; }
  #featuredEvent, .event-feed, .campus-feed, .saved-event-list { padding-inline: 20px; }
  .event-row-photo { width: 74px; height: 100px; }
  .event-row-main { gap: 10px; }
  .event-row-copy strong { font-size: 0.9375rem; }
  .own-profile { padding: 20px; gap: 14px; }
  .own-profile-title h1 { font-size: 1.375rem; }
  .own-profile .profile-avatar { width: 54px; height: 54px; font-size: 1.5rem; }
}
@media (max-height: 500px) and (max-width: 1023px) {
  .topbar { height: 58px; }
  .bottom-nav { height: 60px; bottom: 8px; }
  .nav-blob { height: 48px; }
  .map-stage { height: calc(100dvh - 155px); min-height: 180px; }
  .map-screen .explore-switch { margin-block: 8px; }




  .value-picker { max-height: calc(100dvh - 8px); }
  .wheel-frame { margin-block: 8px; }
  .value-wheel { height: 132px; padding-block: 44px; }
  .wheel-frame::before { top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; }
  .screen, .notification-popover:popover-open, .desk-map-event-card, .map-nearby-card { animation: none!important; }
  .fluid-surface { transition: none!important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .bottom-nav, .desktop .desk-topbar, .notification-popover, .sheet-panel, .party-dialog, .value-picker, .desktop .desk-map-controls, .desktop .desk-map-toolbar { background: #202026; backdrop-filter: none; }
  .sheet-backdrop, .party-dialog::backdrop, .value-picker::backdrop { backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-secondary: #dedbe4; --hairline: #ffffff60; }
  .topbar, .bottom-nav, .party-dialog, .sheet-panel, .value-picker, .notification-popover { background: #18181d; border-color: #b3aebb; }
  :is(input,textarea,select,button) { border-color: #c6c1cc; }
}

/* Profile photos use one crop editor on phone and desktop. */
.avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-photo-button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff09; color: var(--text-primary); font-family: inherit; font-size: .75rem; font-weight: 500; line-height: 1.4; margin-top: 12px; }
.profile-photo-button .ui-icon { width: 16px; height: 16px; }
.profile-avatar, .community-avatar, .desktop .desk-post-author>span, .desktop .desk-profile-trigger { overflow: hidden; }
.reply-identity { display: flex; align-items: center; gap: 10px; }
.reply-avatar { width: 32px; height: 32px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; flex: none; background: #38323b; font-size: .8rem; }
.photo-dialog { width: min(460px,calc(100vw - 24px)); max-height: 94dvh; overflow: auto; border: 1px solid #ffffff30; border-radius: 24px; background: #202026a6; color: #fff; backdrop-filter: blur(32px) saturate(150%); box-shadow: 0 24px 80px #0006; padding: 24px; font-family: inherit; }
.photo-dialog::backdrop { background: #0008; backdrop-filter: blur(8px); }
.photo-dialog .photo-close { display: block; margin-left: auto; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 0; background: #ffffff0c; color: #ddd; }
.photo-dialog h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; margin: 16px 0 8px; }
.photo-dialog>p { color: var(--text-secondary); font-size: .875rem; line-height: 1.5; }
.photo-crop { position: relative; width: min(300px,100%); aspect-ratio: 1; margin: 24px auto 12px; background: #121217; overflow: hidden; border-radius: 16px; touch-action: none; user-select: none; cursor: grab; }
.photo-crop:active { cursor: grabbing; }
.photo-crop::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ffffff90; box-shadow: 0 0 0 100px #10101385; pointer-events: none; }
.photo-crop .photo-source { position: absolute; top: 0; left: 0; max-width: none; max-height: none; pointer-events: none; }
.photo-crop .photo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; font-size: .875rem; color: var(--text-secondary); }
.photo-dialog .photo-hint { text-align: center; font-size: .75rem; }
.photo-zoom { display: flex; align-items: center; gap: 8px; margin: 18px 0; font-size: .75rem; }
.photo-zoom input { flex: 1; min-width: 0; accent-color: var(--accent); }
.photo-zoom button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #ffffff0c; color: white; font-size: 1.1rem; }
.photo-zoom output { min-width: 36px; text-align: right; }
.photo-actions { display: flex; gap: 12px; }
.photo-actions button { flex: 1; border: 0; background: #ffffff12; border-radius: 12px; min-height: 48px; color: white; font: inherit; font-size: .875rem; font-weight: 550; }
.photo-actions [data-save] { background: var(--accent); }
.photo-dialog button:disabled { opacity: .5; cursor: wait; }
.photo-remove { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--accent-text); min-height: 44px; font-size: .8rem; }
.photo-error:empty { display: none; }
.photo-error { padding: 12px; background: #8c283b30; color: #ffadb5; border-radius: 12px; font-size: .8rem; margin-bottom: 16px; }
@media(max-width:1023px) { .photo-dialog { position: fixed; inset: auto 0 0; width: min(100%,620px); max-width: 100vw; max-height: calc(100dvh - 16px); margin: 0 auto; border-radius: 28px 28px 0 0; padding: 0 20px max(24px,env(safe-area-inset-bottom)); } }
@media(prefers-reduced-transparency:reduce) { .photo-dialog { background: #202026; backdrop-filter: none; } }
