body {
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

/* AGRILL People — scoped, responsive interface. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
.forum-root {
  --fp-bg: #f7f8f5; --fp-card: #ffffff; --fp-card-muted: #f3f6f2;
  --fp-text: #21342b; --fp-strong: #152c21; --fp-muted: #7d8981;
  --fp-border: #e6ebe5; --fp-green: #1d7656; --fp-green-dark: #0f5940;
  --fp-green-pale: #e8f4eb; --fp-green-outline: #d4e9da;
  --fp-shadow: 0 10px 34px rgba(24,49,32,.045);
  min-height: 100vh; color: var(--fp-text); background: var(--fp-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; letter-spacing: -.008em;
}
.forum-root[data-theme="dark"] {
  --fp-bg: #111d19; --fp-card: #1b2a23; --fp-card-muted: #24372d;
  --fp-text: #e5f0e8; --fp-strong: #f2f8f1; --fp-muted: #99aca0;
  --fp-border: #33483b; --fp-green: #73c89a; --fp-green-dark: #4ca979;
  --fp-green-pale: #274637; --fp-green-outline: #3b6249;
  --fp-shadow: 0 12px 36px rgba(0,0,0,.13);
}
.forum-root button { -webkit-tap-highlight-color: transparent; }
.forum-root button:focus-visible,.forum-root a:focus-visible,.forum-root input:focus-visible,
.forum-root select:focus-visible,.forum-root textarea:focus-visible {
  outline: 3px solid #70b99b; outline-offset: 3px;
}
.topbar { height: 78px; position: sticky; top: 0; z-index: 80; background: var(--fp-card); border-bottom: 1px solid var(--fp-border); }
.topbar-inner { max-width: 1580px; height: 100%; padding: 0 36px; margin: auto; display: flex; align-items: center; gap: 17px; }
.brand { display: flex; align-items: center; flex-shrink: 0; gap: 11px; color: var(--fp-strong); background: transparent; border: 0; padding: 0; text-align: left; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: #f0ffed; background: #155c45; border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.brand-name { display: grid; line-height: 1.05; gap: 3px; }
.brand-name strong { font-size: 21px; letter-spacing: .08em; font-weight: 850; }
.brand-name > span { font-size: 11px; color: var(--fp-green); letter-spacing: .35em; font-weight: 800; }
.topbar-divider { height: 28px; width: 1px; background: var(--fp-border); margin-left: 5px; }
.header-subtitle { color: var(--fp-muted); font-size: 13px; white-space: nowrap; }
.header-search { margin-left: auto; display: flex; align-items: center; gap: 12px; max-width: 390px; min-width: 160px; flex: 1; height: 42px; border: 1px solid var(--fp-border); background: var(--fp-bg); border-radius: 12px; padding: 0 13px; color: var(--fp-muted); }
.header-search input { min-width: 0; flex: 1; background: transparent; border: 0; outline: none; color: var(--fp-text); font-size: 12.5px; }
.header-search input::placeholder,.mobile-search-row input::placeholder { color: var(--fp-muted); }
.search-shortcut { color: #a7afa8; font-size: 10px; white-space: nowrap; }
.header-actions { display: flex; gap: 14px; align-items: center; margin-left: 9px; }
.private-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; white-space: nowrap; color: #9a692a; background: #fff4df; border: 1px solid #ffe7b9; border-radius: 100px; font-size: 10px; letter-spacing: .03em; font-weight: 750; text-transform: uppercase; }
.private-pill > span { width: 6px; height: 6px; border-radius: 50%; background: #d99a35; }
.forum-root[data-theme="dark"] .private-pill { background: #413727; color: #f2cf87; border-color: #655134; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border: 0; border-radius: 11px; background: transparent; color: var(--fp-text); }
.icon-button:hover,.account-button:hover { background: var(--fp-card-muted); }
.account-area { position: relative; }
.account-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--fp-muted); padding: 4px; border-radius: 12px; }
.avatar { width: 39px; height: 39px; border-radius: 50%; background: #d7e9de; color: #215b3c; font-weight: 800; font-size: 12px; display: inline-grid; place-items: center; flex-shrink: 0; text-transform: uppercase; }
.avatar-header { width: 36px; height: 36px; background: #e5ece3; }
.account-menu { position: absolute; right: 0; top: 49px; width: 282px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--fp-card); color: var(--fp-text); border: 1px solid var(--fp-border); border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.13); z-index: 110; }
.account-menu strong { color: var(--fp-strong); font-size: 14px; overflow-wrap: anywhere; }
.account-menu > span { color: var(--fp-muted); font-size: 12px; overflow-wrap: anywhere; }
.account-menu a { color: var(--fp-green); text-decoration: none; font-weight: 720; }
.account-menu small { color: var(--fp-muted); line-height: 1.55; }
.account-divider { border-top: 1px solid var(--fp-border); margin: 5px 0; }
.mobile-menu-trigger { display: none; }

.site-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr) 264px; gap: 34px; margin: auto; max-width: 1580px; padding: 32px 36px 0; align-items: start; }
.left-sidebar,.right-sidebar,.main-area { min-width: 0; }
.sidebar-stick,.right-stick { position: sticky; top: 112px; max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 24px; }
.sidebar-stick { padding-right: 9px; }
.sidebar-group { padding: 8px 0 20px; margin-bottom: 17px; border-bottom: 1px solid var(--fp-border); }
.sidebar-group:first-child { padding-top: 18px; }
.sidebar-label { display: block; padding: 0 13px; margin-bottom: 14px; color: var(--fp-muted); font-size: 10px; font-weight: 800; letter-spacing: .115em; }
.side-link { border: 0; background: transparent; width: 100%; display: flex; align-items: center; gap: 11px; min-height: 41px; margin: 2px 0; padding: 8px 13px; border-radius: 10px; color: var(--fp-muted); text-align: left; font-size: 12.7px; font-weight: 600; transition: background .16s, color .16s; }
.side-link > span:nth-child(2) { flex: 1; white-space: nowrap; }
.side-link:hover { background: var(--fp-card-muted); color: var(--fp-strong); }
.side-link.selected { background: var(--fp-green-pale); color: var(--fp-green); font-weight: 790; }
.side-link.selected-division:not(.selected) { color: var(--fp-green); font-weight: 780; }
.side-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; }
.division-dot { display: inline-block; height: 9px; width: 9px; border-radius: 3px; flex: none; margin-left: 6px; margin-right: 7px; }
.count { font-size: 10px; color: var(--fp-muted); font-weight: 650; }
.sidebar-help { border: 1px solid var(--fp-green-outline); padding: 16px; border-radius: 14px; background: var(--fp-green-pale); display: flex; flex-direction: column; gap: 7px; }
.help-icon { color: var(--fp-green); }
.sidebar-help strong { color: var(--fp-strong); font-size: 12.5px; }
.sidebar-help p { color: var(--fp-muted); font-size: 11.5px; line-height: 1.65; margin: 0; }

.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--fp-muted); font-size: 11.5px; padding: 3px 0 18px; }
.breadcrumb strong { color: var(--fp-green); font-weight: 700; }
.crumb-dot { color: #b5c0b8; }
.hero { position: relative; display: flex; overflow: hidden; min-height: 302px; border-radius: 20px; background: radial-gradient(circle at 89% 10%, rgba(105,155,126,.42), transparent 33%),linear-gradient(112deg,#103b31 0%,#195340 60%,#1e6147 100%); box-shadow: 0 17px 30px rgba(9,54,35,.12); isolation: isolate; }
.hero::before { content: ""; position: absolute; top: -110px; right: -30px; width: 340px; height: 340px; border-radius: 50%; background: rgba(183,229,188,.05); }
.hero-content { position: relative; z-index: 2; padding: 33px 35px 30px; width: 70%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b0dec1; letter-spacing: .17em; font-size: 9px; font-weight: 850; }
.hero-pulse { width: 6px; height: 6px; background: #e6c77e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(230,199,126,.12); }
.hero h1 { color: white; font-size: clamp(27px, 3vw, 37px); line-height: 1.16; letter-spacing: -.048em; font-weight: 750; margin: 21px 0 11px; }
.hero h1 em { font-style: normal; color: #c6e5c0; }
.hero p { margin: 0; max-width: 420px; font-size: 12.8px; line-height: 1.72; color: #d8e8de; }
.hero-cta { display: flex; align-items: center; gap: 9px; margin-top: 22px; background: #f5edd5; color: #244b37; border: none; border-radius: 10px; font-size: 11.5px; font-weight: 800; padding: 12px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.hero-cta svg:last-child { margin-left: 10px; }
.hero-cta:hover { background: #fff9e7; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 320px; display: grid; place-items: center; transform: translateX(5px); }
.hero-ring { position: absolute; border: 1px solid rgba(199,235,209,.16); border-radius: 50%; }
.ring-one { width: 206px; height: 206px; }.ring-two { width: 297px; height: 297px; }
.hero-center { width: 124px; height: 124px; border-radius: 50%; background: linear-gradient(145deg,#3f876a,#225842); border: 1px solid rgba(223,244,218,.37); box-shadow: 0 0 0 11px rgba(200,231,207,.07),0 13px 30px rgba(5,27,18,.25); display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1.12; color: white; }
.hero-center span { color: #e0cf8f; font-size: 10px; letter-spacing: .21em; font-weight: 800; }
.hero-center strong { font-size: 24px; letter-spacing: .04em; margin: 5px 0; }
.hero-center small { font-size: 9px; color: #b9dbbc; letter-spacing: .37em; font-weight: 720; }
.hero-orb { z-index: 1; position: absolute; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 19px; background: #e2e8d5; color: #29684d; box-shadow: 0 10px 25px rgba(2,31,17,.22); transform: rotate(-11deg); }
.hero-orb-one { top: 23px; right: 70px; }.hero-orb-two { left: 12px; top: 102px; background: #e9d8ad; color: #806437; transform: rotate(12deg); }
.hero-orb-three { bottom: 18px; right: 78px; transform: rotate(8deg); }
.hero-connector { position: absolute; background: rgba(184,220,184,.26); height: 1px; width: 92px; transform: rotate(-35deg); }
.connector-one { right: 68px; top: 89px; }.connector-two { left: 58px; bottom: 91px; }
.hero-star { color: #b2d6ad; position: absolute; opacity: .8; }.star-one { top: 64px; left: 48px; }.star-two { bottom: 50px; right: 25px; }

.stats-strip { display: flex; margin: 18px 0 30px; padding: 18px 20px; border: 1px solid var(--fp-border); background: var(--fp-card); border-radius: 15px; box-shadow: var(--fp-shadow); }
.stat { flex: 1; display: flex; align-items: center; gap: 11px; min-width: 0; }
.stat + .stat { padding-left: 25px; border-left: 1px solid var(--fp-border); }
.stat-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.stat-icon.green { color: #2e8058; background: #e7f3eb; }.stat-icon.gold { color: #c38e47; background: #fff0d7; }.stat-icon.blue { color: #5983ae; background: #e9f1fb; }
.stat > div { display: grid; gap: 2px; min-width: 0; }
.stat strong { font-size: 19px; color: var(--fp-strong); line-height: 1; font-weight: 830; font-variant-numeric: tabular-nums; }
.stat small { color: var(--fp-muted); font-size: 10.5px; white-space: nowrap; }
.welcome { display: flex; gap: 16px; border: 1px solid #e9e3d3; border-radius: 15px; padding: 21px 23px; background: linear-gradient(95deg,#fffdf8,#f8f5e9); position: relative; overflow: hidden; margin-bottom: 34px; }
.forum-root[data-theme="dark"] .welcome { background: linear-gradient(110deg,#313b2b,#2b3529); border-color: #526044; }
.welcome-symbol { width: 42px; height: 42px; flex: none; display: grid; place-items: center; color: #b7893b; background: #f5ead1; border-radius: 12px; }
.welcome-content { position: relative; z-index: 1; }
.welcome-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; flex-wrap: wrap; }
.eyebrow-green { font-size: 10px; font-weight: 850; letter-spacing: .09em; color: #7c995e; }
.info-chip { font-size: 10px; border-radius: 5px; padding: 3px 6px; color: #9d834b; background: #f4ebd6; }
.welcome h2 { font-size: 16px; margin: 0 0 8px; line-height: 1.5; color: var(--fp-strong); }
.welcome p { font-size: 12px; margin: 0; line-height: 1.8; max-width: 600px; color: var(--fp-muted); }
.welcome-ornament { position: absolute; bottom: -55px; right: 20px; font-size: 180px; line-height: 1; color: #e9dfc4; opacity: .36; }

.discussion-top { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-overline { display: block; letter-spacing: .12em; font-weight: 800; font-size: 10px; color: var(--fp-green); margin-bottom: 8px; }
.discussion-top h2,.suggestion-heading h2 { font-size: 23px; margin: 0; color: var(--fp-strong); letter-spacing: -.035em; font-weight: 780; }
.discussion-top p { color: var(--fp-muted); margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--fp-green-dark); background: #1c7052; color: white; border-radius: 10px; padding: 11px 17px; white-space: nowrap; font-weight: 780; font-size: 12px; min-height: 41px; }
.primary-button:hover { background: #135940; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--fp-border); background: var(--fp-card); color: var(--fp-text); padding: 11px 17px; border-radius: 10px; font-size: 12px; font-weight: 720; min-height: 41px; }
.secondary-button:hover { background: var(--fp-card-muted); }
.feed-controls { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; border-bottom: 1px solid var(--fp-border); }
.feed-tabs { display: flex; gap: 27px; }
.feed-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--fp-muted); padding: 12px 0 13px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.feed-tabs button.active { color: var(--fp-green); border-bottom-color: var(--fp-green); font-weight: 790; }
.feed-filter-summary { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fp-muted); white-space: nowrap; }
.post-list { display: grid; gap: 12px; }
.post-card { background: var(--fp-card); border: 1px solid var(--fp-border); border-radius: 14px; padding: 21px 23px 16px; min-width: 0; transition: border-color .18s,box-shadow .18s; }
.post-card:hover { border-color: var(--fp-green-outline); box-shadow: var(--fp-shadow); }
.post-topline,.detail-meta { display: flex; gap: 9px; align-items: center; margin-bottom: 13px; flex-wrap: wrap; }
.post-category { display: inline-flex; align-items: center; gap: 6px; color: #2e805b; background: var(--fp-green-pale); border: 1px solid var(--fp-green-outline); padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.post-category > span { width: 6px; height: 6px; border-radius: 50%; background: #5caa79; }
.post-division { color: var(--fp-muted); border: 1px solid var(--fp-border); border-radius: 6px; padding: 5px 8px; font-size: 10px; font-weight: 650; background: var(--fp-card-muted); }
.post-time { color: var(--fp-muted); margin-left: auto; font-size: 10.5px; }
.post-title { display: block; text-align: left; width: 100%; font-size: 16px; font-weight: 780; color: var(--fp-strong); border: none; background: none; margin: 0 0 8px; padding: 0; line-height: 1.45; }
.post-title:hover { color: var(--fp-green); }
.post-excerpt { font-size: 12px; line-height: 1.75; color: var(--fp-muted); margin: 0 0 19px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.post-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 13px; border-top: 1px solid var(--fp-border); }
.post-author { display: flex; gap: 9px; align-items: center; min-width: 0; }
.post-author > div { display: grid; gap: 3px; min-width: 0; }
.post-author strong { font-size: 11.5px; font-weight: 750; color: var(--fp-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-author small { font-size: 10px; color: var(--fp-muted); }
.post-avatar { width: 32px; height: 32px; font-size: 10px; }
.post-actions { display: flex; align-items: center; gap: 12px; }
.subtle-action { background: transparent; border: 0; color: var(--fp-muted); display: inline-flex; align-items: center; gap: 5px; padding: 6px 2px; font-size: 11px; }
.subtle-action:hover { color: var(--fp-green); }
.is-liked { color: #dc766d !important; }.is-saved { color: var(--fp-green) !important; }
.feed-loading,.empty-feed { background: var(--fp-card); border: 1px dashed var(--fp-border); border-radius: 16px; min-height: 230px; padding: 31px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.feed-loading { min-height: 145px; flex-direction: row; color: var(--fp-muted); }
.loading-circle { border: 3px solid var(--fp-border); border-top-color: var(--fp-green); width: 19px; height: 19px; border-radius: 50%; animation: fp-spin .8s linear infinite; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.empty-icon { background: var(--fp-green-pale); color: var(--fp-green); width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 5px; }
.empty-feed h3 { margin: 0; font-size: 18px; color: var(--fp-strong); }
.empty-feed p { color: var(--fp-muted); font-size: 12px; line-height: 1.7; max-width: 390px; margin: 0; }
.empty-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.error-banner { display: flex; align-items: center; gap: 15px; justify-content: space-between; background: #ffe9e3; color: #a43b26; border-radius: 8px; margin-bottom: 12px; padding: 12px; font-size: 12px; }
.error-banner button { border: 0; text-decoration: underline; background: transparent; color: inherit; font-weight: 800; }
.suggestion-section { margin-top: 34px; }
.suggestion-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.suggestion-heading > span { color: var(--fp-muted); font-size: 11px; padding-bottom: 3px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.suggestion-card { min-height: 174px; padding: 19px 17px 16px; text-align: left; border: 1px solid var(--fp-border); border-radius: 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--fp-strong); }
.suggestion-card.mint { background: #ecf5ef; }.suggestion-card.sand { background: #faf2e1; }.suggestion-card.lavender { background: #f1edf9; }
.forum-root[data-theme="dark"] .suggestion-card.mint { background: #233e30; }.forum-root[data-theme="dark"] .suggestion-card.sand { background: #393529; }.forum-root[data-theme="dark"] .suggestion-card.lavender { background: #302d42; }
.suggestion-icon { color: var(--fp-green); }
.suggestion-card.sand .suggestion-icon { color: #b9843b; }.suggestion-card.lavender .suggestion-icon { color: #8866b6; }
.suggestion-card strong { line-height: 1.5; font-size: 12.6px; font-weight: 760; }
.suggestion-action { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 780; font-size: 10.5px; color: var(--fp-green); }
.suggestion-card:hover { filter: brightness(.985); transform: translateY(-2px); transition: transform .18s; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--fp-muted); font-size: 10px; padding: 26px 0 35px; margin-top: 22px; border-top: 1px solid var(--fp-border); }
.mobile-search-row { display: none; }

.right-stick { padding-top: 3px; }
.right-card { background: var(--fp-card); border: 1px solid var(--fp-border); padding: 20px; border-radius: 14px; box-shadow: var(--fp-shadow); margin-bottom: 16px; }
.right-card-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--fp-green); font-size: 9.5px; font-weight: 850; letter-spacing: .07em; }
.right-title-icon { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #2c8055; background: var(--fp-green-pale); }
.start-card h3 { font-size: 17px; line-height: 1.43; color: var(--fp-strong); margin: 18px 0 10px; letter-spacing: -.025em; }
.right-card p { color: var(--fp-muted); font-size: 11.5px; line-height: 1.72; margin: 0; }
.onboarding-steps { display: grid; gap: 12px; margin: 19px 0; padding: 17px 0; border-block: 1px solid var(--fp-border); }
.onboarding-steps > div { display: flex; gap: 10px; align-items: center; color: var(--fp-text); font-weight: 660; font-size: 11.3px; }
.onboarding-steps span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--fp-green-pale); color: var(--fp-green); font-weight: 900; font-size: 10px; }
.right-card-button { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; color: #fff; background: #1d7152; border: 0; border-radius: 9px; padding: 11px; font-size: 11.5px; font-weight: 790; }
.right-card-button:hover { background: #13583c; }
.right-card-heading { display: flex; align-items: center; justify-content: space-between; }
.right-card h3 { color: var(--fp-strong); }
.right-card-heading h3 { font-size: 13.5px; margin: 0 0 8px; }
.right-card-heading span { font-size: 10px; color: var(--fp-muted); }
.divisions-card p { margin-bottom: 12px; }
.right-division { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--fp-text); border: 0; border-top: 1px solid var(--fp-border); background: transparent; padding: 11px 0; text-align: left; font-size: 11.7px; font-weight: 680; }
.right-division:hover { color: var(--fp-green); }
.right-division > span:nth-child(2) { flex: 1; }
.right-division svg { color: var(--fp-muted); }
.right-division-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #fff; font-weight: 850; font-size: 12px; }
.principle-card { background: var(--fp-green-pale); border-color: var(--fp-green-outline); }
.principle-icon { color: var(--fp-green); }
.principle-card h3 { font-size: 13px; margin: 9px 0 8px; }
.principle-card p { font-size: 11px; }

.overlay { position: fixed; inset: 0; background: rgba(10,27,18,.65); z-index: 180; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-overlay { z-index: 250; }
.modal { width: min(100%, 704px); max-height: min(91vh, 870px); overflow-y: auto; border: 1px solid var(--fp-border); border-radius: 19px; background: var(--fp-card); color: var(--fp-text); box-shadow: 0 30px 90px rgba(5,21,11,.23); }
.modal-header { padding: 23px 28px 20px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--fp-border); }
.modal-header h2 { color: var(--fp-strong); font-size: 22px; margin: 0; }
.compose-form { display: grid; gap: 18px; padding: 23px 28px 25px; }
.compose-form > label,.compose-inline label { display: flex; flex-direction: column; gap: 9px; color: var(--fp-strong); font-weight: 760; font-size: 12px; }
.compose-form label > span { color: #cb6b50; }
.compose-form input,.compose-form select,.compose-form textarea,.reply-form textarea { border: 1px solid var(--fp-border); background: var(--fp-bg); color: var(--fp-text); border-radius: 10px; padding: 12px 13px; width: 100%; outline: 0; font-weight: 450; }
.compose-form input::placeholder,.compose-form textarea::placeholder,.reply-form textarea::placeholder { color: var(--fp-muted); }
.compose-form input:focus,.compose-form select:focus,.compose-form textarea:focus,.reply-form textarea:focus { border-color: var(--fp-green); }
.compose-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.compose-form textarea,.reply-form textarea { resize: vertical; line-height: 1.65; }
.compose-tip { display: flex; gap: 8px; align-items: center; border-radius: 9px; padding: 10px 12px; background: var(--fp-green-pale); font-size: 11.3px; color: var(--fp-green); }
.form-error { margin: -7px 0 0; font-size: 12px; color: #d05642; }
.modal-footer { display: flex; gap: 10px; justify-content: end; padding-top: 4px; }
.detail-modal { max-width: 788px; }
.detail-backbar { padding: 18px 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--fp-border); }
.detail-backbar > button:first-child { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--fp-muted); font-size: 12px; font-weight: 700; }
.detail-inner { padding: 26px 35px 33px; }
.detail-meta { margin-bottom: 14px; }
.detail-inner > h2 { color: var(--fp-strong); font-size: clamp(21px,3vw,30px); line-height: 1.3; margin: 0 0 21px; letter-spacing: -.025em; }
.detail-author-row { display: flex; align-items: center; gap: 11px; padding-bottom: 20px; border-bottom: 1px solid var(--fp-border); }
.detail-author-row > div:nth-child(2) { display: grid; gap: 5px; }
.detail-author-row strong { font-size: 12.5px; color: var(--fp-strong); }
.detail-author-row small { font-size: 10.5px; color: var(--fp-muted); }
.detail-owner-actions { margin-left: auto; display: flex; gap: 12px; }
.detail-owner-actions button { color: var(--fp-muted); border: 0; background: transparent; text-decoration: underline; font-size: 11px; }
.detail-content { min-height: 90px; padding: 25px 0 22px; line-height: 1.85; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 19px; padding-bottom: 24px; }
.detail-actions button { display: inline-flex; gap: 7px; align-items: center; color: var(--fp-muted); background: transparent; border: 0; font-size: 12px; font-weight: 700; }
.comment-header { border-top: 1px solid var(--fp-border); padding-top: 22px; }
.comment-header h3 { color: var(--fp-strong); margin: 0 0 21px; font-size: 17px; }
.comment-header h3 span { color: var(--fp-muted); font-size: 14px; }
.comment-list { display: grid; gap: 21px; }
.comment { display: flex; align-items: start; gap: 10px; }
.comment-avatar { width: 33px; height: 33px; font-size: 10px; }
.comment-content { min-width: 0; flex: 1; background: var(--fp-card-muted); border: 1px solid var(--fp-border); padding: 13px 15px; border-radius: 4px 13px 13px; }
.comment-person { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.comment-person strong { color: var(--fp-strong); font-size: 12px; }
.comment-person span { color: var(--fp-muted); font-size: 10px; }
.comment-content p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 0; line-height: 1.7; font-size: 12.5px; }
.loading-comments,.no-comments { text-align: center; color: var(--fp-muted); padding: 16px 0 30px; font-size: 12px; }
.reply-form { display: flex; gap: 10px; align-items: start; padding-top: 27px; margin-top: 20px; border-top: 1px solid var(--fp-border); }
.reply-form > div { flex: 1; min-width: 0; }
.reply-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 10px; }
.reply-footer span { color: var(--fp-muted); font-size: 10px; }
.reply-footer .primary-button { min-height: 37px; padding: 9px 14px; }
.toast { display: flex; align-items: center; gap: 9px; position: fixed; bottom: 29px; right: 28px; z-index: 300; padding: 14px 18px; background: #1e654b; color: white; box-shadow: 0 13px 40px rgba(0,0,0,.2); border-radius: 11px; font-size: 12px; max-width: min(90vw,400px); }
.mobile-bottom-nav,.mobile-drawer { display: none; }

@media (max-width: 1400px) {
  .site-layout { grid-template-columns: 194px minmax(0,1fr) 239px; gap: 21px; padding-inline: 27px; }
  .topbar-inner { padding-inline: 27px; }
  .hero-art { transform: translateX(32px) scale(.9); }
}
@media (max-width: 1190px) {
  .site-layout { grid-template-columns: 195px minmax(0,1fr); gap: 24px; max-width: 1060px; }
  .right-sidebar { display: none; }
  .hero-art { transform: translateX(5px) scale(1); }
  .header-subtitle,.topbar-divider { display: none; }
}
@media (max-width: 900px) {
  .topbar { height: 67px; }
  .topbar-inner { padding-inline: 20px; gap: 12px; }
  .mobile-menu-trigger { display: inline-flex; }
  .left-sidebar { display: none; }
  .site-layout { display: block; max-width: 800px; padding: 22px 20px 74px; }
  .hero-art { transform: translateX(12px) scale(.95); }
  .mobile-bottom-nav { position: fixed; z-index: 65; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; gap: 2px; height: 66px; background: var(--fp-card); border-top: 1px solid var(--fp-border); padding: 6px max(9px,env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav button { border: 0; background: transparent; color: var(--fp-muted); display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; }
  .mobile-bottom-nav button.active { color: var(--fp-green); }
  .mobile-bottom-nav .mobile-plus { width: 49px; height: 49px; justify-self: center; border-radius: 15px; background: #1d7454; color: #fff; transform: translateY(-13px); box-shadow: 0 7px 20px rgba(18,86,52,.26); }
  .mobile-drawer { display: block; position: absolute; inset: 0 auto 0 0; width: min(86vw,360px); background: var(--fp-card); padding: 23px 16px; overflow-y: auto; box-shadow: 10px 0 30px rgba(0,0,0,.17); }
  .drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 25px 11px; color: var(--fp-strong); font-size: 16px; }
  .drawer-divisions { margin-top: 30px; }
  .footer { margin-bottom: 0; }
}
@media (max-width: 620px) {
  .topbar-inner { padding-inline: 14px; gap: 5px; }
  .brand-mark { height: 36px; width: 36px; border-radius: 10px; }
  .brand-name strong { font-size: 17px; }.brand-name > span { font-size: 9px; }
  .header-search,.private-pill { display: none; }
  .header-actions { margin-left: auto; gap: 3px; }
  .site-layout { padding: 16px 14px 78px; }
  .breadcrumb { font-size: 10.5px; padding-bottom: 13px; }
  .hero { min-height: 266px; border-radius: 15px; }
  .hero-content { padding: 26px 20px 24px; width: 100%; }
  .hero h1 { font-size: clamp(27px,7vw,36px); margin-top: 17px; }
  .hero p { max-width: 300px; font-size: 11.5px; }
  .hero-art { opacity: .18; transform: translateX(90px) scale(.89); pointer-events: none; }
  .hero-cta { font-size: 11px; margin-top: 18px; padding: 11px; }
  .stats-strip { padding: 14px 9px; margin: 13px 0 23px; }
  .stat { gap: 6px; justify-content: center; }
  .stat + .stat { padding-left: 7px; }
  .stat-icon { width: 29px; height: 29px; border-radius: 8px; }.stat-icon svg { width: 15px; }
  .stat strong { font-size: 16px; }.stat small { white-space: normal; font-size: 9px; line-height: 1.2; }
  .welcome { padding: 17px 14px; gap: 10px; margin-bottom: 28px; }
  .welcome-symbol { height: 33px; width: 33px; }.welcome-symbol svg { width: 17px; }
  .welcome h2 { font-size: 14.5px; }.welcome p { font-size: 11px; }
  .welcome-heading { gap: 5px; }.eyebrow-green { font-size: 8.5px; }
  .discussion-top { align-items: center; }
  .discussion-top h2,.suggestion-heading h2 { font-size: 20px; }
  .discussion-top p { font-size: 10.5px; }
  .desktop-new { display: none; }
  .feed-controls { gap: 3px; }.feed-tabs { gap: 17px; }.feed-tabs button { font-size: 11px; }
  .feed-filter-summary { font-size: 9.5px; }.feed-filter-summary svg { display: none; }
  .mobile-search-row { display: flex; align-items: center; gap: 10px; color: var(--fp-muted); padding: 11px 12px; background: var(--fp-card); border: 1px solid var(--fp-border); border-radius: 10px; margin-bottom: 12px; }
  .mobile-search-row input { min-width: 0; border: none; background: transparent; color: var(--fp-text); outline: none; width: 100%; font-size: 12px; }
  .post-card { padding: 17px 15px 14px; }.post-title { font-size: 15px; }.post-excerpt { font-size: 11.5px; }
  .post-actions { gap: 9px; }.post-time { font-size: 9px; }
  .suggestion-heading > span { display: none; }
  .suggestion-grid { grid-template-columns: 1fr; gap: 10px; }
  .suggestion-card { min-height: 100px; display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 4px 13px; align-items: center; padding: 14px; }
  .suggestion-icon { grid-row: span 2; }.suggestion-card strong { font-size: 12px; }
  .suggestion-action { margin: 0; grid-column: 2; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .modal-header { padding: 20px 19px 16px; }.modal-header h2 { font-size: 20px; }
  .compose-form { padding: 17px 19px 24px; gap: 15px; }.compose-inline { grid-template-columns: 1fr; gap: 15px; }
  .detail-backbar { padding: 13px 17px; }.detail-inner { padding: 20px 19px 25px; }
  .detail-inner > h2 { font-size: 22px; }.detail-content { font-size: 13px; }
  .reply-footer span { display: none; }.reply-footer { justify-content: end; }
  .toast { bottom: 79px; right: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .forum-root *, .forum-root *::before, .forum-root *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* AGRILL Connect — anonymous participation and owner-only identity disclosure. */
.anonymous-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 5px 7px; background: #edeef7; color: #7667a1; font-size: 10px; font-weight: 750; white-space: nowrap; }
.forum-root[data-theme="dark"] .anonymous-badge { background: #37374b; color: #cbc3e8; }
.compose-form .anonymous-toggle { display: flex; align-items: flex-start; flex-direction: row; gap: 12px; border: 1px solid var(--fp-green-outline); border-radius: 12px; background: var(--fp-green-pale); padding: 15px; cursor: pointer; }
.compose-form .anonymous-toggle input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #197451; }
.compose-form .anonymous-toggle > svg { flex: none; color: var(--fp-green); margin-top: 1px; }
.compose-form .anonymous-toggle > span { display: grid; gap: 6px; color: var(--fp-text); }
.compose-form .anonymous-toggle strong { font-size: 12.5px; color: var(--fp-strong); }
.compose-form .anonymous-toggle small { color: var(--fp-muted); font-size: 11px; line-height: 1.6; font-weight: 500; }
.compose-form .nickname-field { gap: 8px; padding: 0 2px; }
.compose-form .nickname-field > span { display: inline; color: var(--fp-muted); font-weight: 500; }
.compose-form .nickname-field > small,.reply-nickname small { color: var(--fp-muted); font-size: 11px; font-weight: 450; line-height: 1.5; }
.owner-reveal { padding: 10px 0 4px; }
.owner-reveal > button,.comment-reveal button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--fp-green-outline); color: var(--fp-green); background: var(--fp-green-pale); padding: 8px 11px; border-radius: 8px; font-size: 11px; font-weight: 760; }
.owner-reveal > button:hover,.comment-reveal button:hover { filter: brightness(.96); }
.owner-identity { display: flex; align-items: start; gap: 8px; border: 1px solid #e4cfaa; background: #fff7e7; color: #806236; border-radius: 9px; padding: 11px 12px; font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; }
.forum-root[data-theme="dark"] .owner-identity { background: #3c3527; color: #e8d4a3; border-color: #665739; }
.owner-identity svg { flex: none; margin-top: 2px; }
.anonymous-mini { background: var(--fp-green-pale); color: var(--fp-green) !important; border-radius: 4px; font-weight: 800; padding: 2px 5px; font-size: 9px !important; }
.comment-reveal { padding-top: 11px; }
.comment-reveal > span { display: inline-flex; gap: 6px; align-items: center; color: #9e7939; font-size: 10.5px; line-height: 1.5; overflow-wrap: anywhere; }
.reply-anonymous { display: inline-flex; align-items: center; gap: 7px; color: var(--fp-green); font-size: 11px; font-weight: 750; cursor: pointer; margin-top: 10px; }
.reply-anonymous input { width: 16px; height: 16px; margin: 0; accent-color: #197451; }
.reply-nickname { display: grid; gap: 8px; margin-top: 12px; color: var(--fp-strong); font-size: 11.5px; font-weight: 750; }
.reply-nickname input { width: 100%; padding: 10px 12px; border: 1px solid var(--fp-border); border-radius: 9px; background: var(--fp-bg); color: var(--fp-text); outline: none; font: inherit; font-weight: 450; }
.reply-nickname input:focus { border-color: var(--fp-green); }
.reply-nickname input::placeholder { color: var(--fp-muted); }

.connect-boot {padding:60px 24px;text-align:center;font-family:Arial,sans-serif;}
.owner-key-panel {display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:14px max(20px,calc((100vw - 1360px)/2));background:#edf4ef;color:#234b3b;border-bottom:1px solid #d4e3d9;font-family:Arial,sans-serif;}
.owner-key-panel p{font-size:13px;max-width:740px;line-height:1.5;margin:5px 0;}
.owner-key-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px;}
.owner-key-actions button,.key-file-button{background:#315d4d;color:white;padding:9px 12px;border:0;border-radius:8px;cursor:pointer;}
.key-file-button input{display:block;max-width:200px;margin-top:6px;font-size:12px;}
.owner-key-actions a{color:#315d4d;}
.key-notice{padding:12px 20px;background:#fff2d8;color:#684b10;font-family:Arial;font-size:13px;}
@media(max-width:600px){.owner-key-panel{padding:12px 16px;}.private-pill{display:none;}}
