.sx, .ssa-share-menu { --ssa-accent: #1f5fa8; --ssa-border: #d9dee5; --ssa-focus: #ffb300; --ssa-muted: #68727f; --ssa-panel: #ffffff; --ssa-radius: 10px; --ssa-soft: #f2f5f9; --ssa-text: #1d2430; }
.ssa-social { position: relative; font-size: 13px; white-space: nowrap; }
.ssa-social-toggle:not(.btn) { display: inline-flex; vertical-align: middle; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: var(--ssa-muted); padding: 3px 8px 3px 4px; border-radius: 999px; cursor: pointer; font: inherit; line-height: 1; }
.ssa-social-toggle:not(.btn):hover, .ssa-social.open .ssa-social-toggle:not(.btn) { border-color: var(--ssa-border); background: var(--ssa-soft); color: var(--ssa-text); }
.ssa-social-faces { display: inline-flex; }
.ssa-social-faces .ssa-rx { margin-right: -5px; box-shadow: 0 0 0 2px var(--ssa-panel); border-radius: 50%; }
.ssa-social-faces .ssa-rx:last-child { margin-right: 2px; }
.ssa-social-count { font-weight: 600; }
.ssa-social-comments { display: inline-flex; align-items: center; gap: 3px; }
.ssa-social-cta { color: var(--ssa-accent); font-weight: 600; }
.ssa-social.has-mine .ssa-social-toggle:not(.btn) { color: var(--ssa-accent); }
.ssa-rx { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; }
.ssa-rx svg { width: 100%; height: 100%; display: block; }
.ssa-rx-like { color: #1877f2; }
.ssa-rx-like svg { width: 72%; height: 72%; }
.ssa-rx-like { background: #1877f2; color: #fff; }
.ssa-rx-love { color: #f0284a; }
.ssa-rx-love { background: #f0284a; color: #fff; }
.ssa-rx-love svg { width: 70%; height: 70%; }
.ssa-rx-care, .ssa-rx-haha, .ssa-rx-wow, .ssa-rx-sad { color: #f7b125; }
.ssa-rx-angry { color: #e9710f; }
.ssa-social-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: min(380px, 92vw); background: var(--ssa-panel); color: var(--ssa-text); border: 1px solid var(--ssa-border); border-radius: var(--ssa-radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); padding: 10px 12px 12px; text-align: left; white-space: normal; }
.ssa-social-panel[hidden] { display: none; }
.ssa-picker { display: flex; gap: 4px; margin-bottom: 10px; }
.ssa-pick { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 0 3px; cursor: pointer; color: var(--ssa-muted); font: inherit; font-size: 11px; }
.ssa-pick .ssa-rx { width: 28px; height: 28px; transition: transform .15s; }
.ssa-pick:hover .ssa-rx { transform: scale(1.3) translateY(-3px); }
.ssa-pick.mine { background: var(--ssa-soft); border-color: var(--ssa-border); color: var(--ssa-text); }
.ssa-pick i { font-style: normal; min-height: 12px; }
/* Facebook-style comment list */
.ssa-c-head { font-size: 12px; color: var(--ssa-muted); font-weight: 600; margin: 2px 0 6px; padding-top: 8px; border-top: 1px solid var(--ssa-border); }
.ssa-comments { max-height: 260px; overflow: auto; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.ssa-c { display: flex; gap: 7px; align-items: flex-start; }
.ssa-av { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.ssa-av-me { background: var(--ssa-accent); }
.ssa-c-main { min-width: 0; flex: 1; }
.ssa-bubble { display: inline-block; max-width: 100%; background: var(--ssa-soft); border-radius: 14px; padding: 6px 11px 7px; }
.ssa-bubble b { display: block; font-size: 12.5px; line-height: 1.3; }
.ssa-bubble p { margin: 1px 0 0; white-space: pre-wrap; word-wrap: break-word; line-height: 1.35; }
.ssa-c-photo img { display: block; max-width: 180px; max-height: 140px; border-radius: 10px; margin-top: 4px; border: 1px solid var(--ssa-border); }
.ssa-c-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ssa-muted); padding: 2px 0 0 10px; flex-wrap: wrap; }
.ssa-c-act { background: none; border: 0; padding: 2px; color: var(--ssa-muted); cursor: pointer; line-height: 0; border-radius: 4px; opacity: .75; }
.ssa-c-act:hover { color: var(--ssa-accent); opacity: 1; background: var(--ssa-soft); }
.ssa-c-meta button.ssa-c-save, .ssa-c-meta button.ssa-c-confirm, .ssa-c-meta button.ssa-c-keep { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--ssa-accent); cursor: pointer; }
.ssa-c-meta button.ssa-c-confirm { color: #c62828; }
.ssa-c-edit { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--ssa-border); border-radius: 12px; background: var(--ssa-panel); color: var(--ssa-text); resize: vertical; }
.ssa-c-err { color: #c62828; }
.ssa-compose-open { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; padding: 0; cursor: text; font: inherit; }
.ssa-compose-open span:last-child { flex: 1; text-align: left; background: var(--ssa-soft); border-radius: 16px; padding: 7px 12px; color: var(--ssa-muted); font-size: 13px; }
.ssa-compose-open[hidden], .ssa-form[hidden] { display: none; }
.ssa-form-btns { justify-content: flex-end; margin-top: 6px; }
.ssa-cancel { background: none; border: 0; color: var(--ssa-muted); font: inherit; cursor: pointer; padding: 7px 8px; }
.ssa-flash { margin: 6px 0 0; font-size: 12px; color: var(--ssa-muted); min-height: 0; }
.ssa-flash:empty { display: none; }
.ssa-empty { color: var(--ssa-muted); margin: 4px 0 8px; }
.ssa-form input[type=text], .ssa-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--ssa-border); border-radius: 6px; background: var(--ssa-panel); color: var(--ssa-text); }
.ssa-form textarea { margin: 0 0 6px; resize: vertical; }
.ssa-form-row { display: flex; gap: 6px; align-items: center; }
.ssa-form-row input[name=name] { flex: 1; }
.ssa-photo-btn { position: relative; overflow: hidden; border: 1px dashed var(--ssa-border); border-radius: 6px; padding: 6px 10px; cursor: pointer; color: var(--ssa-muted); white-space: nowrap; }
.ssa-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ssa-sec { margin-top: 6px; }
.ssa-sec label { flex: 1; display: flex; gap: 6px; align-items: center; white-space: nowrap; color: var(--ssa-muted); }
.ssa-sec label input { width: 110px; flex: 1; }
.ssa-form button[type=submit] { background: var(--ssa-accent); color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.ssa-form button[disabled] { opacity: .6; }
.ssa-note { margin: 6px 0 0; color: var(--ssa-muted); font-size: 11px; }
.ssa-msg { margin: 4px 0 0; font-size: 12px; min-height: 1em; }
.ssa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ssa-pick .ssa-rx { transition: none; }
/* Share button and menu (icon + blue text, matching the Congratulate control) */
.ssa-ico { width: 16px; height: 16px; flex: none; display: block; border-radius: 4px; }
.ssa-share:not(.btn) { display: inline-flex; align-items: center; gap: 5px; background: none; color: var(--ssa-accent); border: 1px solid transparent; border-radius: 999px; padding: 3px 8px 3px 4px; margin-right: 2px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; vertical-align: middle; white-space: nowrap; }
.ssa-share:not(.btn):hover { background: var(--ssa-soft); border-color: var(--ssa-border); }
.ssa-share:focus-visible { outline: 2px solid var(--ssa-focus, #f0a830); outline-offset: 2px; }
.ssa-social-cta { display: inline-flex; align-items: center; gap: 5px; }
.ssa-share-menu { position: absolute; z-index: 1000; width: min(330px, calc(100vw - 16px)); background: #fff; color: #16324f; border: 1px solid #d6dde6; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.22); padding: 12px; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.ssa-share-t { margin: 0 0 8px; font-weight: 600; }
.ssa-share-copy { display: flex; gap: 6px; }
.ssa-share-copy input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid #cfd6de; border-radius: 6px; font: inherit; font-size: 12px; color: #333; background: #f6f8fa; }
.ssa-share-cp { background: var(--ssa-accent, #2f86e6); color: #fff; border: 0; border-radius: 6px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ssa-share-nets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ssa-share-nets a { flex: 1 1 auto; text-align: center; padding: 6px 8px; border: 1px solid #d6dde6; border-radius: 6px; color: #1e5fa8; font-weight: 700; text-decoration: none; }
.ssa-share-nets a:hover { background: #eef4fb; }
/* Inside the record grids only: inverted icons (white tile, blue figure) so the many icons stay quiet */
/* Soaring: the controls take the host page's button style (btnClass); these only lay out the icon and label */
.sx { display: inline-flex; gap: 8px; align-items: center; vertical-align: middle; font-family: inherit; }
.sx .ssa-share.btn, .sx .ssa-social-toggle.btn { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.sx .ssa-share.btn .ssa-ico, .sx .ssa-social-toggle.btn .ssa-ico { width: 18px; height: 18px; }
.sx .ssa-social-toggle .ssa-social-faces .ssa-rx { width: 16px; height: 16px; }
.sx .ssa-social-panel { font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: normal; text-transform: none; }
.sx .ssa-social-comments b, .sx .ssa-social-count { font-weight: 700; }
/* Classic viewer: floating pair at the top right of the page area */
.sx-float { position: absolute; top: 10px; right: 14px; z-index: 30; }
.sx-float .ssa-share, .sx-float .ssa-social-toggle { background: #fff; color: #1f5fa8; border: 1px solid #d9dee5; border-radius: 999px; padding: 6px 13px 6px 7px; font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.18); gap: 7px; margin: 0; }
.sx-float .ssa-share:hover, .sx-float .ssa-social-toggle:hover, .sx-float.open .ssa-social-toggle { background: #eef4fb; border-color: #b9c9dc; color: #16324f; }
.sx-float .ssa-ico { width: 20px; height: 20px; border-radius: 5px; }
.sx-float .ssa-social-panel { right: 0; left: auto; }
@media (max-width: 640px) { .sx-float { top: 6px; right: 6px; gap: 6px; } .sx-float .ssa-share span, .sx-float .ssa-social-lbl { display: none; } .sx-float .ssa-share, .sx-float .ssa-social-toggle { padding: 6px; } }
.sx .ssa-social-toggle > span:empty, .sx .ssa-social-cta { display: none; }
.ssa-share-nets { justify-content: space-between; gap: 4px; flex-wrap: nowrap; }
.ssa-share-nets a.ssa-net { flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; line-height: 0; transition: transform .12s; }
.ssa-share-nets a.ssa-net:hover { background: none; transform: scale(1.1); }
.ssa-share-nets .ssa-net img { width: 32px; height: 32px; display: block; }
.ssa-share-nets button.ssa-net { flex: 0 0 auto; background: none; border: 0; padding: 0; border-radius: 50%; line-height: 0; cursor: pointer; }
.ssa-share-ig { margin: 8px 0 0; font-size: 12px; color: #1e5fa8; }
.ssa-share-nets .ssa-net { flex: 0 1 32px; min-width: 0; }
.ssa-share-nets .ssa-net img { width: 100%; max-width: 32px; height: auto; aspect-ratio: 1; }
.ssa-share-nets button.ssa-share-more { flex: 0 0 14px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #5f6873; }
.ssa-share-nets button.ssa-share-more svg { display: block; fill: currentColor; }
.ssa-share-nets button.ssa-share-more:hover { color: #1e5fa8; }

/* names linked to Badges and Records profiles */
a.plink{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:currentColor}
a.plink:hover{color:#2f86e6;text-decoration-style:solid}
/* Classic viewer: Profiles box under Share / Comment */
.sx-prof{position:absolute;top:56px;right:14px;z-index:29;width:165px;max-height:calc(100% - 80px);overflow:auto;background:rgba(255,255,255,.96);color:#16324f;border:1px solid #d9dee5;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.18);padding:8px 12px;font:13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left}
.sx-prof[hidden]{display:none}
.sx-prof-h{background:none;border:0;padding:0;font:inherit;font-weight:700;color:#16324f;cursor:pointer}
.sx-prof-h span{font-weight:400;color:#68727f}
.sx-prof ul{list-style:none;margin:6px 0 0;padding:0}
.sx-prof li{margin:0;padding:3px 0;border-top:1px solid #eef1f5}
.sx-prof a{color:#1f5fa8;text-decoration:none;font-weight:700;display:inline-block;padding-left:12px;position:relative}
.sx-prof a::before{content:"";position:absolute;left:1px;top:.25em;border-style:solid;border-width:5px 0 5px 7px;border-color:transparent transparent transparent #1f5fa8}
.sx-prof a:hover{text-decoration:underline}
@media (max-width:640px){.sx-prof{top:48px;right:6px;width:135px}}
.sx-prof li.more{display:none}
.sx-prof li.all{border-top:1px solid #eef1f5}
.sx-prof li.all button{background:none;border:0;padding:0;font:inherit;color:#1f5fa8;cursor:pointer;font-weight:600}

/* Classic viewer: hide / show the floating buttons */
.sx-hide{position:absolute;top:62px;right:22px;z-index:31;width:22px;height:22px;padding:0;border:0;background:none;cursor:pointer;line-height:0;border-radius:4px}
.sx-hide svg{width:22px;height:22px;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.sx-hide:hover svg rect{fill:#c62828}
.sx-prof .sx-prof-h{padding-right:26px}
.sx-show{display:none;position:absolute;top:0;right:24px;z-index:31;width:44px;height:54px;padding:0;border:0;background:none;cursor:pointer;line-height:0}
.sx-show svg{width:44px;height:54px;display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
.sx-show:hover svg{transform:translateY(2px)}
.dock-off .sx-float,.dock-off .sx-prof,.dock-off .sx-hide{display:none!important}
.dock-off .sx-show{display:block}
@media (max-width:640px){.sx-hide{top:54px;right:12px}.sx-show{right:10px}}

/* Search link in the Share / Comment cluster */
.ssa-search { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.sx .ssa-search.btn .ssa-ico { width: 18px; height: 18px; }
.sx-float .ssa-search { background: #fff; color: #1f5fa8; border: 1px solid #d9dee5; border-radius: 999px; padding: 6px 13px 6px 7px; font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.18); margin: 0; }
.sx-float .ssa-search:hover { background: #eef4fb; border-color: #b9c9dc; color: #16324f; }
@media (max-width: 640px) { .sx-float .ssa-search span { display: none; } .sx-float .ssa-search { padding: 6px; } }
