@import url("/shared/upgrade-button.css");

:root {
  color-scheme: dark;
  --paper: #070817;
  --ink: #f8f8ff;
  --muted: #a9b0c7;
  --line: #283252;
  --accent: #8b5cf6;
  --accent-deep: #6d4bff;
  --cyan: #14d3ca;
  --panel: #10152a;
  --panel-strong: #141a31;
  --max: 1760px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.community-seo-fallback { margin-block: 18px; }
.community-seo-fallback h2 { margin: 14px 0 8px; color: #f5f4ff; font-size: clamp(22px, 3vw, 30px); }
.community-seo-fallback p { color: #c4cbe0; line-height: 1.65; }
.community-seo-fallback .post-tagline { color: #edf0ff; font-weight: 700; }
.community-seo-fallback .community-seo-author { color: #8f9bb8; font-size: 13px; }
.community-seo-fallback > .post-inner > a { display: inline-flex; min-height: 40px; align-items: center; border: 1px solid rgba(20,211,202,.38); border-radius: 999px; padding: 0 16px; color: #a8f4eb; text-decoration: none; }
.community-seo-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; margin-top: 16px; }
.community-seo-images img { display: block; width: 100%; max-height: 370px; border: 1px solid rgba(126,142,182,.18); border-radius: 13px; object-fit: contain; background: rgba(4,7,18,.5); }

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(139, 92, 246, .34), transparent 34%),
    radial-gradient(circle at 10% 18%, rgba(20, 211, 202, .16), transparent 30%),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  content: "";
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.community-icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.copy-toast { position: fixed; z-index: 1000; top: max(18px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 9px; transform: translate(-50%, -12px); border: 1px solid rgba(20, 211, 202, .34); border-radius: 999px; padding: 11px 17px; background: linear-gradient(135deg, rgba(16, 28, 48, .98), rgba(18, 20, 43, .98)); box-shadow: 0 12px 36px rgba(0, 0, 0, .36), 0 0 24px rgba(20, 211, 202, .12); color: #e9fffb; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; white-space: nowrap; }
.copy-toast[hidden] { display: none; }
.copy-toast.visible { transform: translate(-50%, 0); opacity: 1; }
.copy-toast svg { width: 18px; height: 18px; color: var(--cyan); }
.copy-toast.is-loading svg { display: none; }
.copy-toast.is-loading::before { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid rgba(233,255,251,.24); border-top-color: var(--cyan); border-radius: 50%; content: ""; animation: account-avatar-spin .72s linear infinite; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(var(--max), calc(100% - clamp(32px, 5vw, 64px)));
  height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
}
.site-header::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-bottom: 1px solid rgba(91, 126, 175, .3); background: radial-gradient(ellipse at 18% 0%, rgba(20, 211, 202, .1), transparent 48%), radial-gradient(ellipse at 82% 0%, rgba(139, 92, 246, .16), transparent 50%), linear-gradient(105deg, #071426 0%, #0a1023 54%, #11112d 100%); content: ""; }
.brand { display: inline-flex; min-width: max-content; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand img { border-radius: 12px; object-fit: cover; }
.brand img { width: 38px; height: 38px; }
.site-nav { position: absolute; left: 50%; display: flex; align-items: center; gap: 26px; transform: translateX(-50%); color: var(--muted); font-size: 14px; font-weight: 650; }
.site-nav a { position: relative; padding: 8px 0; text-decoration: none; transition: color .18s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--cyan); }
.site-nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--accent)); content: ""; }
.account-area { position: relative; display: flex; min-width: max-content; align-items: center; justify-content: flex-end; gap: 16px; }
.notification-button { position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 0; border-radius: 0; padding: 4px; background: transparent; color: #d1d7e8; cursor: pointer; transition: color .18s ease, filter .18s ease, transform .18s ease; }
.notification-button[hidden] { display: none; }
.notification-button:hover, .notification-button[aria-expanded="true"] { transform: translateY(-1px); color: #9ff2e7; filter: drop-shadow(0 0 9px rgba(20,211,202,.48)); }
.notification-button .community-icon { width: 26px; height: 26px; }
.notification-badge { position: absolute; top: -4px; right: -5px; display: grid; min-width: 17px; height: 17px; place-items: center; border: 2px solid #0a1023; border-radius: 999px; padding: 0 3px; background: #e85d82; color: #fff; font-size: 9px; font-weight: 800; line-height: 1; }
.notification-badge[hidden] { display: none; }
.notifications-panel { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: min(430px, calc(100vw - 24px)); max-height: min(650px, calc(100vh - 100px)); overflow: hidden; border: 1px solid rgba(126,142,182,.24); border-radius: 22px; padding: 21px; background: linear-gradient(155deg, rgba(17,22,43,.99), rgba(9,13,29,.99)); box-shadow: 0 22px 64px rgba(0,0,0,.48), inset 0 1px 0 rgba(205,225,255,.045); color: var(--ink); }
.notifications-panel[hidden] { display: none; }
.notifications-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 2px 14px; border-bottom: 1px solid rgba(126,142,182,.16); }
.notifications-panel-heading .section-kicker { margin: 0 0 3px; color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.notifications-panel-heading h2 { margin: 0; font-family: Newsreader, Georgia, serif; font-size: 29px; font-weight: 600; line-height: 1.1; }
.notifications-mark-read { border: 0; padding: 8px 0 8px 10px; background: transparent; color: #a9b0c7; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; }
.notifications-mark-read:hover:not(:disabled) { color: #9ff2e7; }
.notifications-mark-read:disabled { cursor: default; opacity: .48; }
.notifications-panel-state { margin: 0; padding: 40px 16px; color: #9da7c1; font-size: 14px; line-height: 1.65; text-align: center; }
.notifications-list { display: grid; max-height: min(500px, calc(75vh - 100px)); gap: 8px; overflow-y: auto; margin: 0; padding: 13px 0 0; list-style: none; }
.notifications-list:empty { display: none; }
.notification-item { display: flex; width: 100%; align-items: flex-start; gap: 13px; border: 1px solid transparent; border-radius: 15px; padding: 14px; background: transparent; color: inherit; cursor: pointer; text-align: left; transition: border-color .16s ease, background .16s ease; }
.notification-item { flex-wrap: wrap; cursor: default; }
.notification-open { display: flex; min-width: 0; flex: 1 1 100%; align-items: flex-start; gap: 13px; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.notification-actor-link { margin: 0 0 0 44px; color: #91e9df; font-size: 10px; font-weight: 700; text-decoration: none; }
.notification-actor-link:hover { color: #c1fff8; text-decoration: underline; }
.notification-item:hover { border-color: rgba(126,142,182,.16); background: rgba(255,255,255,.045); }
.notification-item.unread { border-color: rgba(20,211,202,.14); background: rgba(20,211,202,.055); }
.notification-kind-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; background: rgba(139,92,246,.14); color: #c7b2ff; }
.notification-kind-icon .community-icon { width: 21px; height: 21px; }
.notification-item-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.notification-item-copy strong { color: #edf0fc; font-size: 13px; font-weight: 750; line-height: 1.4; }
.notification-item-copy span { color: #aab2c8; font-size: 12px; line-height: 1.5; }
.notification-item-copy time { margin-top: 3px; color: #808ba5; font-size: 10px; }
.notification-unread-dot { width: 7px; height: 7px; flex: 0 0 7px; align-self: center; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(20,211,202,.5); }
.avatar-button { min-height: 48px; border: 0; border-radius: 999px; padding: 0 20px; background: linear-gradient(120deg, var(--accent), var(--accent-deep)); box-shadow: 0 14px 34px rgba(139, 92, 246, .32); color: #fff; cursor: pointer; font-size: 14px; font-weight: 800; text-decoration: none!important; transition: transform .18s ease, box-shadow .18s ease; }
.avatar-button:hover,.avatar-button:focus-visible { text-decoration: none!important; }
.avatar-button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(139, 92, 246, .46); }
.avatar-button.auth-pending { display: grid; width: 40px; height: 40px; min-height: 40px; place-items: center; overflow: hidden; padding: 0; border-radius: 50%; cursor: progress; }
.avatar-button.signed-in { width: 40px; height: 40px; min-height: 40px; overflow: hidden; padding: 0; border-color: rgba(20, 211, 202, .55); border-radius: 50%; background: #182139; }
.avatar-button img { display: block; width: 100%; height: 100%; background-color: #182139; object-fit: cover; object-position: center; opacity: 1; filter: none; mix-blend-mode: normal; }
.account-avatar-placeholder { width: 21px; height: 21px; color: #ddd5ff; }
.account-menu-avatar .account-avatar-placeholder { width: 24px; height: 24px; color: #eeeaff; }
.account-menu { position: absolute; z-index: 40; top: calc(100% + 12px); right: 0; display: grid; width: min(310px, calc(100vw - 24px)); overflow: hidden; border: 1px solid rgba(126,142,182,.25); border-radius: 18px; padding: 8px; background: linear-gradient(155deg, rgba(17,22,43,.99), rgba(9,13,29,.99)); box-shadow: 0 22px 64px rgba(0,0,0,.48); }
.account-menu[hidden] { display: none; }
.account-menu-identity { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 11px 10px 14px; border-bottom: 1px solid rgba(126,142,182,.17); }
.account-menu-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; place-items: center; border: 1px solid rgba(20,211,202,.5); border-radius: 50%; background: linear-gradient(135deg, #6243c8, #087a82); color: #fff; font-size: 14px; font-weight: 800; }
.account-menu-avatar img { display: block; width: 100%; height: 100%; background-color: #182139; object-fit: cover; object-position: center; opacity: 1; filter: none; mix-blend-mode: normal; }
.account-avatar-loading { display: block; width: 18px; height: 18px; border: 2px solid rgba(207,219,245,.24); border-top-color: #a4f4eb; border-right-color: #bda7ff; border-radius: 50%; animation: account-avatar-spin .72s linear infinite; }
.avatar-button .account-avatar-loading { width: 20px; height: 20px; border-width: 2px; }
@keyframes account-avatar-spin { to { transform: rotate(360deg); } }
.account-menu-identity-copy { display: grid; min-width: 0; gap: 3px; }
.account-menu-identity strong { overflow: hidden; color: #f4f3ff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-identity-copy > span { overflow: hidden; color: #929cb5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-item { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; border: 0; border-radius: 11px; padding: 9px 11px; background: transparent; color: #d7dbee; cursor: pointer; font-size: 12px; font-weight: 650; text-align: left; text-decoration: none; }
.account-menu-item:hover:not([aria-disabled="true"]) { background: rgba(255,255,255,.055); color: #9ff2e7; }
.account-menu-item .community-icon { width: 18px; height: 18px; color: #9da8c2; }
.account-menu-item span { display: grid; }
.account-menu-item small { margin-top: 2px; color: #7e89a4; font-size: 9px; font-weight: 500; }
.account-menu-coming { cursor: default; opacity: .58; }
.account-menu-divider { height: 1px; margin: 5px 4px; background: rgba(126,142,182,.17); }
.account-menu-signout { color: #ffb5c3; }
.account-menu-signout .community-icon { color: #ef8fa4; }

.page-shell { width: min(var(--max), calc(100% - clamp(32px, 5vw, 64px))); margin: 0 auto; }
.community-intro { position: relative; display: flex; min-height: 285px; align-items: center; justify-content: space-between; overflow: hidden; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(139, 92, 246, .38); border-radius: 32px; margin-top: 18px; background: radial-gradient(circle at 12% 12%, rgba(20, 211, 202, .12), transparent 34%), radial-gradient(circle at 92% 82%, rgba(139, 92, 246, .2), transparent 34%), linear-gradient(145deg, rgba(20, 25, 48, .94), rgba(10, 14, 28, .96)); box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }
.app-dialog.welcome-dialog { width: min(calc(100% - 40px), 1180px); border: 0; padding: 0; background: transparent; box-shadow: none; }
.welcome-dialog .community-intro { min-height: 620px; margin: 0; }
.welcome-actions { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.welcome-actions .primary-button { width: auto; min-width: 235px; padding: 0 20px; }
.welcome-sign-in { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(126,142,182,.35); border-radius: 12px; padding: 0 20px; background: rgba(255,255,255,.035); color: #e2e5f2; cursor: pointer; font-size: 12px; font-weight: 750; }
.welcome-sign-in:hover { border-color: rgba(20,184,166,.55); background: rgba(20,184,166,.1); color: #9ff2e7; }
.guidelines-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guideline-group h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #8fe9df; font-size: 11px; font-weight: 800; }
.guideline-group h4 span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: rgba(20,184,166,.15); color: #8fe9df; font-size: 11px; }
.guideline-group.avoid h4 { color: #d4c2ff; }
.guideline-group.avoid h4 span { background: rgba(139,92,246,.15); color: #d4c2ff; }
.guideline-group ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.guideline-group li { position: relative; padding-left: 13px; color: #b3bbcf; font-size: 10px; line-height: 1.5; }
.guideline-group li::before { position: absolute; top: .55em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: rgba(20,184,166,.8); content: ""; }
.guideline-group.avoid li::before { background: rgba(173,146,255,.8); }
.guidelines-note { margin: 12px 0 0; color: #8d97b2; font-size: 9px; line-height: 1.5; }
.welcome-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.welcome-capabilities article { display: flex; min-width: 0; align-items: flex-start; gap: 10px; border: 1px solid rgba(126,142,182,.18); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.025); }
.capability-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 13px; background: rgba(139,92,246,.14); color: #c5aeff; }
.capability-icon .community-icon { width: 25px; height: 25px; }
.welcome-capabilities article:nth-child(2) .capability-icon, .welcome-capabilities article:nth-child(4) .capability-icon { background: rgba(20,184,166,.12); color: #82e4da; }
.welcome-capabilities h3 { margin: 0; color: #f1f0ff; font-size: 11px; font-weight: 750; line-height: 1.4; }
.welcome-capabilities p { margin: 4px 0 0; color: #aab2c8; font-size: 10px; line-height: 1.5; }
.welcome-promo { display: flex; align-items: flex-start; gap: 11px; margin: 14px 0 0; border: 1px solid rgba(20,184,166,.25); border-radius: 14px; padding: 12px 14px; background: linear-gradient(110deg, rgba(20,184,166,.1), rgba(139,92,246,.08)); }
.promo-spark { color: #73e0d5; }
.promo-spark .community-icon { width: 22px; height: 22px; }
.welcome-promo p { margin: 0; color: #b9c2d7; font-size: 10px; line-height: 1.55; }
.welcome-promo strong { color: #a1f0e7; }
.guidelines-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; border: 0; padding: 2px 0; background: transparent; color: #bca7ff; cursor: pointer; font-size: 10px; font-weight: 750; }
.guidelines-link:hover { color: #d8cbff; text-decoration: underline; }
.guidelines-dialog { width: min(calc(100% - 28px), 560px); }
.guidelines-dialog .guidelines-grid { margin-top: 14px; }
.guidelines-dialog .guideline-group { border: 1px solid rgba(126,142,182,.18); border-radius: 14px; padding: 14px; background: rgba(7,10,25,.45); }
.guidelines-dialog .guideline-group li { font-size: 11px; }
.guidelines-dialog .guidelines-note { font-size: 10px; }
.guidelines-agreement-note { margin: 14px 0 0; color: #c9d0e4; font-size: 12px; line-height: 1.55; }
.guidelines-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.guidelines-actions[hidden], .guidelines-agreement-note[hidden] { display: none; }
.guidelines-actions button { width: auto; min-width: 118px; min-height: 42px; padding: 0 16px; font-size: 12px; }
.guidelines-actions .secondary-button { border: 1px solid rgba(126,142,182,.28); border-radius: 12px; background: rgba(255,255,255,.035); color: #d3daec; cursor: pointer; font-weight: 750; }
.guidelines-actions .secondary-button:hover { border-color: rgba(25,215,207,.4); background: rgba(25,215,207,.08); }
.community-intro::after { position: absolute; top: -180px; right: 7%; width: 400px; height: 400px; border-radius: 50%; background: rgba(139, 92, 246, .14); filter: blur(70px); content: ""; }
.intro-copy { position: relative; z-index: 1; max-width: 650px; flex: 1 1 auto; min-width: 0; }
.eyebrow, .section-kicker { margin: 0; color: var(--cyan); font-size: 13px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px rgba(20, 211, 202, .8); }
.community-intro h1 { max-width: 760px; margin: 17px 0 16px; font-family: Newsreader, Georgia, serif; font-size: clamp(48px, 5.5vw, 72px); font-weight: 650; letter-spacing: 0; line-height: .96; }
.community-intro h2 { max-width: 760px; margin: 17px 0 16px; font-family: Newsreader, Georgia, serif; font-size: clamp(48px, 5.5vw, 72px); font-weight: 650; letter-spacing: 0; line-height: .96; }
.app-dialog .community-intro h2 { max-width: 560px; font-size: clamp(50px, 6vw, 74px); }
.community-intro h1 span { color: #bda7ff; font-weight: 500; font-style: italic; }
.community-intro h2 span { color: #bda7ff; font-weight: 500; font-style: italic; }
.intro-text { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }
.intro-art { position: relative; z-index: 1; width: min(21vw, 230px); height: 244px; flex: 0 0 min(21vw, 230px); overflow: hidden; border: 7px solid rgba(5, 8, 18, .88); border-radius: 28px; margin: 0 18px 0 28px; background: #101522; box-shadow: 0 24px 60px rgba(0,0,0,.38); transform: rotate(2deg); }
.welcome-dialog .intro-art { width: min(31vw, 360px); height: 500px; flex: 0 0 min(31vw, 360px); overflow: visible; border: 0; margin-right: 4px; background: transparent; box-shadow: none; transform: none; }
.welcome-dialog .intro-art img { object-fit: cover; object-position: center; }
.intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.intent-card { display: flex; min-height: 89px; align-items: center; gap: 13px; padding: 16px 17px; border: 1px solid rgba(126, 142, 182, .2); border-radius: 19px; background: rgba(16, 21, 42, .86); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.intent-card:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .56); background: #141a31; }
.intent-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; }
.intent-icon .community-icon { width: 26px; height: 26px; }
.intent-wish .intent-icon { background: rgba(139, 92, 246, .15); color: #c6aaff; }
.intent-build .intent-icon { background: rgba(20, 211, 202, .12); color: #61e7df; }
.intent-talk .intent-icon { background: rgba(247, 185, 91, .12); color: #ffc778; }
.intent-copy { min-width: 0; flex: 1; }
.intent-copy strong, .intent-copy small { display: block; }
.intent-copy strong { font-size: 12px; font-weight: 750; letter-spacing: -.01em; }
.intent-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.intent-arrow { align-self: flex-start; color: #858daa; font-size: 15px; }

.community-layout { display: block; margin: 50px 0 64px; }
.feed-column { width: min(100%, 920px); min-width: 0; margin: 0 auto; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.feed-heading-actions { display: flex; align-items: center; gap: 13px; }
.feed-title-row { display: flex; min-width: 0; align-items: center; gap: 12px; }
.community-globe-icon { display: block; width: clamp(36px, 3.8vw, 46px); height: auto; flex: 0 0 clamp(36px, 3.8vw, 46px); filter: drop-shadow(0 0 12px rgba(20,211,202,.12)); }
.create-post-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(139,92,246,.36); border-radius: 999px; padding: 0 17px; background: linear-gradient(115deg, rgba(139,92,246,.24), rgba(77,134,234,.16)); color: #f0eaff; cursor: pointer; font-size: 12px; font-weight: 750; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.create-post-button .community-icon { width: 17px; height: 17px; color: #c7b2ff; }
.create-post-button:hover { transform: translateY(-1px); border-color: rgba(20,184,166,.6); background: linear-gradient(115deg, rgba(139,92,246,.35), rgba(77,134,234,.23)); }
.feed-heading h2 { margin: 5px 0 0; font-family: Newsreader, Georgia, serif; font-size: clamp(34px, 4vw, 48px); font-weight: 650; letter-spacing: 0; line-height: 1; }
.feed-heading h1 { margin: 5px 0 0; font-family: Newsreader, Georgia, serif; font-size: clamp(34px, 4vw, 48px); font-weight: 650; letter-spacing: 0; line-height: 1; }
.feed-heading .section-kicker { color: var(--cyan); font-size: 11px; letter-spacing: .11em; }
.feed-live { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 2px; color: #a9b0c7; font-size: 10px; }
.feed-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px rgba(20,211,202,.7); }
.search-bar { display: flex; height: 50px; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid rgba(126, 142, 182, .24); border-radius: 15px; background: rgba(16,21,42,.88); }
.search-sort-row { display: flex; min-width: 0; align-items: center; gap: 12px; }
.search-suggestions-shell { position: relative; min-width: 0; flex: 1 1 auto; }
.search-suggestions-shell .search-bar { width: 100%; }
.entity-search-results { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; width: 100%; max-height: min(65vh, 520px); overflow: auto; border: 1px solid rgba(126,142,182,.24); border-radius: 16px; padding: 10px; background: #10162b; box-shadow: 0 22px 64px rgba(0,0,0,.48); }
.entity-search-results[hidden] { display: none; }
.entity-search-results section + section { margin-top: 10px; border-top: 1px solid rgba(126,142,182,.16); padding-top: 9px; }
.entity-search-results h3 { margin: 3px 8px 5px; color: #8e9ab6; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.entity-search-result { display: flex; width: 100%; min-width: 0; align-items: center; gap: 11px; border: 0; border-radius: 10px; padding: 9px; background: transparent; color: #eef2ff; cursor: pointer; text-align: left; }
.entity-search-result:hover { background: rgba(255,255,255,.055); }
.entity-search-result > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.entity-search-result strong, .entity-search-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-search-result strong { font-size: 12px; }
.entity-search-result small { color: #9ba6c0; font-size: 10px; }
.entity-search-kind { border: 1px solid rgba(126,142,182,.18); border-radius: 999px; padding: 3px 7px; color: #aeb8ce; font-size: 9px; }
.entity-search-avatar, .entity-search-product-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; overflow: hidden; place-items: center; border-radius: 50%; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(20,211,202,.16)); color: #d8d0ff; font-size: 11px; font-weight: 800; }
.entity-search-product-icon { border-radius: 10px; font-size: 17px; }
.entity-search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.entity-search-empty { margin: 5px; padding: 12px; color: #9ba6c0; font-size: 12px; }
.product-detail-dialog { width: min(calc(100% - 32px), 680px); max-height: min(84vh, 780px); overflow: auto; }
.product-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.product-detail-heading .section-kicker { margin-bottom: 6px; }
.product-detail-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.product-detail-content { display: grid; gap: 14px; }
.product-detail-tagline { margin: 0; color: #b9c3d9; font-size: 14px; line-height: 1.6; }
.product-detail-creator { display: flex; align-items: center; gap: 11px; border: 1px solid rgba(126,142,182,.19); border-radius: 14px; padding: 11px; background: rgba(255,255,255,.025); color: inherit; text-decoration: none; }
.product-detail-creator img, .product-detail-creator > span:first-child { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: rgba(139,92,246,.25); object-fit: cover; }
.product-detail-creator > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.product-detail-creator small, .product-detail-post span { color: #9ba6c0; font-size: 11px; }
.product-detail-creator strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-detail-updates { display: grid; gap: 8px; }
.product-detail-updates h3 { margin: 4px 0 2px; font-size: 14px; }
.product-detail-post { display: grid; gap: 5px; border: 1px solid rgba(126,142,182,.17); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.025); color: #eef2ff; cursor: pointer; text-align: left; }
.product-detail-post:hover { border-color: rgba(20,211,202,.35); background: rgba(20,211,202,.045); }
.product-detail-post strong { font-size: 12px; }
.product-detail-post span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.5; }
.product-detail-message { margin: 0; color: #aab2c8; font-size: 13px; line-height: 1.6; }
.product-detail-content > .post-link { justify-self: start; }
.search-sort-row .search-bar { min-width: 0; flex: 1; }
.search-icon { color: #8f9ab7; }
.search-icon .community-icon { width: 25px; height: 25px; }
.search-bar input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 12px; }
.search-bar input::placeholder { color: #858da7; }
.search-clear-button { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 0; border-radius: 50%; padding: 0; background: transparent; color: #929db8; cursor: pointer; transition: color .16s ease, background .16s ease; }
.search-clear-button:hover { background: rgba(255,255,255,.08); color: #e9edff; }
.search-clear-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.search-clear-button .community-icon { width: 17px; height: 17px; }
.search-clear-button[hidden] { display: none; }
.search-bar input[type="search"]::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search-bar input[type="search"]::-ms-clear { display: none; }
.feed-toolbar { display: flex; min-height: 64px; align-items: center; gap: 12px; }
.feed-tabs { display: flex; min-width: 0; height: 54px; flex: 1; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-you-tab { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; border: 1px solid rgba(126,142,182,.3); border-radius: 999px; padding: 0 3px; background: rgba(16,21,42,.56); transition: border-color .16s ease, background .16s ease; }
.feed-you-tab.selected { border-color: rgba(20,211,202,.7); background: linear-gradient(135deg, rgba(20,211,202,.82), rgba(80,103,224,.9)); }
.feed-tab { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid rgba(126,142,182,.3); border-radius: 999px; padding: 0 15px; background: rgba(16,21,42,.56); color: #b8c0d5; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.feed-tab:hover { border-color: rgba(20,211,202,.5); color: #e6fffb; }
.feed-tab.selected { border-color: rgba(20,211,202,.7); background: linear-gradient(135deg, rgba(20,211,202,.82), rgba(80,103,224,.9)); color: #fff; }
.feed-you-tab .feed-tab, .feed-you-tab .feed-tab:hover, .feed-you-tab .feed-tab.selected { min-height: 40px; border: 0; padding: 0 8px 0 12px; background: transparent; box-shadow: none; color: #d9fffb; }
.mobile-type-toggle { display: grid; width: 25px; height: 38px; flex: 0 0 25px; align-self: center; place-items: center; border: 0; border-radius: 999px; padding: 0 3px 0 0; background: transparent; color: #d9fffb; cursor: pointer; }
.mobile-type-toggle svg { width: 18px; height: 18px; transition: transform .18s ease; }
.mobile-type-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.feed-you-tab:not(.selected) .feed-tab { color: #b8c0d5; }
.feed-you-tab:not(.selected) .mobile-type-toggle { color: var(--cyan); }
.type-filter-row { display: flex; flex-wrap: nowrap; gap: 9px; overflow-x: auto; padding: 13px 0 9px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x; cursor: grab; user-select: none; }
.type-filter-row::-webkit-scrollbar { display: none; }
.type-filter-row.dragging { cursor: grabbing; scroll-snap-type: none; }
.type-filter-shell[hidden] { display: none; }
.type-filter-shell { position: relative; }
.post-types-panel { border: 1px solid rgba(126,142,182,.2); border-radius: 15px; padding: 13px; background: linear-gradient(145deg, rgba(16,21,42,.75), rgba(13,17,35,.68)); }
.community-filter-selects { display: grid; gap: 30px; padding: 8px 0 12px; }
.community-filter-control { display: grid; min-width: 0; gap: 11px; color: #aeb8ce; font-size: 13px; font-weight: 700; }
.community-filter-control + .community-filter-control { border-top: 0; padding-top: 0; }
.community-filter-select { position: relative; min-width: 0; }
.community-filter-native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 0 !important; pointer-events: none !important; }
.filter-select-trigger { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(126,142,182,.28); border-radius: 12px; padding: 0 14px; background: linear-gradient(145deg, #11172b, #0b1020); color: #eef1fb; cursor: pointer; text-align: left; font-size: 14px; font-weight: 700; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.filter-select-trigger:hover, .filter-select-trigger[aria-expanded="true"] { border-color: rgba(20,211,202,.52); background: linear-gradient(145deg, rgba(20,211,202,.1), #0c1224 72%); box-shadow: 0 0 0 3px rgba(20,211,202,.07); }
.filter-select-trigger:focus-visible { outline: 2px solid rgba(20,211,202,.7); outline-offset: 2px; }
.filter-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-select-trigger svg { width: 17px; height: 17px; flex: 0 0 17px; color: #9ba9c8; transition: transform .16s ease, color .16s ease; }
.filter-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--cyan); }
.filter-select-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; left: 0; display: grid; max-height: min(300px, 45vh); gap: 4px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(125,148,195,.27); border-radius: 14px; padding: 7px; background: linear-gradient(155deg, #171d35, #0c1122 82%); box-shadow: 0 18px 42px rgba(0,0,0,.48), inset 0 1px 0 rgba(212,228,255,.05); scrollbar-color: rgba(139,155,190,.48) transparent; scrollbar-width: thin; }
.filter-select-menu[hidden] { display: none; }
.filter-select-option { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid transparent; border-radius: 9px; padding: 7px 10px; background: transparent; color: #c5cde0; cursor: pointer; text-align: left; font-size: 13px; font-weight: 650; transition: border-color .14s ease, background .14s ease, color .14s ease; }
.filter-select-option:hover, .filter-select-option:focus-visible { border-color: rgba(20,211,202,.22); outline: none; background: rgba(20,211,202,.09); color: #e8fffc; }
.filter-select-option.selected { border-color: rgba(20,211,202,.19); background: linear-gradient(100deg, rgba(20,211,202,.13), rgba(139,92,246,.1)); color: #9ff2e7; }
.filter-select-option.selected::after { color: var(--cyan); content: "✓"; font-size: 13px; font-weight: 800; }
.filter-select-menu::-webkit-scrollbar { width: 6px; }
.filter-select-menu::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(139,155,190,.42); }
.filter-select-menu::-webkit-scrollbar-track { background: transparent; }
.filter-section-divider { height: 1px; margin: 0 0 10px; background: linear-gradient(90deg, transparent, rgba(126,142,182,.38) 12%, rgba(126,142,182,.38) 88%, transparent); }
.post-type-label { display: inline-flex; min-height: 46px; flex: 0 0 auto; align-items: center; margin: 0 3px 0 0; color: #9da8c2; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.type-chip { display: inline-flex; min-height: 46px; flex: 0 0 auto; align-items: center; gap: 9px; border: 1px solid rgba(126,142,182,.22); border-radius: 999px; padding: 0 17px; background: rgba(16,21,42,.72); color: #b8c0d5; cursor: pointer; font-size: 14px; font-weight: 700; line-height: 1; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.type-chip-icon { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; font-size: 20px; line-height: 1; }
.type-chip:hover { transform: translateY(-1px); border-color: rgba(20,184,166,.4); color: var(--ink); }
.type-chip:hover, .type-chip.selected { border-color: rgba(20,184,166,.52); background: rgba(20,184,166,.12); color: #9ff2e7; }
.sort-control select { min-height: 50px; border: 1px solid rgba(126,142,182,.19); border-radius: 12px; padding: 0 14px; background: #10152a; color: #c7cde0; cursor: pointer; font-size: 12px; }
.feed-status { display: none; margin: 18px 0; border: 1px solid rgba(126,142,182,.18); border-radius: 16px; padding: 22px; background: rgba(16,21,42,.6); color: #afb7ce; font-size: 12px; line-height: 1.7; }
.feed-status.visible { display: block; }
.feed-status strong { color: var(--ink); }
.post-list { display: grid; gap: 18px; padding-top: 18px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid rgba(104,145,195,.38); border-radius: 18px; background: transparent; box-shadow: 0 8px 24px rgba(0,0,0,.12); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.post-card:hover { transform: translateY(-1px); border-color: rgba(139,92,246,.58); box-shadow: 0 12px 30px rgba(3,4,16,.2), 0 0 18px rgba(139,92,246,.07); }
.post-inner { padding: 24px 26px 20px; }
.post-author-row { display: flex; align-items: center; gap: 10px; }
.author-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; place-items: center; border: 1px solid rgba(139,92,246,.28); border-radius: 50%; background: linear-gradient(145deg, #443071, #17233a); color: #ddd3ff; font-size: 14px; font-weight: 800; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-profile-link { color: inherit; text-decoration: none; }
.author-profile-link:hover .author-name,
.author-profile-copy:hover .author-handle { color: #a4f4eb; }
.author-profile-copy { display: grid; justify-items: start; gap: 2px; }
.comment-profile-link { display: inline-flex; flex: 0 0 auto; color: inherit; text-decoration: none; }
.comment-profile-name:hover strong { color: #a4f4eb; }
.author-meta { min-width: 0; flex: 1; }
.author-name-line { display: flex; align-items: center; gap: 5px; }
.author-name { overflow: hidden; color: #f0efff; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.verified-badge { display: inline-grid; width: 18px; height: 18px; place-items: center; color: #14b8a6; line-height: 1; }
.verified-badge .community-icon { width: 18px; height: 18px; fill: currentColor; }
.ai-contributor-label { display: inline-flex; flex: 0 0 auto; align-items: center; border: 1px solid rgba(20,184,166,.2); border-radius: 999px; padding: 2px 7px; color: #83dcd1; font-size: 10px; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.ai-contributor-label { justify-content: center; width: 17px; height: 17px; border-color: rgba(169,138,255,.3); border-radius: 50%; padding: 0; color: #c4adff; background: rgba(139,92,246,.12); font-size: 12px; line-height: 1; }
@media(max-width:640px){
.author-handle { overflow: hidden; margin-top: 2px; color: #929bb5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.follow-button { min-height: 32px; border: 1px solid rgba(20,184,166,.55); border-radius: 999px; padding: 0 13px; background: rgba(20,184,166,.11); color: #8fe9df; cursor: pointer; font-size: 11px; font-weight: 750; }
.follow-button.following { border-color: rgba(126,142,182,.28); background: rgba(255,255,255,.04); color: #b5bdd0; }
.post-time { flex: 0 0 auto; color: #8b94ad; font-size: 9px; }
}
.post-menu { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: #9da7c2; cursor: pointer; font-size: 18px; }
.post-menu .community-icon { width: 20px; height: 20px; margin: auto; }
.post-menu:hover { background: rgba(255,255,255,.06); }
.post-options-wrap { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.post-review-badge { display: inline-flex; min-height: 24px; align-items: center; border: 1px solid rgba(255,190,92,.34); border-radius: 999px; padding: 3px 9px; background: rgba(255,174,66,.1); color: #ffd18a; font-size: 10px; font-weight: 750; line-height: 1; white-space: nowrap; }
.post-card.menu-open { position: relative; z-index: 25; overflow: visible; transform: none; }
.comment-meta .ai-contributor-label { font-size: 9px; }
.post-options-menu[hidden] { display: none !important; }
.post-options-menu { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; display: grid; width: 220px; overflow: hidden; border: 1px solid rgba(126,142,182,.22); border-radius: 14px; padding: 6px; background: #11172b; box-shadow: 0 18px 48px rgba(0,0,0,.48); }
.post-options-menu button { display: flex; min-height: 40px; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 0 11px; background: transparent; color: #d6dcec; cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
.post-options-menu button:hover { background: rgba(255,255,255,.06); color: #a4f4eb; }
.post-options-menu .community-icon { width: 17px; height: 17px; flex: 0 0 17px; color: #9da7bf; }
.post-options-menu button.danger { color: #ffafbd; }
.post-options-menu button.danger:hover { background: rgba(255,130,156,.08); }
.post-category-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 15px 0 9px; }
.post-category { display: inline-flex; align-items: center; gap: 6px; margin: 0; border: 1px solid rgba(139,92,246,.24); border-radius: 999px; padding: 5px 9px; background: rgba(139,92,246,.09); color: #cbb7ff; font-size: 9px; font-weight: 750; }
.weekly-rank-pill { display: inline-flex; min-height: 24px; align-items: center; border: 1px solid rgba(255,209,102,.36); border-radius: 999px; padding: 3px 9px; background: rgba(255,209,102,.1); color: #ffd166; font-size: 10px; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.weekly-rank-pill:hover { border-color: rgba(255,209,102,.72); background: rgba(255,209,102,.18); }
.app-dialog.weekly-rank-dialog { width: min(calc(100% - 32px), 620px); }
.weekly-rank-dialog .weekly-rank-explanation { margin: 18px 0; color: #d4d9e8; font-size: 14px; line-height: 1.7; }
.weekly-rank-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.weekly-rank-stats > div { display: grid; gap: 3px; border: 1px solid rgba(126,142,182,.18); border-radius: 14px; padding: 13px; background: rgba(7,10,25,.48); }
.weekly-rank-stats strong { color: #ffd166; font-size: 22px; }
.weekly-rank-stats span, .weekly-rank-score { color: var(--muted); font-size: 12px; }
.weekly-rank-score { margin: 14px 0; }
.weekly-rank-tagline { margin: 12px 0 0; color: var(--cyan); font-weight: 700; }
.weekly-rank-description { margin: 8px 0 0; color: #d4d9e8; line-height: 1.65; white-space: pre-wrap; }
.post-category .category-icon { width: 15px; height: 15px; }
.post-category.build { border-color: rgba(20,211,202,.22); background: rgba(20,211,202,.07); color: #70e6df; }
.post-category.discuss { border-color: rgba(255,199,120,.25); background: rgba(255,199,120,.07); color: #ffd18d; }
.post-intent-badge { display: inline-flex; min-height: 23px; align-items: center; border: 1px solid rgba(126,142,182,.2); border-radius: 999px; padding: 3px 9px; background: rgba(8,12,27,.48); color: #bac4da; font-size: 9px; font-weight: 700; line-height: 1; }
.post-intent-badge.intent-wish { border-color: rgba(255,205,116,.2); color: #f1d59b; }
.post-intent-badge.intent-build { border-color: rgba(20,211,202,.2); color: #9ae8df; }
.post-platform-badge { display: inline-flex; min-height: 23px; align-items: center; border: 1px solid rgba(20,211,202,.2); border-radius: 999px; padding: 3px 9px; background: rgba(20,211,202,.055); color: #9be9e2; font-size: 9px; font-weight: 700; line-height: 1; }
.composer-platform-select { width: 100%; min-height: 42px; border: 1px solid rgba(126,142,182,.28); border-radius: 11px; padding: 0 12px; color: #eef1fb; background: linear-gradient(145deg,#11172b,#0b1020); font: inherit; font-size: 13px; }
.composer-platform-select:focus-visible { outline: 2px solid rgba(20,211,202,.65); outline-offset: 2px; }
.post-intent-badge.intent-discuss { border-color: rgba(139,92,246,.25); color: #cbb8ff; }
.post-title { margin: 0 0 7px; font-size: 22px; font-weight: 750; letter-spacing: -.035em; line-height: 1.3; }
.post-tagline { margin: 0 0 12px; color: #c1c8da; font-size: 14px; font-weight: 650; }
.post-text { margin: 0; color: #aeb6cc; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(139,92,246,.38); border-radius: 11px; margin-top: 16px; padding: 0 15px; background: rgba(139,92,246,.13); color: #d5c4ff; font-size: 12px; font-weight: 750; text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.post-link:hover { transform: translateY(-1px); border-color: rgba(20,211,202,.5); background: rgba(139,92,246,.2); color: #fff; }
.post-image { display: block; width: 100%; max-height: 370px; margin-top: 15px; border: 1px solid rgba(126,142,182,.15); border-radius: 13px; object-fit: cover; }
.post-actions { display: flex; align-items: center; gap: 7px; padding: 12px 20px; border-top: 1px solid rgba(126,142,182,.14); }
.post-action { display: inline-flex; min-height: 39px; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 0 12px; background: transparent; color: #a6afc7; cursor: pointer; font-size: 12px; font-weight: 650; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.post-action:hover { border-color: rgba(126,142,182,.2); background: rgba(255,255,255,.035); color: var(--ink); }
.post-action.active-like { color: #14b8a6; }
.post-action.active-interest { color: var(--cyan); }
.post-action.active-save { color: #9ff2e7; }
.post-action .community-icon { width: 20px; height: 20px; }
.post-action.discussion-action { margin-left: 0; border-color: rgba(139,92,246,.24); background: rgba(139,92,246,.1); color: #cbb7ff; }
.post-action.discussion-action:hover { background: rgba(139,92,246,.2); }
.post-action.save-action { margin-left: auto; }
.post-action.post-share-action { margin-left: 0; }
.load-more { display: flex; min-height: 43px; align-items: center; justify-content: center; gap: 7px; margin: 18px auto 0; border: 1px solid rgba(126,142,182,.24); border-radius: 12px; padding: 0 18px; background: rgba(16,21,42,.8); color: #c3c9dc; cursor: pointer; font-size: 11px; font-weight: 700; }
.load-more:hover { border-color: var(--accent); }

.site-footer { display: flex; min-height: 76px; align-items: center; justify-content: center; gap: 14px; border-top: 1px solid rgba(126,142,182,.13); color: #818ba6; font-size: 10px; }
.site-footer a { color: #9ea7c1; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer-support { border: 0; padding: 0; background: transparent; color: #9ea7c1; font: inherit; cursor: pointer; }
.site-footer-support:hover { color: var(--cyan); }
.community-support-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(850px, calc(100dvh - 32px)); overflow: hidden; padding: 26px; border: 1px solid rgba(126,142,182,.3); border-radius: 21px; color: #edf0fc; background: linear-gradient(145deg,#171b34,#0e1226); box-shadow: 0 28px 90px #0009; }
.app-dialog.community-support-dialog { width: min(760px, calc(100vw - 36px)); max-height: min(850px, calc(100dvh - 36px)); }
.community-support-dialog[open] { display: flex; flex-direction: column; }
.community-support-dialog::backdrop { background: rgba(4,6,17,.72); backdrop-filter: blur(5px); }
.community-support-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(126,142,182,.16); }
.community-support-heading h2 { margin: 6px 0 5px; font: 650 30px/1.1 "Newsreader",Georgia,serif; }
.community-support-heading p:not(.section-kicker) { margin: 0; color: #9ca8c2; font-size: 13px; line-height: 1.5; }
.community-support-heading .section-kicker { margin: 0; }
.community-support-heading .dialog-close { position: static; flex: 0 0 auto; }
.app-dialog.community-support-dialog .community-support-heading .dialog-close { position: static; width: auto; height: auto; border: 0; border-radius: 0; padding: 0 4px; background: transparent; box-shadow: none; color: #b8c3da; font-size: 27px; line-height: 1; }
.community-support-form { display: grid; gap: 14px; overflow: auto; padding: 18px 3px 2px 0; }
.community-support-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.community-support-form legend, .community-support-form label { display: grid; gap: 7px; color: #c6cee2; font-size: 13px; font-weight: 650; }
.community-support-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.community-support-topics button { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(126,142,182,.25); border-radius: 999px; color: #c8d0e5; background: rgba(9,13,29,.62); font: inherit; cursor: pointer; }
.community-support-topics button.is-selected { border-color: rgba(20,211,202,.65); color: #8df2e9; background: rgba(20,211,202,.1); }
.community-support-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.community-support-form input, .community-support-form textarea { display: block; width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 11px 13px; border: 1px solid rgba(126,142,182,.25); border-radius: 11px; color: #edf0fc; background: rgba(7,10,24,.75); font: inherit; }
.community-support-form textarea { min-height: 112px; resize: vertical; }
.community-support-form input:focus, .community-support-form textarea:focus { outline: 2px solid rgba(20,211,202,.45); outline-offset: 1px; }
.community-support-upload { display: grid; gap: 8px; }
.community-support-upload-label { color: #c6cee2; font-size: 13px; font-weight: 650; }
.community-support-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.community-support-file-button { position: relative; display: inline-flex !important; min-height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(153,133,255,.38); border-radius: 10px; padding: 0 13px; background: rgba(127,89,234,.1); color: #d8ceff !important; cursor: pointer; font-size: 12px !important; font-weight: 700 !important; }
.community-support-file-button input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); }
.community-support-file-button:focus-within { outline: 2px solid rgba(20,211,202,.45); outline-offset: 2px; }
.community-support-file-row small { color: #9ca8c2; font-size: 11px; }
.community-support-image-preview { display: flex; flex-wrap: wrap; gap: 9px; }
.community-support-image-preview[hidden] { display: none; }
.community-support-image-item { position: relative; width: 64px; height: 64px; overflow: hidden; border: 1px solid rgba(126,142,182,.28); border-radius: 10px; background: rgba(5,8,21,.66); }
.community-support-image-item img { width: 100%; height: 100%; object-fit: cover; }
.community-support-image-item button { position: absolute; top: 3px; right: 3px; display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; padding: 0; background: rgba(5,8,21,.85); color: white; font-size: 16px; line-height: 1; cursor: pointer; }
.community-support-note, .community-support-status { margin: 0; color: #9ca8c2; font-size: 12px; line-height: 1.5; }
.community-support-note.is-success { color: #64e4d8; }
.community-support-status.error { color: #ff9aab; }
.community-support-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.community-support-actions .secondary-button, .community-support-actions .primary-button { display: inline-flex; width: auto; min-width: 132px; min-height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 11px; padding: 0 18px; font: 750 13px "Instrument Sans",sans-serif; cursor: pointer; }
.community-support-actions .secondary-button { border: 1px solid rgba(153,133,255,.42); background: rgba(127,89,234,.12); color: #d8ceff; }
.community-support-actions .secondary-button:hover { border-color: rgba(25,215,207,.58); background: rgba(25,215,207,.08); color: #63e8e0; }
.community-support-actions .primary-button { border: 0; background: linear-gradient(120deg,#8b5cf6,#6d4bff 68%,#4d86ea); color: #fff; }
.community-support-actions button:disabled { opacity: .58; cursor: wait; }
@media (max-width: 600px) { .app-dialog.community-support-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 19px 16px; } .community-support-heading h2 { font-size: 25px; } .community-support-form { gap: 12px; } .community-support-grid { grid-template-columns: minmax(0,1fr); gap: 12px; } .community-support-actions .secondary-button, .community-support-actions .primary-button { min-width: 0; flex: 1 1 0; } }

.app-dialog { position: relative; width: min(100% - 28px, 480px); max-height: min(88vh, 850px); overflow-y: auto; border: 1px solid rgba(150,137,206,.34); border-radius: 23px; padding: 30px; background: radial-gradient(ellipse at 90% 0%, rgba(139,92,246,.15), transparent 55%), #10152a; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
html:has(dialog[open]), body:has(dialog[open]) { overflow: hidden; }
body:has(dialog[open]) { overscroll-behavior: none; }
dialog[open] { overscroll-behavior: contain; }
.app-dialog::backdrop { background: rgba(3,4,14,.74); backdrop-filter: blur(6px); }
.signup-verification-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.signup-verification-actions .primary-button, .signup-verification-actions .secondary-button { flex: 1 1 160px; }
@media (max-width: 520px) { .signup-verification-actions { display: grid; grid-template-columns: 1fr; gap: 10px; } }
#signup-email-verification-dialog { width: min(calc(100vw - 36px), 520px); height: fit-content !important; min-height: 0 !important; max-height: min(88dvh, 560px); padding: 32px; border-color: rgba(139,92,246,.38); border-radius: 24px; background: radial-gradient(ellipse at 0% 0%, rgba(20,211,202,.09), transparent 42%), radial-gradient(ellipse at 100% 0%, rgba(139,92,246,.2), transparent 52%), linear-gradient(150deg,#12182e,#0d1225 72%); box-shadow: 0 32px 100px rgba(0,0,0,.68), 0 0 55px rgba(109,75,255,.12); }
#signup-email-verification-dialog .signup-verification-heading { display: flex; align-items: center; gap: 15px; padding-right: 44px; }
#signup-email-verification-dialog .signup-verification-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(139,92,246,.4); border-radius: 15px; color: #bca4ff; background: linear-gradient(145deg,rgba(139,92,246,.22),rgba(20,211,202,.09)); box-shadow: inset 0 1px rgba(255,255,255,.07); }
#signup-email-verification-dialog .signup-verification-icon svg { width: 25px; height: 25px; }
#signup-email-verification-dialog .section-kicker { margin: 0 0 3px; color: #55e6dc; font-size: 10px; letter-spacing: .12em; }
#signup-email-verification-dialog h2 { margin: 0; font-size: clamp(27px,4vw,34px); line-height: 1.14; letter-spacing: -.045em; }
#signup-email-verification-dialog .dialog-lede { margin: 19px 0 0; padding: 0; border: 0; border-radius: 0; color: #bdc7dd; background: transparent; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#signup-email-verification-dialog .verification-code-label { display: block; margin: 19px 0 7px; color: #dfe5f5; font-size: 12px; font-weight: 700; }
#signup-email-verification-dialog .verification-code-label { display: none; }
.verification-code-group { display: flex; justify-content: center; gap: 12px; margin: 20px auto 0; }
.verification-code-group[hidden] { display: none; }
.verification-code-group input { box-sizing: border-box; width: 58px; height: 64px; border: 1px solid rgba(126,142,182,.34); border-radius: 14px; outline: 0; color: #f5f3ff; background: linear-gradient(155deg,rgba(18,25,48,.98),rgba(8,13,29,.98)); font: 750 27px/1 "Instrument Sans",sans-serif; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px rgba(255,255,255,.035); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.verification-code-group input:focus { border-color: #9278ff; box-shadow: 0 0 0 3px rgba(139,92,246,.15),0 0 22px rgba(109,75,255,.12); transform: translateY(-1px); }
.verification-code-group input:disabled { opacity: .65; }
.verification-resend-link { display: block; width: fit-content; justify-self: center; margin: 0 auto; padding: 4px 8px; border: 0; color: #bba6ff; background: transparent; font: 650 12px/1.5 "Instrument Sans",sans-serif; cursor: pointer; }
.verification-resend-link:hover:not(:disabled) { color: #d4c8ff; text-decoration: underline; }
.verification-resend-link:disabled { color: #7b849d; cursor: default; text-decoration: none; }
#signup-email-verification-dialog .signup-verification-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin: 20px 0 0; }
#signup-email-verification-dialog .signup-verification-actions .primary-button, #signup-email-verification-dialog .signup-verification-actions .secondary-button { display: inline-flex; width: 100%; min-width: 0; min-height: 50px; flex: initial; align-items: center; justify-content: center; border-radius: 13px; padding: 0 16px; font: 750 13px "Instrument Sans",sans-serif; cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
#signup-email-verification-dialog .signup-verification-actions .primary-button { border: 0; color: #fff; background: linear-gradient(115deg,#8b5cf6,#6d4bff 68%,#4d86ea); box-shadow: 0 10px 25px rgba(109,75,255,.25); }
#signup-email-verification-dialog .signup-verification-actions .primary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 30px rgba(109,75,255,.36); }
#signup-email-verification-dialog .signup-verification-actions .secondary-button { border: 1px solid rgba(126,142,182,.3); color: #d8def0; background: rgba(255,255,255,.035); }
#signup-email-verification-dialog .signup-verification-actions .secondary-button:hover { border-color: rgba(25,215,207,.45); background: rgba(25,215,207,.07); }
#signup-email-verification-dialog .dialog-message { min-height: 0; margin: 13px 0 0; color: #91a0bf; font-size: 12px; line-height: 1.5; }
#signup-email-verification-dialog .dialog-message:empty { display: none; }
#signup-email-verification-dialog.verification-success .signup-verification-icon { color: #69eee1; border-color: rgba(105,238,225,.58); background: rgba(25,215,207,.15); animation: verification-success-pop .52s cubic-bezier(.2,.8,.2,1) both; }
#signup-email-verification-dialog.verification-success .signup-verification-icon svg { animation: verification-success-check .42s .12s ease-out both; }
@keyframes verification-success-pop { 0% { transform: scale(.78); box-shadow: 0 0 0 0 rgba(25,215,207,.35); } 65% { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(25,215,207,0); } 100% { transform: scale(1); } }
@keyframes verification-success-check { from { opacity: .25; transform: scale(.72) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width: 520px) { #signup-email-verification-dialog { width: calc(100vw - 28px); padding: 24px 19px 20px; border-radius: 20px; } #signup-email-verification-dialog .signup-verification-heading { gap: 12px; padding-right: 38px; } #signup-email-verification-dialog .signup-verification-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; } #signup-email-verification-dialog .signup-verification-icon svg { width: 22px; height: 22px; } #signup-email-verification-dialog h2 { font-size: 27px; } #signup-email-verification-dialog .dialog-lede { margin-top: 16px; font-size: 12px; } #signup-email-verification-dialog .verification-code-group { gap: 9px; margin-top: 17px; } #signup-email-verification-dialog .verification-code-group input { width: 54px; height: 60px; } #signup-email-verification-dialog .signup-verification-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; } #signup-email-verification-dialog .signup-verification-actions .primary-button { min-height: 48px; } }
.app-dialog h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.045em; }
.dialog-lede { margin: 7px 0 20px; color: #aab2c8; font-size: 11px; line-height: 1.7; }
.dialog-close { position: absolute; top: 13px; right: 13px; z-index: 2; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(126,142,182,.22); border-radius: 50%; background: rgba(255,255,255,.035); color: #b6bed3; cursor: pointer; font-size: 22px; }
.welcome-dialog .dialog-close { top: 28px; right: 28px; width: 36px; height: 36px; border: 0; border-radius: 0; background: transparent; color: #c7cce0; font-size: 26px; }
.welcome-dialog .dialog-close:hover { background: transparent; color: #fff; }
.dialog-brand { margin-bottom: 16px; }
.dialog-brand img { border-radius: 14px; }
.google-button, .primary-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(126,142,182,.27); border-radius: 12px; background: rgba(255,255,255,.045); color: #f4f2ff; cursor: pointer; font-size: 11px; font-weight: 750; transition: background .18s ease, transform .18s ease; }
.google-button:hover { background: rgba(255,255,255,.09); }
.google-mark { width: 18px; height: 18px; flex: 0 0 18px; }
.primary-button { border-color: transparent; background: linear-gradient(115deg, #8b5cf6, #6d4bff 68%, #4d86ea); box-shadow: 0 8px 20px rgba(102,76,255,.21); }
.primary-button:hover { transform: translateY(-1px); background: linear-gradient(115deg, #9a72ff, #775dff 68%, #5a96f2); }
.primary-button:disabled, .google-button:disabled { cursor: wait; opacity: .6; transform: none; }
.form-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: #8790a9; font-size: 9px; }
.form-divider::before, .form-divider::after { height: 1px; flex: 1; background: rgba(126,142,182,.2); content: ""; }
.dialog-form { display: grid; gap: 8px; }
.auth-forgot-row { display: flex; justify-content: flex-end; margin-top: -1px; }
.auth-forgot-row[hidden] { display: none; }
.auth-forgot-password { border: 0; padding: 3px 0; background: transparent; color: #b8a5ff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.auth-forgot-password:hover { color: #d6caff; text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot-password:focus-visible { border-radius: 4px; outline: 2px solid rgba(167,139,250,.6); outline-offset: 3px; }
.auth-forgot-password:disabled { cursor: wait; opacity: .6; }
.dialog-form label { margin-top: 5px; color: #d0d5e4; font-size: 10px; font-weight: 700; }
.dialog-form label span { margin-left: 5px; color: #858ea7; font-size: 9px; font-weight: 500; }
.dialog-form input, .dialog-form textarea, .dialog-form select, .comment-form textarea { width: 100%; border: 1px solid rgba(126,142,182,.24); border-radius: 11px; padding: 11px 12px; background: rgba(6,9,24,.64); color: var(--ink); font-size: 11px; resize: vertical; }
.dialog-form input::placeholder, .dialog-form textarea::placeholder, .comment-form textarea::placeholder { color: #727c97; }
.dialog-form textarea { min-height: 112px; line-height: 1.6; }
.auth-create-fields { display: grid; gap: 8px; }
.auth-create-fields[hidden] { display: none; }
.auth-field { display: grid; gap: 8px; }
.password-input-wrap { position: relative; display: flex; width: 100%; }
.password-input-wrap input { width: 100%; padding-right: 42px; }
.password-visibility-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; padding: 0; transform: translateY(-50%); background: transparent; color: #929bb5; cursor: pointer; }
.password-visibility-toggle:hover { background: rgba(255,255,255,.07); color: #d9d5ff; }
.password-visibility-toggle:focus-visible { outline: 2px solid #a78bfa; outline-offset: 1px; }
.password-visibility-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-label-row { display: flex; align-items: center; gap: 7px; }
.auth-label-row label { margin: 5px 0 0 !important; }
.auth-info-anchor { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; align-self: center; }
.auth-info { display: inline-grid; width: 16px; height: 16px; flex: 0 0 16px; place-items: center; border: 1px solid rgba(167,139,250,.48); border-radius: 50%; margin: 0; padding: 0; background: rgba(139,92,246,.12); color: #c4b5fd; cursor: help; font: inherit; font-size: 10px; font-weight: 800; line-height: 1; }
.auth-info:hover, .auth-info:focus-visible { outline: 2px solid rgba(167,139,250,.35); outline-offset: 2px; background: rgba(139,92,246,.24); }
.auth-field-hint { position: absolute; z-index: 30; bottom: calc(100% + 8px); left: calc(100% + 8px); display: none; width: max-content; max-width: min(280px, calc(100vw - 64px)); border: 1px solid rgba(139,92,246,.34); border-radius: 10px; padding: 10px 12px; background: #17172b; box-shadow: 0 12px 30px rgba(0,0,0,.42), 0 0 18px rgba(139,92,246,.12); color: #d5d9e8; font-size: 11px; line-height: 1.5; pointer-events: none; }
.auth-info:focus-visible + .auth-field-hint { display: block; }
@media (hover: hover) and (pointer: fine) {
  .auth-info-anchor:hover .auth-field-hint { display: block; }
}
.auth-field-hint strong { display: block; margin-bottom: 5px; color: #fff; font-size: 11px; }
.auth-field-hint ul { display: grid; gap: 4px; margin: 0; padding-left: 16px; }
.auth-field-hint li { padding-left: 1px; }
@media (max-width: 560px) {
  .auth-field-hint { right: -8px; left: auto; max-width: min(280px, calc(100vw - 64px)); }
  .saved-drafts-quick { top: 13px; right: 65px; min-height: 34px; padding-inline: 9px; font-size: 9px; }
  .saved-draft-card { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .saved-draft-actions { justify-content: flex-end; }
}
.auth-field-error { margin: -2px 0 0; color: #ff9baf; font-size: 10px; line-height: 1.45; }
.auth-mode-switch { margin: 15px 0 0; color: #aab2c8; font-size: 11px; text-align: center; }
.auth-legal-note { margin: 10px 0 0; color: #8994b0; font-size: 10px; line-height: 1.5; text-align: center; }
.auth-legal-note a { color: #c4b5fd; text-underline-offset: 2px; }
.auth-mode-switch button { border: 0; padding: 2px 3px; background: transparent; color: #a78bfa; cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.auth-mode-switch button:hover { color: #c4b5fd; }
.auth-dialog .dialog-form input[type="date"] { color-scheme: dark; }
.dialog-message { min-height: 16px; margin: 10px 0 0; color: #80e3dc; font-size: 10px; line-height: 1.6; }
.dialog-message.error { color: #ff9baf; }
.auth-dialog #auth-message { min-height: 0; margin: 12px 0 0; text-align: center; text-wrap: pretty; }
.auth-dialog #auth-message:empty { display: none; }
.compose-dialog { width: min(100% - 28px, 570px); }
.intent-picker-dialog { width: min(100% - 28px, 620px); }
.saved-drafts-quick { position: absolute; top: 13px; right: 65px; z-index: 2; display: inline-flex; min-height: 34px; align-items: center; gap: 7px; border: 1px solid rgba(139,92,246,.32); border-radius: 10px; padding: 0 10px; background: rgba(139,92,246,.1); color: #d7caff; cursor: pointer; font-size: 10px; font-weight: 750; }
.saved-drafts-quick:hover, .saved-drafts-button:hover { border-color: rgba(20,211,202,.48); background: rgba(20,211,202,.08); color: #b6fffa; }
.saved-drafts-quick .community-icon, .saved-drafts-button .community-icon { width: 15px; height: 15px; color: #b69aff; }
.saved-drafts-dialog { width: min(100% - 28px, 560px); }
.saved-drafts-list { display: grid; gap: 10px; }
.saved-drafts-retention { margin: 0 0 12px; border: 1px solid rgba(20,211,202,.16); border-radius: 11px; padding: 10px 12px; background: rgba(20,211,202,.045); color: #aebbd1; font-size: 11px; line-height: 1.5; }
.saved-drafts-empty { margin: 0; border: 1px dashed rgba(126,142,182,.26); border-radius: 14px; padding: 22px 18px; color: #aab2c8; font-size: 12px; line-height: 1.6; text-align: center; }
.saved-draft-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid rgba(126,142,182,.2); border-radius: 14px; padding: 14px; background: rgba(6,9,24,.56); }
.saved-draft-copy { min-width: 0; }
.saved-draft-copy small { display: block; margin-bottom: 5px; color: #63ddd4; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.saved-draft-copy strong { display: block; overflow: hidden; color: #f1f2fb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.saved-draft-copy p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: #aab2c8; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.saved-draft-actions { display: flex; align-items: center; gap: 7px; }
.saved-draft-actions button { min-height: 34px; border: 1px solid rgba(126,142,182,.24); border-radius: 9px; padding: 0 10px; background: rgba(255,255,255,.04); color: #d7dcf0; cursor: pointer; font-size: 10px; font-weight: 700; }
.saved-draft-actions [data-resume-draft] { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.17); color: #e5dbff; }
.saved-draft-actions [data-delete-draft] { color: #b6bed3; }
.saved-drafts-button { display: inline-flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; border: 1px solid rgba(126,142,182,.22); border-radius: 12px; background: rgba(255,255,255,.035); color: #ccd2e5; cursor: pointer; font-size: 12px; font-weight: 750; }
.saved-drafts-button[hidden], .saved-drafts-quick[hidden] { display: none; }
.intent-picker-options { display: grid; gap: 10px; margin-top: 21px; }
.intent-picker-options .intent-card { min-height: 82px; border-radius: 16px; }
.intent-picker-options .intent-copy strong { font-size: 13px; }
.intent-picker-options .intent-copy small { display: block; font-size: 11px; }
.intent-picker-options .intent-arrow { align-self: center; position: static; visibility: visible; font-size: 19px; }
.compose-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; border: 0; padding: 3px 0; background: transparent; color: #aaa2ca; cursor: pointer; font-size: 11px; font-weight: 700; }
.compose-back:hover { color: #d4c7ff; }
.compose-back span { font-size: 16px; }
.form-hint { margin: 5px 0 7px; color: #8993ad; font-size: 9px; line-height: 1.6; }
.compose-dialog { max-height: min(92dvh, 900px); overflow-y: auto; }
.compose-dialog .dialog-form { gap: 14px; }
.composer-field-group { display: grid; min-width: 0; gap: 7px; }
.composer-field-group > label, .composer-field-label { margin: 0 !important; color: #d0d5e4; font-size: 11px; font-weight: 750; }
.composer-field-label > span, .composer-field-group > label > span { margin-left: 5px; color: #858ea7; font-size: 10px; font-weight: 500; }
.composer-category-row { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 2px 2px 7px; }
.composer-category { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; gap: 7px; border: 1px solid rgba(126,142,182,.24); border-radius: 999px; padding: 0 12px; background: rgba(6,9,24,.5); color: #aeb8ce; cursor: pointer; font-size: 11px; font-weight: 650; }
.composer-category > span:first-child { font-size: 15px; }
.composer-category:hover, .composer-category.selected { border-color: rgba(25,215,207,.58); background: rgba(25,215,207,.09); color: #70e8e1; }
.composer-field-group input, .composer-field-group textarea { margin: 0; }
.composer-counter, .composer-field-hint { justify-self: end; color: #858ea7; font-size: 10px; line-height: 1.5; }
.composer-field-hint { justify-self: start; }
.composer-images-group { gap: 9px; }
.composer-image-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-image-heading .composer-field-label { display: inline-flex; align-items: baseline; gap: 5px; }
.composer-add-images { min-height: 36px !important; gap: 6px; padding: 0 11px !important; font-size: 11px !important; }
.composer-add-images > span:first-child { color: #65e4dc; font-size: 18px; }
.composer-add-images:disabled, .composer-submit-row button:disabled { opacity: .55; cursor: wait; }
.composer-image-list { display: flex; flex-wrap: wrap; gap: 10px; }
.composer-image-item { position: relative; width: 104px; height: 104px; overflow: hidden; border: 1px solid rgba(126,142,182,.24); border-radius: 13px; background: #090d1d; cursor: grab; touch-action: pan-y; user-select: none; transition: opacity .15s ease, transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.composer-image-placeholder { box-sizing: border-box; flex: 0 0 104px; width: 104px; height: 104px; border: 1px dashed rgba(20,211,202,.58); border-radius: 13px; background: rgba(20,211,202,.08); }
.composer-image-item > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.composer-image-drag-hint { position: absolute; top: 6px; left: 6px; display: grid; width: 28px; height: 26px; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; background: rgba(5,7,17,.76); color: #f2f4ff; pointer-events: none; }
.composer-image-drag-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.composer-image-remove { position: absolute; top: 6px; right: 6px; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(5,7,17,.82); color: #fff; cursor: pointer; font-size: 19px; line-height: 1; }
.composer-image-remove:hover { border-color: rgba(255,116,144,.72); background: rgba(80,19,39,.92); }
.composer-image-item.is-dragging { z-index: 1000; cursor: grabbing; opacity: .94; border-color: rgba(20,211,202,.92); box-shadow: 0 16px 36px rgba(0,0,0,.52), 0 0 24px rgba(20,211,202,.3); will-change: left, top, transform; animation: composer-image-drag-wiggle .22s ease-in-out infinite; }
.composer-image-list.is-reordering .composer-image-item:not(.is-dragging) { will-change: transform; }
@keyframes composer-image-drag-wiggle { 0%, 100% { transform: rotate(-1.2deg) scale(1.045); } 50% { transform: rotate(1.2deg) scale(1.045); } }
@media (prefers-reduced-motion: reduce) { .composer-image-item.is-dragging { animation: none; } }
.composer-submit-row { display: flex; gap: 10px; margin-top: 4px; }
.composer-submit-row .outline-button, .composer-submit-row .primary-button { display: flex; min-height: 46px; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(126,142,182,.3); border-radius: 12px; padding: 0 14px; color: #e5e9f6; cursor: pointer; font-size: 12px; font-weight: 750; }
.composer-submit-row .outline-button { background: rgba(255,255,255,.035); }
.composer-submit-row .primary-button { border-color: transparent; }
.detail-dialog { width: min(calc(100vw - 32px), 900px); height: min(92dvh, 1000px); max-height: min(92dvh, 1000px); overflow: hidden; border: 1px solid rgba(126,145,190,.3); border-radius: 22px; padding: 0; background: linear-gradient(155deg, #151a30, #0c1021 70%); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.detail-dialog::backdrop { background: rgba(3,4,14,.48); backdrop-filter: blur(3px); }
.detail-dialog[open] { display: flex; flex-direction: column; }
.detail-modal-heading { position: relative; z-index: 2; display: grid; min-height: 60px; flex: 0 0 60px; place-items: center; border-bottom: 1px solid rgba(126,142,182,.18); padding: 0 62px 0 20px; background: rgba(14,18,34,.98); }
.app-dialog.detail-dialog .detail-modal-heading h2 { overflow: hidden; max-width: 100%; margin: 0; color: #f4f3ff; font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.detail-scroll-content { min-width: 0; min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 20px; }
.detail-scroll-content::-webkit-scrollbar { display: none; width: 0; height: 0; }
.detail-close-row { position: absolute; z-index: 40; top: 50%; right: 10px; width: 44px; height: 44px; transform: translateY(-50%); }
.detail-dialog .dialog-close { top: 0; right: 0; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: #f5f5ff; font-size: 24px; }
.app-dialog.detail-dialog .detail-close-row .dialog-close { top: 0; right: 0; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: #f5f5ff; font-size: 24px; }
.detail-dialog .detail-close-row .dialog-close:focus,
.detail-dialog .detail-close-row .dialog-close:focus-visible { outline: none; box-shadow: none; }
.detail-dialog .detail-close-row .dialog-close:focus-visible { color: #fff; }
.detail-image-button { display: block; width: 100%; height: auto; margin-top: 20px; }
.detail-image-button .post-image { max-height: min(52vh, 520px); object-fit: contain; }
.detail-image-button .post-image { height: auto; }
.post-image-button { display: block; width: 100%; height: clamp(240px, 32vw, 380px); overflow: hidden; border: 0; border-radius: 15px; margin-top: 22px; padding: 0; background: rgba(4,7,18,.5); cursor: zoom-in; }
.post-image-button:focus-visible { outline-offset: 4px; }
.post-image-button .post-image { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; transition: transform .24s ease; }
.post-image-button .post-image { margin-top: 0; }
.post-image-button:hover .post-image { transform: scale(1.015); }
.post-image-gallery { position: relative; margin-top: 22px; }
.post-image-gallery .post-image-button { margin-top: 0; }
.post-image-gallery-nav { position: absolute; inset: 50% 10px auto; display: flex; align-items: center; justify-content: space-between; transform: translateY(-50%); opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.post-image-gallery:hover .post-image-gallery-nav, .post-image-gallery:focus-within .post-image-gallery-nav { opacity: 1; }
.post-image-gallery-nav button { display: grid; width: 52px; height: 72px; place-items: center; border: 0; border-radius: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; font-size: 48px; font-weight: 400; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.65); transition: color .18s ease, filter .18s ease, transform .18s ease; pointer-events: auto; }
.post-image-gallery-nav button:hover, .post-image-gallery-nav button:focus-visible { color: #a9fff6; filter: drop-shadow(0 0 10px rgba(20,211,202,.9)); transform: scale(1.12); outline: none; }
.post-image-gallery-count { position: absolute; right: 10px; bottom: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 8px; background: rgba(6,9,24,.78); color: #fff; font-size: 10px; font-weight: 700; pointer-events: none; }
@media (hover: none) { .post-image-gallery-nav { opacity: 1; } }
.detail-image-button.post-image-button { height: auto; }
.detail-image-button.post-image-button .post-image { height: auto; max-height: min(52vh, 520px); }
.detail-header { display: flex; align-items: center; gap: 10px; margin-right: 40px; }
.detail-body { margin: 21px 0 0; color: #bbc2d6; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-product { margin: 15px 0 0; border: 1px solid rgba(126,142,182,.18); border-radius: 13px; padding: 13px 15px; background: rgba(255,255,255,.025); }
.detail-product strong { display: block; font-size: 12px; }
.detail-product span { display: block; margin-top: 3px; color: #9da7c0; font-size: 10px; }
.comments-section { margin-top: 26px; border-top: 1px solid rgba(126,142,182,.18); padding-top: 18px; }
.comments-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.comments-heading h3 { margin: 0; font-size: 14px; }
.comments-heading span { color: #8993ad; font-size: 10px; }
.comments-list { display: grid; max-height: min(42vh, 420px); gap: 13px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(139,92,246,.45) rgba(255,255,255,.04); scrollbar-width: thin; margin: 16px 0; padding: 2px 8px 2px 0; touch-action: pan-y; }
.detail-dialog .comments-list { max-height: none; overflow: visible; overscroll-behavior: auto; }
.comment-row { display: flex; align-items: flex-start; gap: 9px; }
.comment-avatar { display: grid; width: 29px; height: 29px; flex: 0 0 29px; overflow: hidden; place-items: center; border-radius: 50%; background: #293153; color: #ddd3ff; font-size: 10px; font-weight: 750; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-bubble { flex: 1; border: 1px solid rgba(126,142,182,.12); border-radius: 0 12px 12px; padding: 9px 11px; background: rgba(255,255,255,.03); }
.comment-meta { display: flex; align-items: center; gap: 7px; }
.comment-meta strong { font-size: 10px; }
.comment-meta span { color: #8b95ae; font-size: 9px; }
.comment-bubble p { margin: 5px 0 0; color: #b8bfd2; font-size: 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments-empty { color: #8993ad; font-size: 10px; }
.comment-form { display: grid; gap: 8px; margin-top: 16px; }
.comment-form textarea { min-height: 72px; }
.comment-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-submit-row .dialog-message { flex: 1; margin: 0; }
.comment-submit-row .primary-button { width: auto; min-width: 110px; padding: 0 16px; }
.report-dialog { width: min(100% - 28px, 490px); }
.image-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden; border: 0; padding: 60px 24px 24px; margin: 0; background: rgba(3,5,14,.96); color: white; }
.image-lightbox::backdrop { background: rgba(3,5,14,.94); backdrop-filter: blur(10px); }
.image-lightbox form { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); }
.image-lightbox-close { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(170,184,218,.3); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; font-size: 30px; line-height: 1; }
.image-lightbox > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-lightbox-nav { position: absolute; z-index: 3; inset: 50% 18px auto; display: flex; align-items: center; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.image-lightbox-nav[hidden] { display: none; }
.image-lightbox-nav button { display: grid; width: 58px; height: 86px; place-items: center; border: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; font-size: 66px; line-height: 1; text-shadow: 0 2px 16px rgba(0,0,0,.8); pointer-events: auto; transition: color .16s ease, filter .16s ease, transform .16s ease; }
.image-lightbox-nav button:hover, .image-lightbox-nav button:focus-visible { color: #a9fff6; filter: drop-shadow(0 0 12px rgba(20,211,202,.9)); transform: scale(1.1); outline: none; }
.image-lightbox-nav span { position: absolute; left: 50%; bottom: -42vh; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 6px 11px; background: rgba(5,7,17,.72); color: #fff; font-size: 12px; font-weight: 700; }
body.community-modal-open { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 1000px) {
  .site-nav { position: static; margin-left: auto; transform: none; }
  .site-nav a:not(.active) { display: none; }
}
@media (max-width: 900px) {
  .create-post-button { position: fixed; z-index: 500; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); min-height: 54px; padding-inline: 21px; border-color: rgba(190,168,255,.48); background: linear-gradient(115deg, #7951e8, #6255df 68%, #4d86ea); box-shadow: 0 12px 32px rgba(65,52,180,.42), 0 3px 12px rgba(0,0,0,.28); color: #fff; font-size: 14px; }
  .create-post-button .community-icon { color: #fff; }
  .create-post-button:hover { background: linear-gradient(115deg, #8a62f2, #7166eb 68%, #5a96f2); }
  .app-dialog.welcome-dialog { width: min(calc(100% - 32px), 760px); padding: 0; }
  .welcome-dialog .community-intro { min-height: 295px; }
  .welcome-dialog .intro-art { width: 210px; height: 265px; flex-basis: 210px; margin-left: 20px; }
  .app-dialog .community-intro h2 { font-size: clamp(44px, 6vw, 58px); }
  .community-intro { padding: 36px; }
  .intro-art { width: 190px; height: 220px; flex-basis: 190px; margin-right: 0; }
  .intent-card { padding: 13px; }
  .intent-copy strong { font-size: 11px; }
  .intent-copy small { font-size: 9px; }
  .post-types-panel { margin-top: 8px; }
  .feed-toolbar { display: block; min-height: 0; padding: 0; border: 0; }
  .feed-tabs { width: 100%; height: 52px; flex: none; gap: 7px; overflow-x: auto; }
  .feed-tab { min-height: 40px; padding: 0 12px; font-size: clamp(11px, 2.8vw, 13px); }
  .feed-you-tab { min-height: 40px; }
  .feed-you-tab .feed-tab { min-height: 38px; padding: 0 6px 0 10px; }
  .type-filter-row { gap: 8px; padding: 9px 0 3px; }
  .type-chip { scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .create-post-button { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 50px; padding-inline: 18px; }
  .app-dialog.welcome-dialog { width: min(calc(100% - 24px), 560px); padding: 0; }
  .welcome-dialog .community-intro { padding: 29px 25px; }
  .app-dialog .community-intro h2 { font-size: clamp(40px, 8vw, 56px); }
  .welcome-actions { flex-wrap: wrap; gap: 9px; margin-top: 19px; }
  .welcome-actions .primary-button { min-width: 0; }
  .welcome-capabilities { gap: 8px; margin-top: 19px; }
  .welcome-capabilities article { gap: 8px; padding: 10px; }
  .capability-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .capability-icon .community-icon { width: 21px; height: 21px; }
  .welcome-capabilities p { font-size: 9px; }
  .welcome-promo { margin-top: 10px; }
  .site-header { height: 65px; gap: 12px; padding-inline: 13px; border-radius: 0; margin-top: 0; }
  .site-nav { gap: 17px; font-size: 11px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand img { width: 34px; height: 34px; }
  .avatar-button { min-height: 37px; padding: 0 12px; font-size: 10px; }
  .account-area { gap: 12px; }
  .notification-button { width: 37px; height: 37px; flex-basis: 37px; }
  .notifications-panel { position: fixed; top: 73px; right: 12px; }
  .page-shell { width: min(100% - 30px, var(--max)); }
  .community-intro { min-height: 0; padding: 29px 25px; border-radius: 22px; margin-top: 22px; }
  .community-intro h1 { max-width: 470px; font-size: clamp(40px, 8vw, 56px); }
  .community-intro h2 { max-width: 470px; font-size: clamp(40px, 8vw, 56px); }
  .intro-text { max-width: 530px; font-size: 15px; }
  .intro-art { display: none; }
  .welcome-dialog .community-intro { flex-direction: column; align-items: stretch; }
  .welcome-dialog .intro-art { display: block; width: min(100%, 240px); height: 300px; flex-basis: 300px; align-self: center; margin: 16px 0 0; }
  .intent-picker-options .intent-card { min-height: 76px; padding: 12px; }
  .intent-picker-options .intent-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
  .intent-picker-options .intent-icon .community-icon { width: 23px; height: 23px; }
  .community-layout { margin: 36px 0 45px; }
  .feed-column { width: 100%; }
  .feed-heading h1 { font-size: 35px; }
  .search-sort-row { gap: 8px; }
  .search-bar { height: 48px; gap: 8px; padding: 0 11px; }
  .search-bar input { font-size: 11px; }
  .sort-control select { min-height: 48px; padding: 0 10px; font-size: 11px; }
  .type-filter-row { gap: 8px; padding-top: 8px; }
  .type-chip { min-height: 46px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .site-header { gap: 9px; }
  .brand { gap: 6px; font-size: 12px; }
  .brand img { width: 30px; height: 30px; border-radius: 9px; }
  .site-nav { gap: 12px; font-size: 10px; }
  .account-area { min-width: 63px; gap: 10px; }
  .avatar-button { min-height: 33px; padding: 0 9px; font-size: 9px; }
  .avatar-button.auth-pending { display: grid; width: 34px; height: 34px; min-height: 34px; place-items: center; overflow: hidden; padding: 0; border-radius: 50%; cursor: progress; }
  .avatar-button.signed-in { width: 34px; height: 34px; min-height: 34px; }
  .notification-button { width: 34px; height: 34px; flex-basis: 34px; }
  .notification-button .community-icon { width: 18px; height: 18px; }
  .notifications-panel { top: 70px; right: 8px; width: min(390px, calc(100vw - 16px)); padding: 15px; }
  .page-shell { width: calc(100% - 24px); }
  .community-intro { padding: 24px 19px; }
  .community-intro h1 { max-width: 360px; font-size: 40px; }
  .community-intro h2 { max-width: 360px; font-size: 40px; }
  .intro-text { max-width: 330px; font-size: 14px; }
  .feed-heading { align-items: center; }
  .feed-heading-actions { align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
  .create-post-button { min-height: 37px; padding: 0 13px; font-size: 11px; }
  .feed-live { font-size: 9px; }
  .type-chip { min-height: 44px; gap: 7px; padding: 0 14px; font-size: 12px; }
  .type-chip-icon { width: 21px; height: 21px; flex-basis: 21px; font-size: 19px; }
  .post-inner { padding: 19px 16px 16px; }
  .post-title { font-size: 19px; }
  .post-text { font-size: 14px; }
  .post-actions { gap: 0; padding: 9px 8px; }
  .post-action { gap: 5px; padding: 0 7px; font-size: 10px; }
  .post-action.discussion-action { margin-left: 0; }
  .app-dialog { padding: 25px 19px; border-radius: 20px; }
  .site-footer { flex-wrap: wrap; gap: 8px 11px; padding: 14px 12px; font-size: 9px; text-align: center; }
}
@media (min-width: 1360px) {
  .site-header { width: min(var(--max), calc(100% - clamp(48px, 6vw, 104px))); }
  .site-nav { gap: clamp(24px, 2vw, 36px); font-size: 15px; }
  .account-area { gap: 20px; }
  .notifications-panel { width: min(520px, calc(100vw - 48px)); max-height: min(760px, calc(100vh - 110px)); padding: 25px; }
  .notifications-panel-heading { padding-bottom: 18px; }
  .notifications-panel-heading h2 { font-size: 34px; }
  .notifications-panel-heading .section-kicker { font-size: 10px; }
  .notifications-mark-read { font-size: 13px; }
  .notifications-list { max-height: min(600px, calc(78vh - 110px)); gap: 10px; padding-top: 16px; }
  .notification-item { gap: 15px; padding: 16px; }
  .notification-kind-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .notification-kind-icon .community-icon { width: 23px; height: 23px; }
  .notification-item-copy strong { font-size: 14px; }
  .notification-item-copy span { font-size: 13px; }
  .notification-item-copy time { font-size: 11px; }
  .page-shell { width: min(var(--max), calc(100% - clamp(48px, 6vw, 104px))); }
  .community-layout { display: grid; grid-template-columns: minmax(300px, 340px) minmax(560px, 920px) minmax(300px, 340px); align-items: start; justify-content: center; gap: clamp(14px, 1.1vw, 18px); margin: 38px 0 70px; }
  .search-sort-row .sort-control { display: none; }
  .feed-column {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(126,142,182,.18);
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(155deg, rgba(13,17,35,.9), rgba(8,10,25,.86));
    box-shadow: 0 18px 48px rgba(0,0,0,.16), inset 0 1px 0 rgba(205,225,255,.035);
  }
  .category-divider { display: none; }
  .left-community-rail { position: sticky; top: 98px; display: grid; align-self: start; gap: 18px; transition: top .22s ease; }
  body.community-header-hidden .left-community-rail { top: 24px; }
  .post-type-rail { padding: 22px 20px; border: 1px solid rgba(126,142,182,.2); border-radius: 20px; background: linear-gradient(145deg, rgba(16,21,42,.82), rgba(13,17,35,.76)); }
  .rail-kicker { margin: 0 0 9px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
  .community-rail h2, .left-community-rail h2 { margin: 0 0 18px; font-family: "Newsreader", Georgia, serif; font-size: 31px; font-weight: 600; line-height: 1.08; }
  .post-type-rail h2 { margin-bottom: 18px; color: var(--cyan); font-size: 31px; }
  #desktop-type-rail .post-types-panel { margin: 0; border: 0; border-radius: 0; padding: 0; background: transparent; }
  #desktop-type-rail .type-filter-row { display: grid; overflow: visible; gap: 8px; padding: 0; touch-action: auto; cursor: default; user-select: auto; }
  #desktop-type-rail .post-type-label { min-height: 30px; margin: 0 0 4px; font-size: 11px; }
  #desktop-type-rail .type-chip { width: 100%; min-height: 46px; justify-content: flex-start; border-color: transparent; border-radius: 12px; padding: 0 13px; background: transparent; font-size: 14px; }
  #desktop-type-rail .type-chip-icon { width: 23px; height: 23px; flex-basis: 23px; font-size: 21px; }
  #desktop-type-rail .type-chip:hover { transform: none; background: rgba(255,255,255,.045); }
  #desktop-type-rail .type-chip.selected { border-color: rgba(20,211,202,.18); background: rgba(20,211,202,.1); color: #9ff2e7; }
  #desktop-type-rail .type-chip[data-type-filter="all"] { padding-left: 16px; }
  .weekly-ranking-panel { margin: 0; border: 1px solid rgba(255,209,102,.25); border-radius: 17px; padding: 17px 14px 15px; background: linear-gradient(145deg, rgba(47,39,31,.58), rgba(18,19,37,.92) 66%); box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,236,190,.05); }
  .weekly-ranking-panel h3 { margin: 0 0 14px; color: #ffd166; font-family: "Newsreader", Georgia, serif; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
  .weekly-ranking-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .weekly-ranking-item { min-width: 0; }
  .weekly-ranking-link { display: grid; width: 100%; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 11px; border: 1px solid rgba(126,142,182,.16); border-radius: 13px; padding: 11px; background: rgba(7,10,25,.42); color: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
  .weekly-ranking-link:hover { transform: translateY(-1px); border-color: rgba(255,209,102,.4); background: rgba(255,209,102,.06); }
  .weekly-ranking-number { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,209,102,.32); border-radius: 50%; background: rgba(255,209,102,.1); color: #ffd166; font-size: 13px; font-weight: 800; }
  .weekly-ranking-copy { display: grid; min-width: 0; gap: 3px; }
  .weekly-ranking-copy strong { overflow: hidden; color: #edf0fa; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .weekly-ranking-copy small { overflow: hidden; color: #9ea9c2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .weekly-ranking-empty { color: #9ea9c2; font-size: 12px; line-height: 1.5; }
  .create-rail-card { position: sticky; top: 24px; border: 1px solid rgba(126,142,182,.22); border-radius: 20px; padding: 18px; background: linear-gradient(155deg, rgba(22,26,52,.94), rgba(13,17,35,.9)); box-shadow: 0 18px 50px rgba(4,5,18,.18); }
  #desktop-create-slot { width: 100%; }
  .create-rail-card h2 { margin: 0 0 6px; font-family: inherit; font-size: 23px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
  .create-rail-card .rail-description { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  #desktop-create-slot .create-post-button { width: 100%; min-height: 52px; border-radius: 14px; background: linear-gradient(115deg, #7951e8, #6255df 68%, #4d86ea); box-shadow: 0 9px 24px rgba(65,52,180,.25); color: #fff; font-size: 15px; }
  #desktop-create-slot .create-post-button .community-icon { color: #fff; }
  .rail-rule { height: 1px; margin: 24px 0 20px; background: linear-gradient(90deg, transparent, rgba(126,142,182,.32), transparent); }
  .rail-capabilities { display: grid; gap: 21px; margin: 15px 0 0; padding: 0; list-style: none; }
  .create-rail-card .rail-capabilities { gap: 14px; margin-top: 19px; }
  .rail-capabilities li { display: flex; align-items: flex-start; gap: 13px; }
  .rail-capabilities .community-icon { width: 23px; height: 23px; margin-top: 1px; color: var(--cyan); }
  .create-rail-card .rail-capabilities .community-icon { width: 21px; height: 21px; flex: 0 0 21px; }
  .rail-capabilities span { display: grid; gap: 3px; }
  .rail-capabilities strong { color: #e6e9f6; font-size: 14px; line-height: 1.4; }
  .rail-capabilities small { color: #a4adc5; font-size: 12px; line-height: 1.5; }
  .create-rail-card .rail-capabilities li { gap: 11px; }
  .create-rail-card .rail-capabilities strong { font-size: 13px; }
  .create-rail-card .rail-capabilities small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Give desktop dialogs enough room for comfortable reading and editing. */
@media (min-width: 901px) {
  .app-dialog:not(.welcome-dialog) {
    max-height: min(92vh, 1040px);
    padding: 40px;
    border-radius: 27px;
  }
  .app-dialog:not(.welcome-dialog) h2 { margin-top: 9px; font-size: clamp(30px, 2.2vw, 36px); }
  .app-dialog:not(.welcome-dialog) .dialog-lede { margin: 10px 0 25px; font-size: 15px; line-height: 1.65; }
  .app-dialog:not(.welcome-dialog) .section-kicker { font-size: 12px; }
  .app-dialog:not(.welcome-dialog) .dialog-close { top: 17px; right: 17px; width: 44px; height: 44px; font-size: 28px; }
  .intent-picker-dialog .saved-drafts-quick { top: 17px; right: 79px; min-height: 44px; padding-inline: 12px; font-size: 12px; }
  .app-dialog:not(.welcome-dialog) .google-button,
  .app-dialog:not(.welcome-dialog) .primary-button { min-height: 56px; border-radius: 14px; font-size: 15px; }
  .app-dialog:not(.welcome-dialog) .google-mark { width: 22px; height: 22px; flex-basis: 22px; }
  .app-dialog:not(.welcome-dialog) .dialog-form { gap: 12px; }
  .app-dialog:not(.welcome-dialog) .dialog-form label { margin-top: 8px; font-size: 14px; }
  .app-dialog:not(.welcome-dialog) .dialog-form label span { font-size: 12px; }
  .app-dialog:not(.welcome-dialog) .dialog-form input,
  .app-dialog:not(.welcome-dialog) .dialog-form textarea,
  .app-dialog:not(.welcome-dialog) .dialog-form select,
  .app-dialog:not(.welcome-dialog) .comment-form textarea { min-height: 52px; border-radius: 13px; padding: 15px 16px; font-size: 15px; }
  .app-dialog:not(.welcome-dialog) .dialog-form textarea { min-height: 160px; line-height: 1.65; }
  .app-dialog:not(.welcome-dialog) .auth-mode-switch { margin-top: 20px; font-size: 14px; }
  .app-dialog:not(.welcome-dialog) .auth-create-fields { gap: 12px; }
  .app-dialog:not(.welcome-dialog) .auth-field-hint,
  .app-dialog:not(.welcome-dialog) .auth-field-error { font-size: 13px; }
  .app-dialog:not(.welcome-dialog) .auth-info { width: 20px; height: 20px; flex-basis: 20px; font-size: 12px; }
  .app-dialog:not(.welcome-dialog) .form-divider { gap: 14px; margin: 22px 0; font-size: 12px; }
  .app-dialog:not(.welcome-dialog) .dialog-message { min-height: 22px; margin-top: 12px; font-size: 13px; }
  .app-dialog:not(.welcome-dialog) .form-hint { margin: 7px 0 10px; font-size: 12px; }
  .guidelines-dialog { width: min(calc(100% - 96px), 760px); }
  .guidelines-dialog .guidelines-grid { gap: 20px; margin-top: 20px; }
  .guidelines-dialog .guideline-group { border-radius: 17px; padding: 20px; }
  .guidelines-dialog .guideline-group h4 { gap: 10px; margin-bottom: 12px; font-size: 15px; }
  .guidelines-dialog .guideline-group h4 span { width: 24px; height: 24px; font-size: 14px; }
  .guidelines-dialog .guideline-group ul { gap: 10px; }
  .guidelines-dialog .guideline-group li,
  .guidelines-dialog .guidelines-note { font-size: 14px; line-height: 1.65; }
  .guidelines-agreement-note { margin-top: 18px; font-size: 15px; }
  .guidelines-actions { gap: 12px; margin-top: 22px; }
  .guidelines-actions button { min-width: 146px; min-height: 50px; padding-inline: 20px; font-size: 14px; }
  .auth-dialog { width: min(calc(100% - 96px), 620px); }
  .intent-picker-dialog { width: min(calc(100% - 96px), 780px); }
  .intent-picker-options { gap: 14px; margin-top: 27px; }
  .intent-picker-options .intent-card { min-height: 108px; gap: 17px; border-radius: 19px; padding: 22px 24px; }
  .intent-picker-options .intent-icon { width: 60px; height: 60px; flex-basis: 60px; border-radius: 18px; }
  .intent-picker-options .intent-icon .community-icon { width: 32px; height: 32px; }
  .intent-picker-options .intent-copy { gap: 5px; }
  .intent-picker-options .intent-copy strong { font-size: 17px; }
  .intent-picker-options .intent-copy small { font-size: 14px; line-height: 1.5; }
  .intent-picker-options .intent-arrow { font-size: 24px; }
  .compose-dialog { width: min(calc(100% - 96px), 760px); }
  .report-dialog { width: min(calc(100% - 96px), 650px); }
  .detail-dialog { width: min(calc(100vw - 32px), 900px); height: 94dvh; max-height: 94dvh; border-radius: 18px; }
  .detail-scroll-content { padding: 16px; }
  .detail-dialog .detail-body { margin-top: 25px; font-size: 15px; line-height: 1.75; }
  .detail-dialog .detail-product { margin-top: 19px; border-radius: 16px; padding: 17px 19px; }
  .detail-dialog .detail-product strong { font-size: 15px; }
  .detail-dialog .detail-product span { margin-top: 6px; font-size: 13px; }
  .detail-dialog .comments-section { margin-top: 32px; padding-top: 24px; }
  .detail-dialog .comments-heading h3 { font-size: 19px; }
  .detail-dialog .comments-heading span { font-size: 13px; }
  .detail-dialog .comments-list { gap: 16px; margin: 20px 0; }
  .detail-dialog .comment-row { gap: 12px; }
  .detail-dialog .comment-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 13px; }
  .detail-dialog .comment-bubble { border-radius: 0 16px 16px; padding: 13px 16px; }
  .detail-dialog .comment-meta { gap: 9px; }
  .detail-dialog .comment-meta strong { font-size: 14px; }
  .detail-dialog .comment-meta span { font-size: 12px; }
  .detail-dialog .comment-form { gap: 12px; margin-top: 20px; }
  .app-dialog.detail-dialog { max-height: 94dvh; border: 1px solid rgba(126,145,190,.3); border-radius: 18px; padding: 0; background: linear-gradient(155deg, #151a30, #0c1021 70%); box-shadow: 0 24px 80px rgba(0,0,0,.58); }
  .detail-dialog .detail-close-row { right: 0; }
  .detail-dialog .post-card { border-color: rgba(116,150,202,.45); border-radius: 22px; background: #11172b; box-shadow: 0 18px 54px rgba(0,0,0,.38), inset 0 1px 0 rgba(205,225,255,.045); }
  .detail-dialog .post-card:hover { background: #11172b; }
  .detail-dialog .post-inner { padding: 26px 30px 23px; }
  .detail-dialog .post-author-row { gap: 14px; }
  .detail-dialog .author-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 17px; }
  .detail-dialog .author-name { font-size: 18px; }
  .detail-dialog .author-handle { margin-top: 4px; font-size: 14px; }
  .detail-dialog .post-menu { width: 42px; height: 42px; }
  .detail-dialog .post-menu .community-icon { width: 25px; height: 25px; }
  .detail-dialog .post-category { margin: 19px 0 12px; padding: 7px 12px; font-size: 12px; }
  .detail-dialog .post-intent-badge { min-height: 28px; padding: 5px 11px; font-size: 11px; }
  .detail-dialog .post-title { margin-bottom: 8px; font-size: 27px; line-height: 1.22; }
  .detail-dialog .post-tagline { margin-bottom: 13px; font-size: 16px; }
  .detail-dialog .post-text { font-size: 16px; line-height: 1.7; }
  .detail-dialog .post-image-button { height: clamp(300px, 36vw, 500px); border-radius: 18px; margin-top: 22px; }
  .detail-dialog .post-link { min-height: 50px; margin-top: 22px; padding: 0 20px; font-size: 15px; }
  .detail-dialog .post-actions { gap: 9px; padding: 13px 22px; }
  .detail-dialog .post-action { min-height: 43px; gap: 8px; border-radius: 12px; padding: 0 13px; font-size: 13px; }
  .detail-dialog .post-action .community-icon { width: 22px; height: 22px; }
  .detail-dialog .comments-section { margin-top: 24px; border: 1px solid rgba(104,145,195,.3); border-radius: 20px; padding: 24px 28px; background: rgba(12,16,32,.82); }
  .detail-dialog .comments-list { max-height: none; }
  .detail-dialog .comment-form { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  .detail-dialog .comment-form textarea { grid-column: 1; grid-row: 1; min-height: 64px; resize: vertical; }
  .detail-dialog .comment-submit-row { display: contents; }
  .detail-dialog .comment-submit-row .dialog-message { grid-column: 1; grid-row: 2; margin: 8px 0 0; }
  .detail-dialog .comment-submit-row .primary-button { grid-column: 2; grid-row: 1; align-self: stretch; min-width: 148px; min-height: 64px; }
}

@media (max-width: 900px) {
  .detail-scroll-content { padding: 12px; }
  .detail-modal-heading { min-height: 54px; flex-basis: 54px; }
  .app-dialog.detail-dialog .detail-modal-heading h2 { font-size: 19px; }
  .app-dialog.detail-dialog { width: min(calc(100vw - 32px), 900px); height: 96dvh; max-height: 96dvh; padding: 0; border: 1px solid rgba(126,145,190,.3); border-radius: 16px; background: linear-gradient(155deg, #151a30, #0c1021 70%); box-shadow: 0 24px 80px rgba(0,0,0,.58); }
  .app-dialog.detail-dialog .detail-close-row .dialog-close { top: 0; right: 0; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; font-size: 24px; }
  .detail-dialog .post-card { border-color: rgba(116,150,202,.45); background: #11172b; }
}

@media (max-width: 640px) {
  .app-dialog.detail-dialog { width: calc(100vw - 16px); }
}

.app-dialog.detail-dialog .comment-form textarea { height: 46px; min-height: 46px; resize: none; }
.app-dialog.detail-dialog .comment-submit-row .primary-button { height: 46px; min-height: 46px; }
.detail-dialog .comments-section { display: flex; min-height: 220px; flex-direction: column; border: 1px solid rgba(104,145,195,.3); border-radius: 20px; padding: 20px 22px; margin-top: 24px; background: rgba(12,16,32,.88); }
.detail-dialog .comments-list { display: grid; min-height: 110px; flex: 1 1 auto; align-content: center; gap: 14px; overflow: visible; margin: 12px 0 0; padding: 2px; }
.detail-dialog .comments-empty { margin: 0; text-align: center; }
.detail-comment-footer { flex: 0 0 auto; border-top: 1px solid rgba(126,142,182,.18); padding: 12px 20px 16px; background: rgba(10,14,28,.98); }
.detail-dialog .comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 0; margin: 0; }
.detail-dialog .comment-form textarea { grid-column: 1; grid-row: 1; width: 100%; height: 46px; min-height: 46px; resize: none; }
.detail-dialog .comment-submit-row { display: contents; }
.detail-dialog .comment-submit-row .dialog-message { grid-column: 1; grid-row: 2; margin: 5px 0 0; }
.detail-dialog .comment-submit-row .primary-button { grid-column: 2; grid-row: 1; width: auto; min-width: 120px; height: 46px; min-height: 46px; padding: 0 16px; }

@media (max-width: 640px) {
  .detail-comment-footer { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .detail-dialog .comments-section { min-height: 190px; padding: 16px; }
  .detail-dialog .comment-submit-row .primary-button { min-width: 92px; padding-inline: 12px; }
}


/* Comment threads mirror the Android community controls inside the expanded post view. */
.detail-dialog .comments-tools { display: flex; align-items: center; gap: 12px; }
.detail-dialog .comments-tools select { min-height: 38px; border: 1px solid rgba(126,145,190,.28); border-radius: 10px; padding: 0 32px 0 12px; background: #11172b; color: #dce4f5; font: inherit; font-size: 13px; }
.detail-dialog .comments-heading { align-items: center; }
.detail-dialog #comment-count-label { color: #8993ad; font-size: 12px; }
.detail-dialog .comments-list { align-content: start; }
.detail-dialog .comment-thread { min-width: 0; }
.detail-dialog .comment-row { gap: 11px; min-width: 0; }
.detail-dialog .comment-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 13px; }
.detail-dialog .comment-bubble { min-width: 0; border: 1px solid rgba(126,142,182,.16); border-radius: 0 14px 14px; padding: 12px 14px; background: rgba(22,29,49,.78); }
.detail-dialog .comment-meta { position: relative; min-height: 26px; gap: 8px; }
.detail-dialog .comment-meta strong { color: #eef2ff; font-size: 13px; }
.detail-dialog .comment-meta > span { color: #8d98b1; font-size: 11px; }
.detail-dialog .comment-meta .verified-badge { width: 16px; height: 16px; }
.detail-dialog .comment-text { margin: 7px 0 4px; color: #c4cce0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-dialog .comment-engagement { display: flex; align-items: center; gap: 5px; margin: 8px 0 -4px -7px; }
.detail-dialog .comment-engagement button, .detail-dialog .comment-reply-order, .detail-dialog .comment-thread-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; border: 0; border-radius: 9px; padding: 0 9px; background: transparent; color: #aeb9d1; font: inherit; font-size: 12px; cursor: pointer; }
.detail-dialog .comment-engagement button:hover, .detail-dialog .comment-reply-order:hover, .detail-dialog .comment-thread-toggle:hover { background: rgba(139,92,246,.11); color: #c7b6ff; }
.detail-dialog .comment-engagement button[aria-pressed="true"] { color: #19d7cf; }
.detail-dialog .comment-engagement .community-icon, .detail-dialog .comment-thread-toggle .community-icon, .detail-dialog .comment-reply-order .community-icon { width: 17px; height: 17px; }
.detail-dialog .comment-score { min-width: 16px; color: #e5eaff; font-size: 12px; text-align: center; }
.detail-dialog .comment-menu-wrap { position: relative; margin-left: auto; }
.detail-dialog .comment-menu-trigger { display: grid; width: 32px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #9da8c0; cursor: pointer; }
.detail-dialog .comment-menu-trigger:hover, .detail-dialog .comment-menu-trigger[aria-expanded="true"] { background: rgba(139,92,246,.14); color: #d8ccff; }
.detail-dialog .comment-menu-trigger .community-icon { width: 19px; height: 19px; }
.detail-dialog .comment-options-menu { position: absolute; z-index: 8; top: calc(100% + 5px); right: 0; display: grid; width: min(245px, 72vw); gap: 3px; border: 1px solid rgba(126,145,190,.26); border-radius: 14px; padding: 7px; background: #171d32; box-shadow: 0 18px 45px rgba(0,0,0,.48); }
.detail-dialog .comment-options-menu[hidden] { display: none; }
.detail-dialog .comment-options-menu button { display: flex; align-items: center; gap: 10px; min-height: 38px; border: 0; border-radius: 9px; padding: 0 10px; background: transparent; color: #d8deee; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.detail-dialog .comment-options-menu button:hover { background: rgba(139,92,246,.13); }
.detail-dialog .comment-options-menu button.danger { color: #ff9b9b; }
.detail-dialog .comment-options-menu .community-icon { width: 17px; height: 17px; color: #9f8dff; }
.detail-dialog .comment-pinned-label { border-radius: 20px; padding: 3px 8px; background: rgba(25,215,207,.1); color: #21d7cf !important; font-size: 10px !important; font-weight: 700; }
.detail-dialog .comment-row.is-pinned .comment-bubble { border-color: rgba(25,215,207,.36); }
.detail-dialog .comment-row.is-hidden-comment .comment-bubble { border-style: dashed; background: rgba(255,255,255,.018); }
.detail-dialog .comment-hidden-note, .detail-dialog .comment-deleted { color: #9da8bf; font-size: 13px; font-style: italic; }
.detail-dialog .comment-hidden-note button, .detail-dialog .comment-error button { border: 0; background: none; color: #21d7cf; font: inherit; cursor: pointer; }
.detail-dialog .comment-deleted { margin: 8px 0 0; }
.detail-dialog .comment-reply-section { margin: 7px 0 0 49px; border-left: 1px solid rgba(126,145,190,.2); padding-left: 12px; }
.detail-dialog .comment-reply-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.detail-dialog .comment-replies { display: grid; gap: 10px; margin: 5px 0 0 7px; }
.detail-dialog .reply-comment .comment-avatar { width: 32px; height: 32px; flex-basis: 32px; }
.detail-dialog .reply-comment .comment-bubble { padding: 10px 12px; }
.detail-dialog .reply-comment .comment-meta strong { font-size: 12px; }
.detail-dialog .reply-comment .comment-text { font-size: 13px; }
.detail-dialog .comment-list-note, .detail-dialog .comment-error { margin: 5px 0; color: #9da8bf; font-size: 12px; }
.detail-dialog .load-more-comments, .detail-dialog .load-more-replies { justify-self: start; color: #19d7cf; }
.detail-dialog .comment-reply-context { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: #aab6d0; font-size: 12px; }
.detail-dialog .comment-reply-context[hidden] { display: none; }
.detail-dialog #cancel-comment-reply { border: 0; background: none; color: #bac3d7; font-size: 20px; cursor: pointer; }
.detail-dialog .comment-submit-row .dialog-message { font-size: 12px; }
.detail-dialog .comment-engagement button:focus-visible, .detail-dialog .comment-menu-trigger:focus-visible, .detail-dialog .comment-options-menu button:focus-visible, .detail-dialog .comment-thread-toggle:focus-visible, .detail-dialog .comment-reply-order:focus-visible { outline: 2px solid #19d7cf; outline-offset: 2px; }
@media (max-width: 640px) {
  .detail-dialog .comments-tools { gap: 7px; }
  .detail-dialog .comments-tools select { min-height: 34px; max-width: 145px; font-size: 11px; }
  .detail-dialog .comment-bubble { padding: 10px 11px; }
  .detail-dialog .comment-reply-section { margin-left: 36px; padding-left: 9px; }
  .detail-dialog .comment-replies { margin-left: 3px; }
  .detail-dialog .comment-engagement { flex-wrap: wrap; }
}

.detail-dialog .comment-reply-context:not([hidden]) { grid-row: 1; }
.detail-dialog .comment-form:has(.comment-reply-context:not([hidden])) textarea { grid-row: 2; }
.detail-dialog .comment-form:has(.comment-reply-context:not([hidden])) .comment-submit-row .primary-button { grid-row: 2; }
.detail-dialog .comment-form:has(.comment-reply-context:not([hidden])) .comment-submit-row .dialog-message { grid-row: 3; }

.detail-dialog .comment-author-label { color: #19d7cf !important; font-size: 10px !important; font-weight: 700; }

.external-link-dialog { width: min(calc(100vw - 36px), 660px); padding: 34px; }
.external-link-dialog h2 { margin: 8px 42px 0 0; color: #f4f2ff; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.external-link-dialog .dialog-lede { margin: 12px 0 22px; font-size: 15px; line-height: 1.6; }
.external-link-destination { display: grid; gap: 8px; border: 1px solid rgba(126,142,182,.28); border-radius: 14px; padding: 16px; background: rgba(6,9,24,.72); }
.external-link-destination span { color: #19d7cf; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.external-link-destination code { overflow-wrap: anywhere; color: #e3e8f7; font: 14px/1.55 "Instrument Sans", sans-serif; }
.external-link-note { margin: 14px 0 20px; color: #aab2c8; font-size: 13px; line-height: 1.5; }
.external-link-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.external-link-actions .primary-button, .external-link-actions .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; }
.external-link-actions .secondary-button { border: 1px solid rgba(126,142,182,.28); background: rgba(255,255,255,.035); color: #d3daec; }
.external-link-actions .secondary-button:hover { border-color: rgba(25,215,207,.4); background: rgba(25,215,207,.08); }
.external-link-copy-message { min-height: 18px; margin: 8px 0 0; font-size: 12px; }
.external-link-dialog::backdrop { background: rgba(3,4,14,.78); backdrop-filter: blur(7px); }
@media (max-width: 600px) {
  .external-link-dialog { width: calc(100vw - 28px); padding: 26px 20px 22px; }
  .external-link-dialog h2 { font-size: 25px; }
  .external-link-dialog .dialog-lede { font-size: 14px; }
  .external-link-destination { padding: 13px; }
  .external-link-destination code { font-size: 12px; }
  .external-link-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .external-link-actions #external-link-continue { grid-column: 1 / -1; grid-row: 1; }
  .external-link-actions #external-link-cancel { grid-column: 1; grid-row: 2; }
  .external-link-actions #external-link-copy { grid-column: 2; grid-row: 2; }
}
.follow-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.follow-button .community-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.post-card .post-author-row .author-name {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
}
.post-card .post-author-row .author-handle {
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: #929bb5;
}
.post-card .post-author-row .follow-button {
  appearance: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(20,184,166,.55);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(20,184,166,.11);
  box-shadow: none;
  color: #8fe9df;
  font: 750 11px/1 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.post-card .post-author-row .follow-button:hover { border-color: rgba(20,211,202,.78); background: rgba(20,184,166,.17); }
.post-card .post-author-row .follow-button.following { border-color: rgba(126,142,182,.28); background: rgba(255,255,255,.04); color: #b5bdd0; }
.post-card .post-author-row .follow-button .community-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.post-options-wrap { z-index: 31; }
.post-options-menu { max-height: min(70vh, 440px); overflow-y: auto; overscroll-behavior: contain; }
.post-edit-dialog { width: min(calc(100vw - 36px), 640px); }
.post-edit-dialog h2 { margin: 7px 42px 0 0; font-size: clamp(25px, 3vw, 34px); }
.post-edit-dialog .dialog-lede { font-size: 14px; }
@media (max-width: 600px) {
  .post-edit-dialog { width: calc(100vw - 28px); }
}

.site-header { position: sticky; top: 0; z-index: 1000; transition: transform .22s ease; will-change: transform; }
.site-header.is-hidden-on-scroll { transform: translateY(calc(-100% - 2px)); }
.scroll-top-button { position: fixed; z-index: 900; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(20,211,202,.35); border-radius: 999px; padding: 0 16px; background: linear-gradient(140deg, rgba(18,28,48,.96), rgba(13,17,35,.97)); box-shadow: 0 10px 28px rgba(0,0,0,.32), 0 0 20px rgba(20,211,202,.08); color: #dffdfa; cursor: pointer; font-size: 13px; font-weight: 750; opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.scroll-top-button[hidden] { display: none; }
.scroll-top-button:hover { border-color: rgba(20,211,202,.72); box-shadow: 0 12px 30px rgba(0,0,0,.38), 0 0 24px rgba(20,211,202,.18); transform: translateY(-2px); }
.scroll-top-button svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .scroll-top-button { right: max(20px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .scroll-top-button { transition: none; }
}

/* Checkout confirmation: keep the destination and its copy action together. */
.external-link-dialog { width: min(calc(100vw - 36px), 660px); padding: 34px; }
.external-link-dialog > form:first-child .dialog-close { top: 18px; right: 18px; width: 38px; height: 38px; padding: 0; color: #f4f2ff; font-size: 26px; line-height: 1; }
.external-link-dialog h2 { max-width: calc(100% - 48px); margin: 8px 0 0; color: #f4f2ff; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.external-link-dialog .dialog-lede { margin: 12px 0 22px; font-size: 15px; line-height: 1.6; }
.external-link-destination { display: grid; gap: 9px; border: 1px solid rgba(126,142,182,.28); border-radius: 14px; padding: 16px; background: rgba(6,9,24,.72); }
.external-link-destination > span { color: #19d7cf; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.external-link-destination-value { display: flex; min-width: 0; align-items: center; gap: 12px; }
.external-link-destination code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: #e3e8f7; font: 14px/1.55 "Instrument Sans", sans-serif; }
.external-link-copy { display: inline-grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(126,142,182,.3); border-radius: 11px; background: rgba(255,255,255,.05); color: #dfe6fa; cursor: pointer; }
.external-link-copy:hover { border-color: rgba(25,215,207,.55); background: rgba(25,215,207,.1); color: #19d7cf; }
.external-link-copy .community-icon { width: 19px; height: 19px; }
.external-link-note { margin: 14px 0 20px; color: #aab2c8; font-size: 13px; line-height: 1.5; }
.external-link-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 12px; }
.external-link-actions .primary-button, .external-link-actions .secondary-button { display: inline-flex; width: auto; min-width: 136px; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; padding: 0 20px; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; }
.external-link-actions .secondary-button { border: 1px solid rgba(126,142,182,.28); background: rgba(255,255,255,.035); color: #d3daec; }
.external-link-actions .secondary-button:hover { border-color: rgba(25,215,207,.4); background: rgba(25,215,207,.08); }
.external-link-continue-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.external-link-copy-message { min-height: 18px; margin: 8px 0 0; font-size: 12px; }
.external-link-dialog::backdrop { background: rgba(3,4,14,.78); backdrop-filter: blur(7px); }
@media (max-width: 600px) {
  .external-link-dialog { width: calc(100vw - 28px); padding: 26px 20px 22px; }
  .external-link-dialog > form:first-child .dialog-close { top: 12px; right: 12px; }
  .external-link-dialog h2 { max-width: calc(100% - 42px); font-size: 25px; }
  .external-link-dialog .dialog-lede { font-size: 14px; }
  .external-link-destination { padding: 13px; }
  .external-link-destination code { font-size: 12px; }
  .external-link-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .external-link-actions .primary-button, .external-link-actions .secondary-button { width: 100%; min-width: 0; padding: 0 12px; }
}
@media (max-width: 600px) {
  .external-link-actions #external-link-cancel { grid-column: 1; grid-row: 1; }
  .external-link-actions #external-link-continue { grid-column: 2; grid-row: 1; }
}

/* Phone header and post-card controls use compact, non-overlapping actions. */
#account-button.has-unread-messages { position: relative; }
#account-button.has-unread-messages::after { position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border: 2px solid #10152a; border-radius: 50%; background: #20d3ca; box-shadow: 0 0 10px rgba(20,211,202,.65); content: ""; }
.post-title-row { gap: 14px; }
.post-title-row .post-link-mobile { flex: 0 0 auto; margin-left: 4px; }
.post-category,.post-intent-badge,.post-platform-badge { box-sizing: border-box; height: 26px; min-height: 26px; display: inline-flex; align-items: center; padding-block: 0; line-height: 1; }
@media (max-width: 760px) {
  .header-messages-button { display: none !important; }
  .post-card .post-author-row { min-width: 0; gap: 7px; }
  .post-card .post-author-row .author-meta { min-width: 0; flex: 1 1 auto; }
  .post-card .post-author-row .follow-button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; flex: 0 0 34px; gap: 0; padding: 0; }
  .post-card .post-author-row .follow-button > span { display: none; }
}
@media (max-width: 420px) {
  .post-card .post-title-row { gap: 12px; }
  .post-card .post-title-row .post-link-mobile { width: 36px; min-width: 36px; height: 36px; justify-content: center; gap: 0; padding: 0; font-size: 0; }
  .post-card .post-title-row .post-link-mobile > span { font-size: 15px; }
}
/* Keep the external-link confirmation close to its content height. */
.external-link-dialog { height: auto; min-height: 0; padding: 27px 30px 24px; }
.external-link-dialog .external-link-note { margin-bottom: 14px; }
.external-link-dialog .external-link-copy-message { min-height: 0; margin: 0; }
.external-link-dialog .external-link-copy-message:empty { display: none; }
@media (max-width: 600px) {
  .external-link-dialog { padding: 23px 20px 19px; }
}
/* The shared desktop dialog sizing was stretching this confirmation to max-height. */
.app-dialog.external-link-dialog { height: fit-content !important; min-height: 0 !important; max-height: min(92vh, 850px); padding: 22px 28px 18px !important; }
.app-dialog.external-link-dialog h2 { margin-top: 5px; }
.app-dialog.external-link-dialog .dialog-lede { margin: 8px 0 14px; }
.app-dialog.external-link-dialog .external-link-destination { gap: 6px; padding: 12px 14px; }
.app-dialog.external-link-dialog .external-link-note { margin: 9px 0 13px; }
.app-dialog.external-link-dialog .external-link-actions .primary-button,
.app-dialog.external-link-dialog .external-link-actions .secondary-button { min-height: 50px; min-width: 146px; }
.app-dialog.external-link-dialog .external-link-copy-message:empty { display: none; }
@media (max-width: 600px) {
  .app-dialog.external-link-dialog { height: fit-content !important; max-height: calc(100vh - 28px); padding: 21px 18px 17px !important; }
  .app-dialog.external-link-dialog .external-link-actions .primary-button,
  .app-dialog.external-link-dialog .external-link-actions .secondary-button { min-width: 0; }
}

.community-composer-embed, .community-composer-embed body { min-height: 100%; background: transparent !important; }
.community-composer-embed body::before { display: none; }
.community-composer-embed body { min-height: 100vh; margin: 0; overflow: hidden; }
.community-composer-embed body > :not(dialog):not(script) { display: none !important; }
.community-composer-embed body > dialog:not([open]) { display: none !important; }
.community-composer-embed body > dialog[open] { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }
.community-composer-embed .app-dialog::backdrop { background: transparent; backdrop-filter: none; }

@media (max-width: 560px) {
  .saved-drafts-quick { top: 13px; right: 65px; min-height: 34px; padding-inline: 9px; font-size: 9px; }
  .saved-draft-card { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .saved-draft-actions { justify-content: flex-end; }
}


/* Compact navigation shared by Community, Profile, and Settings on touch layouts. */
.mobile-menu-toggle { display: none; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid rgba(126,142,182,.2); border-radius: 12px; padding: 0; background: rgba(255,255,255,.035); color: #d9e2f4; cursor: pointer; }
.mobile-menu-toggle svg { width: 21px; height: 21px; }
.mobile-nav-panel[hidden] { display: none !important; }
.mobile-nav-panel { position: absolute; z-index: 1002; top: calc(100% + 8px); left: 0; display: grid; width: min(330px, calc(100vw - 28px)); gap: 14px; border: 1px solid rgba(126,142,182,.24); border-radius: 17px; padding: 12px; background: linear-gradient(155deg, rgba(17,22,43,.99), rgba(8,12,27,.99)); box-shadow: 0 22px 54px rgba(0,0,0,.48); }
.mobile-nav-panel nav { display: grid; gap: 4px; }
.mobile-nav-panel nav a { display: flex; min-height: 46px; align-items: center; border-radius: 11px; padding: 0 13px; color: #d3d9e9; font-size: 14px; font-weight: 700; text-decoration: none; }
.mobile-nav-panel nav a:hover, .mobile-nav-panel nav a.active { background: linear-gradient(110deg, rgba(20,211,202,.12), rgba(139,92,246,.13)); color: #a9fff5; }
.mobile-account-upgrade { display: none; }
.mobile-account-upgrade[hidden] { display: none !important; }
@media (max-width: 1359px) {
  .site-header { justify-content: flex-start; gap: 12px; }
  .mobile-menu-toggle { display: grid; }
  .site-header > .site-nav { display: none; }
  .site-header > .mobile-nav-panel { display: grid; }
  .account-area { margin-left: auto; gap: 14px; }
  .account-area > .upgrade-nav-button { display: none; }
  .account-area > .account-menu .mobile-account-upgrade:not([hidden]) { display: flex; }
  .mobile-nav-panel #mobile-weekly-slot:empty { display: none; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-panel { display: grid; gap: 10px; border: 1px solid rgba(255,209,102,.25); border-radius: 16px; padding: 14px; background: linear-gradient(145deg, rgba(47,39,31,.58), rgba(18,19,37,.92) 66%); box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,236,190,.05); }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-panel h3 { margin: 0; color: #ffd166; font: 650 19px Newsreader, Georgia, serif; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-link { display: flex; flex-direction: column; align-items: center; gap: 5px; border-color: rgba(126,142,182,.16); border-radius: 12px; padding: 10px 8px; background: rgba(7,10,25,.42); text-align: center; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-link:hover { border-color: rgba(255,209,102,.4); background: rgba(255,209,102,.06); }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-number { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid rgba(255,209,102,.32); border-radius: 50%; padding: 0; background: rgba(255,209,102,.1); color: #ffd166; font-size: 13px; line-height: 1; text-shadow: none; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-copy { justify-items: center; width: 100%; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-copy strong { max-width: 100%; color: #edf0fa; font-size: 12px; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-copy small { max-width: 100%; color: #9ea9c2; font-size: 10px; }
  .type-filter-shell { display: block; }
  .search-sort-row > .sort-control { display: none; }
  .create-post-button { position: fixed; z-index: 500; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); min-height: 54px; padding-inline: 21px; border-color: rgba(190,168,255,.48); background: linear-gradient(115deg, #7951e8, #6255df 68%, #4d86ea); box-shadow: 0 12px 32px rgba(65,52,180,.42), 0 3px 12px rgba(0,0,0,.28); color: #fff; font-size: 14px; }
  .create-post-button .community-icon { color: #fff; }
  .create-post-button:hover { background: linear-gradient(115deg, #8a62f2, #7166eb 68%, #5a96f2); }
  .community-layout { margin-top: 28px; }
}
@media (max-width: 720px) {
  .site-header { height: 66px; gap: 9px; }
  .mobile-menu-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .site-header .brand { gap: 7px; font-size: 14px; }
  .site-header .brand img { width: 34px; height: 34px; }
  .account-area { gap: 10px; }
  .notification-button { width: 36px; height: 38px; flex-basis: 36px; }
  .notification-button .community-icon { width: 23px; height: 23px; }
  .avatar-button:not(.signed-in):not(.auth-pending) { min-height: 38px; padding-inline: 13px; font-size: 12px; }
  .create-post-button { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 50px; padding-inline: 18px; }
  .feed-tabs { gap: 3px; }
  .feed-tab { padding-inline: 8px; font-size: 11px; }
  .type-filter-shell { margin-top: 2px; }
  .post-types-panel { padding: 12px; }
}
@media (max-width: 390px) {
  .feed-tab { padding-inline: 6px; font-size: 10px; }
  .feed-tabs { gap: 1px; }
}

/* Center the complete brand between the mobile menu and account controls. */
@media (max-width: 1359px) {
  .site-header {
    display: grid;
    /* Keep the brand on the true viewport center even when the account
       controls take more room than the menu button on the opposite side. */
    grid-template-columns: minmax(38px, 1fr) auto minmax(38px, 1fr);
    justify-content: initial;
    gap: 0;
  }
  .site-header > .mobile-menu-toggle { grid-column: 1; grid-row: 1; justify-self: start; border: 0; background: transparent; }
  .site-header > .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .site-header > .account-area { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
}

@media (max-width: 390px) {
  .site-header .brand span { display: inline; }
  .site-header .brand { gap: 5px; font-size: 12px; }
  .site-header .brand img { width: 30px; height: 30px; }
}

/* Keep the compact filter control quiet until its options are expanded. */
@media (max-width: 1359px) {
  .post-types-panel { padding: 9px 12px; }
  .mobile-filters-toggle {
    min-height: 36px;
    padding: 0 1px;
    margin: 0;
    border-bottom: 0;
  }
  .mobile-filters-toggle[aria-expanded="true"] {
    min-height: 40px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(126,142,182,.2);
  }
  .community-filter-selects { gap: 20px; }
  .scroll-top-button {
    right: auto;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
  }
  .scroll-top-button:hover { transform: translate(-50%, -2px); }
}
@media (max-width: 720px) {
  .post-types-panel { padding: 7px 10px; }
  .mobile-filters-toggle { min-height: 34px; font-size: 14px; }
  .mobile-filters-toggle[aria-expanded="true"] { min-height: 38px; margin-bottom: 9px; }
}

@media (max-width: 1359px) {
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-copy { display: grid; min-width: 0; gap: 2px; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-copy strong { overflow: hidden; color: #edf0fa; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-copy small { overflow: hidden; color: #9ea9c2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-panel #mobile-weekly-slot .weekly-ranking-empty { color: #9ea9c2; font-size: 11px; line-height: 1.5; }
}


/* Tablet and phone Community feed refinements. */
.post-text-toggle { display: none; }
.mobile-filters-toggle { display: none; }
.mobile-filters-toggle[hidden] { display: none !important; }
.community-filter-selects[hidden] { display: none !important; }
@media (max-width: 1359px) {
  .left-community-rail, .create-rail { display: none !important; }
  .community-layout { display: block; }
  .feed-column { width: 100%; margin: 0 auto; border: 1px solid rgba(126,142,182,.2); border-radius: 22px; padding: clamp(13px, 2.2vw, 22px); background: linear-gradient(155deg, rgba(13,17,35,.9), rgba(8,10,25,.86)); box-shadow: 0 16px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(205,225,255,.035); }
  .feed-tabs { gap: 8px; }
  .feed-tab, .feed-you-tab { min-height: 44px; }
  .feed-tab { flex: 0 0 auto; padding-inline: 14px; font-size: 13px; }
  .mobile-filters-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid rgba(126,142,182,.2); border-radius: 0; padding: 0 2px 11px; margin: 0 0 12px; background: transparent; color: #e5e9f5; cursor: pointer; font-size: 15px; font-weight: 800; text-align: left; }
  .mobile-filters-toggle svg { width: 19px; height: 19px; color: #a9b4cd; transition: transform .18s ease, color .18s ease; }
  .mobile-filters-toggle[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--cyan); }
  .post-types-panel { margin: 0; border-color: rgba(126,142,182,.16); border-radius: 15px; padding: 14px; background: rgba(8,12,27,.42); }
  .community-filter-selects { gap: 22px; padding: 0 0 2px; }
  .community-filter-control { gap: 9px; }
  .weekly-ranking-number { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid rgba(255,209,102,.32); border-radius: 50%; background: rgba(255,209,102,.1); color: #ffd166; font-size: 13px; font-weight: 800; line-height: 1; }
  .weekly-ranking-link { grid-template-columns: 32px minmax(0,1fr); align-items: center; }
  .post-text-collapsible:not(.is-expanded) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
  .post-text-toggle { display: inline-flex; min-height: 34px; align-items: center; border: 0; padding: 2px 0 0; background: transparent; color: #9ff2e7; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; }
  .post-text-toggle:hover { color: #c9fff9; text-decoration: underline; }
  .post-text-toggle[aria-expanded="true"] { margin-top: 4px; }
  body.community-post-page-mode .detail-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; margin: 0; box-shadow: none; }
  body.community-post-page-mode .detail-dialog::backdrop { background: #070817; backdrop-filter: none; }
}
@media (max-width: 720px) {
  .feed-column { border-radius: 18px; padding: 20px 12px 12px; }
  .feed-heading { gap: 10px; margin-bottom: 14px; }
  .feed-heading h1 { max-width: 100%; font-size: clamp(30px, 8vw, 38px); line-height: 1.05; }
  .feed-tabs { height: 56px; gap: 7px; }
  .feed-tab, .feed-you-tab { min-height: 44px; }
  .feed-tab { padding-inline: 13px; font-size: 13px; }
  .feed-you-tab .feed-tab { min-height: 42px; padding-inline: 13px; }
  .post-types-panel { padding: 12px; }
  .community-filter-selects { gap: 18px; }
  .type-filter-shell { margin: 0 0 4px; }
  .post-list { gap: 14px; padding-top: 14px; }
  .post-inner { padding: 17px 14px 15px; }
  .post-text-toggle { min-height: 36px; font-size: 13px; }
}
@media (max-width: 390px) {
  .feed-tabs { gap: 6px; }
  .feed-tab { min-height: 44px; padding-inline: 11px; font-size: 12px; }
  .feed-you-tab .feed-tab { padding-inline: 11px; }
}

/* Final mobile filter overrides; later responsive rules above must not restore the closed divider. */
@media (max-width: 1359px) {
  .mobile-filters-toggle[aria-expanded="false"] {
    min-height: 36px;
    padding: 0 1px;
    margin: 0;
    border-bottom: 0;
  }
  .mobile-filters-toggle[aria-expanded="true"] {
    min-height: 40px;
    padding: 0 1px 8px;
    margin: 0 0 10px;
    border-bottom: 1px solid rgba(126,142,182,.2);
  }
}
@media (max-width: 720px) {
  .mobile-filters-toggle[aria-expanded="false"] { min-height: 34px; }
  .mobile-filters-toggle[aria-expanded="true"] { min-height: 38px; margin-bottom: 9px; }
}

/* On tablet and phone, the welcome dialog becomes the welcome page. */
@media (max-width: 900px) {
  .app-dialog.welcome-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    overflow: auto;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: #0a0d1d;
    box-shadow: none;
  }
  .welcome-dialog .community-intro {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: max(68px, calc(env(safe-area-inset-top) + 56px)) clamp(22px, 6vw, 64px) max(28px, env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .welcome-dialog .intro-copy { width: min(100%, 760px); max-width: 760px; margin-inline: auto; }
  .welcome-dialog .dialog-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    z-index: 5;
  }
  .welcome-dialog .welcome-actions { flex-wrap: wrap; }
}

/* Keep sign-in centered in the viewport even when Create is tapped mid-feed. */
.auth-dialog[open] {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#mobile-filter-slot { display: none; }
@media (max-width: 1359px) {
  .community-layout { margin-top: 34px; }
  .feed-heading { margin-bottom: 19px; }
  .search-sort-row { gap: 9px; margin-bottom: 17px; overflow: visible; }
  #mobile-filter-slot { position: relative; z-index: 55; display: block; flex: 0 0 auto; }
  #mobile-filter-slot .type-filter-shell { margin: 0; }
  #mobile-filter-slot .post-types-panel { position: static; border: 0; border-radius: 0; padding: 0; background: transparent; }
  #mobile-filter-slot .mobile-filters-toggle {
    display: inline-flex;
    width: auto;
    min-width: 88px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(126,142,182,.27);
    border-radius: 14px;
    padding: 0 10px;
    margin: 0;
    background: linear-gradient(145deg, rgba(17,23,43,.96), rgba(11,16,32,.96));
    color: #e5e9f5;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
  }
  #mobile-filter-slot .mobile-filters-toggle[aria-expanded="true"] { border-color: rgba(20,211,202,.5); background: linear-gradient(145deg, rgba(20,211,202,.12), rgba(139,92,246,.11)); }
  #mobile-filter-slot .mobile-filters-toggle .filter-control-icon { width: 16px; height: 16px; flex: 0 0 16px; color: #aeb8ce; }
  #mobile-filter-slot .mobile-filters-toggle[aria-expanded="true"] .filter-control-icon { transform: none; }
  #mobile-filter-slot .mobile-filters-toggle .filter-chevron { width: 15px; height: 15px; flex: 0 0 15px; color: #aeb8ce; transition: transform .18s ease, color .18s ease; }
  #mobile-filter-slot .mobile-filters-toggle[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); color: var(--cyan); }
  #mobile-filter-slot .community-filter-selects:not([hidden]) {
    position: absolute;
    z-index: 70;
    top: calc(100% + 9px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    max-height: min(72dvh, 600px);
    gap: 17px;
    overflow-y: auto;
    border: 1px solid rgba(126,142,182,.27);
    border-radius: 17px;
    padding: 16px;
    background: linear-gradient(155deg, rgba(20,26,48,.99), rgba(9,13,29,.99));
    box-shadow: 0 20px 48px rgba(0,0,0,.52), inset 0 1px 0 rgba(205,225,255,.045);
  }
}
@media (max-width: 720px) {
  .community-layout { margin-top: 36px; }
  .feed-heading { margin-bottom: 20px; }
  .search-sort-row { gap: 8px; margin-bottom: 18px; }
}

@media (max-width: 720px) {
  .feed-heading h1 {
    max-width: none;
    font-size: clamp(18px, 5.8vw, 36px);
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  .feed-title-row { gap: 8px; }
  .community-globe-icon { width: clamp(25px, 8vw, 38px); flex-basis: clamp(25px, 8vw, 38px); }
}

/* Small-screen post cards follow Android's title/category/Checkout hierarchy. */
.post-title-row { display: contents; }
.post-link-mobile { display: none; }
@media (max-width: 900px) {
  .post-category-line { gap: 7px; margin: 12px 0 10px; }
  .post-title-row {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  .post-title-row .post-title { min-width: 0; flex: 1 1 auto; margin: 0 0 7px; font-size: 20px; line-height: 1.3; }
  .post-link-mobile {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    margin: 0;
    padding: 0 11px;
    background: #6366f1;
    box-shadow: 0 5px 14px rgba(99,102,241,.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }
  .post-link-mobile:hover { background: #7073f5; color: #fff; }
  .post-link-desktop { display: none; }
}

.community-post-skeleton{pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.1)}.community-post-skeleton .post-inner{display:grid;gap:15px}.feed-skeleton,.weekly-ranking-skeleton>i,.weekly-ranking-skeleton b,.weekly-ranking-skeleton small{display:block;background:linear-gradient(100deg,rgba(144,155,190,.09) 20%,rgba(169,178,212,.19) 45%,rgba(144,155,190,.09) 70%);background-size:220% 100%;animation:community-feed-shimmer 1.45s ease-in-out infinite;animation-delay:calc(var(--feed-skeleton-index,0)*70ms)}.community-post-skeleton .feed-skeleton-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%}.feed-skeleton-author{min-width:0;flex:1;display:grid;gap:7px}.feed-skeleton-author i:first-child{width:min(160px,72%);height:11px;border-radius:6px}.feed-skeleton-author i:last-child{width:min(112px,58%);height:8px;border-radius:5px}.community-post-skeleton .feed-skeleton-menu{width:28px;height:28px;border-radius:9px}.feed-skeleton-tags{display:flex;gap:8px}.feed-skeleton-tags i:first-child{width:92px;height:25px;border-radius:99px}.feed-skeleton-tags i:last-child{width:80px;height:25px;border-radius:99px}.feed-skeleton-title{width:min(360px,74%);height:21px;border-radius:7px}.feed-skeleton-copy{display:grid;gap:8px}.feed-skeleton-copy i{width:100%;height:10px;border-radius:6px}.feed-skeleton-copy i:last-child{width:72%}.feed-skeleton-image{width:100%;height:clamp(150px,25vw,300px);border-radius:14px}.feed-skeleton-actions{display:flex;align-items:center;gap:18px;border-top:1px solid rgba(126,142,182,.14);padding:14px 22px}.feed-skeleton-actions i{width:48px;height:13px;border-radius:6px}.feed-skeleton-actions i:last-child{margin-left:auto;width:64px}.weekly-ranking-skeleton{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:11px;border:1px solid rgba(126,142,182,.14);border-radius:13px;padding:11px;background:rgba(7,10,25,.28)}.weekly-ranking-skeleton>i{width:32px;height:32px;border-radius:50%}.weekly-ranking-skeleton>span{display:grid;gap:6px}.weekly-ranking-skeleton b{width:82%;height:10px;border-radius:5px}.weekly-ranking-skeleton small{width:56%;height:8px;border-radius:5px}@keyframes community-feed-shimmer{0%{background-position:100% 0}100%{background-position:-120% 0}}@media(max-width:640px){.community-post-skeleton .post-inner{gap:13px;padding:18px 16px 16px}.community-post-skeleton .feed-skeleton-avatar{width:38px;height:38px;flex-basis:38px}.feed-skeleton-image{height:170px}.feed-skeleton-actions{gap:12px;padding:12px 16px}.feed-skeleton-actions i{width:40px}.weekly-ranking-skeleton{gap:8px;padding:9px}.weekly-ranking-skeleton>i{width:28px;height:28px}}@media(prefers-reduced-motion:reduce){.feed-skeleton,.weekly-ranking-skeleton>i,.weekly-ranking-skeleton b,.weekly-ranking-skeleton small{animation:none;background:rgba(144,155,190,.13)}}

/* Keep Community's desktop-style rails on laptop and larger tablet widths. */
@media (min-width: 1000px) and (max-width: 1359px) {
  .site-header > .site-nav { display: none !important; }
  .site-header > .mobile-menu-toggle { display: grid !important; }
  .site-header > .mobile-nav-panel[hidden] { display: none !important; }
  .site-header > .mobile-nav-panel:not([hidden]) { display: grid !important; }

  .community-layout {
    display: grid;
    grid-template-areas: "left feed" "create feed";
    grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin: 34px 0 52px;
  }
  .left-community-rail {
    position: sticky;
    top: 88px;
    display: grid !important;
    grid-area: left;
    align-self: start;
    gap: 14px;
  }
  .feed-column {
    grid-area: feed;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(126,142,182,.2);
    border-radius: 20px;
    padding: clamp(14px, 1.7vw, 22px);
    background: linear-gradient(155deg, rgba(13,17,35,.9), rgba(8,10,25,.86));
    box-shadow: 0 16px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(205,225,255,.035);
  }
  .create-rail {
    display: block !important;
    grid-area: create;
    align-self: start;
  }
  .create-rail-card { position: static; }
  #mobile-filter-slot { display: none !important; }
  #mobile-create-slot { display: none !important; }
  #desktop-type-rail .community-filter-selects { display: grid !important; }
  #desktop-type-rail .mobile-filters-toggle { display: none !important; }
}

/* Header messages shortcut */
.header-messages-button{position:relative;display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;color:#d1d7e8;text-decoration:none;transition:color .18s ease,filter .18s ease,transform .18s ease}
.header-messages-button:hover{transform:translateY(-1px);color:#9ff2e7;filter:drop-shadow(0 0 9px rgba(20,211,202,.35))}
.header-messages-button>.community-icon{width:24px;height:24px}
.header-messages-button>.messages-unread-count{position:absolute;top:1px;right:1px;min-width:16px;height:16px;margin:0;padding:0 3px;font-size:9px}
.messages-unread-count[hidden]{display:none}
.messages-menu-link .messages-unread-count{margin-left:auto}
.header-messages-button>.message-icon{width:22px;height:22px}

/* Final phone overrides follow legacy header and link rules above. */
@media(max-width:760px){
  .site-header .header-messages-button{display:none!important}
  .post-card .post-author-row{gap:7px}
  .post-card .post-author-row .author-meta{min-width:0;flex:1 1 auto}
  .post-card .post-author-row .follow-button{width:34px;min-width:34px;height:34px;min-height:34px;flex:0 0 34px;gap:0;padding:0}
  .post-card .post-author-row .follow-button>span{display:none}
}
@media(max-width:900px){.post-title-row{gap:14px}.post-title-row .post-link-mobile{margin-left:4px}}
@media(max-width:420px){
  .post-card .post-title-row{gap:12px}
  .post-card .post-title-row .post-link-mobile{width:36px;min-width:36px;height:36px;justify-content:center;gap:0;padding:0;font-size:0}
  .post-card .post-title-row .post-link-mobile>span{font-size:15px}
}
.post-category,.post-intent-badge,.post-platform-badge{box-sizing:border-box;height:26px;min-height:26px;display:inline-flex;align-items:center;padding-block:0;line-height:1}
#account-button.has-unread-messages{position:relative}
#account-button.has-unread-messages::after{position:absolute;top:1px;right:1px;width:10px;height:10px;border:2px solid #10152a;border-radius:50%;background:#20d3ca;box-shadow:0 0 10px rgba(20,211,202,.65);content:""}
@media(max-width:900px){
  .mobile-nav-panel nav > a{gap:12px}
  .mobile-nav-panel nav > a .mobile-menu-icon{width:19px;height:19px;flex:0 0 19px;color:#a99aff;stroke:currentColor}
  .mobile-nav-panel nav > a.active .mobile-menu-icon,.mobile-nav-panel nav > a:hover .mobile-menu-icon,.mobile-nav-panel nav > a:focus-visible .mobile-menu-icon{color:#6ff2e8}
}
/* Shared rich previews for links in AppHunter conversations. */
.demand-message-text{white-space:pre-wrap;overflow-wrap:anywhere}.demand-message-text a{color:#b6a6ff;text-decoration:underline;text-decoration-color:rgba(182,166,255,.48);text-underline-offset:2px;overflow-wrap:anywhere}.demand-message-text a:hover{color:#d7ccff;text-decoration-color:currentColor}.demand-message-text a:focus-visible,.demand-message-link-preview:focus-visible{outline:2px solid #42dad0;outline-offset:3px;border-radius:4px}.demand-message-link-preview{display:grid;grid-template-columns:minmax(0,1fr);max-width:min(440px,100%);margin-top:10px;overflow:hidden;border:1px solid rgba(130,151,195,.23);border-radius:13px;color:#edf1ff;background:rgba(5,10,23,.62);text-decoration:none;transition:border-color .16s ease,background .16s ease}.demand-message-link-preview:hover{border-color:rgba(66,218,208,.48);background:rgba(9,16,32,.92)}.demand-message-link-image{display:block;width:100%;max-height:220px;aspect-ratio:1.91/1;object-fit:cover;background:linear-gradient(135deg,rgba(91,68,196,.24),rgba(35,178,176,.15))}.demand-message-link-copy{display:grid;gap:4px;min-width:0;padding:11px 13px}.demand-message-link-title{overflow:hidden;color:#f4f6ff;font-size:13px;font-weight:700;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.demand-message-link-description{display:-webkit-box;overflow:hidden;color:#aab6d1;font-size:12px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.demand-message-link-host{overflow:hidden;color:#55d9d0;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
/* Per-message action menu: hover on desktop, tap/hold on touch. */
.demand-message-bubble{position:relative}.demand-message-actions{position:absolute;z-index:6;top:4px;right:4px;white-space:normal}.demand-message-action-toggle{display:grid;width:29px;height:29px;place-items:center;border:1px solid rgba(126,142,182,.2);border-radius:9px;color:#c6cee2;background:rgba(10,15,30,.92);opacity:0;pointer-events:none;cursor:pointer;transition:opacity .14s ease,color .14s ease,border-color .14s ease}.demand-message-action-toggle svg{width:17px;height:17px;fill:currentColor}.demand-message-bubble:hover .demand-message-action-toggle,.demand-message-bubble:focus-within .demand-message-action-toggle,.demand-message-action-toggle[aria-expanded=true]{opacity:1;pointer-events:auto}.demand-message-action-toggle:hover{color:#fff;border-color:rgba(66,218,208,.5)}.demand-message-action-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:20;min-width:168px;padding:5px;border:1px solid rgba(126,142,182,.24);border-radius:12px;background:#11182c;box-shadow:0 12px 34px rgba(0,0,0,.42)}.demand-message-action-menu[hidden]{display:none}.demand-message-action-menu button{display:flex;width:100%;min-height:37px;align-items:center;gap:9px;border:0;border-radius:8px;padding:8px 10px;color:#dbe2f4;background:transparent;font:600 12px/1.2 "Instrument Sans",sans-serif;text-align:left;cursor:pointer}.demand-message-action-menu button:hover,.demand-message-action-menu button:focus-visible{color:#fff;background:rgba(255,255,255,.07)}.demand-message-action-menu button.danger-menu-item{color:#ff9bad}.demand-message-action-menu button.danger-menu-item:hover{color:#fff;background:rgba(230,66,105,.16)}.demand-message-action-menu button svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}@media(hover:none){.demand-message-action-toggle{opacity:1;pointer-events:auto}}
