/* HA Social — Messages, Conversation, Friends, People settings (social-chat.js).
   Matches the approved "HA Social" Claude Design canvas (boards 3–6). Scoped under .hsc-scope. */
.hsc-scope{
  --hsc-bg:var(--bg,#0a0912);
  --hsc-surface:var(--surface,#17152a);
  --hsc-surface-2:var(--surface-2,#211e36);
  --hsc-raise:#2b2745;
  --hsc-off:#3a3555;
  --hsc-ink:var(--ink,#F4ECD8);
  --hsc-ink-2:#b4adc8;
  --hsc-mute:#9a93b0;
  --hsc-ph:#918ba5;
  --hsc-acc:var(--acc,#D97757);
  --hsc-acc-ink:var(--acc-ink,#EDA588);
  --hsc-gold:#C9A247;
  --hsc-danger:#e58aa1;
  --hsc-line:rgba(255,255,255,.09);
  --hsc-line-2:rgba(255,255,255,.15);
  --hsc-serif:'Fraunces',Georgia,serif;
  --hsc-sans:'Inter',system-ui,-apple-system,sans-serif;
  --hsc-nav-h:0px;
  color:var(--hsc-ink);font-family:var(--hsc-sans);
  -webkit-font-smoothing:antialiased;
}
body.has-nav .hsc-scope{--hsc-nav-h:calc(76px + env(safe-area-inset-bottom))}
.hsc-scope *,.hsc-scope *::before,.hsc-scope *::after{box-sizing:border-box}
/* beat social-feed.css's `#people a` (coral) — every link in these views is an ink-coloured row/icon */
#people .hsc-scope a,#people .hsc-scope a:hover,.hsc-scope a{color:var(--hsc-ink);text-decoration:none}
.hsc-scope button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hsc-scope button:disabled{cursor:default;opacity:.55}
.hsc-scope :focus-visible{outline:2px solid var(--hsc-acc-ink);outline-offset:2px}
.hsc-scope [hidden]{display:none!important}
.hsc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px;padding:0;border:0}
.hsc-col{display:flex;flex-direction:column;gap:2px;min-width:0}
.hsc-grow{flex:1;min-width:0}
.hsc-gap10{gap:10px}

/* shared atoms */
.hsc-av{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;
  font-family:var(--hsc-serif);font-weight:500;color:#0a0912;background:var(--hsc-gold);line-height:1;user-select:none}
.hsc-av img{width:100%;height:100%;object-fit:cover;object-position:50% 38%;display:block}
.hsc-av.is-self{background:var(--hsc-surface-2)!important;color:var(--hsc-gold)}
.hsc-av-muted{width:40px;height:40px;font-size:16px;background:var(--hsc-raise);color:var(--hsc-mute)}
.hsc-h2{margin:0;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--hsc-gold);font-family:var(--hsc-sans)}
.hsc-note{margin:10px 0 0;font-size:12px;line-height:1.5;color:var(--hsc-mute)}
.hsc-note-tight{margin:0}
.hsc-gold-it{font-family:var(--hsc-serif);font-style:italic;font-size:14px;color:var(--hsc-gold)}
.hsc-btn{height:44px;padding:0 18px;border-radius:22px;font-size:14px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--hsc-line-2);background:transparent;color:var(--hsc-ink);white-space:nowrap}
.hsc-btn-acc{border:0;background:var(--hsc-acc);color:#0a0912;font-weight:600}
.hsc-btn-acc:hover:not(:disabled){filter:brightness(1.06)}
.hsc-btn-ghost:hover:not(:disabled){background:rgba(255,255,255,.04)}
.hsc-btn-danger{border:0;background:rgba(229,138,161,.16);color:var(--hsc-danger);font-weight:600}
.hsc-btn-sm{height:40px;padding:0 14px;border-radius:20px;min-width:44px}
.hsc-btn-pill{padding:0 16px}
.hsc-link{background:none;border:0;padding:0 4px;min-height:32px;color:var(--hsc-acc-ink);font-weight:600;font-size:12px;text-decoration:underline;text-underline-offset:2px}
.hsc-icon{flex:none;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:22px;background:transparent;color:var(--hsc-ink)}
.hsc-icon:hover{background:rgba(255,255,255,.05)}
.hsc-icon-quiet{color:var(--hsc-mute)}
.hsc-roundbtn{flex:none;width:44px;height:44px;border-radius:22px;background:var(--hsc-surface);color:var(--hsc-ink);display:inline-flex;align-items:center;justify-content:center}
.hsc-roundbtn:hover{background:var(--hsc-surface-2)}
.hsc-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hsc-empty{padding:36px 20px;text-align:center;color:var(--hsc-ink-2);font-size:14px;line-height:1.5;display:flex;flex-direction:column;align-items:center;gap:12px}
.hsc-empty p{margin:0;max-width:32ch}
.hsc-empty-h{font-family:var(--hsc-serif);font-size:20px;font-weight:600;color:var(--hsc-ink)}
.hsc-empty-left{align-items:flex-start;text-align:left;padding:8px 0 4px}
.hsc-loading{display:flex;justify-content:center;padding:40px 0}
.hsc-spin{width:26px;height:26px;border-radius:50%;border:2px solid var(--hsc-line-2);border-top-color:var(--hsc-acc);animation:hscspin .8s linear infinite}
@keyframes hscspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hsc-spin{animation-duration:2.4s}}
.hsc-toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;pointer-events:none;
  background:var(--surface-2,#211e36);color:var(--ink,#F4ECD8);border:1px solid rgba(255,255,255,.15);padding:10px 16px;border-radius:14px;font:14px 'Inter',system-ui,sans-serif;z-index:90;transition:opacity .2s,transform .2s}
.hsc-toast.on{opacity:1;transform:translate(-50%,0)}

/* ── Messages (inbox) ── */
.hsc-inbox{margin:8px 0 0;padding:0 0 24px;display:flex;flex-direction:column}
.hsc-threads{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.hsc-trow{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;color:var(--hsc-ink);min-height:76px}
.hsc-trow:hover{background:rgba(255,255,255,.03)}
.hsc-trow:active{background:var(--hsc-surface)}
.hsc-trow-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.hsc-trow-top{display:flex;align-items:center;gap:6px}
.hsc-trow-name{flex:0 1 auto;min-width:0;font-weight:500;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-trow-time{flex:none;margin-left:auto;font-size:12px;color:var(--hsc-mute)}
.hsc-trow-bot{display:flex;align-items:center;gap:8px}
.hsc-trow-prev{flex:1;min-width:0;font-size:14px;color:var(--hsc-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-trow.is-unread .hsc-trow-name{font-weight:700}
.hsc-trow.is-unread .hsc-trow-prev{color:var(--hsc-ink)}
.hsc-dot{flex:none;width:10px;height:10px;border-radius:5px;background:var(--hsc-acc)}
.hsc-inbox-note{margin:18px 12px 0}

/* ── Conversation ── */
.hsc-thread{display:flex;flex-direction:column;min-height:240px;margin:0;width:100%;max-width:100%;min-width:0;overflow:hidden}   /* height set by JS to fill the viewport */
.hsc-th-head{flex:none;display:flex;align-items:center;gap:6px;padding:10px 10px 10px 6px;padding-top:calc(10px + env(safe-area-inset-top));border-bottom:1px solid var(--hsc-line)}   /* full-screen thread on a phone: Back and the name clear the status bar (preflight 11-04, block) */
.hsc-th-who{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:44px;color:var(--hsc-ink);border-radius:12px}
.hsc-th-av{display:inline-flex}
.hsc-th-txt{display:flex;flex-direction:column;min-width:0}
.hsc-th-row{display:flex;align-items:center;gap:6px;min-width:0}
.hsc-th-name{flex:0 1 auto;min-width:0;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-th-sub{font-family:var(--hsc-serif);font-style:italic;font-size:13px;color:var(--hsc-gold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-th-main{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:18px 16px}
.hsc-msgs{display:flex;flex-direction:column;gap:8px;min-height:100%;justify-content:flex-end}
.hsc-day{margin:6px 0 8px;align-self:center;font-size:12px;color:var(--hsc-mute)}
.hsc-day:first-child{margin-top:0}
.hsc-b-row{display:flex;flex-direction:column}
.hsc-b-row.is-me{align-items:flex-end}
.hsc-b-row.is-them{align-items:flex-start}
.hsc-b{margin:0;max-width:78%;padding:10px 14px;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.is-me .hsc-b{background:var(--hsc-acc);color:#0a0912;border-radius:20px 20px 6px 20px}
.is-them .hsc-b{background:var(--hsc-surface-2);color:var(--hsc-ink);border-radius:20px 20px 20px 6px}
.hsc-b-row.is-sending .hsc-b{opacity:.65}
.hsc-b-row.is-failed .hsc-b{opacity:.7;outline:1px solid rgba(229,138,161,.6);outline-offset:-1px}
.hsc-b-fail{display:flex;align-items:center;gap:4px;margin-top:4px;font-size:12px;color:var(--hsc-danger);max-width:78%;text-align:right}
.hsc-receipt{margin:0;align-self:flex-end;font-size:11px;color:var(--hsc-mute)}
.hsc-th-hint{margin:auto 0 0;align-self:center;text-align:center;max-width:30ch;font-size:13px;line-height:1.5;color:var(--hsc-mute)}
.hsc-th-foot{flex:none;border-top:1px solid var(--hsc-line);background:var(--hsc-bg)}
.hsc-th-notice{margin:0;padding:10px 16px 0;font-size:13px;line-height:1.45;color:var(--hsc-ink-2);text-align:center}
.hsc-composer{padding:10px 12px 22px;padding-bottom:max(22px,calc(10px + env(safe-area-inset-bottom)));display:flex;gap:8px;align-items:flex-end}
body.has-nav .hsc-composer{padding-bottom:14px}
.hsc-compose{flex:1;min-width:0;min-height:44px;max-height:120px;resize:none;padding:11px 16px;border-radius:22px;border:1px solid var(--hsc-line-2);
  background:var(--hsc-surface);color:var(--hsc-ink);font:15px/1.4 var(--hsc-sans);display:block;overflow-y:auto}
.hsc-compose::placeholder{color:var(--hsc-ph)}
.hsc-compose:focus{outline:none;border-color:rgba(217,119,87,.6)}
.hsc-compose:disabled{opacity:.5}
.hsc-send{flex:none;width:44px;height:44px;border:0;border-radius:22px;background:var(--hsc-acc);color:#0a0912;display:flex;align-items:center;justify-content:center}
.hsc-composer.is-off .hsc-send{background:var(--hsc-off);color:var(--hsc-mute);opacity:1}

/* ── Friends ── */
.hsc-friends{padding:12px 0 28px;display:flex;flex-direction:column;gap:22px}
/* wide: the Friends list flows into columns of rows (Mike 2026-11-03: full width, multi-column) */
.hsc-friends{container-type:inline-size}
@container (min-width:760px){.hsc-friends .hsc-sec-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));column-gap:28px;row-gap:0}.hsc-friends .hsc-sec-list>.hsc-h2,.hsc-friends .hsc-sec-list>:not(.hsc-frow):not(.hsc-fitem){grid-column:1/-1}}
.hsc-sec{display:flex;flex-direction:column;gap:10px}
.hsc-sec-list{gap:4px}
.hsc-sec-list>.hsc-h2{margin-bottom:6px}
.hsc-req{padding:14px;border-radius:18px;background:var(--hsc-surface);border:1px solid rgba(217,119,87,.34);display:flex;flex-direction:column;gap:12px}
.hsc-req-who{display:flex;gap:12px;align-items:center;color:var(--hsc-ink);min-height:48px}
.hsc-req-name{font-weight:600;font-size:16px}
.hsc-fitem{border-bottom:1px solid var(--hsc-line)}
.hsc-frow{display:flex;gap:8px;align-items:center;padding:10px 0}
.hsc-sec-list>.hsc-frow{border-bottom:1px solid var(--hsc-line)}
.hsc-frow-who{flex:1;min-width:0;display:flex;gap:12px;align-items:center;color:var(--hsc-ink);min-height:44px;margin-right:4px}
.hsc-frow-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-frow-sub{font-size:13px;color:var(--hsc-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-frow .hsc-icon-quiet{width:44px;margin-right:-10px;border-radius:12px}
.hsc-frow .hsc-icon-quiet:hover{background:transparent;color:var(--hsc-ink)}
.hsc-confirm{margin:0 0 12px;padding:12px;border-radius:16px;background:var(--hsc-surface);display:flex;flex-direction:column;gap:10px}
.hsc-confirm-q{margin:0;font-size:13px;line-height:1.45;color:var(--hsc-ink-2)}

/* ── People settings ── */
.hsc-settings{padding-bottom:var(--hsc-nav-h)}
.hsc-set-head{display:flex;align-items:center;gap:4px;padding:10px 12px 0 6px;padding-top:calc(10px + env(safe-area-inset-top))}
.hsc-set-h1{margin:0;font-family:var(--hsc-serif);font-weight:600;font-size:24px;color:var(--hsc-ink)}
.hsc-set-main{padding:18px 20px 28px;display:flex;flex-direction:column;gap:26px}
.hsc-sec-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-height:15px}
.hsc-save{font-size:12px;color:var(--hsc-mute)}
.hsc-save.is-err{color:var(--hsc-danger)}
.hsc-card{border-radius:18px;background:var(--hsc-surface)}
.hsc-vis{padding:16px;display:flex;align-items:center;gap:14px}
.hsc-vis-t{font-weight:600;font-size:15px}
.hsc-vis-d{font-size:13px;line-height:1.45;color:var(--hsc-mute);margin-top:2px}
/* 52×32 track drawn inside a 52×44 box (transparent top/bottom borders) = 44px tap target */
.hsc-switch{flex:none;position:relative;width:52px;height:44px;border:solid transparent;border-width:6px 0;border-radius:16px/22px;
  background:var(--hsc-off);background-clip:padding-box;padding:3px;display:flex;justify-content:flex-start;transition:background .18s}
.hsc-switch[aria-checked="true"]{background:var(--hsc-acc);justify-content:flex-end}
.hsc-knob{width:26px;height:26px;border-radius:13px;background:var(--hsc-ink)}
.hsc-sec-prof{gap:12px}
.hsc-photo{display:flex;gap:14px;align-items:center}
.hsc-set-av{display:inline-flex}
.hsc-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--hsc-ink-2)}
.hsc-input{height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--hsc-line-2);background:var(--hsc-surface);color:var(--hsc-ink);font:15px var(--hsc-sans);width:100%}
.hsc-textarea{height:auto;min-height:96px;padding:12px 14px;line-height:1.45;resize:vertical}
.hsc-input::placeholder{color:var(--hsc-ph)}
.hsc-input:focus{outline:none;border-color:rgba(217,119,87,.6)}
.hsc-count{align-self:flex-end;font-size:12px;color:var(--hsc-mute)}
.hsc-count.is-near{color:var(--hsc-acc-ink)}
.hsc-toggles{display:flex;flex-direction:column}
.hsc-toggle{display:flex;align-items:center;gap:12px;padding:0 16px;min-height:56px;border-bottom:1px solid var(--hsc-line);font-size:15px;cursor:pointer}
.hsc-toggle.is-last{border-bottom:0}
.hsc-check{flex:none;width:22px;height:22px;margin:0;accent-color:var(--hsc-acc);cursor:pointer}
.hsc-brow{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--hsc-surface)}
.hsc-brow-name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hsc-brow-sub{font-size:12px;color:var(--hsc-mute)}
.hsc-brow.is-done{opacity:.7}

/* thread ••• menu (mirrors the profile options sheet) */
.hsc-thread{position:relative}
.hsc-menu{position:absolute;z-index:3;right:12px;top:62px;width:min(300px,calc(100% - 24px));padding:8px;border-radius:18px;
  background:var(--hsc-surface-2);border:1px solid var(--hsc-line-2);display:flex;flex-direction:column;box-shadow:0 18px 40px -12px rgba(0,0,0,.6)}
.hsc-mi{height:48px;border:0;border-radius:12px;background:transparent;color:var(--hsc-ink);text-align:left;padding:0 14px;font-size:15px}
.hsc-mi:hover{background:rgba(255,255,255,.05)}
.hsc-mi.rep{color:var(--hsc-acc-ink)}
.hsc-mi.blk{color:var(--hsc-danger);font-weight:600}
.hsc-mi-note{margin:2px 14px 8px;font-size:12px;line-height:1.45;color:var(--hsc-mute)}
#people .hsc-compose:focus-visible,#people .hsc-input:focus-visible{outline:none}

.hsc-thread .hsc-th-main,.hsc-thread .hsc-th-foot,.hsc-thread .hsc-th-head{min-width:0;max-width:100%}
.hsc-b-row{min-width:0;max-width:100%}

/* full-height views (conversation, two-pane Messages): no .screen bottom padding under them —
   their height is sized by JS to end exactly at the docked bar / viewport bottom */
#people.hsc-fill{padding-bottom:0!important}
/* …and the site footer would otherwise make the page scroll underneath the conversation */
body:has(#people.hsc-fill.on) #siteFoot{display:none}
/* desktop sidebar mode: no bottom bar to clear */
#people.hs-side .hsc-scope{--hsc-nav-h:0px}
#people.hs-side .hsc-set-head{padding-top:36px}
#people.hs-side .hsc-set-head .hsc-icon{display:none}
#people.hs-side .hsc-set-h1{font-size:40px;padding-left:6px}
#people.hs-side .hsc-set-main{padding-left:12px;padding-right:12px;max-width:640px}

/* ── Messages, desktop two-pane (sidebar mode) — DesktopThread.dc.html ──
   .hsc-split is widened by JS from the sidebar's right edge to the viewport edge and sized to the
   viewport height; each pane scrolls on its own. */
.hsc-split{display:flex;min-height:240px;max-width:none;overflow:hidden;align-items:stretch;transition:none!important}   /* its margin and width are set by JS each fit; never animate them */
.hsc-sp-list{flex:0 0 340px;min-width:0;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.08)}
.hsc-sp-h1{flex:none;margin:0;display:flex;align-items:center;gap:10px;height:77px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.08);font-family:var(--hsc-serif);font-weight:600;font-size:22px;line-height:1.2;color:var(--hsc-ink)}
/* Mike 2026-11-03: the list starts under a header row level with the chat header, never flush against the window top.
   app-hdr hides page titles because its top bar carries them, but the two-pane view has no top bar, so the header stays. */
body.app-hdr .hsc-split .hsc-sp-list>.hsc-sp-h1{display:flex!important}   /* the app-hdr rule carries an id inside :is(), so plain specificity loses */
.hsc-sp-count{font-family:var(--hsc-sans);font-size:13px;font-weight:600;color:var(--hsc-mute);background:var(--hsc-surface);border-radius:10px;padding:2px 8px;line-height:1.3}
.hsc-sp-count:empty{display:none}
.hsc-sp-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 8px 28px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent;
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent)}
.hsc-sp-scroll::-webkit-scrollbar{width:6px}.hsc-sp-scroll::-webkit-scrollbar-track{background:transparent}.hsc-sp-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:3px}
.hsc-split .hsc-trow{min-height:0;padding:12px;border-radius:14px;gap:12px}
.hsc-split .hsc-trow-name{font-size:15px}
.hsc-split .hsc-trow-prev{font-size:13px}
.hsc-split .hsc-trow.is-active{background:var(--hsc-surface-2)}
.hsc-sp-note{margin:16px 12px 0}
.hsc-sp-none{margin:6px 12px 0;font-size:14px}
.hsc-sp-conv{flex:1 1 420px;min-width:0;height:auto!important;display:flex;flex-direction:column}
.hsc-sp-empty{margin:auto;padding:40px 24px}
.hsc-split .hsc-th-head{gap:12px;padding:0 24px;height:77px;box-sizing:border-box;border-bottom-color:rgba(255,255,255,.08)}
.hsc-split .hsc-th-name{font-size:17px}
.hsc-split .hsc-th-sub{font-size:14px}
.hsc-split .hsc-th-vp{flex:none;height:40px;padding:0 14px;border-radius:20px;font-size:14px}
.hsc-split .hsc-th-vp:hover{background:rgba(255,255,255,.05)}
.hsc-split .hsc-th-head .hsc-icon{width:40px;height:40px;border-radius:20px}
.hsc-split .hsc-menu{top:72px;right:20px}
.hsc-split .hsc-th-main{padding:24px}
.hsc-split .hsc-msgs{max-width:760px;width:100%;margin:0 auto}
.hsc-split .hsc-b{max-width:70%}
.hsc-split .hsc-b-fail{max-width:70%}
.hsc-split .hsc-th-foot{padding:0 24px;border-top-color:rgba(255,255,255,.08)}
.hsc-split .hsc-composer{max-width:760px;margin:0 auto;padding:14px 0 22px;gap:10px}
.hsc-split .hsc-compose{min-height:46px;padding:12px 18px;border-radius:23px}
.hsc-split .hsc-send{width:46px;height:46px;border-radius:23px}

/* iOS Safari zooms the page on focus when a field is under 16px - keep every People field at 16px */
#people input,#people textarea,#people select,.hsc-scope input,.hsc-scope textarea,.hsc-scope select{font-size:16px!important}

/* settings photo row: hint + ?add_photo=1 spotlight */
.hsc-scope .hsc-photo-c{gap:6px;min-width:0;flex:1;align-items:flex-start}
.hsc-scope .hsc-photo-hint{font-size:13px;line-height:1.4;color:#9a93b0}
.hsc-scope .hsc-photo-hint[hidden]{display:none}
.hsc-scope .hsc-photo.is-spot{border-radius:16px;padding:8px;margin:-8px;box-shadow:0 0 0 2px rgba(201,162,71,.7),0 0 0 8px rgba(201,162,71,.12);background:rgba(201,162,71,.06);transition:box-shadow .3s}

/* Friends: "Add a friend" invite link */
.hsc-inv{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:18px;background:linear-gradient(135deg,rgba(201,162,71,.12),rgba(217,119,87,.05));border:1px solid rgba(201,162,71,.3);margin-bottom:6px}
.hsc-inv-p{margin:0;font-size:14px;line-height:1.5;color:var(--hsc-ink-2,#d8d1e6)}
.hsc-inv-row{display:flex;gap:8px;flex-wrap:wrap}
.hsc-inv-url{flex:1 1 260px;min-width:0;height:44px;padding:0 14px;border-radius:22px;border:1px solid rgba(255,255,255,.16);background:rgba(10,9,18,.6);color:var(--hsc-ink,#F4ECD8);font:500 13.5px/1 var(--hsc-sans,'Inter',sans-serif);text-overflow:ellipsis}
.hsc-inv-url:focus-visible{outline:2px solid #EDA588;outline-offset:2px}
/* Friends › Do together (IA redesign 2026-10-21: Between Us moved here from Compare) */
.hsc-do{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:14px 16px;border-radius:16px;background:var(--hsc-surface);border:1px solid var(--hsc-line);color:var(--hsc-ink);text-align:left;cursor:pointer;font:inherit}
.hsc-do:hover{background:#1d1a31}
.hsc-do:focus-visible{outline:2px solid var(--hsc-acc-ink);outline-offset:2px}
.hsc-do-t{font-size:15px;font-weight:600;line-height:1.3}
.hsc-do-ct{font-weight:500;color:var(--hsc-acc-ink)}
.hsc-do-s{font-size:13px;color:var(--hsc-ink-2);line-height:1.4;margin-top:2px}
.hsc-do-go{flex:none;font-size:20px;color:var(--hsc-mute)}

/* ── motion (2026-10-27, Mike: "more subtle animation"): transform/opacity only, entrances ≤ .4 s, fill `backwards` so
   every element rests on its own styles; all off under prefers-reduced-motion ── */
/* loader: a gold planet circling a faint ring (matches the app's .spinring) */
.hsc-spin{position:relative;border:1px solid rgba(201,162,71,.24);animation:hscspin 2.4s linear infinite}
.hsc-spin::before{content:'';position:absolute;left:50%;top:-1px;width:5px;height:5px;border-radius:50%;background:#C9A247;box-shadow:0 0 7px 2px rgba(201,162,71,.5);transform:translate(-50%,-50%)}
/* a bubble that just arrived (sent or received) eases up from its own corner */
.hsc-b-row.is-new .hsc-b{animation:hscBub .32s cubic-bezier(.2,.7,.2,1) backwards}
.hsc-b-row.is-me.is-new .hsc-b{transform-origin:100% 100%}
.hsc-b-row.is-them.is-new .hsc-b{transform-origin:0 100%}
@keyframes hscBub{from{opacity:0;transform:translateY(6px) scale(.94)}to{opacity:1;transform:none}}
/* Messages inbox (phone) and Friends list: rows stagger in once when the view opens */
.hsc-inbox .hsc-threads>li,.hsc-friends>.hsc-sec{animation:hscRise .4s cubic-bezier(.2,.7,.2,1) backwards}
.hsc-inbox .hsc-threads>li:nth-child(2),.hsc-friends>.hsc-sec:nth-child(2){animation-delay:.05s}
.hsc-inbox .hsc-threads>li:nth-child(3),.hsc-friends>.hsc-sec:nth-child(3){animation-delay:.1s}
.hsc-inbox .hsc-threads>li:nth-child(4),.hsc-friends>.hsc-sec:nth-child(4){animation-delay:.15s}
.hsc-inbox .hsc-threads>li:nth-child(n+5),.hsc-friends>.hsc-sec:nth-child(n+5){animation-delay:.2s}
@keyframes hscRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* unread dot: a slow, soft pulse */
.hsc-trow.is-unread .hsc-dot{animation:hscDot 6s ease-in-out infinite}
@keyframes hscDot{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.8);opacity:.7}}
@media (prefers-reduced-motion:reduce){
  .hsc-b-row.is-new .hsc-b,.hsc-inbox .hsc-threads>li,.hsc-friends>.hsc-sec,.hsc-trow.is-unread .hsc-dot{animation:none}
}

/* compare notice card (Mike 2026-10-29) */
.hsc-cn-row{align-items:center;margin:6px 0}
.hsc-cn{max-width:86%;text-align:center;border:1px solid var(--hsc-line,#00000018);border-radius:14px;padding:12px 16px}
.hsc-cn-t{margin:0 0 8px;font-size:14px;line-height:1.4}
.hsc-cn-go{display:inline-block;text-decoration:none}

#hscScrim{display:none}#hscScrim.on{display:block;position:fixed;inset:0;z-index:2;background:rgba(5,4,12,.3);pointer-events:none}   /* visual only: the capture listener swallows the outside tap */

/* ═══ Social redesign: Friends (Fable UI audit 2026-11-02, Mike "Fix all this") ════════════════════════════════════
   Eyebrows outside cards (one token), one card recipe, one filled primary (Answer today's question), coral only for action. */
#people .hsc-eb{margin:14px 0 8px;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#C9A247}
#people .hsc-crd{background:#17152a;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px;text-align:left}
#people .hsc-crd-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
#people .hsc-crd-t{margin:0;font-family:Fraunces,Georgia,serif;font-weight:600;font-size:20px;line-height:1.2;color:#F4ECD8}
#people .hsc-crd-p{margin:0;font-size:14px;line-height:1.5;color:#d8d1e6}
#people .hsc-crd-acts{display:flex;gap:8px;flex-wrap:wrap}
#people .hsc-pill{height:22px;padding:0 9px;border-radius:11px;background:rgba(217,119,87,.16);color:#EDA588;font-size:12px;font-weight:600;display:inline-flex;align-items:center;white-space:nowrap}
#people .hsc-primary{height:44px;padding:0 18px;border-radius:22px;border:0;background:#D97757;color:#1F1408;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
#people .hsc-tonal{height:44px;padding:0 18px;border-radius:22px;border:1px solid rgba(217,119,87,.5);background:rgba(217,119,87,.16);color:#EDA588;font:600 14px Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center}
#people .hsc-ghostbtn{height:44px;padding:0 18px;border-radius:22px;border:1px solid rgba(255,255,255,.22);background:transparent;color:#F4ECD8;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
#people :is(.hsc-primary,.hsc-tonal,.hsc-ghostbtn):focus-visible{outline:2px solid #EDA588;outline-offset:2px}
#people .hsc-linkcap{margin:0;font:12px "JetBrains Mono",ui-monospace,monospace;color:#9a93b0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Find your matches: a quiet link row under the Between Us card */
#people #hscMatches{margin-top:8px;background:#17152a;border:1px solid rgba(255,255,255,.12);border-radius:14px;min-height:48px}
/* kudos as rows in the Friends list */
#people .hsc-kudos{margin:0 0 4px}
#people .hs-krows{list-style:none;margin:0;padding:0}
#people .hs-krows a{display:flex;align-items:center;gap:10px;min-height:56px;color:#F4ECD8;text-decoration:none}
#people .hs-krow-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}#people .hs-krow-t b{font-size:15px;font-weight:600}#people .hs-krow-t small{font-size:12px;color:#9a93b0}
#people .hs-krows svg{color:#b4adc8;flex:none}

/* Friends: people first (top-of-page audit, MasterBuilder 2026-11-02) - the import is a pill on the Friends heading */
.hsc-frhead{display:flex;align-items:center;justify-content:space-between;gap:10px}.hsc-frhead .hsc-h2{margin-bottom:0}
.hsc-addpill{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border-radius:18px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.04);color:#F4ECD8;font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.hsc-addpill:hover{background:rgba(255,255,255,.09)}.hsc-addpill:focus-visible,.hsc-addpill:focus-within{outline:2px solid #EDA588;outline-offset:2px}
@media (pointer:coarse){.hsc-addpill{min-height:44px}}
.hsc-sec-list{margin-top:4px}
.hsc-improw{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-top:12px;font-size:13px;color:#a59dbf}

/* empty-conversation starter (Leelou 11-04) */
.hsc-starter{margin:14px 0 0;align-self:center;text-align:center;max-width:340px;padding:12px 4px 6px}
.hsc-starter:first-child{margin-top:auto}   /* alone in the thread: sits low, near the box; under a compare card: right below it */
.hsc-st-h{margin:0;font:600 15px/1.3 var(--hsc-sans);color:var(--hsc-ink)}
.hsc-st-s{margin:4px 0 12px;font-size:13px;line-height:1.45;color:var(--hsc-mute)}
.hsc-st-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.hsc-st-chip{min-height:44px;padding:0 16px;border-radius:22px;border:1px solid var(--hsc-line-2);background:var(--hsc-surface);color:var(--hsc-ink);font:500 14px var(--hsc-sans);cursor:pointer}
.hsc-st-chip:hover{border-color:rgba(217,119,87,.6)}
.hsc-st-chip:focus-visible{outline:2px solid var(--hsc-acc);outline-offset:2px}
