/* Light counterpart of the 8pool sharing rail. Only loaded on the homepage. */
.home-share {
    position: fixed;
    z-index: 40;
    inset: 50% 12px auto auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 62px;
    padding: 9px 5px 6px;
    transform: translateY(-50%);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(16, 37, 26, 0.12);
    color: var(--fg);
}
.home-share__count { display: grid; justify-items: center; width: 100%; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); line-height: 1.2; }
.home-share__count strong { max-width: 100%; overflow: hidden; font-size: 18px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-strong); }
.home-share__count span { font-size: 9px; color: var(--muted); }
.home-share__action { display: grid; place-items: center; flex: none; width: 48px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; text-decoration: none; cursor: pointer; }
.home-share__action:hover, .home-share__action[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-strong); }
.home-share__action svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.home-share__extra { display: contents; }
.home-share__extra strong, .home-share__extra span, .home-share__more, .home-share [hidden] { display: none; }
.home-share__status { position: absolute; right: calc(100% + 10px); bottom: 0; width: max-content; max-width: 240px; margin: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-md); font-size: 13px; }
.home-share__status:empty { opacity: 0; pointer-events: none; }
@media (min-width: 1061px) and (min-height: 521px) {
    /* Keep the fixed rail in its own gutter, outside cards and header controls. */
    .has-home-share { padding-right: 86px; }
}
@media (max-width: 1060px), (max-height: 520px) {
    .has-home-share { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .home-share { inset: auto 0 0; flex-direction: row; justify-content: space-between; gap: 2px; width: auto; padding: 7px max(9px, env(safe-area-inset-right, 0px)) calc(9px + env(safe-area-inset-bottom, 0px)) max(9px, env(safe-area-inset-left, 0px)); transform: none; border-width: 1px 0 0; border-radius: 0; }
    .home-share__count { flex: none; width: auto; min-width: 58px; padding: 0 9px 0 0; margin: 0 2px 0 0; border-right: 1px solid var(--border); border-bottom: 0; }
    .home-share__action { flex: 1 1 44px; width: auto; min-width: 44px; min-height: 44px; }
    .home-share__more:not([hidden]) { display: grid; }
    .home-share__extra { display: none; }
    .home-share[data-share-open] .home-share__extra { position: absolute; inset: auto 10px calc(100% + 10px) auto; display: grid; width: min(354px, calc(100% - 20px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md); }
    .home-share__extra strong, .home-share__extra span { display: block; }
    .home-share__extra strong { grid-column: 1 / -1; margin: 0 5px 4px; font-size: 13px; }
    .home-share__extra .home-share__action { display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 0 8px; font-size: 13px; }
    .home-share__status { right: 10px; bottom: calc(100% + 10px); max-width: calc(100% - 20px); }
}
