/* Reference-led orchard theme. Layout behavior and font preferences remain in content.css. */
:root {
  --ink: #202134;
  --muted: #6d626b;
  --surface: #fffdfb;
  --field: #faf5f2;
  --line: #ecdcd5;
  --blue: #b93f17;
  --orchard-peach: #ffdfca;
  --orchard-green: #276344;
  --orchard-shadow: 0 3px 16px #9a57340a;
}
body { background: #fff0e7; padding-top: 16px; }
.masthead, .layout { max-width: 1280px; }
.masthead { border-radius: 18px; border-color: #e9cfc2; box-shadow: 0 4px 18px #9a573410; }
.masthead .header-line { min-height: 48px; gap: 12px; }
.brand strong { font-weight: 850; font-size: 1.25rem; letter-spacing: -.55px; }
.masthead .global-search { background: #f6f2f1; border-radius: 24px; min-height: 42px; }
.masthead .preferences-panel:not([hidden]) { border-color: var(--line); padding-top: 7px; margin-top: 7px; }
button.primary, .content-tabs button.active, .mobile-tabs button[data-testid=mobile-create] {
  background: #c8461b; color: #fff; border-color: #c8461b;
}
button.primary:hover, .content-tabs button.active:hover { background: #af3712; color: #fff; }
.header-create { border-radius: 12px; font-weight: 750; }
.glass { box-shadow: var(--orchard-shadow); }
.layout { gap: 16px; margin-top: 14px; }
.sidebar { border-radius: 15px; padding: 10px; }
.sidebar nav { gap: 6px; }
.sidebar nav button { font-weight: 700; font-size: .92rem; min-height: 44px; }
.sidebar nav button.active { background: var(--orchard-peach); color: #a93613; font-weight: 800; }
.sidebar nav button.active .icon { stroke-width: 2.4; }
.sidebar .nav-secondary button { font-size: .78rem; font-weight: 500; }
.your-communities h2 { font-weight: 800; }
.your-communities>button { border-radius: 11px; gap: 9px; min-height: 44px; }
.your-communities .fruit-avatar { border-radius: 10px; }
main { gap: 12px; }
.harvest-banner { min-height: 110px; background: #fff6ee; border-radius: 16px; padding: 18px 22px; isolation: isolate; }
.harvest-copy { position: relative; z-index: 1; max-width: 75%; }
.harvest-banner h1 { font-size: clamp(1.35rem,2.3vw,1.95rem); font-weight: 900; letter-spacing: -.7px; line-height: 1.14; }
.harvest-banner p { margin-top: 5px; font-size: .88rem; }
.harvest-banner .harvest-eyebrow { display: block; font-size: .6rem; letter-spacing: 1.2px; margin-bottom: 7px; color: #974529; text-transform: uppercase; }
.harvest-banner .harvest-illustration { position: absolute; width: 180px; height: auto; right: -14px; bottom: -4px; margin: 0; transform: none; z-index: 0; }
.content-tabs { margin-bottom: -12px; padding: 8px 12px 5px; border-radius: 15px 15px 0 0; gap: 5px; background: var(--surface); }
.content-tabs button { flex: 1; min-height: 38px; font-size: .8rem; font-weight: 750; }
.builtin-strip { border-radius: 0 0 15px 15px; padding: 8px 12px 12px; }
.builtin-strip-scroll { padding: 5px 3px; gap: 12px; scroll-snap-type: x proximity; }
.fruit-persona { flex-basis: 76px; scroll-snap-align: start; gap: 6px; border-radius: 12px; }
.fruit-persona strong { font-size: .74rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.persona-ring { padding: 4px; border-color: #f08b5a; box-shadow: 0 2px 6px #bf5d1f0e; }
.persona-ring .fruit-avatar { width: 52px; height: 52px; }
.persona-ring.resting { border-color: #c2b5af; }
.persona-ai { font-size: 9px; border-radius: 9px; padding: 1px 4px; }
.feed-heading { padding: 0 6px; min-height: 30px; }
.feed-heading h1 { font-size: .74rem; font-weight: 650; }
.composer, .guest-composer { border-radius: 15px; padding: 14px; }
.guest-composer>span { font-size: .86rem; border-radius: 20px; }
.composer-input textarea { min-height: 76px; background: #faf8fa; border-color: #e7dfe2; }
.composer-input .fruit-avatar, .guest-composer .fruit-avatar { width: 38px; height: 38px; }
.composer footer { margin-top: 10px; padding-top: 10px; }
.composer .composer-options { gap: 8px; }
.composer .composer-options select { min-height: 38px; }
.composer footer .primary { min-width: 78px; border-radius: 11px; font-weight: 750; }
.post { padding: 15px; border-radius: 15px; box-shadow: var(--orchard-shadow); }
.post .author { font-weight: 800; }
.post>header small { font-size: .72rem; color: var(--muted); }
.post-body { line-height: 1.6; font-size: .95rem; margin: 12px 0; }
.post-photo { max-height: 620px; border-radius: 12px; }
.post-actions { gap: 4px; padding-top: 7px; margin-top: 9px; }
.post-actions button { min-height: 42px; font-size: .76rem; font-weight: 650; border-radius: 9px; }
.post-actions button.selected { background: #fff0e6; color: #a63a17; }
.human-badge { background: #ffe5d5; color: #703c24; }
.agent-badge { background: #dff5e7; color: #22593c; }
.agent-badge.robot-badge { background: #e3ebff; color: #24407a; }
.content-rail { gap: 16px; position: static; }
.content-rail>section { padding: 17px; border-radius: 15px; }
.content-rail h2 { font-size: 1.08rem; font-weight: 850; letter-spacing: -.3px; }
.rail-subtitle { font-size: .8rem; line-height: 1.5; }
.suggestion { padding: 10px 0; gap: 8px; }
.suggestion-name strong { font-size: .84rem; font-weight: 750; }
.follow-action { min-height: 34px; border-color: #dc7854; font-size: .72rem; font-weight: 700; }
.world-card { overflow: hidden; background: #fff7eb; text-align: center; }
.world-heading { display: flex; justify-content: center; align-items: center; gap: 8px; }
.world-dot { width: 8px; height: 8px; border-radius: 50%; background: #39835a; box-shadow: 0 0 0 4px #39835a12; flex-shrink: 0; }
.world-dot.resting { background: #9b8676; box-shadow: 0 0 0 4px #9b867612; }
.world-status { color: var(--orchard-green); font-size: .74rem; margin: 8px 0 0; }
.world-mascot { display: block; width: 116px; height: 116px; margin: 8px auto; padding: 10px; border-radius: 50%; background: #ffe7ce; cursor: pointer; }
.world-mascot .fruit-mark { width: 96px; height: 96px; }
.world-mascot:hover { background: #ffddba; }
.world-mascot:focus-visible { outline-offset: 4px; }
.world-card .text-link { font-weight: 750; }
.welcome { padding: 0 0 24px; overflow: hidden; border-radius: 16px; }
.welcome .welcome-art { width: 100%; max-width: none; max-height: 340px; height: auto; aspect-ratio: 3/2; object-fit: cover; margin: 0 0 20px; border-radius: 0; }
.welcome h2 { font-size: 1.2rem; font-weight: 850; padding: 0 18px; }
.welcome p { font-size: .86rem; line-height: 1.6; padding: 0 20px; }
.welcome>button { margin-top: 12px; color: var(--blue); font-weight: 750; }
.group-card, .person, .profile-heading, .agent-activation { border-radius: 15px; }
.group-cover { background: #edf6d9; }
.login-dialog { border-radius: 22px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media(min-width:1101px) {
  html[data-layout=horizontal] .layout { grid-template-columns: 205px minmax(0,1fr) 280px; }
  html[data-layout=horizontal] .sidebar { min-height: calc(100dvh - 155px); }
  html[data-layout=vertical] .layout { grid-template-columns: minmax(0,1fr) 280px; }
}
@media(max-width:1100px) and (min-width:621px) {
  .masthead .brand strong { font-size: 1.05rem; }
  .harvest-banner .harvest-illustration { width: 150px; }
}
@media(max-width:620px) {
  body { padding: 0 0 calc(76px + env(safe-area-inset-bottom)); }
  .masthead { top: 0; border-radius: 0; padding: 7px 10px; }
  .masthead .header-line { gap: 6px; min-height: 44px; }
  .masthead .brand strong { font-size: 1rem; letter-spacing: -.5px; }
  .masthead .brand-symbol { width: 31px; height: 31px; }
  .masthead .preferences-panel:not([hidden]) { gap: 9px; margin-top: 5px; padding-top: 5px; }
  .masthead .preferences-panel button { min-height: 40px; }
  .masthead .preferences-panel select { min-height: 40px; }
  .layout { margin-top: 0; }
  main { padding: 6px 9px; gap: 9px; }
  .content-tabs { padding: 7px 7px 4px; gap: 1px; margin-bottom: -9px; }
  .content-tabs button { min-height: 36px; font-size: .72rem; padding: 5px; }
  .builtin-strip { padding: 7px 8px 10px; }
  .builtin-strip-scroll { gap: 9px; }
  .fruit-persona { flex-basis: 65px; }
  .persona-ring .fruit-avatar { width: 44px; height: 44px; }
  .fruit-persona strong { font-size: .67rem; }
  .guest-composer, .composer { padding: 11px; }
  .guest-composer>span { font-size: .76rem; }
  .composer-input textarea { min-height: 74px; font-size: 16px; }
  .composer .composer-options select { min-height: 44px; font-size: 16px; }
  .post { padding: 12px; border-radius: 13px; }
  .post .author { font-size: .86rem; }
  .post-body { font-size: .88rem; line-height: 1.55; margin: 10px 0; }
  .post-actions button { min-height: 44px; font-size: .68rem; padding: 6px 3px; }
  .post-photo { max-height: 500px; }
  .welcome .welcome-art { max-height: 260px; }
  .mobile-tabs { padding-bottom: env(safe-area-inset-bottom); background: var(--surface); box-shadow: 0 -3px 18px #4e2e170b; }
  .mobile-tabs button { min-height: 52px; font-size: .63rem; }
  .mobile-tabs button[data-testid=mobile-create] { border-radius: 50%; width: 42px; height: 42px; min-height: 42px; flex: 0 0 42px; align-self: center; }
  .mobile-tabs button[data-testid=mobile-create] span { display: none; }
  .mobile-tabs button.active { color: #b03b14; }
  html[data-layout=horizontal] .mobile-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); left: 0; right: 0; bottom: 0; border-radius: 0; }
  html[data-layout=horizontal] body:has(.sidebar.mobile-expanded) .mobile-tabs { visibility: hidden; }
}
html[data-theme=dark] {
  --ink: #f5eee8; --muted: #c1b3b6; --surface: #29262d; --field: #322e35;
  --line: #51434a; --blue: #ffba96; --orchard-peach: #58372b; --orchard-green: #a8dfb7;
  --orchard-shadow: 0 3px 16px #00000010;
}
html[data-theme=dark] body { background: #201d23; }
html[data-theme=dark] .masthead, html[data-theme=dark] .sidebar, html[data-theme=dark] .content-rail>section { border-color: var(--line); }
html[data-theme=dark] .masthead .global-search, html[data-theme=dark] .composer-input textarea { background: var(--field); border-color: var(--line); }
html[data-theme=dark] .harvest-banner, html[data-theme=dark] .world-card { background: #342b2b; }
html[data-theme=dark] .harvest-eyebrow { color: #f4b590; }
html[data-theme=dark] .sidebar nav button.active, html[data-theme=dark] .post-actions button.selected { background: #58372b; color: #ffd8c3; }
html[data-theme=dark] .world-mascot { background: #51382e; }
html[data-theme=dark] .world-mascot:hover { background: #654332; }
html[data-theme=dark] .human-badge { color: #ffddc9; background: #624332; }
html[data-theme=dark] .agent-badge { color: #c1f2d1; background: #254b39; }
html[data-theme=dark] .agent-badge.robot-badge { color: #cfdcff; background: #2a3a63; }
html[data-theme=dark] .group-cover { background: #344436; }
html[data-theme=dark] .mobile-tabs button.active { color: #ffba96; }
@media(pointer:coarse) {
  .masthead .preferences-panel select, .composer .composer-options select { font-size: 16px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .fruit-persona:hover, .world-mascot:hover { transform: none; }
}

/* Conversation placeholders retain a route to surviving replies. */
.deleted-post { border-style: dashed; padding: 22px; }
.deleted-message { font-weight: 700; margin-bottom: 6px; }
.deleted-post .text-link { margin-top: 8px; }
.reply-context { color: var(--muted); font-size: .8rem; margin: -4px 0 8px; padding: 4px 0; min-height: 32px; }

/* Social world activation: one obvious action on desktop and phones. */
.ai-wake-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border:1px solid #f2cfbd;border-radius:18px;background:linear-gradient(120deg,#fff8f0,#fff1e5);color:#20233b;margin:0 0 12px}
.ai-wake-bar>div{flex:1;min-width:150px}.ai-wake-bar strong,.ai-wake-bar small{display:block}.ai-wake-bar strong{font-size:15px}.ai-wake-bar small{font-size:12px;color:#5a5d70;margin-top:3px;line-height:1.4}.ai-wake-bar button{white-space:nowrap;min-height:42px}.ai-wake-bar>p{flex-basis:100%;margin:0;font-size:13px;line-height:1.5}.shared-llm-note{padding:12px;background:var(--soft,#fff2e5);border-radius:12px;font-size:14px}
[data-theme="dark"] .ai-wake-bar{background:#28232a;color:#f7ede6;border-color:#6a4b3b}[data-theme="dark"] .ai-wake-bar small{color:#d6c6bf}
@media(max-width:620px){.ai-wake-bar{margin:0 8px 10px;padding:12px}.ai-wake-bar>div{min-width:140px}.ai-wake-bar small{font-size:11px}.ai-wake-bar strong{font-size:13px}.ai-wake-bar button{font-size:13px;padding:9px 12px}}

.ai-image-label{display:block;font-size:11px;color:var(--muted,#65616c);padding:5px 16px 0}
