@font-face {
  font-family: Music Display;
  src: url("assets/font-display.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

@font-face {
  font-family: Music Sans;
  src: url("assets/font-body.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --body: Music Sans, Inter, system-ui, sans-serif;
  --display: Music Display, Music Sans, Inter, system-ui, sans-serif;
  --bg: #f8f7fa;
  --paper: #ffffff;
  --panel: #f6f4f8;
  --ink: #211a2b;
  --muted: #665d6d;
  --line: #e6e0e8;
  --line-strong: #d7cedc;
  --violet: #5935bd;
  --violet-hover: #4727a1;
  --violet-pale: #eee8fa;
  --orange: #9b451c;
  --orange-pale: #faeee7;
  --green: #386041;
  --green-pale: #eaf1e7;
  --yellow: #7a5511;
  --yellow-pale: #f9f1dc;
  --radius: 12px;
  --sidebar-width: 216px;
  --topbar-height: 68px;
  --gutter: 30px;
  --layout-gap: 24px;
  font: 16px / 1.5 var(--body);
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
#main:focus-visible { outline: none; }
::selection { color: #2e1957; background: #e4d9fb; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 7px;
  background: var(--violet);
  color: #fff;
  transform: translateY(calc(-100% - 15px));
}
.skip-link:focus { transform: none; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }

.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  gap: 34px;
  overflow-y: auto;
  padding: 22px 17px 16px;
  border-right: 1px solid var(--line);
  background: #fcfbfd;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.sidebar .brand { margin-inline: 7px; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 39px; object-fit: contain; }
.brand-wordmark { display: grid; gap: 2px; }
.brand strong { font: 740 1.18rem / 1 var(--display); letter-spacing: -.042em; }
.brand-caption { color: var(--muted); font-size: .625rem; font-weight: 730; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }

.side-nav { display: grid; gap: 4px; }
.nav-item, .user-button {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 620;
  text-align: left;
  text-decoration: none;
}
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover, .user-button:hover { background: var(--panel); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--violet-pale); color: var(--violet); font-weight: 720; }
.sidebar-footer { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.antenna-link { display: inline-flex; width: fit-content; align-items: center; gap: 7px; margin-left: 9px; color: var(--muted); font-size: .78rem; text-decoration: none; }
.antenna-link:hover { color: var(--violet); text-decoration: underline; }
.antenna-link .icon { width: 15px; height: 15px; }
.user-button { padding-inline: 7px; color: var(--ink); }
.user-button :is(strong, small) { display: block; }
.user-button small { margin-top: 1px; color: var(--muted); font-size: .75rem; font-weight: 470; }

.topbar {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  height: var(--topbar-height);
  margin-left: var(--sidebar-width);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #fcfbfdf4;
  backdrop-filter: blur(14px);
}
.mobile-brand { display: none; }
.search-trigger {
  display: flex;
  width: min(100%, 365px);
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: .875rem;
  text-align: left;
}
.search-trigger:hover { border-color: var(--line-strong); color: var(--ink); }
.search-trigger .icon { width: 17px; height: 17px; }
.search-trigger kbd { margin-left: auto; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--muted); font: .73rem var(--body); white-space: nowrap; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.topbar-actions .mobile-search { display: none; }
.button, .icon-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover, .icon-button:hover { border-color: var(--line-strong); background: var(--panel); }
.button .icon, .icon-button .icon { width: 17px; height: 17px; }
.icon-button { width: 39px; padding: 0; border-color: var(--line); background: var(--paper); color: var(--muted); }
.button-primary { border-color: var(--violet); background: var(--violet); color: #fff; }
.button-primary:hover { border-color: var(--violet-hover); background: var(--violet-hover); color: #fff; }
.button-quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-awards { border-color: #e8d8ae; background: var(--yellow-pale); color: var(--yellow); }
.button-awards:hover { border-color: #ceb67a; background: #f2e6c5; color: #62420b; }
.button-green { border-color: #d3e1d0; background: var(--green-pale); color: var(--green); }
.button-green:hover { border-color: #bdd0bb; background: #dce9d9; color: #315536; }

.layout {
  display: grid;
  max-width: 1236px;
  grid-template-columns: minmax(0, 1fr) minmax(248px, 278px);
  align-items: start;
  gap: var(--layout-gap);
  margin-left: var(--sidebar-width);
  padding: 27px var(--gutter) 52px;
}
#main, #right-rail { min-width: 0; }
#right-rail { display: grid; gap: 15px; }
.layout:has(> #right-rail[hidden]) { grid-template-columns: minmax(0, 1fr); }

.feed-intro { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.feed-intro h1, .page-heading h1 {
  color: var(--ink);
  font: 740 clamp(2.55rem, 4.3vw, 3.65rem) / .99 var(--display);
  letter-spacing: -.057em;
}
.feed-intro .feed-kicker { margin-bottom: 7px; color: var(--violet); font-size: .74rem; font-weight: 740; letter-spacing: .1em; text-transform: uppercase; }
.feed-intro .feed-description { margin-top: 7px; color: var(--muted); font-size: 1rem; }
.feed-intro-action { flex: 0 0 auto; }

.studio-composer {
  display: flex;
  width: 100%;
  min-height: 65px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}
button.studio-composer:hover { border-color: #c9b7e8; background: #fcfaff; }
.composer-prompt { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; color: var(--muted); font-size: .91rem; font-weight: 520; line-height: 1.28; }
.composer-prompt strong { color: var(--ink); font-size: .95rem; font-weight: 700; }
.composer-prompt :is(span, small) { font-size: .82rem; }
.composer-action {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #e3d7f5;
  border-radius: 7px;
  background: #f5f0fd;
  color: var(--violet);
  font-size: .79rem;
  font-weight: 710;
}
.composer-action .icon { width: 15px; height: 15px; }

.stories-section { margin-top: 21px; }
.section-heading, .feed-heading, .rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.section-heading { margin-bottom: 10px; }
.section-heading h2, .feed-heading h2, .rail-heading h2, .rail-heading h3 { color: var(--ink); font: 740 1.18rem / 1.24 var(--display); letter-spacing: -.031em; }
.section-heading > span { color: var(--muted); font-size: .79rem; }
.stories { display: flex; gap: clamp(13px, 2.2vw, 28px); overflow-x: auto; padding: 3px 3px 5px; scrollbar-color: #cfc1e1 transparent; scrollbar-width: thin; }
.story {
  display: flex;
  width: 72px;
  flex: 0 0 72px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
}
.story:hover { color: var(--violet); }
.story-ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 3px;
  border: 1px solid #c5b1e5;
  border-radius: 50%;
  background: var(--paper);
  color: var(--violet);
}
.story:hover .story-ring { border-color: var(--violet); }
.story-ring img { width: 100%; height: 100%; min-width: 0; border: 0; border-radius: 50%; object-fit: cover; }
.story-ring .icon { width: 19px; height: 19px; }
.story-ring.story-add { border-style: dashed; background: var(--violet-pale); }
.story-name { display: block; width: 100%; font-size: .77rem; font-weight: 620; line-height: 1.25; }

.feed-heading { margin: 21px 0 4px; }
.tabs, .filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.tabs { gap: 18px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.tab, .chip {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 5px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 620;
  white-space: nowrap;
}
.tab:hover, .chip:hover { color: var(--violet); }
.tab[aria-pressed="true"] { border-color: var(--violet); color: var(--violet); font-weight: 720; }
.tab:focus-visible { outline-offset: -2px; }
.filter-row { margin-bottom: 14px; padding: 3px; }
.chip { min-height: 35px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.chip[aria-pressed="true"] { border-color: #d9cced; background: var(--violet-pale); color: var(--violet); }

.feed { display: grid; gap: 15px; }
.post, .profile-card, .category-card, .artist-card, .room-list, .conversation, .rail-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.post { padding: 15px; }
.post-head, .person, .post-actions { display: flex; align-items: center; }
.post-head { justify-content: space-between; gap: 8px; }
.person { min-width: 0; gap: 9px; padding: 0; border: 0; background: transparent; text-align: left; text-decoration: none; }
.person:hover strong { color: var(--violet); }
.person-meta { display: grid; min-width: 0; gap: 2px; line-height: 1.22; overflow-wrap: anywhere; }
.person-meta strong { font-size: .91rem; font-weight: 720; }
.person-meta :is(small, span) { color: var(--muted); font-size: .78rem; }
.avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-pale);
  color: var(--violet);
  object-fit: cover;
  font-size: .84rem;
  font-weight: 760;
}
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.post-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: var(--violet-pale); color: var(--violet); font-size: .74rem; font-weight: 690; line-height: 1.24; }
.post-badge.orange { background: var(--orange-pale); color: var(--orange); }
.post-badge.green { background: var(--green-pale); color: var(--green); }
.post-text { margin: 11px 0 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-image { width: 100%; max-height: 460px; aspect-ratio: 16 / 8.6; border-radius: 8px; background: var(--panel); object-fit: cover; }
.audio-bar { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 10px; border: 1px solid #e9e1f1; border-radius: 8px; background: #f8f5fb; color: var(--ink); }
.audio-bar + .post-image { margin-top: 10px; }
.audio-play { width: 34px; min-height: 34px; flex: 0 0 34px; border: 0; border-radius: 50%; background: var(--violet); color: #fff; }
.audio-play:hover { border: 0; background: var(--violet-hover); color: #fff; }
.audio-title { display: grid; flex: 0 0 auto; gap: 1px; line-height: 1.2; }
.audio-title strong { font-size: .86rem; }
.audio-title small { color: var(--muted); font-size: .74rem; }
.audio-wave { display: flex; min-width: 0; flex: 1; align-items: center; gap: clamp(2px, .6vw, 7px); overflow: hidden; padding-inline: 5px; }
.audio-wave i { width: 4px; min-width: 2px; max-width: 7px; height: var(--bar, 15px); flex: 1 1 4px; border-radius: 4px; background: #ad97dd; opacity: .8; }
.audio-wave i:nth-child(n+15) { opacity: .55; }
.audio-bar.is-playing .audio-wave i { animation: rhythm .78s ease-in-out alternate infinite; background: var(--violet); }
.audio-bar.is-playing .audio-wave i:nth-child(3n) { animation-delay: -.43s; }
.audio-bar.is-playing .audio-wave i:nth-child(3n+1) { animation-delay: -.22s; }
@keyframes rhythm { from { transform: scaleY(.43); } to { transform: scaleY(1); } }
.post-actions { flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.post-action { display: inline-flex; min-width: 35px; min-height: 37px; align-items: center; justify-content: center; gap: 5px; padding: 4px 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: .84rem; }
.post-action:hover { border-color: var(--line); background: var(--panel); color: var(--ink); }
.post-action[aria-pressed="true"] { color: var(--violet); }
.post-action[aria-pressed="true"] .icon { fill: currentColor; }
.post-action .icon { width: 18px; height: 18px; }
.post-action:last-child { margin-left: auto; }
.comments { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.comments p { color: var(--muted); font-size: .9rem; line-height: 1.42; overflow-wrap: anywhere; }
.comments p strong { color: var(--ink); }
.inline-form { display: flex; gap: 7px; }
.inline-form :is(input, textarea) { min-width: 0; flex: 1; }

.rail-card { padding: 15px; }
.rail-heading { margin-bottom: 8px; }
.rail-heading h2, .rail-heading h3 { font-size: 1.04rem; }
.rail-link { display: inline-flex; min-height: 25px; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: var(--violet); font-size: .78rem; font-weight: 690; text-decoration: none; }
.rail-link:hover { text-decoration: underline; }
.rail-link .icon { width: 13px; height: 13px; }
.rail-list { display: grid; }
.rail-row { display: flex; width: 100%; min-width: 0; min-height: 52px; align-items: center; gap: 8px; padding: 5px 0; border: 0; border-radius: 6px; background: transparent; text-align: left; text-decoration: none; }
.rail-row + .rail-row { border-top: 1px solid var(--line); border-radius: 0; }
.rail-row:hover .row-meta strong { color: var(--violet); }
.rail-row > .icon:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.row-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 7px; background: var(--violet-pale); color: var(--violet); }
.row-icon .icon { width: 17px; height: 17px; }
.row-icon.green { background: var(--green-pale); color: var(--green); }
.row-icon.antenna-icon { background: var(--orange-pale); color: var(--orange); }
.row-meta { display: grid; min-width: 0; flex: 1; gap: 2px; line-height: 1.22; }
.row-meta strong { font-size: .85rem; font-weight: 700; }
.row-meta :is(small, span) { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.rail-footer { padding-inline: 1px; color: var(--muted); font-size: .74rem; }

.awards-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 16px; border-color: #e8ddc6; background: #fffcf6; }
.awards-orbit { display: none; }
.awards-symbol { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 8px; background: var(--yellow-pale); color: var(--yellow); }
.awards-symbol .icon { width: 19px; height: 19px; }
.eyebrow { display: inline-flex; align-items: center; gap: 5px; color: var(--violet); font-size: .72rem; font-weight: 740; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.eyebrow .icon { width: 12px; height: 12px; }
.awards-card .eyebrow { color: var(--yellow); }
.awards-card h2 { color: var(--ink); font: 740 1.38rem / 1.13 var(--display); letter-spacing: -.04em; }
.awards-card p { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.awards-card .button { min-height: 35px; margin-top: 3px; }
.antenna-card { display: flex; align-items: center; gap: 10px; }
.antenna-card h2 { font: 740 1.04rem / 1.2 var(--display); letter-spacing: -.02em; }
.bottom-nav { display: none; }

.feed-section { margin-top: 15px; }
.discovery-card .rail-row .avatar { width: 34px; height: 34px; flex-basis: 34px; }

.page-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.page-heading h1 { font-size: clamp(2.35rem, 4vw, 3.4rem); }
.page-heading p { max-width: 58ch; margin-top: 7px; color: var(--muted); line-height: 1.5; }
.page-symbol { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; margin-top: 4px; border-radius: 9px; background: var(--violet-pale); color: var(--violet); }
.page-symbol.green { background: var(--green-pale); color: var(--green); }
.page-symbol.yellow { background: var(--yellow-pale); color: var(--yellow); }
.page-symbol.orange { background: var(--orange-pale); color: var(--orange); }
.artist-grid, .category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr)); gap: 13px; }
.artist-card { display: flex; flex-direction: column; }
.artist-cover { position: relative; display: block; height: clamp(150px, 19vw, 213px); overflow: hidden; background: var(--panel); }
.artist-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; transition: transform .2s ease; }
.artist-cover:hover img { transform: scale(1.035); }
.artist-cover .post-badge { position: absolute; bottom: 8px; left: 8px; }
.artist-info { display: flex; height: 100%; flex-direction: column; padding: 13px; }
.artist-info h2, .category-card h2 { font: 740 1.18rem / 1.16 var(--display); letter-spacing: -.033em; }
.artist-info h2 a { text-decoration: none; }
.artist-info h2 a:hover { color: var(--violet); }
.artist-info p, .category-card header p, .profile-card p { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.42; overflow-wrap: anywhere; }
.artist-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.artist-info .artist-actions { margin-top: auto; padding-top: 11px; }

.profile-card { display: flex; align-items: flex-start; gap: 13px; margin: 4px 0 15px; padding: 18px; }
.profile-card h1 { font: 750 clamp(1.65rem, 4.5vw, 2.75rem) / 1.04 var(--display); letter-spacing: -.041em; overflow-wrap: anywhere; }
.profile-avatar { width: 65px; height: 65px; flex-basis: 65px; font-size: 1.25rem; }

.category-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-color: #e8dfd0; }
.category-card > header { display: grid; flex: 1; align-content: start; gap: 8px; }
.category-card .page-symbol { width: 36px; height: 36px; margin: 0; border-radius: 7px; }
.category-card .page-symbol .icon { width: 19px; height: 19px; }
.nominee-row { display: flex; min-width: 0; min-height: 45px; align-items: center; gap: 7px; padding: 5px 0; border-top: 1px solid var(--line); }
.nominee-row .avatar { width: 31px; height: 31px; flex-basis: 31px; }
.nominee-row .button { min-height: 30px; margin-left: auto; padding: 4px 7px; border-radius: 6px; font-size: .75rem; }
.nominee-row .button .icon { width: 14px; height: 14px; }

.room-layout { display: grid; grid-template-columns: minmax(155px, 215px) minmax(0, 1fr); gap: 11px; }
.room-list { align-self: start; padding: 5px; }
.room-button { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 7px; padding: 6px; border: 1px solid transparent; border-radius: 7px; text-align: left; text-decoration: none; }
.room-button:hover { background: var(--panel); }
.room-button[aria-current="page"] { border-color: #dcd0ed; background: var(--violet-pale); color: var(--violet); }
.conversation { display: flex; min-height: 370px; flex-direction: column; }
.conversation-head { display: grid; gap: 2px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.conversation-head h2 { font: 740 1.13rem / 1.2 var(--display); letter-spacing: -.024em; }
.conversation-head p { color: var(--muted); font-size: .82rem; }
.messages { display: flex; min-height: 220px; max-height: 52vh; flex: 1; flex-direction: column; gap: 8px; overflow-y: auto; padding: 12px; }
.message-bubble { align-self: flex-start; max-width: min(94%, 51ch); padding: 8px 10px; border-radius: 9px 9px 9px 3px; background: var(--panel); color: var(--ink); font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.message-bubble.own { align-self: flex-end; border-radius: 9px 9px 3px 9px; background: var(--violet-pale); }
.message-bubble > div { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.message-bubble :is(time, small) { color: var(--muted); font-size: .74rem; }
.conversation > .inline-form { padding: 8px; border-top: 1px solid var(--line); }

.dialog { width: min(calc(100% - 28px), 480px); max-height: 88vh; overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 65px #211a2b34; }
.dialog::backdrop { background: #22182b60; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font: 750 1.35rem / 1.15 var(--display); letter-spacing: -.033em; }
.dialog-body { padding: 14px 15px; }
.dialog-body > :is(img, video) { width: 100%; max-height: 45vh; border-radius: 8px; object-fit: cover; }
.dialog-body .story-preview { object-position: 50% 37%; }
.dialog-body > p { margin-top: 7px; color: var(--muted); line-height: 1.45; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.form-stack { display: grid; gap: 10px; }
.form-stack .dialog-actions { margin-top: 3px; }
.form-note { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.field { display: grid; gap: 5px; color: var(--ink); font-size: .89rem; font-weight: 650; }
.search-results { display: grid; margin-top: 9px; }
:is(input, select, textarea) { width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 450; }
:is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 101px; resize: vertical; }
input::file-selector-button { margin-right: 7px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--panel); color: var(--ink); cursor: pointer; }

.empty { padding: 15px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--ink); line-height: 1.4; text-align: center; }
.empty p { margin-top: 4px; color: var(--muted); }
.toast { position: fixed; z-index: 8; right: 18px; bottom: 18px; max-width: min(calc(100% - 35px), 380px); padding: 9px 12px; border: 1px solid #cbdccd; border-radius: 8px; background: #f2f7f1; color: var(--green); font-size: .87rem; font-weight: 680; box-shadow: 0 8px 25px #211a2b1a; }
.toast:empty { display: none; }

@media (min-width: 1452px) {
  .layout { margin-inline: auto; transform: translateX(calc(var(--sidebar-width) / 2)); }
  .topbar { padding-inline: calc(var(--gutter) + (100vw - var(--sidebar-width) - 1236px) / 2); }
}

@media (max-width: 1170px) {
  :root { --sidebar-width: 187px; --gutter: 22px; --layout-gap: 17px; }
  .sidebar { padding-inline: 12px; }
}

@media (max-width: 990px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  #right-rail { display: none; }
}

@media (max-width: 720px) {
  :root { --sidebar-width: 0px; --topbar-height: 57px; --gutter: 14px; }
  .sidebar, .topbar .search-trigger, .topbar-actions .top-publish { display: none; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .mobile-brand strong { font-size: 1.1rem; }
  .topbar { gap: 7px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .mobile-search { display: inline-flex; }
  .topbar-actions .icon-button { width: 36px; min-height: 36px; }
  .layout { padding: 18px var(--gutter) calc(76px + env(safe-area-inset-bottom)); }
  .feed-intro { gap: 8px; margin-bottom: 14px; }
  .feed-intro h1, .page-heading h1 { font-size: clamp(2.12rem, 10vw, 2.8rem); }
  .feed-intro .feed-description { margin-top: 4px; font-size: .94rem; }
  .feed-intro-action { display: none; }
  .studio-composer { min-height: 55px; gap: 8px; padding: 7px 9px; }
  .composer-avatar .avatar { width: 34px; height: 34px; }
  .composer-prompt { font-size: .85rem; }
  .composer-action { min-height: 30px; gap: 4px; padding: 5px 7px; }
  .stories-section { margin-top: 16px; }
  .section-heading { margin-bottom: 7px; }
  .section-heading h2, .feed-heading h2 { font-size: 1.1rem; }
  .section-heading > span { font-size: .73rem; }
  .stories { gap: 7px; }
  .story { width: 58px; flex-basis: 58px; }
  .story-ring { width: 49px; height: 49px; }
  .story-name { font-size: .74rem; }
  .feed-heading { margin-top: 16px; }
  .feed-section { margin-top: 12px; }
  .tabs { gap: 15px; margin-bottom: 10px; }
  .tabs, .stories, .room-list { scrollbar-width: none; }
  .tab { font-size: .81rem; }
  .post { padding: 11px; }
  .post-text { margin-top: 9px; }
  .bottom-nav { position: fixed; z-index: 5; inset: auto 0 0; display: flex; min-height: calc(58px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-around; padding: 3px 4px calc(3px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffefdF5; backdrop-filter: blur(12px); }
  .mobile-nav-item { display: flex; min-width: 43px; min-height: 45px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 3px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .65rem; font-weight: 650; line-height: 1; text-align: center; text-decoration: none; }
  .mobile-nav-item[aria-current="page"] { color: var(--violet); font-weight: 780; }
  .mobile-nav-item .icon { width: 19px; height: 19px; }
  .mobile-nav-item.nav-create { width: 39px; min-width: 39px; min-height: 39px; background: var(--violet); color: #fff; }
  .mobile-nav-item.nav-create .icon { width: 21px; height: 21px; }
  .mobile-nav-item.nav-create span { display: none; }
  .page-heading { gap: 9px; margin-bottom: 13px; }
  .page-heading p { font-size: .91rem; }
  .page-symbol { width: 37px; height: 37px; flex-basis: 37px; }
  .room-layout { grid-template-columns: minmax(0, 1fr); }
  .room-list { display: flex; gap: 4px; overflow-x: auto; }
  .room-button { width: max-content; max-width: 171px; flex: 0 0 auto; }
  .toast { right: 11px; bottom: calc(66px + env(safe-area-inset-bottom)); }
}

@media (max-width: 355px) {
  .tab { font-size: .77rem; }
  .tabs { gap: 11px; }
  .story { width: 53px; flex-basis: 53px; }
  .stories { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
