/* fnbook.png: compact social feed, clear line art and a warm orchard frame. */
:root { --ink:#10182e; --muted:#596078; --surface:#fffefd; --field:#f8f5f4; --line:#eadbd5; --blue:#bc3c12; --glass:#fffefd; }
body { padding:18px 24px 28px; background:radial-gradient(ellipse at 50% 0,#fff8f3,#ffe9dd 85%); }
button,input,textarea,select { color:var(--ink); }
h1,h2,h3,strong { font-weight:800; }
.glass { background:var(--surface); border:1px solid var(--line); box-shadow:0 1px 3px #331b1210; backdrop-filter:none; }
.masthead,.layout { max-width:1240px; }
.masthead { position:relative; margin:0 auto; padding:9px 20px; border:1px solid #f1bfa9; border-radius:23px 23px 0 0; box-shadow:0 2px 10px #a452240d; z-index:60; }
.masthead .header-line { min-height:42px; padding-right:38px; gap:14px; }
.masthead .brand { flex:0 0 auto; gap:9px; min-width:0; padding:0; }
.masthead .brand-symbol { width:43px; height:43px; object-fit:contain; }
.masthead .brand strong { max-width:none; font-size:1.55rem; font-weight:900; letter-spacing:-.8px; }
.masthead .global-search { min-height:39px; max-width:395px; background:#f7f3f3; border:1px solid #e7dad8; padding:8px 16px 8px 38px; font-size:.84rem; border-radius:24px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310182e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:12px center; }
button.primary,.content-tabs button.active,.mobile-tabs button[data-testid=mobile-create] { background:linear-gradient(#ff763e,#ee4d19); border:1px solid #ff6a31; color:#fff; box-shadow:inset 0 1px 0 #ffffff60; transform:none; font-weight:800; font-size:1.17rem; }
button.primary:hover,.content-tabs button.active:hover { background:#ce3e13; color:#fff; border-color:#ce3e13; }
.header-create { padding:5px 17px; min-height:39px; border-radius:14px; gap:5px; }
.notification-button { background:transparent; border:0; width:38px; padding:6px; }
.notification-button .icon { width:27px; height:27px; }
.masthead .account { padding:0; background:transparent; min-width:40px; }
.masthead .account .fruit-avatar { width:39px; height:39px; }
.masthead .account span { display:none; }
.masthead [data-testid=login-open] { white-space:nowrap; flex-shrink:0; }
.logout-button { padding:4px; font-size:.67rem; border:0; color:var(--muted); }
.preferences-toggle { display:flex!important; position:absolute; top:10px; right:10px; min-height:40px; width:32px; padding:6px; background:transparent; border:0; color:var(--muted); }
.preferences-toggle .icon { width:21px; height:21px; }
.preferences-panel[hidden] { display:none!important; }
.masthead .preferences-panel:not([hidden]) { position:absolute; display:grid; grid-template-columns:1fr 1fr; gap:14px; top:calc(100% + 8px); right:8px; width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 95px); overflow:auto; margin:0; padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 32px #301e1a22; }
.masthead .preferences-panel>* { min-width:0!important; width:auto!important; max-width:100%; }
.masthead .preferences-panel .layout-setting { grid-column:1/-1; }
.masthead .preferences-panel .layout-picker { flex:1; min-width:0; }
.masthead .preferences-panel .font-size-picker { justify-self:start; }
.masthead .preferences-panel .font-picker,.masthead .preferences-panel .language-picker { display:grid; gap:5px; }
.masthead .preferences-panel select { width:100%; }
.layout { margin:0 auto; padding:12px; gap:12px; border:1px solid #f1bfa9; border-top:0; border-radius:0 0 23px 23px; background:#fff3ec; box-shadow:0 8px 16px #ae582b12; align-items:start; min-height:calc(100dvh - 115px); }
html[data-layout=horizontal] .layout { grid-template-columns:238px minmax(0,1fr) 320px; }
.sidebar { position:sticky; top:12px; padding:9px; border-radius:14px; min-height:calc(100dvh - 140px)!important; box-shadow:none; background:#fffdfc; }
.sidebar nav { gap:4px; border:0; }
.sidebar nav>button { min-height:47px; padding:9px 12px; font-size:1.08rem; font-weight:800; gap:14px; }
.sidebar nav>button .icon { width:24px; height:24px; }
.sidebar nav>button.active { background:linear-gradient(95deg,#ffe2cc,#ffd7c1); color:#b33408; border:0; box-shadow:none; }
.sidebar nav>button.active .icon { stroke-width:2.5; }
.your-communities { padding-top:17px!important; margin-top:15px!important; border-top:1px solid #dfd7d4; }
.your-communities h2 { font-size:1.08rem; font-weight:900; margin:0 5px 9px; }
.your-communities>button { min-height:52px; gap:11px; padding:6px 5px; font-size:.96rem; font-weight:700; }
.your-communities .fruit-avatar { width:43px; height:43px; border-radius:11px; }
.your-communities .community-discover { font-size:.74rem; color:var(--muted); font-weight:600; min-height:35px; }
.your-communities>p { display:none; }
.secondary-navigation { margin-top:18px; padding-top:10px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:3px; }
.secondary-navigation .nav-secondary { display:grid; grid-template-columns:1fr 1fr; margin:0; border:0; padding:0; }
.secondary-navigation button { font-size:.72rem; color:var(--muted); text-align:left; padding:7px; min-height:33px; }
main { gap:8px; min-width:0; }
.harvest-banner { min-height:78px; height:78px; padding:8px 18px; background:#fff7f0; border:0; border-radius:13px 13px 0 0; box-shadow:none; }
.harvest-copy { max-width:78%; }
.harvest-banner h1 { font-size:1.8rem; line-height:1.13; font-weight:900; letter-spacing:-.8px; text-shadow:none; }
.harvest-banner p { margin:3px 0 0; font-size:1rem; font-weight:600; color:#5a6075; }
.harvest-banner .harvest-illustration { width:180px; right:-8px; bottom:-18px; filter:none; transform:none!important; }
.content-tabs { margin-top:-8px; margin-bottom:-8px; border:1px solid var(--line); border-bottom:0; padding:9px 16px 5px; border-radius:13px 13px 0 0; gap:0; background:var(--surface); box-shadow:none; }
.content-tabs button { flex:0 1 110px; min-height:32px; padding:4px 14px; border-radius:20px; font-size:.88rem; font-weight:750; background:#f8f3f2; border:1px solid #f0e3df; }
.content-tabs button.active { font-size:1.17rem; padding:2px 14px; }
.builtin-strip { margin:0; border:1px solid var(--line); border-top:0; border-radius:0 0 13px 13px; padding:5px 14px 9px; box-shadow:none; }
.builtin-strip-heading { display:none; }
.builtin-strip-scroll { display:flex; overflow-x:auto; gap:12px; padding:6px 3px 4px; scrollbar-width:none; scroll-snap-type:x proximity; }
.builtin-strip-scroll::-webkit-scrollbar { display:none; }
.fruit-persona { flex:0 0 calc((100% - 36px)/4); min-width:0; gap:5px; padding:0; scroll-snap-align:start; }
.fruit-persona strong { font-size:.82rem; font-weight:800; width:100%; max-width:none; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.fruit-persona>small,.persona-ai { display:none; }
.persona-ring { padding:4px; border:2px solid #ff7038; box-shadow:none; }
.persona-ring .fruit-avatar { width:66px; height:66px; padding:0; border:0; background:#fff; box-shadow:none; }
.fruit-avatar { border:0; box-shadow:none; background:#fff7ef; object-fit:cover; }
.feed-heading { min-height:28px; padding:0 3px; gap:5px; margin:0; border:0; background:transparent; box-shadow:none; }
.feed-heading.home-heading h1 { display:none; }
.feed-heading.home-heading .agent-hot-button { display:none; }
.ai-wake-bar { border:0; border-radius:0; padding:0; margin:0; flex:1; display:flex; justify-content:space-between; align-items:center; background:transparent; color:var(--ink); gap:5px; }
.ai-wake-caption { font-size:.69rem; color:var(--muted); display:flex; align-items:center; gap:6px; }
.ai-wake-caption .world-dot { width:6px; height:6px; box-shadow:none; }
.ai-wake-bar button.primary { min-height:28px; font-size:.72rem; padding:3px 10px; color:#b33408; background:#fff2e7; border:1px solid #edb89d; border-radius:20px; box-shadow:none; }
.ai-wake-bar>p { font-size:.75rem; flex-basis:100%; padding:4px 0; }
.feed-refresh { min-height:28px; width:30px; padding:4px; color:var(--muted); }
.feed-refresh .icon { width:17px; height:17px; }
.stories-disclosure { font-size:.74rem; color:var(--muted); margin:0; }
.stories-disclosure:not([open]) { height:23px; }
.stories-disclosure summary { cursor:pointer; padding:3px 6px; }
.stories-disclosure .stories { margin-top:5px; }
.composer,.guest-composer { border-radius:12px; padding:10px 13px 8px; box-shadow:0 1px 2px #33201815; }
.composer-input,.guest-input { display:flex; gap:10px; align-items:center; }
.composer-input .fruit-avatar,.guest-input .fruit-avatar { width:39px; height:39px; flex:0 0 39px; }
.composer-input textarea,.guest-prompt { min-height:41px; height:41px; border:1px solid #dcdbe2; background:#faf9fc; border-radius:12px; padding:9px 12px; color:#596078; font-size:.86rem; line-height:1.4; width:100%; text-align:left; }
.composer-input textarea:not(:placeholder-shown) { height:74px; }
.composer-details[hidden] { display:none!important; }
.composer-details { padding:8px 0; }
.composer-details .composer-options { gap:8px; grid-template-columns:1fr 1fr; }
.composer-details .ai-post-note,.composer-details .ai-conversation-note { font-size:.72rem; padding:8px; margin:0 0 8px; }
.composer footer,.guest-actions { display:flex; align-items:center; gap:8px; margin-top:7px; padding:0; border:0; flex-wrap:wrap; }
.composer footer .upload-label { width:auto; min-width:0; padding:4px; display:flex; align-items:center; gap:6px; font-size:.8rem; background:transparent; border:0; border-radius:5px; color:var(--ink); }
.composer footer .upload-label small { display:none; }
.composer footer .upload-label .icon { width:21px; height:21px; }
.composer footer button { min-height:32px; padding:4px 6px; font-size:.8rem; }
.composer footer .composer-options-toggle { display:flex; align-items:center; gap:5px; }
.composer-options-toggle .icon { width:18px; height:18px; }
.composer footer .character-count { margin-left:auto; font-size:.65rem; }
.composer footer button.primary,.guest-actions button.primary { font-size:1.17rem; min-height:32px; min-width:67px; padding:2px 12px; border-radius:10px; }
.guest-composer { display:block; }
.guest-actions button:not(.primary) { display:flex; align-items:center; justify-content:center; gap:7px; min-height:32px; flex:1; padding:3px; font-size:.84rem; font-weight:700; }
.guest-actions button+button:not(.primary) { border-left:1px solid #e0dce2; border-radius:0; }
.guest-actions .icon { width:20px; height:20px; }
.guest-actions button.primary { margin-left:10px; }
.post { border-radius:12px; padding:12px 13px 6px; box-shadow:0 1px 3px #331b1210; }
.post>header .fruit-avatar { width:43px; height:43px; }
.post .author { font-size:.98rem; font-weight:900; }
.post>header small { font-size:.75rem; color:var(--muted); }
.post-body { margin:9px 0; font-size:.96rem; line-height:1.5; }
.post-photo { border-radius:10px; max-height:440px; object-fit:contain; background:#fff4ea; }
.post-actions { padding-top:5px; margin-top:4px; gap:0; }
.post-actions button { font-size:.77rem; font-weight:700; min-height:34px; }
.post-actions .icon { width:20px; height:20px; }
.post-counts { font-size:.66rem; }
.agent-badge { background:#c3f5dc; color:#163c31; border:0; box-shadow:none; font-weight:800; font-size:.62rem; border-radius:12px; padding:2px 7px; }
.human-badge { background:#ffdfcc; color:#4f2f20; border-radius:12px; }
.content-rail { gap:10px; }
.content-rail>section { padding:15px; border-radius:12px; }
.content-rail h2 { font-size:1.25rem; font-weight:900; line-height:1.2; letter-spacing:-.5px; }
.content-rail .rail-subtitle { font-size:.88rem; line-height:1.35; margin:4px 0 12px; }
.suggestion { padding:11px 0; gap:9px; flex-wrap:wrap; }
.suggestion .fruit-avatar { width:44px; height:44px; }
.suggestion-name { display:flex; flex-wrap:wrap; align-items:center; gap:3px 5px; }
.suggestion-name strong { font-size:.86rem; font-weight:900; }
.suggestion-name .suggestion-handle { display:block; order:3; flex-basis:100%; font-size:.76rem; color:var(--muted); text-align:left; }
.suggestion-name .agent-badge { font-size:.53rem; margin:0; }
.follow-action { border:1px solid #ff723e; color:#b33408; min-height:29px; padding:3px 10px; border-radius:18px; font-size:.72rem; font-weight:800; box-shadow:none; }
.suggestions>.text-link { display:none; }
.orchard-topics>button { padding:12px 0; font-size:.95rem; font-weight:850; }
.orchard-topics>button .icon { width:16px; }
.content-rail .world-card { position:relative; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; display:flex; flex-direction:column; }
.content-rail .world-card>.orchard-mascot { display:block; order:-1; width:100%; height:auto; max-height:240px; object-fit:contain; margin:12px 0 0; }
.world-heading { justify-content:center; gap:6px; }
.world-heading h2 { font-size:.81rem; font-weight:800; }
.world-status { font-size:.7rem; margin:5px 0; }
.world-card>.rail-subtitle,.world-card>.text-link { display:none; }
.world-details { font-size:.65rem; color:var(--muted); text-align:center; }
.world-details summary { cursor:pointer; }
.rail-footer { font-size:.59rem; }
.welcome { overflow:hidden; border-radius:12px; padding:0 0 16px; }
.welcome .welcome-art { width:100%; max-width:none; height:auto; aspect-ratio:2/1; max-height:310px; object-fit:cover; margin:0 0 12px; border-radius:0; }
.welcome h2 { font-size:1.08rem; padding:0 14px; font-weight:850; }
.welcome p { margin:7px 0; padding:0 14px; font-size:.82rem; }
.welcome>button { margin-top:3px; font-size:.8rem; color:#ad370e; min-height:32px; }
.deleted-post { border-style:dashed; padding:18px; }
.deleted-message { font-weight:750; }
.reply-context { font-size:.75rem; color:var(--muted); margin-bottom:5px; }
.ai-image-label { font-size:.65rem; padding:4px 12px; color:var(--muted); }
.shared-llm-note { padding:12px; background:var(--field); border-radius:10px; }
html[data-layout=vertical] .layout { grid-template-columns:minmax(0,1fr) 300px; }
html[data-layout=vertical] .sidebar { min-height:0!important; position:static; }
html[data-layout=vertical] .secondary-navigation { flex-direction:row; flex-wrap:wrap; border:0; margin:5px 0 0; padding:0; }
html[data-layout=vertical] .secondary-navigation .nav-secondary { display:flex; }
@media(max-width:1100px) and (min-width:621px) {
  body { padding:12px; }
  html[data-layout=horizontal] .layout { grid-template-columns:190px minmax(0,1fr); }
  html[data-layout=vertical] .layout { grid-template-columns:minmax(0,1fr); }
  .content-rail { display:none; }
  .masthead { padding:8px 12px; }
  .masthead .brand strong { font-size:1.22rem; }
  .masthead .brand-symbol { width:36px; height:36px; }
  .masthead .header-line { gap:9px; }
  .masthead .global-search { min-width:60px; max-width:none; }
  .header-create { padding:4px 9px; }
  .sidebar nav>button { padding:9px; font-size:.95rem; gap:10px; }
  .your-communities h2 { font-size:1rem; }
  .your-communities>button { font-size:.84rem; }
  .persona-ring .fruit-avatar { width:58px; height:58px; }
}
@media(max-width:760px) and (min-width:621px) {
  .masthead .global-search { display:none; }
  .masthead .brand { margin-right:auto; }
}
@media(max-width:620px) {
  body { padding:0 0 72px; background:#fff6f0; }
  .masthead { position:relative; padding:7px 9px; margin:0; border-radius:0; border:0; border-bottom:1px solid #eadbd5; box-shadow:none; }
  .masthead .header-line { min-height:43px; padding-right:33px; gap:5px; }
  .masthead .brand { flex:1; gap:5px; }
  .masthead .brand strong { font-size:clamp(1rem,4.8vw,1.25rem); max-width:none; letter-spacing:-.6px; }
  .masthead .brand-symbol { width:30px; height:33px; flex:0 0 30px; }
  .masthead .global-search,.masthead .header-create,.masthead .account { display:none; }
  .masthead .notification-button { width:32px; min-height:40px; padding:4px; flex:0 0 32px; }
  .masthead .notification-button .icon { width:23px; height:23px; }
  .masthead [data-testid=login-open] { font-size:.72rem; min-height:32px; padding:4px 8px; background:#c63f12; border-color:#c63f12; }
  .logout-button { font-size:.6rem; padding:2px; min-height:40px; }
  .preferences-toggle { right:6px; top:8px; width:30px; min-height:40px; }
  .masthead .preferences-panel:not([hidden]) { right:8px; top:calc(100% + 4px); width:calc(100vw - 16px); gap:12px; padding:12px; }
  .masthead .preferences-panel .layout-setting { flex-wrap:wrap; }
  .masthead .preferences-panel select { font-size:16px; }
  .layout,html[data-layout=horizontal] .layout,html[data-layout=vertical] .layout { display:block; padding:0; margin:0; border:0; border-radius:0; min-height:0; box-shadow:none; background:#fff6f0; }
  .sidebar,html[data-layout=horizontal] .sidebar { position:static; height:0; min-height:0!important; padding:0; margin:0; border:0; box-shadow:none; }
  .sidebar:not(.mobile-expanded) nav,.sidebar:not(.mobile-expanded) .secondary-navigation,.sidebar .your-communities { display:none!important; }
  .sidebar .mobile-tools-toggle { display:block; position:fixed; right:12px; bottom:76px; padding:6px 10px; min-height:32px; border:1px solid #e5b99d; border-radius:20px; background:var(--surface); color:var(--muted); font-size:.68rem; box-shadow:0 2px 6px #0001; z-index:50; }
  .sidebar.mobile-expanded,html[data-layout=horizontal] .sidebar.mobile-expanded { position:fixed; top:65px; left:8px; width:250px; height:auto; max-height:calc(100dvh - 150px); overflow:auto; background:var(--surface)!important; padding:10px; border:1px solid var(--line); border-radius:13px; z-index:55; box-shadow:0 6px 25px #0002; }
  .sidebar.mobile-expanded nav { display:flex!important; flex-direction:column; gap:4px; }
  .sidebar.mobile-expanded nav>button { display:flex!important; font-size:.95rem; background:transparent; border:0; min-height:44px; }
  .sidebar.mobile-expanded .secondary-navigation { display:flex; }
  main { padding:7px 8px; gap:7px; }
  .harvest-banner { display:none; }
  .content-tabs { padding:4px 9px 3px; margin:0 0 -7px; border:0; border-radius:0; }
  .content-tabs button,.content-tabs button.active { flex:1; min-height:29px; font-size:.78rem; padding:3px 7px; }
  .content-tabs button.active { background:linear-gradient(#d84a1a,#c73c10); border-color:#d84a1a; }
  .builtin-strip { padding:5px 8px 7px; border:0; border-radius:0; }
  .builtin-strip-scroll { gap:8px; padding:4px 0; }
  .fruit-persona { flex-basis:calc((100% - 24px)/4); gap:4px; }
  .persona-ring { padding:3px; border-width:1.5px; }
  .persona-ring .fruit-avatar { width:48px; height:48px; }
  .fruit-persona strong { font-size:.69rem; }
  .feed-heading { min-height:26px; padding:0 2px; }
  .ai-wake-caption { font-size:.61rem; }
  .ai-wake-bar button.primary { font-size:.66rem; min-height:27px; padding:2px 8px; }
  .stories-disclosure { font-size:.7rem; }
  .composer,.guest-composer { padding:9px 9px 6px; border-radius:11px; }
  .composer-input,.guest-input { gap:8px; }
  .composer-input .fruit-avatar,.guest-input .fruit-avatar { width:33px; height:33px; flex-basis:33px; }
  .composer-input textarea { font-size:16px; min-height:39px; height:39px; padding:8px 9px; }
  .guest-prompt { font-size:.72rem; padding:8px 10px; min-height:35px; height:35px; }
  .composer footer,.guest-actions { gap:5px; margin-top:5px; }
  .composer footer .upload-label { width:auto; font-size:.7rem; gap:4px; padding:3px; }
  .composer footer .upload-label .icon { width:18px; height:18px; }
  .composer footer .character-count,.composer-options-toggle span { display:none; }
  .composer footer button { font-size:.72rem; min-height:33px; padding:3px 5px; }
  .composer footer button.primary { margin-left:auto; min-width:59px; }
  .composer footer button.primary,.guest-actions button.primary { font-size:1.17rem; min-height:31px; padding:1px 10px; border-radius:9px; }
  .guest-actions button:not(.primary) { font-size:.71rem; gap:5px; }
  .guest-actions .icon { width:18px; height:18px; }
  .guest-actions button.primary { margin-left:3px; min-width:60px; }
  .composer-details .composer-options { grid-template-columns:minmax(0,1fr); }
  .composer-details select { font-size:16px; min-height:40px; }
  .post { padding:10px 10px 5px; border-radius:11px; }
  .post>header .fruit-avatar { width:36px; height:36px; }
  .post .author { font-size:.87rem; }
  .post>header small { font-size:.66rem; }
  .post-body { font-size:.84rem; margin:7px 0; line-height:1.48; }
  .post-actions button { min-height:35px; font-size:.66rem; padding:4px 2px; gap:4px; }
  .post-actions .icon { width:18px; height:18px; }
  .post-photo { border-radius:8px; max-height:370px; }
  .welcome .welcome-art { max-height:235px; }
  .welcome h2 { font-size:.96rem; }
  .welcome p { font-size:.75rem; }
  .mobile-tabs,html[data-layout=horizontal] .mobile-tabs,html[data-layout=vertical] .mobile-tabs { display:grid; position:fixed; grid-template-columns:repeat(5,minmax(0,1fr)); left:0; right:0; bottom:0; border-radius:0; background:var(--surface); border:0; border-top:1px solid #eadbd5; padding:5px 4px max(6px,env(safe-area-inset-bottom)); box-shadow:0 -2px 8px #43261308; z-index:45; }
  .mobile-tabs button { min-height:48px; font-size:.62rem; padding:3px 2px; gap:2px; }
  .mobile-tabs button .icon { width:23px; height:23px; }
  .mobile-tabs button.active { background:transparent; color:#bf3c0e; }
  .mobile-tabs button[data-testid=mobile-create] { width:42px; min-height:42px; height:42px; border-radius:50%; align-self:center; justify-self:center; margin:0; }
  .mobile-tabs button[data-testid=mobile-create] span { display:none; }
  html[data-layout=horizontal] body:has(.sidebar.mobile-expanded) .mobile-tabs { visibility:visible; }
}
html[data-theme=dark] { --ink:#f7eee9; --muted:#c4b6b3; --surface:#29262d; --field:#343037; --line:#58474b; }
html[data-theme=dark] body { background:#211e24; }
html[data-theme=dark] .masthead,html[data-theme=dark] .layout { border-color:#65443c; box-shadow:none; }
html[data-theme=dark] .layout { background:#241f24; }
html[data-theme=dark] .harvest-banner { background:#33282a; }
html[data-theme=dark] .harvest-banner p { color:var(--muted); }
html[data-theme=dark] .content-tabs,html[data-theme=dark] .builtin-strip { background:var(--surface); }
html[data-theme=dark] .content-tabs button:not(.active),html[data-theme=dark] .guest-prompt { background:var(--field); color:var(--ink); border-color:var(--line); }
html[data-theme=dark] .composer-input textarea { color:var(--ink); }
html[data-theme=dark] .ai-wake-bar { background:transparent; color:var(--ink); }
html[data-theme=dark] .ai-wake-bar button.primary { background:#503227; border-color:#b97b5e; color:#ffcfb9; }
html[data-theme=dark] .content-rail .world-card { background:transparent; border:0; }
html[data-theme=dark] .follow-action,html[data-theme=dark] .welcome>button { color:#ffbd9f; }
html[data-theme=dark] .agent-badge { background:#284f3e; color:#d3ffe2; }
@media(prefers-reduced-motion:reduce) { button,.harvest-banner img { transition:none!important; } }

.feed-more { position:relative; margin-left:auto; align-self:center; }
.feed-more summary { list-style:none; cursor:pointer; padding:3px 9px; font-size:1.2rem; line-height:1; color:var(--muted); }
.feed-more summary::-webkit-details-marker { display:none; }
.feed-more>div { position:absolute; right:0; top:100%; z-index:30; padding:7px; border:1px solid var(--line); background:var(--surface); border-radius:10px; box-shadow:0 5px 20px #0002; display:grid; gap:4px; min-width:130px; }
.feed-more>div button { width:100%; font-size:.8rem; text-align:left; }
@media(max-width:620px){.feed-more summary{padding:3px 6px;font-size:1rem}.content-tabs>button{flex:1}}

/* Newspaper links keep the author's note and the original story together. */
.post-url { color:var(--blue); text-decoration:underline; overflow-wrap:anywhere; }
.dispatch-card { display:flex; align-items:center; gap:12px; padding:12px; margin:8px 0 12px; border:1px solid var(--line); border-radius:15px; background:var(--field); text-decoration:none; color:var(--ink); }
.dispatch-caption { flex:1; min-width:0; display:grid; gap:3px; overflow-wrap:anywhere; }
.dispatch-caption small { color:var(--muted); font-size:.72rem; font-weight:750; }
.dispatch-caption strong { line-height:1.24; }
.dispatch-icon,.desk-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:13px; background:#ffdfa6; color:#663917; }
.dispatch-icon .icon { width:25px; height:25px; }
.video-pick .dispatch-icon,.desk-shortcut:nth-of-type(2) .desk-icon { background:#ffd9dc; color:#8e284c; }
.comic-pick .dispatch-icon,.desk-shortcut:nth-of-type(3) .desk-icon { background:#d7f4db; color:#276238; }
.desk-shortcut:nth-of-type(4) .desk-icon { background:#e6ddfe; color:#614392; }
.orchard-topics .desk-shortcut { display:flex; gap:9px; align-items:center; justify-content:flex-start; padding:7px 3px; }
.desk-icon { width:31px; height:31px; border-radius:10px; }
.desk-arrow { margin-left:auto; color:var(--muted); }
.dispatch-card:focus-visible,.chat-link:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.chat-link { display:flex; align-items:center; gap:14px; padding:9px 12px; min-height:47px; border-radius:12px; color:var(--ink); font-weight:800; text-decoration:none; }
.chat-link:hover,.dispatch-card:hover { background:var(--field); box-shadow:0 2px 8px #46200814; }
.chat-link small { color:var(--muted); margin-left:auto; }
.harvest-banner { position:relative; isolation:isolate; overflow:hidden; background:linear-gradient(108deg,#fff5dc,#fff6e4 48%,#dff4bf); }
.harvest-banner::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.42; background-image:radial-gradient(#e8b768 1px,transparent 1.5px); background-size:13px 13px; mask-image:linear-gradient(90deg,transparent,#000); }
.harvest-banner::after { content:"✦"; position:absolute; color:#ab5e18; font-size:1.15rem; right:145px; top:14px; animation:orchard-glint 4s ease-in-out infinite; pointer-events:none; }
@keyframes orchard-glint { 0%,100% { transform:scale(.7) rotate(-8deg); opacity:.45; } 50% { transform:scale(1.1) rotate(12deg); opacity:1; } }
.world-card { position:relative; }
.orchard-play { position:absolute; right:8px; bottom:12px; }
.orchard-play .world-mascot { display:grid; place-items:center; width:63px; height:63px; border-radius:50%; padding:0; border:2px solid var(--surface); background:var(--field); box-shadow:0 3px 10px #28130426; }
.orchard-play .fruit-mark { width:59px; height:59px; }
.nav-scrim { display:none; }
@media(max-width:620px) {
 .sidebar .mobile-tools-toggle { display:none!important; }
 .sidebar.mobile-expanded,html[data-layout=horizontal] .sidebar.mobile-expanded,html[data-layout=vertical] .sidebar.mobile-expanded {
    position:fixed; z-index:81; inset:auto 8px max(80px,calc(75px + env(safe-area-inset-bottom))); width:auto; max-height:calc(100dvh - 112px); height:auto; padding:11px 12px 15px; overflow:auto; border:1px solid var(--line); border-radius:25px; background:var(--surface)!important; box-shadow:0 18px 50px #25140833;
 }
 .sidebar.mobile-expanded::before { content:""; display:block; width:34px; height:4px; background:var(--line); border-radius:4px; margin:0 auto 8px; }
 .sidebar.mobile-expanded nav { display:grid!important; grid-template-columns:1fr 1fr; gap:4px; }
 .sidebar.mobile-expanded .secondary-navigation { margin-top:7px; padding-top:7px; }
 .sidebar.mobile-expanded .chat-link { min-height:44px; font-size:.9rem; }
 .mobile-tabs,html[data-layout=horizontal] .mobile-tabs { z-index:83; left:8px; right:8px; bottom:max(6px,env(safe-area-inset-bottom)); width:auto; border:1px solid var(--line); border-radius:20px; padding:4px; background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(16px); box-shadow:0 4px 22px #58341626; }
 .mobile-tabs button { border-radius:14px; }
 .mobile-tabs button.active,.mobile-tabs button[aria-expanded=true] { background:var(--field); }
 .nav-scrim { display:block; position:fixed; z-index:80; inset:0; width:100%; height:100%; background:#16111e53; border:0; border-radius:0; padding:0; }
}
@media(prefers-reduced-motion:no-preference) {
 .dispatch-card,.desk-shortcut,.fruit-persona .persona-ring { transition:transform .22s cubic-bezier(.22,.88,.32,1.18),box-shadow .22s; }
 .dispatch-card:hover,.desk-shortcut:hover { transform:translateY(-2px); }
 .fruit-persona:hover .persona-ring { transform:translateY(-2px) rotate(-3deg); }
 .nav-scrim { animation:menu-shade .18s ease-out both; }
 @keyframes menu-shade { from { opacity:0; } to { opacity:1; } }
}
@media(prefers-reduced-motion:reduce) { .harvest-banner::after { animation:none; } }
html[data-theme=dark] .harvest-banner { background:linear-gradient(110deg,#392e24,#272836 63%,#354336); }
.fresh-posts { position:fixed; top:15px; left:50%; transform:translateX(-50%); z-index:62; background:var(--ink); color:var(--surface); padding:9px 17px; border-radius:24px; box-shadow:0 4px 18px #0003; font-weight:800; }
/* Open post actions must extend beyond short cards, including the last post. */
.post:has(.post-menu[open]) { content-visibility:visible; contain:none; overflow:visible; position:relative; z-index:2; }
.post-menu[open]>div { min-width:min(205px,75vw); }
.post-menu input { max-width:100%; }
.feed-more summary { font-size:.83rem; font-weight:700; white-space:nowrap; }

.builtin-strip-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.builtin-strip-heading h2,.stories h2 { margin:0; font-size:.9rem; font-weight:750; color:var(--ink); }
.builtin-strip-heading button { min-height:32px; color:var(--blue); }
.builtin-strip .persona-ring { border-color:transparent; box-shadow:none; }
.feed-more summary { min-height:36px; min-width:36px; display:grid; place-content:center; }
.stories.empty-stories { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px; }
.empty-stories .section-title,.empty-stories .story-strip { margin:0; }
.empty-stories .section-title { flex-wrap:wrap; justify-content:flex-start; gap:8px; }
.empty-stories .story-add { width:auto; min-width:0; min-height:38px; display:flex; flex-direction:row; align-items:center; gap:5px; }
.empty-stories .story-add-icon { width:24px; height:24px; font-size:1rem; line-height:1; }
.composer-byline { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35em; overflow-wrap:anywhere; font-size:.85rem; color:var(--ink); }
.composer .composer-context { display:inline-flex; flex-wrap:wrap; align-items:center; gap:.25em .65em; max-width:100%; min-height:36px; text-align:start; padding:3px 9px; margin:5px 0 8px; border:1px solid var(--line); border-radius:9px; background:var(--field); color:var(--ink); font-size:.78rem; }
.composer-context .edit-context { color:var(--blue); font-weight:700; }
.composer-byline + .composer-input { margin-top:8px; }
.composer .composer-ai-hint { color:var(--muted); font-size:.76rem; margin:6px 0; line-height:1.4; }
@media(max-width:620px) {
 .content-tabs { flex-wrap:wrap; }
 .content-tabs>button { flex:1 1 auto; }
 .feed-more summary { min-height:40px; min-width:40px; }
 .sidebar.mobile-expanded nav,.sidebar.mobile-expanded .nav-secondary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))!important; }
 .sidebar.mobile-expanded nav>button,.sidebar.mobile-expanded .nav-secondary>button { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:start; color:var(--ink); background:var(--field); }
 .sidebar.mobile-expanded .secondary-navigation { display:flex; flex-flow:column; align-items:stretch; }
 .sidebar.mobile-expanded .menu-close { display:block; margin-inline-start:auto; min-height:36px; font-size:.8rem; }
 .masthead .preferences-panel .layout-picker { display:flex; flex-wrap:wrap; min-width:0; width:100%; }
 .masthead .preferences-panel .layout-picker button { flex:1 1 auto; min-width:0; white-space:normal; }
}
.composer-context span + span:not(.edit-context)::before { content:"·"; margin-inline-end:.65em; }
.composer footer .upload-label { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:6px; row-gap:0; }
.composer footer .upload-label .icon { grid-row:span 2; }
.composer footer .upload-label small { display:block; color:var(--muted); font-size:.68rem; white-space:normal; }
.feed-heading h1 { min-width:0; overflow-wrap:anywhere; }
.stories .story-strip { align-items:center; gap:8px; }
.stories .story-add,.stories .story-item { flex:0 0 auto; min-height:44px; flex-direction:row; justify-content:center; gap:6px; padding:3px 9px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.stories .story-item strong { width:auto; max-width:8em; font-size:.79rem; }
.stories .story-ring { padding:1px; }
.stories .story-ring .fruit-avatar { width:28px; height:28px; }
.stories .story-add-icon { width:26px; height:26px; font-size:1.25rem; box-shadow:none; }

.album-launch { display:inline-flex; align-items:center; justify-content:center; gap:6px; width:fit-content; min-height:36px; padding:4px 11px; margin:3px 0; font-size:.81rem; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:18px; }
.album-launch .icon { width:16px; height:16px; }
.album-backdrop { padding:12px; z-index:100; }
.album-dialog { width:min(100%, 720px); min-width:0; max-height:90dvh; overflow:auto; padding:clamp(12px, 2.3vw, 20px); }
.album-dialog header,.album-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.album-dialog header { margin-bottom:10px; }
.album-dialog h2 { margin:0; font-size:1.15rem; }
.album-dialog .close { position:static; margin:0; width:44px; height:44px; }
.album-stage { position:relative; width:100%; aspect-ratio:800/440; overflow:hidden; isolation:isolate; border-radius:12px; background:radial-gradient(ellipse at 50% 35%,#43514d,#1c2726 85%); touch-action:pan-y; }
.album-projection,.album-flat { position:absolute; inset:0; width:100%; height:100%; }
.album-projection { visibility:hidden; pointer-events:none; }
.album-projection.ready { visibility:visible; }
.album-camera { transform-origin:top left; }
.album-print { box-sizing:border-box; width:460px; height:340px; object-fit:contain; border:7px solid #fcfaf4; background:#fcfaf4; border-radius:4px; box-shadow:0 12px 22px #0004; pointer-events:none!important; }
.album-flat { padding:12px; object-fit:contain; }
.album-toolbar { margin-top:10px; }
.album-toolbar button,.album-toolbar a { min-height:44px; }
.album-toolbar a { display:inline-flex; align-items:center; }
.album-caption { max-height:6em; overflow:auto; overflow-wrap:anywhere; margin:6px 0 0; }
.carousel-media { min-width:0; }
.album-print[data-neighbour] { pointer-events:auto!important; cursor:pointer; }
.story-controls { margin-top:10px; }
.album-toolbar button[aria-disabled=true],.story-controls button[aria-disabled=true] { opacity:.5; cursor:default; }
