:root {
  color-scheme: dark;
  --ink: #f5f0eb;
  --muted: #a49ca9;
  --subtle: #716975;
  --panel: #211e29;
  --panel-light: #292532;
  --border: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.13);
  --accent: #c9a5ff;
  --accent-strong: #a875ff;
  --peach: #f8b892;
  --sidebar: #17151e;
  --main: #1b1923;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--main); color: var(--ink); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-family: Georgia, serif; font-size: 18px; font-style: italic; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 2px; color: var(--subtle); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; margin-top: 65px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 8px; color: var(--muted); font-size: 13px; transition: background .2s, color .2s; }
.nav-link span { width: 17px; color: var(--subtle); font-size: 15px; text-align: center; }
.nav-link:hover, .nav-link--active { background: rgba(201, 165, 255, .1); color: var(--ink); }
.nav-link--active { box-shadow: inset 2px 0 var(--accent); }
.nav-link--active span { color: var(--accent); }
.sidebar-footer { display: grid; gap: 21px; margin-top: auto; }
.privacy-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 11px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, .02); }
.privacy-note strong, .privacy-note small { display: block; }
.privacy-note strong { font-size: 11px; font-weight: 600; }
.privacy-note small { margin-top: 3px; color: var(--subtle); font-size: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #71e1a4; box-shadow: 0 0 0 3px rgba(113, 225, 164, .1); }
.profile-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; }
.profile-chip:hover { background: rgba(255, 255, 255, .05); }
.profile-chip > :last-child { margin-left: auto; color: var(--subtle); }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, #d8b6a6, #906e91); color: #241b28; font-weight: 700; font-size: 12px; }
.profile-chip strong, .profile-chip small { display: block; }
.profile-chip strong { font-size: 11px; }
.profile-chip small { margin-top: 2px; color: var(--subtle); font-size: 10px; }

