/* Scoped to the signed-in Home screen. Other Iris screens retain their styles. */
.shell:has(#app:not([hidden]) > .home-feed-pane){width:min(100%,620px);padding-top:0;padding-bottom:calc(86px + env(safe-area-inset-bottom));}
.shell:has(#app:not([hidden]) > .home-feed-pane) > .top{position:sticky;top:0;z-index:20;height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));background:#ffffffed;backdrop-filter:blur(18px);border-bottom:1px solid #ededed;}
.home-feed-pane.panel{padding:0;border:0;border-radius:0;box-shadow:none;background:#fff;}
.home-feed{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.45;color:#171717;}
.home-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.home-compose{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:12px 16px;border:0;border-bottom:1px solid #ededed;background:white;color:#777;font:inherit;text-align:left;cursor:pointer;}
.home-avatar.inbox-avatar{flex:0 0 40px;width:40px;height:40px;font-size:16px;background:#f1eff8;color:#65569f;}
.home-avatar img{image-orientation:from-image;}
.home-compose-prompt{flex:1;font-size:16px;}
.home-compose-icon{display:grid;place-items:center;width:40px;height:40px;color:#555;}
.home-compose-icon svg{width:23px;height:23px;}
.home-post.feed-item{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:11px;padding:16px 16px 6px;border-bottom:1px solid #ededed;}
.home-avatar-button{align-self:start;display:grid;place-items:center;width:40px;height:44px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;}
.home-post-body{min-width:0;}
.home-post-heading{display:flex;align-items:center;gap:7px;min-width:0;min-height:26px;margin:0 0 3px;}
.home-author.post-author{display:flex;align-items:baseline;gap:5px;min-width:0;flex:1;color:#171717;font:inherit;line-height:1.3;}
.home-author strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:62%;font-weight:700;}
.home-author .muted,.home-handle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777;font-size:14px;}
.home-post-time{flex:none;color:#858585;font-size:12px;white-space:nowrap;}
.home-post .post-caption{margin:3px 0 10px;line-height:1.45;font-size:15px;}
.home-post .post-actions{margin:3px 0 0;gap:14px;min-height:44px;align-items:center;}
.home-post .post-actions > button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 2px;border:0;border-radius:0;background:none;color:#727272;font-size:13px;cursor:pointer;}
.home-post .post-actions > button:disabled{opacity:.45;cursor:default;}
.home-post .post-actions > button:focus-visible{outline:2px solid #7565df;outline-offset:2px;border-radius:7px;}
.home-post .carousel-frame{margin:9px 0 5px;border:0;border-radius:14px;background:transparent;}
.home-post .carousel-track{align-items:flex-start;}
.home-post .post-image{display:block;aspect-ratio:auto;max-height:none;height:auto;border-radius:0;background:transparent;image-orientation:from-image;}
.home-post .carousel-frame{aspect-ratio:1;touch-action:pan-y;}
.home-post .carousel-track{height:100%;}
.home-post .carousel-track .post-image{height:100%;object-fit:contain;}
.home-post .carousel-control{width:44px;height:44px;background:#17171780;font-size:24px;}
.home-post .carousel-indicator{right:9px;bottom:9px;padding:3px 7px;font-size:10px;}
.home-post .post-actions > .home-like,.home-post .post-actions > .home-replies{font-size:0;min-width:54px;}
.home-like::before,.home-replies::before{content:"";display:block;width:21px;height:21px;background:currentColor;mask-position:center;mask-repeat:no-repeat;mask-size:contain;}
.home-like::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.7" stroke-linejoin="round"%3E%3Cpath d="M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z"/%3E%3C/svg%3E');}
.home-replies::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.7" stroke-linejoin="round"%3E%3Cpath d="M21 11.5a8.5 8.5 0 0 1-12.3 7.6L3 21l1.9-5.7A8.5 8.5 0 1 1 21 11.5Z"/%3E%3C/svg%3E');}
.home-like::after,.home-replies::after{content:none!important;display:none!important;}
.home-post .post-actions > .home-like[aria-pressed="true"]{color:#7052e7;}
.home-replies[data-comments-off="true"]{opacity:.5;}
.home-post .post-actions > button:nth-child(n+3){margin-left:auto;font-size:12px;color:#858585;}
.home-post .post-comments{padding:8px 0 13px;border-top:1px solid #f0f0f0;font-size:14px;}
.home-post .comment-form{gap:6px;}
.home-post .comment-form input{font-size:16px;min-width:0;border-radius:12px;}
.home-post .comment-form .quiet{padding:8px;font-size:12px;}
.home-post .comment-item .post-author{color:#171717;font-weight:600;}
.home-post .post-link{color:#6556c6;overflow-wrap:anywhere;}
.home-feed-status,.home-post-status{margin:0;padding:18px 16px;color:#777;font-size:13px;line-height:1.5;text-align:center;}
.home-explore-link{padding:0;border:0;background:none;color:#6154bd;font:inherit;font-weight:650;text-decoration:underline;cursor:pointer;}
.home-post-status{padding:4px 0 12px;color:#9c493f;text-align:left;}
.home-feed-status:empty,.home-post-status:empty{display:none;}
.home-load-more{display:block;margin:18px auto;min-height:44px;padding:10px 22px;border:1px solid #e5e5e5;border-radius:999px;background:#fff;color:#555;font:inherit;font-size:13px;cursor:pointer;}
.shell:has(#app:not([hidden]) > .home-feed-pane) .bottom-nav{position:fixed;z-index:25;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:min(100%,620px);height:calc(62px + env(safe-area-inset-bottom));margin:0;padding:6px 12px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid #ededed;border-radius:0;background:#fffffff5;}
@media(min-width:700px){.shell:has(#app:not([hidden]) > .home-feed-pane){border-left:1px solid #ededed;border-right:1px solid #ededed;min-height:100dvh;}.home-post.feed-item{padding:18px 22px 7px;}.home-compose{padding-inline:22px;}}
@media(max-width:359px){.home-post.feed-item{padding-inline:12px;column-gap:9px;}.home-author strong{max-width:60%;}.home-author .muted{font-size:12px;}.home-post-time{font-size:11px;}}
@media(prefers-reduced-motion:reduce){.home-post .carousel-track{transition:none;}}
.home-post-menu{position:relative;flex:0 0 36px;align-self:center;margin-block:-9px;}
.home-post-menu summary{display:grid;place-items:center;list-style:none;width:36px;min-height:44px;color:#777;cursor:pointer;border-radius:50%;}
.home-post-menu summary::-webkit-details-marker{display:none;}
.home-post-menu summary svg{width:19px;height:19px;}
.home-post-menu summary:focus-visible{outline:2px solid #7565df;outline-offset:1px;}
.home-post-menu-items{position:absolute;z-index:22;right:0;top:40px;display:grid;min-width:156px;padding:5px;border:1px solid #e8e8e8;border-radius:12px;background:#fff;box-shadow:0 5px 24px #00000012;}
.home-post-menu-items button{min-height:44px;padding:10px 12px;border:0;border-radius:7px;background:#fff;color:#222;font:inherit;font-size:13px;text-align:left;white-space:nowrap;cursor:pointer;}
.home-post-menu-items .home-delete-post{color:#a53c47;}
@media(hover:hover){.home-post-menu-items button:hover{background:#f6f6f6;}.home-post-menu summary:hover{background:#f7f7f7;}}

/* Like feedback must stay visible after social counts are hidden. */
.home-like[aria-pressed="true"]::before{
  mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="black" d="M12 21s-7.5-4.7-9.7-9A5.6 5.6 0 0 1 12 6.4 5.6 5.6 0 0 1 21.7 12C19.5 16.3 12 21 12 21Z"/%3E%3C/svg%3E')!important;
}
.home-post .post-actions>.home-like[aria-pressed="true"]{
  color:var(--iris-accent,#7052e7)!important;
}
#pane.profile-pane[data-iris-profile-theme] .post-actions>.home-like[aria-pressed="true"]{
  color:var(--iris-accent)!important;
}
.explore-card-action.active svg{
  fill:currentColor;
}
.thread-comment-like.liked .thread-comment-like-heart{
  color:var(--iris-accent,#7052e7)!important;
}

/* Social actions stay visually chrome-free on iOS while requests are in flight. */
.home-post .post-actions>.home-like,
.home-post .post-actions>.home-replies,
.explore-card-action,
.thread-comment-like{
  -webkit-appearance:none!important;
  appearance:none!important;
  -webkit-tap-highlight-color:transparent!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.home-post .post-actions>.home-like:active,
.home-post .post-actions>.home-like:disabled,
.home-post .post-actions>.home-like:focus:not(:focus-visible),
.home-post .post-actions>.home-replies:active,
.home-post .post-actions>.home-replies:disabled,
.home-post .post-actions>.home-replies:focus:not(:focus-visible),
.explore-card-action:active,
.explore-card-action:disabled,
.explore-card-action:focus:not(:focus-visible),
.thread-comment-like:active,
.thread-comment-like:disabled,
.thread-comment-like:focus:not(:focus-visible){
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
}

/* Post reminder card */
.post-reminder-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;border:1px solid var(--iris-line,#e8e3e7);border-radius:16px;background:color-mix(in srgb,var(--iris-bg,#fff) 92%,var(--iris-accent,#7052e7) 8%)}
.post-reminder-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.post-reminder-copy strong{font-size:14px;line-height:1.25}
.post-reminder-copy span,.post-reminder-state{font-size:12px;color:var(--iris-muted,#81777d)}
.post-reminder-button{border:0;border-radius:999px;padding:9px 12px;background:var(--iris-accent,#7052e7);color:#fff;font:inherit;font-size:13px;font-weight:700;white-space:nowrap}
.post-reminder-button[aria-pressed="true"]{background:transparent;color:var(--iris-accent,#7052e7);box-shadow:inset 0 0 0 1px var(--iris-accent,#7052e7)}

/* Interactive post polls */
.post-poll-card{display:flex;flex-direction:column;gap:10px;margin:12px 0;padding:14px;border:1px solid var(--iris-line,#e8e3e7);border-radius:16px;background:color-mix(in srgb,var(--iris-bg,#fff) 96%,var(--iris-accent,#7052e7) 4%)}
.post-poll-question{font-size:15px;line-height:1.3}
.post-poll-options{display:grid;gap:8px}
.post-poll-option{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 12px;border:1px solid var(--iris-line,#e8e3e7);border-radius:12px;background:transparent;color:var(--iris-text,#111);font:inherit;text-align:left}
.post-poll-option::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--poll-fill,0);background:color-mix(in srgb,var(--iris-accent,#7052e7) 14%,transparent);pointer-events:none}
.post-poll-option>*{position:relative;z-index:1}
.post-poll-option[aria-pressed="true"]{border-color:var(--iris-accent,#7052e7);box-shadow:inset 0 0 0 1px var(--iris-accent,#7052e7)}
.post-poll-option:disabled{opacity:1}
.post-poll-percent{font-size:12px;font-weight:700;color:var(--iris-accent,#7052e7)}
.post-poll-meta{font-size:12px;color:var(--iris-muted,#81777d)}

.post-channel-tag{display:inline-flex;align-items:center;max-width:100%;margin:6px 0 4px;padding:5px 9px;border:0;border-radius:999px;background:color-mix(in srgb,var(--iris-accent,#7052e7) 10%,transparent);color:var(--iris-accent,#7052e7);font:inherit;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
