/* A single, familiar home doorway. It never overlays a conversation composer. */
.home-bottom-nav {
  display:flex; flex:0 0 auto; align-items:center; justify-content:space-around;
  width:100%; margin:0; padding:10px 18px max(10px,env(safe-area-inset-bottom)); gap:8px;
  border:0; border-top:1px solid #e2e7dc; border-radius:0; background:var(--home-paper,#f6f6f0); box-shadow:none;
}
.home-bottom-nav button {
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; flex:1 1 0;
  min-width:0; min-height:56px; padding:0; border-radius:14px; background:transparent;
  color:#6b786c; font-size:11px; font-weight:500;
}
.home-bottom-nav button svg { box-sizing:content-box; width:20px; height:20px; padding:6px 15px; border-radius:14px; flex:none; }
.home-bottom-nav button[aria-current=page] { color:#193f32; font-weight:650; background:transparent; }
.home-bottom-nav button[aria-current=page] svg { background:#e5efb9; }
.home-bottom-nav button:hover:not([aria-current=page]) svg { background:#ebeee2; }
.home-bottom-nav button:focus-visible { outline:2px solid var(--accent,#294833); outline-offset:1px; }
.app-shell:not(.home-open) .home-bottom-nav { display: none; }
.home-hub-panel {
  min-height: 0; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 2px 24px 20px; scrollbar-width: thin; scrollbar-color: #bdccb2 transparent;
}
.home-hub-panel[hidden] { display: none !important; }
.home-hub-panel > * { max-width: 730px; margin-left: auto; margin-right: auto; }
.home-section-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 18px; min-height: 44px; }
.home-section-intro p { color: var(--muted,#596b59); font-size: 13px; line-height: 1.45; margin: 3px 0 0; }
.home-scope { display: inline-flex; font-size: 10px; line-height: 1.3; color: var(--muted,#596b59); background: var(--well,#edf1e3); padding: 4px 7px; border-radius: 7px; }
.home-explore-action, .home-quiet-action, .home-load-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 9px 13px; border-radius: 13px; font-size: 12px; font-weight: 600;
  background: var(--lilac,#e5d9fa); color: var(--ink,#274734);
}
.home-explore-action { flex: 0 0 auto; }
.home-explore-action svg { width: 16px; height: 16px; }
.home-quiet-action { background: transparent; color: var(--muted,#596b59); }
.home-quiet-action:hover { background: var(--well,#edf1e3); color: var(--ink,#274734); }
.home-explorer-back { display: flex; margin: 0 0 8px; padding-left: 3px; }
.home-explorer-back svg { width: 17px; height: 17px; }
.home-private-chats { display: grid; gap: 9px; }
.home-private-chat, .home-invitation, .home-activity-item {
  display: flex; width: 100%; align-items: center; gap: 12px; text-align: left;
  min-width: 0; min-height: 82px; padding: 14px; border: 1px solid var(--line,#dfe5d5);
  background: var(--paper,#fffef8); border-radius: 19px; color: var(--ink,#274734);
  transition: background-color 140ms ease, border-color 140ms ease;
}
.home-private-chat:hover, .home-invitation:hover, .home-activity-item:hover { background: var(--well,#edf1e3); border-color: #bacaae; }
.home-private-chat:active, .home-invitation:active, .home-activity-item:active { background: #e8eecf; }
.home-private-chat > svg, .home-activity-item > svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted,#596b59); }
.home-skill-face { display: grid; place-items: center; width: 43px; height: 46px; flex: 0 0 43px; border-radius: 15px; background: var(--lime,#e3edb6); font-size: 24px; }
.home-skill-face.tone-lilac, .home-skill-face.tone-games { background: var(--lilac,#e5d9fa); }
.home-skill-face.tone-peach, .home-skill-face.tone-fun { background: var(--coral,#f6c7b5); }
.home-skill-face.tone-mint { background: #dcebd6; }
.home-chat-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.home-chat-copy strong { font-size: 15px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; }
.home-chat-copy > span { color: var(--muted,#596b59); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.home-sidekicks .sk-library { max-width: 820px; }
.home-sidekicks .sk-library-context { margin-top: 4px; }
.home-sidekicks .sk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-load-status { color: var(--muted,#596b59); font-size: 13px; padding: 25px 2px; }
.home-hub-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e2cdba; background: #fcf3e8; padding: 11px 13px; border-radius: 14px; margin-bottom: 13px; }
.home-hub-error p { flex: 1 1 auto; min-width: 0; color: #775a3d; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.home-hub-error button { flex: 0 0 auto; color: #775a3d; }
.home-refresh { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; border-radius: 13px; color: var(--muted,#596b59); background: transparent; }
.home-refresh:hover { background: var(--well,#edf1e3); }
.home-section-label { color: var(--muted,#596b59); font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .02em; margin: 0 1px 10px; }
.home-invitations { margin-bottom: 23px; }
.home-invitation + .home-invitation { margin-top: 8px; }
.home-invitation { background: #f3edf9; border-color: #e3d9ed; }
.home-invitation > .avatar, .home-activity-item > .avatar { width: 35px; height: 38px; flex: 0 0 35px; border-radius: 13px; }
.home-invite-pill { flex: 0 0 auto; font-size: 11px; line-height: 1.4; font-weight: 600; background: var(--paper,#fffef8); border-radius: 10px; padding: 7px 9px; }
.home-activity-list { display: grid; gap: 8px; }
.home-activity-list .home-section-label { margin-bottom: 2px; }
.home-activity-item { align-items: flex-start; padding: 14px 12px; gap: 10px; }
.home-activity-item > svg { align-self: center; }
.home-activity-copy { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.home-activity-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.home-activity-top strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 650; min-width: 0; }
.home-activity-top small { flex: 0 0 auto; white-space: nowrap; font-size: 10px; color: var(--muted,#596b59); }
.home-activity-cue { color: var(--muted,#596b59); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.home-activity-text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.home-load-more { display: flex; margin: 16px auto 0; background: var(--well,#edf1e3); }
.home-caught-up { display: flex; flex-direction: column; align-items: center; padding: clamp(30px,8vh,75px) 15px 25px; text-align: center; max-width: 330px; }
.home-empty-mark { display: grid; place-items: center; background: var(--lime,#e3edb6); color: var(--ink,#274734); border-radius: 20px; width: 56px; height: 56px; margin-bottom: 18px; }
.home-empty-mark svg { width: 27px; height: 27px; }
.home-caught-up h2 { font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 9px; }
.home-caught-up p { color: var(--muted,#596b59); font-size: 13px; line-height: 1.55; }
@media (min-width:901px) {
  .home-private-chats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-sidekicks .sk-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:680px), (max-width:900px) and (pointer:coarse) {
  .home-hub-panel { padding: 0 16px 14px; }
  .home-section-intro { margin-bottom: 14px; }
  .home-private-chat { padding: 12px; min-height: 78px; border-radius: 18px; }
}
@media (max-width:350px) {
  .home-bottom-nav { padding-inline:12px; gap:1px; }
  .home-bottom-nav button { gap: 5px; padding-inline: 5px; font-size: 11px; }
  .home-bottom-nav button svg { width: 16px; height: 16px; flex-basis: auto; }
  .home-hub-panel { padding-inline: 12px; }
  .home-invitation, .home-activity-item { gap: 8px; padding: 11px 9px; }
  .home-activity-top { flex-wrap: wrap; gap: 2px 6px; }
  .home-activity-top strong { flex-basis: 100%; }
  .home-invite-pill { padding: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-bottom-nav button, .home-private-chat, .home-invitation, .home-activity-item { transition: none; }
}
@media (forced-colors:active) {
  .home-bottom-nav, .home-private-chat, .home-invitation, .home-activity-item, .home-hub-error, .home-invite-pill, .home-scope, .home-empty-mark { border: 1px solid CanvasText; box-shadow: none; }
  .home-bottom-nav button[aria-current=page] { outline: 2px solid Highlight; outline-offset: -3px; }
  .home-bottom-nav button:focus-visible { outline-color: Highlight; }
}
.moments-home:not([data-home-tab="moments"]) .people-requests-inbox{display:none!important}

/* The home catalogue uses the same card renderer as the public directory. */
.home-sidekicks .sk-library-catalogue{max-width:520px}
.sk-library-catalogue .sk-library-context[hidden],.sk-library-catalogue .sk-intro[hidden],.sk-library-catalogue .sk-filters[hidden]{display:none}
.sk-library-catalogue .sk-discovery-controls{margin-top:0;background:transparent}.sk-library-catalogue .sk-search{background:#fffefa;border-color:#e0e2d7}
.sk-library-catalogue .sk-result-count{font-size:11px;margin:8px 0 12px;color:var(--muted)}
.home-catalogue-grid{gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
.home-catalogue-grid .public-card{width:100%;height:164px;min-width:0;display:block;text-align:left;color:#204e3c;font-family:inherit;cursor:pointer;--home-turn:0s;animation:home-sidekick-turn 39s ease-in-out var(--home-turn) infinite}
.home-catalogue-grid .public-card:active{transform:scale(.975)}
.home-catalogue-grid .public-card:focus-visible{outline:3px solid #8961db;outline-offset:3px}
.home-catalogue-grid .public-card-name{min-height:34px;font-size:13px;line-height:1.25}
.home-catalogue-grid .public-utility{font-size:10px;margin-top:0}
.home-catalogue-grid .lime{background:#e5f0b0}.home-catalogue-grid .peach{background:#ffe1c8}.home-catalogue-grid .lilac{background:#e4dbfa}.home-catalogue-grid .mint{background:#dceddc}
.public-card .catalogue-glyph{display:grid;place-items:center;font-size:46px;font-weight:750;line-height:1}
.home-catalogue-grid:focus-within .public-card{animation-play-state:paused}
@media(hover:hover){.home-catalogue-grid:hover .public-card{animation-play-state:paused}}
@keyframes home-sidekick-turn{0%,7.7%,100%{box-shadow:0 3px 0 #2947350b;border-color:#203e3014}1%,6%{box-shadow:0 0 0 2px #55773d,0 8px 18px #44652d16;border-color:#fffdf5}}
@media(prefers-reduced-motion:reduce){.home-catalogue-grid .public-card{animation:none}}
.home-catalogue-grid .public-card:nth-child(2){--home-turn:3s}
.home-catalogue-grid .public-card:nth-child(3){--home-turn:6s}
.home-catalogue-grid .public-card:nth-child(4){--home-turn:9s}
.home-catalogue-grid .public-card:nth-child(5){--home-turn:12s}
.home-catalogue-grid .public-card:nth-child(6){--home-turn:15s}
.home-catalogue-grid .public-card:nth-child(7){--home-turn:18s}
.home-catalogue-grid .public-card:nth-child(8){--home-turn:21s}
.home-catalogue-grid .public-card:nth-child(9){--home-turn:24s}
.home-catalogue-grid .public-card:nth-child(10){--home-turn:27s}
.home-catalogue-grid .public-card:nth-child(11){--home-turn:30s}
.home-catalogue-grid .public-card:nth-child(12){--home-turn:33s}
.home-catalogue-grid .public-card:nth-child(13){--home-turn:36s}