.main-content { width: min(100%, 1232px); padding: 0 clamp(24px, 5vw, 76px) 65px; }
.topbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--subtle); font-size: 11px; }
.breadcrumbs strong { color: var(--muted); font-weight: 500; }
.session-pill { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 100px; color: var(--subtle); font-size: 10px; letter-spacing: .02em; }
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .65fr); gap: 30px; align-items: end; padding: 67px 0 61px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.intro h1 { max-width: 650px; margin: 0; color: var(--ink); font-size: clamp(37px, 5vw, 64px); font-weight: 350; letter-spacing: -.055em; line-height: .99; }
.intro h1 em { color: var(--peach); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.intro-copy { max-width: 285px; margin: 0 0 4px auto; color: var(--muted); font-size: 13px; line-height: 1.75; }
.shared-posts-section { border-top: 1px solid var(--border); padding-top: 25px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 7px; color: var(--subtle); }
.section-heading h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.loop-note { display: flex; align-items: center; gap: 9px; margin: 0 0 2px; color: var(--subtle); font-size: 10px; }
.loop-icon { color: var(--accent); font-size: 17px; }
.divider { width: 1px; height: 12px; background: var(--line); }

.carousel { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); box-shadow: 0 22px 60px rgba(0, 0, 0, .15); }
.slides { min-height: 382px; }
.post-slide { display: none; grid-template-columns: minmax(260px, .93fr) minmax(330px, 1.07fr); min-height: 382px; }
.post-slide--active { display: grid; animation: slide-in .35s ease-out; }
@keyframes slide-in { from { opacity: .4; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.post-art { position: relative; min-height: 382px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; background: #493a5d; }
.post-art--instagram { background: radial-gradient(circle at 78% 19%, rgba(242, 153, 114, .9), transparent 28%), radial-gradient(circle at 18% 83%, rgba(112, 81, 180, .9), transparent 37%), linear-gradient(140deg, #292751 0%, #6c3d65 54%, #ec9c72 120%); }
.post-art--tiktok { background: radial-gradient(circle at 18% 15%, #49e4da, transparent 23%), linear-gradient(140deg, #111a2b, #343b6c 53%, #ef5576); }
.post-art__glow { position: absolute; width: 220px; height: 220px; right: -60px; bottom: -80px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 0 0 38px rgba(255,255,255,.025); }
.post-art__grain { position: absolute; inset: 0; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.post-art__topline, .post-art__bottomline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.platform-pill { padding: 6px 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: rgba(20, 14, 33, .18); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.preview-label { color: rgba(255,255,255,.66); font-size: 10px; }
.post-art__center { position: relative; z-index: 1; display: grid; place-items: center; text-align: center; text-shadow: 0 2px 20px rgba(25, 10, 39, .3); }
.post-art__symbol { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 17px; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; color: #fff; font-family: Georgia, serif; font-size: 30px; }
.post-art__center strong { color: #fff; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.post-art__center span:last-child { margin-top: 7px; color: rgba(255,255,255,.68); font-size: 11px; }
.post-art__bottomline { color: rgba(255,255,255,.62); font-size: 10px; }
.audio-state { display: flex; align-items: center; gap: 6px; }
.audio-state__dot { width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
.post-slide__body { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(27px, 4.4vw, 58px); }
.post-slide__meta { display: flex; gap: 7px; color: var(--accent); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.post-slide__body h3 { max-width: 350px; margin: 16px 0 11px; font-size: clamp(25px, 3vw, 38px); font-weight: 350; letter-spacing: -.05em; line-height: 1.05; }
.post-slide__body > p { max-width: 335px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 31px; }
.audio-toggle, .open-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 6px; font-size: 11px; transition: background .2s, border-color .2s, color .2s; }
.audio-toggle { border: 1px solid rgba(201, 165, 255, .48); background: rgba(201, 165, 255, .08); color: var(--accent); }
.audio-toggle:hover, .audio-toggle--enabled { border-color: var(--accent); background: rgba(201, 165, 255, .18); }
.audio-toggle--enabled { color: #eadcff; }
.open-link { border: 1px solid var(--line); color: var(--ink); }
.open-link:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.audio-note { margin-top: 17px !important; color: var(--subtle) !important; font-size: 10px !important; line-height: 1.55 !important; }
.carousel-controls { min-height: 64px; display: flex; align-items: center; gap: 17px; padding: 0 22px; border-top: 1px solid var(--border); }
.carousel-buttons { display: flex; gap: 6px; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; }
.icon-button:hover { border-color: var(--accent); color: var(--ink); }
.dots { display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--subtle); opacity: .5; }
.dot--active { width: 19px; border-radius: 4px; background: var(--accent); opacity: 1; }
.keyboard-hint { margin: 0 0 0 auto; color: var(--subtle); font-size: 10px; }
kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-right: 3px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; }
.privacy-banner { display: flex; align-items: flex-start; gap: 14px; margin-top: 27px; padding: 18px 20px; border: 1px solid rgba(201,165,255,.14); border-radius: 10px; background: rgba(201,165,255,.045); }
.privacy-banner-icon { color: var(--accent); font-size: 18px; }
.privacy-banner strong { font-size: 11px; font-weight: 600; }
.privacy-banner p { max-width: 590px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

@media (max-width: 800px) {
  .app-shell { display: block; }
  .sidebar { min-height: auto; padding: 17px 18px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav-list { display: flex; gap: 3px; margin: 17px -3px 0; overflow-x: auto; }
  .nav-link { padding: 8px 11px; white-space: nowrap; }
  .sidebar-footer { display: none; }
  .main-content { padding-inline: clamp(18px, 5vw, 40px); }
  .topbar { min-height: 65px; }
  .intro { grid-template-columns: 1fr; gap: 23px; padding: 47px 0 45px; }
  .intro-copy { max-width: 390px; margin: 0; }
  .post-slide { grid-template-columns: 1fr; }
  .post-art { min-height: 310px; }
  .slides { min-height: 0; }
  .post-slide__body { min-height: 295px; padding: 31px 27px 35px; }
}

@media (max-width: 480px) {
  .brand { padding-inline: 2px; }
  .topbar { gap: 10px; }
  .breadcrumbs span:nth-child(2), .breadcrumbs strong { display: none; }
  .session-pill { padding: 7px 8px; font-size: 9px; }
  .intro h1 { font-size: 42px; }
  .section-heading { align-items: start; flex-direction: column; gap: 11px; }
  .post-art { min-height: 270px; padding: 17px; }
  .post-slide__body { padding-inline: 20px; }
  .post-actions { align-items: stretch; flex-direction: column; }
  .audio-toggle, .open-link { width: 100%; }
  .carousel-controls { padding-inline: 15px; }
  .keyboard-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
