/* Private, visual-only customisation. All art is original, local and static. */
.friend-chat-background-note { margin:0 0 .65rem; color:var(--muted); font-size:.86rem; }
.friend-chat-background-catalogue { max-block-size:min(54vh,455px); overflow:auto; overscroll-behavior:contain; margin-block:.65rem 0; padding:3px; scrollbar-width:thin; }
.friend-chat-background-group { min-inline-size:0; border:0; margin:0 0 1rem; padding:0; }
.friend-chat-background-group legend { padding:0 0 .35rem; font-size:.8rem; color:var(--muted); font-weight:700; }
.friend-chat-background-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.friend-chat-background-choice { position:relative; display:flex; align-items:center; gap:.55rem; width:100%; min-height:55px; padding:7px 8px; border:1px solid var(--line); border-radius:12px; background:var(--bg); color:var(--ink); text-align:start; cursor:pointer; }
.friend-chat-background-choice:hover { background:var(--soft); }
.friend-chat-background-choice[aria-pressed=true] { border-color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); }
.friend-chat-background-choice:focus-visible,.friend-chat-background-catalogue:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.friend-chat-background-choice[aria-pressed=true] .friend-chat-background-swatch::after { content:''; position:absolute; right:3px; bottom:4px; width:8px; height:4px; border:solid currentColor; border-width:0 0 2px 2px; transform:rotate(-45deg); }
.friend-chat-background-label { min-width:0; overflow-wrap:anywhere; font-size:.8rem; font-weight:650; }
.friend-chat-background-swatch { position:relative; flex:0 0 36px; width:36px; height:36px; border:1px solid var(--line); border-radius:9px; background:linear-gradient(135deg,var(--bg) 48%,var(--soft) 49%); color:var(--ink); }
.friend-chat-background-swatch[data-friend-chat-background] { background-color:var(--friend-wall-paper); background-image:var(--friend-wall-art); background-position:center; background-size:69px; }
.conversation-scroll[data-friend-chat-background] {
  --friend-wall-glaze:light-dark(#ffffff66,#11161b55);
  --muted:light-dark(#394b56,#bbcbd4);
  background-color:var(--friend-wall-paper,var(--bg));
  background-image:linear-gradient(var(--friend-wall-glaze),var(--friend-wall-glaze)),var(--friend-wall-art);
  background-position:center center,left top;
  background-size:cover,var(--friend-wall-tile,166px);
  background-repeat:no-repeat,repeat;
}
@media (min-width:455px) {
  .friend-chat-background-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (forced-colors:active) {
  .conversation-scroll[data-friend-chat-background] { background:Canvas; }
  .friend-chat-background-choice[aria-pressed=true] { border:2px solid Highlight; }
}

[data-friend-chat-background="stargazer"] {
  --friend-wall-paper:light-dark(#dce5fa,#24334b);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 140'%3E%3Cg fill='none' stroke='%236d87bf' stroke-width='2' stroke-opacity='.61' stroke-linecap='round'%3E%3Cpath d='M47 18c-18 3-25 19-16 33 7 11 23 12 33 3-18 1-27-19-17-36Z M102 28v16m-8-8h16 M130 81v18m-9-9h18 M40 105v12m-6-6h12 M79 72v8m-4-4h8'/%3E%3C/g%3E%3Cg fill='%236d87bf' fill-opacity='.53'%3E%3Ccircle cx='17' cy='84' r='2'/%3E%3Ccircle cx='94' cy='111' r='2'/%3E%3Ccircle cx='145' cy='33' r='2'/%3E%3Ccircle cx='70' cy='26' r='1.5'/%3E%3Ccircle cx='116' cy='62' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="lunar-orbit"] {
  --friend-wall-paper:light-dark(#d9e7ec,#22363f);
  --friend-wall-tile:184px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164 140'%3E%3Cg fill='none' stroke='%2361889b' stroke-width='1.8' stroke-opacity='.58' stroke-linejoin='round'%3E%3Ccircle cx='43' cy='42' r='16'/%3E%3Cellipse cx='43' cy='42' rx='27' ry='8' transform='rotate(-25 43 42)'/%3E%3Cpath d='M106 82c-1-9 9-25 24-27 0 13-7 25-18 31l-6-4Z M108 76l-10 2-3 9 12-4m12-1-1 11-9 5 2-12m-9 6-6 8m8-1-7 8'/%3E%3Ccircle cx='120' cy='67' r='3.5'/%3E%3Cpath d='M36 93v10m-5-5h10m45-74v12m-6-6h12m51 72v14m-7-7h14'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="match-day"] {
  --friend-wall-paper:light-dark(#d8ebdf,#2c4136);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164 142'%3E%3Cg fill='none' stroke='%23588068' stroke-width='1.7' stroke-opacity='.58' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='39' cy='41' r='19'/%3E%3Cpath d='m39 34 8 5-3 10h-10l-3-10 8-5Zm0-12v12m-18 2 10 3m13 10 6 8m-16-8-6 8m19-18 10-3'/%3E%3Crect x='89' y='72' width='55' height='37' rx='4'/%3E%3Cpath d='M116.5 72v37m-27-29h9v21h-9m54-21h-9v21h9'/%3E%3Ccircle cx='116.5' cy='90.5' r='6'/%3E%3Cpath d='M22 101h27m-17 9h17m71-85h16m-10 9h10'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="skate-park"] {
  --friend-wall-paper:light-dark(#f0ddd6,#463033);
  --friend-wall-tile:174px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164 140'%3E%3Cg transform='rotate(-22 53 42)' stroke='%23ad7067' stroke-opacity='.62' stroke-width='2' fill='none' stroke-linecap='round'%3E%3Crect x='19' y='29' width='67' height='18' rx='9'/%3E%3Cpath d='M24 47v6m55-6v6m-52-1h8m31 0h8M35 38h36m-37-3v6m38-6v6'/%3E%3Ccircle cx='32' cy='56' r='4'/%3E%3Ccircle cx='71' cy='56' r='4'/%3E%3C/g%3E%3Cg stroke='%23ad7067' stroke-opacity='.53' fill='none' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M100 92c9 0 12 4 12 11h29m-41-21c19 0 23 9 23 13h18m-94 13h18m-27 8h19m55-90 8-5m0 15 12-8'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="pixel-arcade"] {
  --friend-wall-paper:light-dark(#e9dff3,#3a2d49);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 138'%3E%3Cg fill='%23866cae' fill-opacity='.46'%3E%3Cpath d='M30 26h6v6h6v-6h6v-6h6v6h6v6h6v6h6v20H60v-6h6v-8H24v8h6v6H18V38h6v-6h6Zm0 12v6h6v-6Zm24 0v6h6v-6Z M103 88h8v-8h13v8h8v8h-8v8h-13v-8h-8Z M38 97h8v8h-8zm10 10h6v6h-6zm91-73h8v8h-8zm-33-16h6v6h-6z' fill-rule='evenodd'/%3E%3C/g%3E%3Cpath d='M82 64h12m-6-6v12m60 40h7m-3.5-3.5v7' fill='none' stroke='%23866cae' stroke-width='2' stroke-opacity='.5'/%3E%3C/svg%3E");
}
[data-friend-chat-background="ocean-tide"] {
  --friend-wall-paper:light-dark(#d4edf0,#23434a);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 174 140'%3E%3Cg fill='none' stroke='%23548e99' stroke-width='2' stroke-opacity='.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 34c8-11 13-11 21 0s13 11 21 0 13-11 21 0 13 11 21 0m-76 13c8-11 13-11 21 0s13 11 21 0 13-11 21 0 M113 70l3 14 14 2-12 8 2 15-11-10-13 6 5-14-10-10 15 1 7-12Z M24 101c11-9 22-4 29 2 10 9 22 11 33 1'/%3E%3Ccircle cx='142' cy='44' r='5'/%3E%3Ccircle cx='128' cy='30' r='3'/%3E%3Ccircle cx='155' cy='114' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="forest-trail"] {
  --friend-wall-paper:light-dark(#dee8d4,#2d3e31);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164 140'%3E%3Cg fill='none' stroke='%236c8263' stroke-width='1.8' stroke-opacity='.62' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m39 14-11 16h5l-11 15h6l-12 16h46L50 45h6L45 30h5L39 14Zm0 47v9M93 36l20-25 29 30m-38-16 9 5 7-4 M70 115l17-24 13 15 19-22 29 31H70Z m37-13 12-18 9 11m-40-5 6 7m42-44 5-5m-8 15 9-3m-111 44c8-9 17-15 26-14m-23 21c10-5 15-6 22-5'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="wildflowers"] {
  --friend-wall-paper:light-dark(#f1e3e6,#49333c);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 162 138'%3E%3Cg fill='none' stroke='%23a8687c' stroke-opacity='.6' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M46 39c-8-12 5-17 8-5 10-8 17 3 6 8 11 7 4 18-6 8-3 11-14 9-10-3-12 2-13-9 2-8Z m6 12v20m0-7c-8-1-11-5-12-10 M107 91c-7-9 2-14 7-4 8-7 13 2 5 6 10 5 4 14-5 7-4 10-12 5-9-2-10 0-10-10 2-7Zm5 10 1 17m0-7c5-5 10-6 15-5M23 110l-4 10m10-12-1 7m108-93 3 13m-14-4 9 2'/%3E%3Ccircle cx='50' cy='43' r='3'/%3E%3Ccircle cx='111' cy='95' r='2.7'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="paws"] {
  --friend-wall-paper:light-dark(#e8ddcf,#41372e);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 162 138'%3E%3Cg fill='%23907659' fill-opacity='.43'%3E%3Cpath d='M32 43c4-5 8-8 13-6 4 2 11 9 12 13 2 7-6 9-12 7s-8 1-13 0c-5-1-7-8 0-14Zm74 43c5-6 10-5 14-1 5 3 9 7 9 12 0 5-5 8-11 6-4-2-8 2-13 1-7-1-8-10 1-18Z'/%3E%3Cellipse cx='29' cy='35' rx='4' ry='6' transform='rotate(-28 29 35)'/%3E%3Cellipse cx='42' cy='27' rx='4' ry='6'/%3E%3Cellipse cx='54' cy='31' rx='4' ry='6' transform='rotate(22 54 31)'/%3E%3Cellipse cx='105' cy='77' rx='4' ry='6' transform='rotate(-24 105 77)'/%3E%3Cellipse cx='116' cy='74' rx='4' ry='6'/%3E%3Cellipse cx='127' cy='81' rx='4' ry='6' transform='rotate(23 127 81)'/%3E%3C/g%3E%3Cpath d='M86 31q3-6 6 0m39 3q3-6 6 0m-74 80q3-6 6 0' stroke='%23907659' stroke-opacity='.45' fill='none' stroke-width='1.6'/%3E%3C/svg%3E");
}
[data-friend-chat-background="butterflies"] {
  --friend-wall-paper:light-dark(#e3e4f0,#383746);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 162 138'%3E%3Cg fill='none' stroke='%238575aa' stroke-opacity='.6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M47 40c-20-26-37-6-19 5-10 8 11 20 19 0 8 20 29 8 19 0 18-11 1-31-19-5Zm0-6v22m-1-20-5-8m7 8 5-8 M112 91c-15-19-27-5-14 3-7 6 8 15 14 0 6 15 21 6 14 0 13-8 1-22-14-3Zm0-5v17m-1-16-4-5m6 5 4-5 M73 68c7 4 16 3 23-1m-66 44c9-3 15-3 23 2m80-82c7-3 10-3 17-1'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="vinyl-night"] {
  --friend-wall-paper:light-dark(#f2dfe2,#472f3b);
  --friend-wall-tile:177px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 162 136'%3E%3Cg fill='none' stroke='%23a26779' stroke-width='1.8' stroke-opacity='.59' stroke-linecap='round'%3E%3Ccircle cx='40' cy='41' r='24'/%3E%3Ccircle cx='40' cy='41' r='7'/%3E%3Cpath d='M22 34a19 19 0 0 1 12-11m-8 15a14 14 0 0 1 9-10m23 20a19 19 0 0 1-12 11m8-14a14 14 0 0 1-8 9 M29 100v7m10-13v19m10-23v27m10-23v19m10-13v7 M113 83V53l20-6v30'/%3E%3Cellipse cx='107' cy='84' rx='6' ry='4'/%3E%3Cellipse cx='127' cy='78' rx='6' ry='4'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="mixtape"] {
  --friend-wall-paper:light-dark(#e9dff0,#3f2e46);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 162 140'%3E%3Cg fill='none' stroke='%238975a0' stroke-width='1.8' stroke-opacity='.62' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='18' y='20' width='60' height='38' rx='6'/%3E%3Crect x='27' y='27' width='42' height='13' rx='5'/%3E%3Ccircle cx='37' cy='33.5' r='3.5'/%3E%3Ccircle cx='59' cy='33.5' r='3.5'/%3E%3Cpath d='M37 48h21l4 10H33l4-10Zm57 43 10 6-10 6v-12Zm23 0v12m7-12v12m-91 3 18-7m-14 15 18-7m65-80 12-5m-10 12 12-5M79 126l16-4'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="confetti"] {
  --friend-wall-paper:light-dark(#f1e6de,#433638);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 132'%3E%3Cg fill='none' stroke-width='2.6' stroke-linecap='round' stroke-opacity='.64'%3E%3Cpath d='M20 25l7 5m34 52 10 6m47-63 6-5m20 87 7 2M19 95l6-5' stroke='%23b57868'/%3E%3Cpath d='M49 41c-8-12 10-15 7-23m57 70c-9-3-11 7-15 6m44-41 8 6m-87 58 7-8' stroke='%23869875'/%3E%3Cpath d='M24 63l14 4m40-29c9-9 21-2 25 5m17 77 8-8' stroke='%237981a9'/%3E%3C/g%3E%3Cg fill='%23ac7a9b' fill-opacity='.52'%3E%3Ccircle cx='88' cy='19' r='2.5'/%3E%3Ccircle cx='148' cy='79' r='2.5'/%3E%3Ccircle cx='43' cy='98' r='2.5'/%3E%3Ccircle cx='100' cy='116' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="lemon-pop"] {
  --friend-wall-paper:light-dark(#efe8c9,#413a2c);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 164 142'%3E%3Cg fill='none' stroke='%23a9893d' stroke-width='1.8' stroke-opacity='.61' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M35 31c11-8 22-8 30 4s2 25-9 31c-10 6-18 3-23 0-5-2-8-2-10-7 2-4 1-10 3-18 2-4 5-8 9-10Zm27 2c1-10 7-16 17-14-2 7-7 14-17 14m42 47a21 21 0 0 1 31 28l-31-28Zm4 4a15 15 0 0 1 22 20m-12-11 8-7m-7 8 9 3m-90 11h6m-3-3v6m92-68h8m-4-4v8'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="berry-check"] {
  --friend-wall-paper:light-dark(#f0dce5,#45313d);
  --friend-wall-tile:154px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 154 154'%3E%3Cpath fill='%23b47892' fill-opacity='.25' d='M0 25h154v8H0zm0 77h154v8H0zM25 0h8v154h-8zm77 0h8v154h-8z'/%3E%3Cg fill='none' stroke='%23ab6583' stroke-opacity='.58' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M48 59c9-5 14-7 20-17 3 7 3 19 10 24m-9-25c-9 1-13-1-16-5 10-4 17-1 16 5Zm53 84c6-2 11-6 13-12 3 7 6 8 10 9'/%3E%3Ccircle cx='46' cy='64' r='5'/%3E%3Ccircle cx='79' cy='68' r='5'/%3E%3Ccircle cx='121' cy='128' r='3.5'/%3E%3Ccircle cx='146' cy='124' r='3.5'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="cloud-nine"] {
  --friend-wall-paper:light-dark(#dfebf5,#293848);
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 166 138'%3E%3Cg fill='none' stroke='%237b97b2' stroke-opacity='.54' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M22 49c-14-1-13-19 1-20 2-8 11-12 18-6 6-11 23-8 26 4 14-4 22 13 10 21-4 2-9 1-14 1H22Zm75 61c-11 0-12-14-2-17 2-8 13-12 19-5 7-8 19-2 19 6 10 0 12 15 1 16H97ZM30 73h27m-9 8h12m64-35h22m-25 7h10'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="lavender-grid"] {
  --friend-wall-paper:light-dark(#eee6f4,#3d3449);
  --friend-wall-tile:130px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cpath fill='%239d86b6' fill-opacity='.26' d='M0 7h130v15H0zM0 72h130v15H0zM7 0h15v130H7zm65 0h15v130H72z'/%3E%3Cpath stroke='%239d86b6' stroke-opacity='.49' d='M0 30h130M0 95h130M30 0v130m65-130v130'/%3E%3Cpath d='M49 49v8m-4-4h8m61 61v8m-4-4h8' fill='none' stroke='%239d86b6' stroke-width='1.8' stroke-opacity='.63' stroke-linecap='round'/%3E%3C/svg%3E");
}
[data-friend-chat-background="blueprint"] {
  --friend-wall-paper:light-dark(#dce8f1,#263a49);
  --friend-wall-tile:162px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%236884a6' stroke-opacity='.32' stroke-width='.8' d='M0 0h160v160H0zM0 40h160M0 80h160M0 120h160M40 0v160M80 0v160m40-160v160'/%3E%3Cg fill='none' stroke='%236884a6' stroke-opacity='.64' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M36 27l19 11v22L36 71 17 60V38l19-11Zm-19 11 19 11 19-11M36 49v22m74 27 18 18-18 18-18-18 18-18ZM65 108h14m-7-7v14m60-88v17m-8.5-8.5h17'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="sand-dunes"] {
  --friend-wall-paper:light-dark(#eae1d3,#41372e);
  --friend-wall-tile:180px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 150'%3E%3Cg fill='none' stroke='%239b7f64' stroke-width='1.7' stroke-opacity='.59' stroke-linecap='round'%3E%3Cpath d='M16 63a33 33 0 0 1 66 0m-58 0a25 25 0 0 1 50 0m-42 0a17 17 0 0 1 34 0m19 62a34 34 0 0 1 68 0m-60 0a26 26 0 0 1 52 0m-44 0a18 18 0 0 1 36 0m-76-3 6-4m-39 2 6-2m99-75 8 4m-20-8 5 2'/%3E%3Ccircle cx='115' cy='35' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
[data-friend-chat-background="soft-paper"] {
  --friend-wall-paper:light-dark(#eae8e1,#373936);
  --friend-wall-tile:112px;
  --friend-wall-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 104'%3E%3Cg fill='%23868a80' fill-opacity='.5'%3E%3Ccircle cx='21' cy='21' r='1.7'/%3E%3Ccircle cx='77' cy='14' r='1.3'/%3E%3Ccircle cx='47' cy='43' r='1.35'/%3E%3Ccircle cx='94' cy='49' r='1.8'/%3E%3Ccircle cx='21' cy='73' r='1.3'/%3E%3Ccircle cx='70' cy='78' r='1.6'/%3E%3Ccircle cx='107' cy='90' r='1.35'/%3E%3C/g%3E%3Cpath d='M13 36l3-2m47-5 3-1m25-4 4 1M32 87l4-3m49-23 3-2m-38 36 3-1' stroke='%23868a80' stroke-opacity='.4' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
