:root {
  --paper: #f7f7f2;
  --white: #fff;
  --ink: #15251e;
  --muted: #5a665f;
  --line: #e1e7df;
  --accent: #196b49;
  --accent-deep: #164c36;
  --accent-soft: #e3f3e8;
  --accent-red: #c8423d;
  --accent-ring: conic-gradient(from 205deg, var(--accent) 0 75%, var(--accent-red) 75% 100%);
  --action-fill: linear-gradient(135deg, var(--accent), var(--accent-deep));
  --yes: #135d35;
  --yes-soft: #edf9f1;
  --no: #972f35;
  --no-soft: #fff0f1;
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button[disabled] { cursor: wait; opacity: .68; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg { display: block; width: 20px; height: 20px; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.topbar { position: sticky; z-index: 3; top: 0; border-bottom: 1px solid #e9e7e3; background: #ffffffed; backdrop-filter: blur(12px); }
.topbar-inner { height: 67px; max-width: 1280px; margin: 0 auto; padding: 0 38px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.preview-indicator { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 750; margin-right: 6px; }
.preview-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 780; line-height: 1.1; padding: 10px 15px; border-radius: 11px; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.button svg { width: 17px; height: 17px; }
.button-light { background: white; border-color: var(--line); }
.button-light:hover { background: var(--paper); border-color: #d0e7d8; }
.button-primary { color: white; background: var(--action-fill); }
.button-primary:hover { filter: brightness(1.07); }
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 27px 38px 64px;
  display: grid;
  grid-template: 'nav intro intro' auto 'nav main aside' 1fr / minmax(158px, 185px) minmax(0, 1fr) minmax(240px, 280px);
  gap: 18px 25px;
  align-items: start;
}
.left-sidebar { grid-area: nav; position: sticky; top: 95px; }
.main-content { grid-area: main; min-width: 0; }
.right-sidebar { grid-area: aside; min-width: 0; display: grid; gap: 14px; }
.side-nav { display: grid; gap: 6px; padding-right: 7px; }
.side-nav button { position: relative; border: 1px solid transparent; border-radius: 10px; display: flex; align-items: center; text-align: left; gap: 11px; padding: 12px 14px; min-height: 48px; font-size: 14px; font-weight: 690; white-space: nowrap; color: #4c4b57; background: transparent; }
.side-nav button:hover { background: #eeece8; }
.side-nav button[aria-current='page'] { color: var(--accent-deep); border-color: #d0e7d8; background: var(--accent-soft); font-weight: 800; }
.side-nav button svg { width: 19px; height: 19px; }
.feed-intro {
  grid-area: intro;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 135px;
  border-radius: 23px;
  padding: 21px clamp(22px, 4vw, 44px);
  background: radial-gradient(ellipse at 94% 88%, #226747 0, #204b36 32%, #173829 65%, var(--ink) 100%);
  color: white;
}
.feed-intro.intro-home { min-height: 104px; }
.intro-copy { position: relative; z-index: 1; }
.feed-intro h1 { margin: 0; font: 400 clamp(36px, 4.7vw, 59px)/.98 var(--serif); letter-spacing: -.039em; text-wrap: balance; }
.feed-intro p { margin: 10px 0 0; color: var(--paper); font-size: 13.5px; }
.feed-intro.intro-home p { margin: 0; font-size: 16px; font-weight: 650; }
.intro-art { position: absolute; pointer-events: none; top: 0; bottom: 0; right: 0; width: min(41%, 362px); }
.art-orbits { position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 130px 94px at 66% 57%, transparent 0 33px, #d7eee855 34px 35px, transparent 36px 52px); mask-image: linear-gradient(to right, transparent, black 26%); }
.art-bubble { --bubble: #d9efe2; position: absolute; isolation: isolate; width: 78px; height: 54px; border-radius: 20px; background: var(--bubble); color: var(--accent-deep); box-shadow: 0 12px 26px #17382945, inset 0 0 0 1px #ffffff4a; }
.art-bubble::after { content: ''; position: absolute; z-index: -1; bottom: -7px; left: 21px; width: 17px; height: 20px; background: var(--bubble); border-radius: 0 0 4px 0; transform: skew(-24deg) rotate(25deg); }
.art-bubble svg { width: 35px; height: 35px; stroke-width: 2.25; }
.art-bubble-yes { right: 35%; top: 34%; transform: rotate(-13deg); }
.art-bubble-no { --bubble: #f9d9d6; width: 67px; height: 49px; top: 15%; right: 13%; color: #892f35; transform: rotate(13deg); }
.art-bubble-no::after { left: auto; right: 17px; transform: skew(24deg) rotate(-25deg); }
.art-bubble-no svg { width: 29px; height: 29px; }
.art-sparkle { position: absolute; top: 17%; right: 47%; width: 19px; height: 19px; background: #fff5ec; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.art-sparkle-small { top: 70%; right: 14%; width: 13px; height: 13px; background: #f8bdb6; }
.feed-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; min-height: 45px; }
.feed-tabs { display: flex; align-items: center; gap: 5px; background: #e9ede4; border-radius: 12px; padding: 4px; min-width: 0; }
.feed-tab { display: flex; align-items: center; gap: 6px; min-height: 35px; background: transparent; border: 0; border-radius: 9px; padding: 7px 12px; color: #4c5e52; font-size: 13px; font-weight: 750; white-space: nowrap; }
.feed-tab svg { width: 15px; height: 15px; }
.feed-tab:hover { color: var(--accent); }
.feed-tab.selected { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #18382317; }
.feed-category-actions { display: flex; align-items: center; gap: 5px; min-width: 0; margin-left: auto; }
@media (min-width: 901px) {
  .personal-nav:has(.category-chip[hidden]) { display: none; }
}
.category-chip { border: 1px solid #cfeeda; border-radius: 30px; background: var(--accent-soft); color: var(--accent-deep); font-size: 11.5px; font-weight: 760; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; white-space: nowrap; }
.category-chip svg { width: 12px; height: 12px; }
.icon-button { display: inline-grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); flex: none; }
.icon-button:hover { background: var(--accent-soft); }
.icon-button svg { width: 17px; height: 17px; }
.category-picker { display: none; }
.feed { display: grid; gap: 17px; }
.post { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px #23352708; scroll-margin-top: 79px; }
.post-head { padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { --avatar-bg: #f4e6db; --avatar-fg: #75461f; width: 39px; height: 39px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-fg); font-weight: 800; font-size: 12px; }
.avatar-1 { --avatar-bg: #def0e2; --avatar-fg: #2e6142; }
.avatar-2 { --avatar-bg: #f9e3e2; --avatar-fg: #873f47; }
.avatar-3 { --avatar-bg: #e5f1e7; --avatar-fg: #35614d; }
.avatar-anon { --avatar-bg: #edede5; --avatar-fg: #5f6153; }
.avatar svg { height: 17px; width: 17px; }
.author-text { min-width: 0; }
.author-text strong { display: block; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.author-text time { display: block; font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.post-category { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; font-size: 11.5px; font-weight: 750; }
.post-category:hover { background: var(--accent-soft); }
.post-category svg { height: 13px; width: 13px; }
.post-image { position: relative; overflow: hidden; aspect-ratio: 2.48; background: #eee7e1; }
.post-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.post-price { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--ink); color: white; font-size: 12px; font-weight: 800; }
.post-image .post-price { position: absolute; right: 13px; bottom: 13px; background: #15251edf; border: 1px solid #ffffff42; backdrop-filter: blur(8px); }
.post-price svg { width: 13px; height: 13px; }
.post-main { padding: 14px 17px 0; }
.post-main h2 { font-size: clamp(19px, 2vw, 24px); line-height: 1.19; letter-spacing: -.043em; margin: 0 0 5px; font-weight: 800; overflow-wrap: anywhere; }
.post-main p { color: var(--muted); font-size: 13.5px; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.income-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; background: #f3f0e9; color: #54493e; border-radius: 7px; font-size: 11.5px; }
.income-pill svg { width: 13px; height: 13px; }
.voting { padding: 13px 17px 10px; }
.vote-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vote-button { min-height: 46px; border: 1px solid; border-radius: 11px; display: flex; align-items: center; gap: 8px; padding: 6px 9px; font-size: 13px; font-weight: 800; transition: background .15s, color .15s, border-color .15s; }
.vote-icon { width: 27px; height: 27px; border-radius: 7px; color: inherit; background: #ffffffad; }
.vote-icon svg { width: 15px; height: 15px; }
.vote-button strong { margin-left: auto; padding-right: 2px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vote-yes { color: var(--yes); background: var(--yes-soft); border-color: #cfe4d7; }
.vote-yes:hover { background: #d7ebdf; }
.vote-yes[aria-pressed='true'] { color: white; background: var(--accent); border-color: var(--accent); }
.vote-no { color: var(--no); background: var(--no-soft); border-color: #efdad7; }
.vote-no:hover { background: #f8dfdc; }
.vote-no[aria-pressed='true'] { color: white; background: var(--accent-red); border-color: var(--accent-red); }
.vote-button[aria-pressed='true'] .vote-icon { background: #ffffff27; }
.vote-meter { margin-top: 8px; display: flex; width: 100%; height: 4px; gap: 3px; }
.vote-meter span { border-radius: 5px; min-width: 0; transition: flex .2s; }
.meter-yes { background: var(--accent); }
.meter-no { background: var(--accent-red); }
.vote-meter.empty span { background: #e9e6e2; }
.post-footer { min-height: 43px; border-top: 1px solid #f0eeeb; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 6px 17px; color: var(--muted); font-size: 12px; }
.comments-trigger { border: 0; background: transparent; display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 0; font-weight: 750; color: #4c4856; }
.comments-trigger:hover { color: var(--accent); }
.comments-trigger svg { height: 16px; width: 16px; }
.feed-status { padding: 15px 0; text-align: center; color: var(--muted); font-size: 13px; }
.feed-status button { background: white; min-height: 36px; }
.feed-status:empty { padding: 0; }
.empty-feed { padding: 38px 18px; background: white; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.empty-feed h2 { margin: 0; font-size: 19px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.side-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 15px 15px 12px; }
.side-card h2 { margin: 0 4px 9px; font-size: 16px; letter-spacing: -.035em; }
.category-list { display: grid; gap: 2px; }
.category-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 4px; border-radius: 9px; background: transparent; border: 0; text-align: left; font-size: 13px; font-weight: 730; }
.category-item:hover, .category-item[aria-pressed='true'] { background: var(--accent-soft); }
.category-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); }
.category-icon svg { width: 15px; height: 15px; }
.category-style { color: #8c3c41; background: #fae6e3; }
.category-home { color: #477460; background: #e6f0e8; }
.category-beauty { color: #955c34; background: #fbefe3; }
.category-other { color: #596453; background: #eaece5; }
.category-arrow { margin-left: auto; color: #728075; }
.category-arrow svg { width: 14px; height: 14px; }
.prompt-card { background: linear-gradient(155deg, #f8faf4, #e8f3e8); border: 1px solid var(--line); border-radius: 18px; padding: 17px; color: var(--ink); }
.prompt-icon { width: 33px; height: 33px; border-radius: 10px; margin-bottom: 9px; background: white; color: var(--accent); }
.prompt-icon svg { width: 18px; height: 18px; }
.prompt-card h2 { margin: 0 0 4px; font-size: 17px; line-height: 1.2; letter-spacing: -.035em; }
.prompt-card p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.prompt-button { width: 100%; justify-content: space-between; background: var(--action-fill); color: white; min-height: 38px; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; }
.prompt-button:hover { background: var(--accent-deep); }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); padding: 3px 5px; font-size: 11.5px; }
.privacy-note p { margin: 0; }
.privacy-note strong { color: var(--ink); }
.privacy-icon { margin-top: 2px; color: var(--accent); }
.privacy-icon svg { height: 16px; width: 16px; }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .topbar-inner { padding-inline: 27px; }
  .layout { padding-inline: 27px; column-gap: 18px; grid-template-columns: minmax(142px, 155px) minmax(0, 1fr) minmax(207px, 234px); }
  .side-nav { padding-right: 0; }
  .side-nav button { padding-inline: 8px; gap: 7px; font-size: 13px; }
}
@media (max-width: 900px) {
  .layout { max-width: 820px; grid-template: 'nav intro' auto 'nav main' 1fr / 151px minmax(0, 1fr); }
  .right-sidebar { display: none; }
  .category-picker { display: inline-grid; }
  .feed-intro { padding-inline: 26px; }
  .art-bubble { width: 72px; height: 54px; border-radius: 18px; }
  .art-bubble svg { width: 28px; height: 28px; }
  .art-bubble-no { width: 58px; height: 44px; }
  .art-bubble-no svg { width: 23px; height: 23px; }
}
@media (min-width: 651px) and (max-width: 780px) {
  .feed-intro p { max-width: 255px; }
  .intro-art { width: 31%; }
}
@media (max-width: 650px) {
  .topbar-inner { height: 58px; padding-inline: 14px; gap: 8px; }
  .topbar-actions { gap: 6px; }
  .account-button { min-height: 42px; padding: 6px 9px; font-size: 11.5px; }
  .preview-indicator { font-size: 10px; margin-right: 2px; }
  .left-sidebar { display: none; }
  .layout { position: relative; display: block; padding: 11px 10px calc(83px + env(safe-area-inset-bottom)); max-width: 560px; }
  .feed-intro { min-height: 108px; margin-bottom: 9px; padding: 11px 14px; border-radius: 16px; }
  .feed-intro.intro-home { min-height: 75px; }
  .feed-intro h1 { font-size: clamp(33px, 9vw, 46px); text-wrap: initial; }
  .feed-intro p { max-width: min(60vw, 280px); margin-top: 5px; font-size: 12px; line-height: 1.35; }
  .feed-intro.intro-home p { max-width: min(57vw, 280px); font-size: 13px; }
  .intro-art { width: min(40%, 175px); }
  .art-bubble { height: 43px; width: 57px; border-radius: 14px; }
  .art-bubble svg { width: 23px; height: 23px; }
  .art-bubble::after { bottom: -4px; left: 12px; width: 13px; height: 11px; }
  .art-bubble-yes { right: 34%; top: 36%; }
  .art-bubble-no { height: 34px; width: 47px; right: 12%; top: 12%; }
  .intro-home .art-bubble-yes { height: 33px; width: 43px; border-radius: 11px; }
  .intro-home .art-bubble-no { height: 28px; width: 37px; border-radius: 11px; }
  .intro-home .art-bubble svg { width: 17px; height: 17px; }
  .intro-home .art-bubble::after { width: 10px; height: 9px; }
  .art-bubble-no svg { width: 18px; height: 18px; }
  .art-bubble-no::after { left: auto; right: 10px; }
  .art-sparkle { right: 57%; top: 18%; width: 14px; height: 14px; }
  .art-sparkle-small { right: 11%; top: 73%; width: 10px; height: 10px; }
  .feed-nav { margin-bottom: 9px; }
  .layout:has(.personal-nav) .intro-art { display: none; }
  .layout:has(.personal-nav) .feed-intro { padding-right: 66px; }
  .personal-nav:has(.category-chip[hidden]) { position: absolute; top: 23px; right: 22px; margin: 0; }
  .feed-tabs { gap: 1px; }
  .feed-tab { min-height: 36px; padding-inline: 8px; font-size: 11.5px; }
  .feed-tab svg { width: 13px; height: 13px; }
  .category-chip { padding-inline: 6px; font-size: 10px; }
  .category-picker { width: 44px; height: 44px; }
  .feed { gap: 12px; }
  .post { border-radius: 15px; scroll-margin-top: 65px; }
  .post-head { padding: 10px 12px; }
  .avatar { width: 34px; height: 34px; }
  .post-image { aspect-ratio: 1.8; }
  .post-image .post-price { right: 9px; bottom: 9px; }
  .post-main { padding: 11px 12px 0; }
  .post-main p { font-size: 13px; }
  .voting { padding: 11px 12px 9px; }
  .vote-button { min-height: 49px; }
  .post-footer { padding-inline: 12px; }
  .comments-trigger { min-height: 40px; }
  .mobile-nav { position: fixed; z-index: 3; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.22fr) minmax(0, .85fr) minmax(0, 1.17fr) minmax(0, .86fr); align-items: center; inset: auto 0 0; padding: 5px 7px calc(5px + env(safe-area-inset-bottom)); background: #fffffff5; backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 48px; background: transparent; border: 0; padding: 3px 0; border-radius: 10px; font-size: clamp(9px, 2.55vw, 11px); font-weight: 750; color: #516254; white-space: nowrap; }
  .mobile-nav button[aria-current='page'] { color: var(--accent-deep); background: var(--accent-soft); }
  .mobile-nav .mobile-create { color: white; background: var(--accent); width: 46px; height: 46px; min-height: 46px; justify-self: center; border-radius: 13px; }
}
@media (max-width: 355px) {
  .topbar-inner { padding-inline: 10px; }
  .account-button { white-space: nowrap; }
  .account-button [data-icon] { display: none; }
  .intro-art { width: 33%; }
  .art-bubble-yes { right: 26%; }
  .art-bubble-no { right: 10%; }
  .feed-tab { padding-inline: 6px; font-size: 11px; }
  .feed-tab svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
