@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root { color-scheme: light; }
body { background: #faf8fc; font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
.brand { color: #7c3aed; }
.brand-logo { display: block; width: 5.25rem; height: 3.5rem; border-radius: .55rem; object-fit: cover; }
.auth-brand-logo { display: block; width: min(15rem, 100%); height: auto; margin: 0 auto 1rem; border-radius: 1rem; }
.nav-link { color: #64748b; font-size: .875rem; font-weight: 600; }
.nav-link:hover { color: #7c3aed; }
.auth-card, .post-card, .rounded-2xl.bg-white, .profile-tile { box-shadow: 0 4px 24px rgba(67, 32, 90, .055); }
.field-label { display: block; color: #334155; font-size: .875rem; font-weight: 700; }
.field { display: block; width: 100%; margin-top: .45rem; border: 1px solid #e2d9ec; border-radius: .75rem; background: white; padding: .75rem .9rem; color: #1e293b; font-size: .9rem; font-weight: 400; outline: none; }
.field:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px #ede9fe; }
.file-field { padding: .6rem; }
.primary-button, .secondary-button { border-radius: 999px; padding: .68rem 1.15rem; font-size: .875rem; font-weight: 700; transition: .15s ease; }
.primary-button { background: #7c3aed; color: white; }
.primary-button:hover { background: #6d28d9; }
.secondary-button { border: 1px solid #e2d9ec; color: #6d28d9; background: white; }
.secondary-button:hover { background: #faf5ff; }
.flash { color: #5b21b6; }
.avatar, .profile-avatar, .story-ring { display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #f3e8ff; }
.avatar { width: 2.65rem; height: 2.65rem; }
.avatar img, .profile-avatar img, .story-ring img { width: 100%; height: 100%; object-fit: cover; }
.story-bubble { display: flex; min-width: 4.5rem; flex-direction: column; align-items: center; gap: .35rem; color: #64748b; font-size: .7rem; }
.story-ring { width: 3.7rem; height: 3.7rem; padding: 3px; border: 2px solid #a855f7; color: #7c3aed; font-size: 1.4rem; }
.story-ring img { border-radius: 50%; }
.tab-link { border-radius: 999px; padding: .55rem 1rem; color: #64748b; font-size: .875rem; font-weight: 700; }
.tab-active { background: #ede9fe; color: #6d28d9; }
.post-media { display: block; width: 100%; max-height: 680px; background: #f1f5f9; object-fit: contain; }
.post-media-gallery { position: relative; overflow: hidden; background: #0e0b14; }
.post-media-gallery-track { display: flex; height: min(78vh, 720px); min-height: 300px; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.post-media-gallery-compact .post-media-gallery-track { height: min(42vh, 360px); min-height: 180px; }
.post-media-gallery-slide { display: flex; min-width: 0; flex: 0 0 100%; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #21192c 0, #0e0b14 78%); }
.post-media-gallery .post-media { width: auto; max-width: 100%; height: 100%; max-height: 100%; background: transparent; object-fit: contain; }
.post-media-gallery-controls { position: absolute; top: .8rem; right: .8rem; z-index: 2; display: flex; align-items: center; gap: .35rem; padding: .3rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(18,14,25,.78); color: white; box-shadow: 0 5px 18px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.post-media-gallery-button { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 999px; background: rgba(255,255,255,.12); color: white; font-size: 1.25rem; font-weight: 800; transition: background .15s ease, transform .15s ease; }
.post-media-gallery-button:hover { transform: scale(1.05); background: rgba(255,255,255,.24); }
.post-media-gallery-button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.post-media-gallery-counter { min-width: 3rem; text-align: center; color: white; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.post-video-player { position: relative; display: inline-flex; height: 100%; max-width: 100%; align-items: center; justify-content: center; overflow: hidden; background: #08070b; }
.post-video-player .post-media { display: block; width: auto; height: 100%; max-width: 100%; max-height: 100%; background: transparent; object-fit: contain; }
.post-video-controls { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: auto auto minmax(0,1fr) auto auto; align-items: center; gap: .7rem; padding: 1.4rem .8rem .65rem; background: linear-gradient(transparent, rgba(8,6,12,.9)); color: white; opacity: 0; transform: translateY(.25rem); transition: opacity .18s ease, transform .18s ease; }
.post-video-player:hover .post-video-controls, .post-video-player:focus-within .post-video-controls, .post-video-player[data-playing="false"] .post-video-controls { opacity: 1; transform: none; }
.post-video-control-button { display: grid; width: 2.25rem; height: 2.25rem; flex: none; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.12); color: white; transition: background .15s ease, transform .15s ease; }
.post-video-control-button:hover { transform: scale(1.05); background: rgba(255,255,255,.24); }
.post-video-control-button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.post-video-control-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.post-video-control-button [data-video-play-icon], .post-video-control-button [data-video-pause-icon] { fill: currentColor; stroke: none; }
.post-video-time { color: white; font-size: .72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post-video-controls-spacer { min-width: 0; }
.post-video-progress { grid-column: 1 / -1; width: 100%; height: .3rem; margin: 0 0 .1rem; appearance: none; border-radius: 999px; background: linear-gradient(to right, #c4b5fd var(--video-progress, 0%), rgba(255,255,255,.35) var(--video-progress, 0%)); cursor: pointer; }
.post-video-progress::-webkit-slider-thumb { width: .75rem; height: .75rem; appearance: none; border: 2px solid white; border-radius: 50%; background: #8b5cf6; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.post-video-progress::-moz-range-thumb { width: .55rem; height: .55rem; border: 2px solid white; border-radius: 50%; background: #8b5cf6; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
.post-video-progress:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
.post-video-player:fullscreen { display: flex; width: 100vw; height: 100vh; max-width: none; background: #08070b; }
.post-video-player:fullscreen .post-media { width: 100%; height: 100%; }
@media (hover: none) {
  .post-video-controls { opacity: 1; transform: none; }
}
.content-warning { margin: .75rem; overflow: hidden; border: 1px solid #e9d5ff; border-radius: .9rem; background: #faf5ff; }
.content-warning summary { cursor: pointer; padding: .9rem 1rem; color: #6d28d9; font-size: .875rem; font-weight: 700; }
.content-warning[open] summary { border-bottom: 1px solid #e9d5ff; }
.profile-banner { height: 12rem; background: linear-gradient(120deg, #c4b5fd, #fbcfe8, #bfdbfe); background-position: center; background-size: cover; }
.profile-background-preview { display: block; width: 100%; height: 12rem; border-radius: .75rem; object-fit: cover; }
.profile-background-preview[hidden] { display: none; }
.profile-page-background[data-has-background] { isolation: isolate; }
.profile-page-background[data-has-background]::before { position: fixed; z-index: -1; inset: 0; background-color: #f5f0f8; background-image: linear-gradient(rgba(250, 248, 252, .45), rgba(250, 248, 252, .45)), var(--profile-background); background-position: center; background-size: cover; content: ""; pointer-events: none; }
.profile-avatar { width: 6rem; height: 6rem; border: 4px solid white; box-shadow: 0 3px 12px #0002; }
.metric-card { border: 1px solid #eee8f5; border-radius: 1rem; background: white; padding: 1.25rem; box-shadow: 0 4px 24px rgba(67, 32, 90, .04); }
.dashboard-thumbnail { width: 3.5rem; height: 3.5rem; flex: none; overflow: hidden; border-radius: .75rem; object-fit: cover; }
.message-bubble { max-width: min(85%, 34rem); border-radius: 1.15rem; padding: .7rem .95rem; font-size: .9rem; line-height: 1.5; }
.message-mine { border-bottom-right-radius: .35rem; background: #7c3aed; color: white; }
.message-theirs { border-bottom-left-radius: .35rem; background: #f3f0f7; color: #334155; }
.share-recipient { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid #f1edf5; padding: 1rem; }
.share-recipient:last-child { border-bottom: 0; }
.share-note { width: min(10rem, 28vw); min-width: 5rem; border: 1px solid #e2d9ec; border-radius: 999px; padding: .55rem .8rem; font-size: .75rem; outline: none; }
.share-note:focus { border-color: #a78bfa; }
.shared-post-card { min-width: min(15rem, 65vw); background: white; color: #334155; }
.shared-post-image { display: block; width: 100%; max-height: 12rem; object-fit: cover; }
.shared-post-media-placeholder { display: grid; min-height: 6rem; place-items: center; background: #ede9fe; color: #6d28d9; }
.notification-menu { position: relative; }
.notification-bell { position: relative; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 999px; color: #6d28d9; }
.notification-bell:hover { background: #f5f0ff; }
.notification-bell svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.notification-count { position: absolute; top: -.1rem; right: -.2rem; min-width: 1.1rem; border-radius: 999px; background: #7c3aed; padding: .08rem .3rem; color: white; font-size: .65rem; font-weight: 800; line-height: 1.3; }
.notification-dropdown { position: absolute; top: calc(100% + .65rem); right: -5rem; z-index: 40; width: min(22rem, calc(100vw - 1.5rem)); overflow: hidden; border: 1px solid #eee8f5; border-radius: 1rem; background: white; box-shadow: 0 16px 40px #28133b24; }
.notification-dropdown[hidden] { display: none; }
.notification-item { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid #f1edf5; padding: .85rem 1rem; color: #475569; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover, .notification-unread { background: #faf7ff; }
.notification-item img { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; object-fit: cover; background: #ede9fe; }
.story-sticker { position: relative; margin: -1rem 1rem 1rem; border-radius: 1.25rem; background: white; padding: 1rem; color: #1e293b; }
.poll-vote-button { width: 100%; border: 1px solid #ddd6fe; border-radius: .8rem; background: white; padding: .7rem .85rem; text-align: left; font-size: .875rem; font-weight: 700; color: #6d28d9; }
.poll-vote-button:hover { background: #f5f0ff; }
.poll-track { height: .55rem; overflow: hidden; border-radius: 999px; background: #ede9fe; }
.poll-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #c084fc); transition: width .55s ease; }
.profile-panel .primary-button { background: var(--accent); }
.profile-panel .primary-button:hover { filter: brightness(.92); }
.profile-panel .secondary-button { border-color: var(--accent); color: var(--accent); }
.profile-share-dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; margin: auto; border: 1px solid #eee8f5; border-radius: 1.5rem; background: white; padding: 1.25rem; color: #1e293b; box-shadow: 0 16px 40px #28133b24; }
.profile-share-dialog::backdrop { background: rgba(24, 16, 34, .6); backdrop-filter: blur(2px); }
.profile-share-card { overflow: hidden; border-radius: 1.1rem; background: linear-gradient(135deg, #321650, #7c3aed 70%, #c084fc); padding: 1.25rem; color: white; }
.profile-share-avatar { display: inline-flex; width: 5rem; height: 5rem; flex: none; align-items: center; justify-content: center; overflow: hidden; border: 3px solid rgba(255, 255, 255, .8); border-radius: 50%; background: #ede9fe; }
.profile-share-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-share-bio { display: -webkit-box; overflow: hidden; font-size: .8rem; line-height: 1.35rem; opacity: .9; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.theme-dark .profile-share-dialog { border-color: #393347; background: #201e2d; color: #eeeaf6; }
.theme-dark .profile-share-dialog .text-slate-500 { color: #aaa3ba; }
.accent-text { color: var(--accent); }
.bookmark-button { border-radius: 999px; padding: .35rem .65rem; color: #6d28d9; font-size: .8rem; font-weight: 700; }
.bookmark-button:hover { background: #f5f0ff; }
.people-search-form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-items: end; }
.people-search-form .primary-button { justify-self: start; }
.people-result { display: flex; align-items: center; gap: .85rem; border: 1px solid #eee8f5; border-radius: 1rem; background: white; padding: 1rem; box-shadow: 0 4px 24px rgba(67, 32, 90, .04); }
.people-result:hover { border-color: #c4b5fd; }
.comment-thread { margin-top: .65rem; }
.comment-reply { margin: .4rem 0 0 1rem; border-left: 2px solid #e9d5ff; padding-left: .65rem; }
.comment-reply-control { margin: .35rem 0 0 1rem; color: #7c3aed; font-size: .75rem; font-weight: 700; }
.comment-reply-control summary { cursor: pointer; width: fit-content; }
.badge { border-radius: 999px; background: #ede9fe; padding: .2rem .55rem; color: #6d28d9; font-size: .7rem; vertical-align: middle; }
.profile-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 1rem; background: #f3e8ff; }
.profile-tile-wrap { position: relative; min-width: 0; }
.profile-tile-pin { position: absolute; top: .5rem; right: .5rem; z-index: 1; }
.profile-tile-pin button { border-radius: 999px; background: rgba(18, 17, 27, .85); padding: .35rem .65rem; color: white; font-size: .7rem; font-weight: 700; }
.profile-tile img, .profile-tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-caption { display: -webkit-box; overflow: hidden; padding: 1rem; color: #6d28d9; font-size: .875rem; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.story-media { display: block; width: 100%; max-height: 75vh; background: #111827; object-fit: contain; }
.settings-option { display: flex; align-items: flex-start; gap: .9rem; border: 1px solid #eee8f5; border-radius: 1.25rem; background: white; padding: 1.15rem; box-shadow: 0 4px 24px rgba(67, 32, 90, .04); }
.settings-checkbox { display: flex; flex: none; align-items: center; padding-top: .2rem; }
.settings-checkbox input { width: 1.1rem; height: 1.1rem; accent-color: #7c3aed; }
.report-control { position: relative; }
.report-control[open] { z-index: 50; }
.report-control summary { cursor: pointer; color: #64748b; font-size: .8rem; font-weight: 700; list-style: none; }
.report-control summary::-webkit-details-marker { display: none; }
.report-form { position: fixed; top: 50%; left: 50%; z-index: 60; width: min(20rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; margin: 0; transform: translate(-50%, -50%); border: 1px solid #eee8f5; border-radius: 1rem; background: white; padding: 1rem; box-shadow: 0 16px 40px #28133b24; }
.report-form .field { font-size: .85rem; }
.theme-dark .report-form { border-color: #393347; background: #201e2d; }
.theme-dark .report-control summary { color: #b6aec7; }
.theme-dark { color-scheme: dark; background: #12111b; color: #eeeaf6; }
.theme-dark .bg-white, .theme-dark .shared-post-card, .theme-dark .settings-option { background-color: #201e2d; }
.theme-dark header.bg-white\/90 { border-color: #393347; background-color: rgb(32 30 45 / .92); }
.theme-dark .bg-slate-50, .theme-dark .bg-violet-50 { background-color: #292538; }
.theme-dark .bg-slate-100, .theme-dark .bg-violet-100 { background-color: #353044; }
.theme-dark .text-slate-800, .theme-dark .text-slate-700, .theme-dark .text-slate-600 { color: #eeeaf6; }
.theme-dark .text-slate-500, .theme-dark .text-slate-400 { color: #aaa3ba; }
.theme-dark .border-slate-100, .theme-dark .border-slate-200, .theme-dark .border-violet-100, .theme-dark .border-violet-200 { border-color: #393347; }
.theme-dark .field, .theme-dark .share-note { border-color: #494258; background: #181622; color: #eeeaf6; }
.theme-dark .field-label { color: #d7d1e4; }
.theme-dark .content-warning { border-color: #494258; background: #252233; }
.theme-dark .content-warning[open] summary { border-color: #494258; }
.theme-dark .secondary-button { border-color: #494258; background: #201e2d; color: #c4a9ff; }
.theme-dark .secondary-button:hover { background: #2b263a; }
.theme-dark .nav-link { color: #b6aec7; }
.theme-dark .nav-link:hover { color: #c4a9ff; }
.theme-dark .notification-dropdown { border-color: #393347; background: #201e2d; }
.theme-dark .notification-item { border-color: #393347; color: #d8d2e3; }
.theme-dark .notification-item:hover, .theme-dark .notification-unread { background: #2b263a; }
.theme-dark .story-sticker { background: #201e2d; color: #eeeaf6; }
.theme-dark .poll-vote-button { border-color: #494258; background: #252233; color: #c4a9ff; }
.theme-dark .poll-vote-button:hover { background: #302941; }
.theme-dark .poll-track { background: #393347; }
.theme-dark .message-theirs { background: #302c3c; color: #eeeaf6; }
.theme-dark .share-recipient { border-color: #393347; }
.theme-dark .share-note:focus, .theme-dark .field:focus { border-color: #a78bfa; }
.theme-dark .profile-avatar { border-color: #201e2d; }
.theme-dark .badge, .theme-dark .tab-active { background: #39304d; color: #d6c1ff; }
.theme-dark .metric-card { border-color: #393347; background: #201e2d; }
.theme-dark .profile-page-background[data-has-background]::before { background-color: #12111b; background-image: linear-gradient(rgba(18, 17, 27, .45), rgba(18, 17, 27, .45)), var(--profile-background); }
.theme-dark .bookmark-button:hover { background: #302941; }
.theme-dark .people-result { border-color: #393347; background: #201e2d; }
.theme-dark .people-result:hover { border-color: #76609a; }
.theme-dark .comment-reply { border-color: #6d568b; }
.theme-dark, .theme-dark * { color: #fff !important; }
.theme-dark *::placeholder { color: #fff !important; opacity: .7; }
html.accessibility-large-text { font-size: 112.5%; }
.settings-panel { border: 1px solid #eee8f5; border-radius: 1.25rem; background: white; padding: 1.25rem; box-shadow: 0 4px 24px rgba(67, 32, 90, .04); }
.theme-dark .settings-panel { border-color: #393347; background: #201e2d; }
.accessibility-reduce-motion, .accessibility-reduce-motion * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.accessibility-high-contrast { color-scheme: light; background: #fff !important; color: #000 !important; }
.accessibility-high-contrast :not(svg):not(path) { color: #000 !important; border-color: #000 !important; }
.accessibility-high-contrast header, .accessibility-high-contrast .bg-white, .accessibility-high-contrast .settings-panel, .accessibility-high-contrast .settings-option, .accessibility-high-contrast .metric-card, .accessibility-high-contrast .notification-dropdown, .accessibility-high-contrast .people-result { background: #fff !important; }
.accessibility-high-contrast .field, .accessibility-high-contrast .share-note { border: 2px solid #000 !important; background: #fff !important; color: #000 !important; }
.accessibility-high-contrast .primary-button, .accessibility-high-contrast .primary-button *, .accessibility-high-contrast .notification-count { background: #000 !important; color: #fff !important; }
.accessibility-high-contrast .secondary-button { border: 2px solid #000 !important; background: #fff !important; color: #000 !important; }
.accessibility-high-contrast .post-video-controls, .accessibility-high-contrast .post-video-controls *, .accessibility-high-contrast .post-video-control-button, .accessibility-high-contrast .post-media-gallery-controls, .accessibility-high-contrast .post-media-gallery-controls * { color: #fff !important; }
.accessibility-high-contrast :focus-visible { outline: 3px solid #000 !important; outline-offset: 3px; }
@media (max-width: 640px) {
  .profile-banner { height: 9rem; }
  .post-media { max-height: 76vh; }
  header nav { align-items: flex-start; }
  header nav > div { row-gap: .35rem; }
  .profile-panel .profile-avatar { width: 5rem; height: 5rem; }
  .profile-panel .primary-button, .profile-panel .secondary-button { padding: .58rem .8rem; font-size: .78rem; }
  .share-recipient { flex-wrap: wrap; }
  .share-note { flex: 1 1 8rem; width: auto; }
  .share-recipient .primary-button { margin-left: auto; }
  .message-bubble { max-width: 92%; }
}
