/* One quiet illustrated background, with readable glass and speech bubbles. */
.li-island-feature[data-card-theme="chat"]{--li-card-art:url('../img/loveisle-card-questions.svg?v=20261029.16')}
.li-island-chat-entry{grid-column:1/-1;min-height:162px;padding:30px 32px 25px 94px}
.li-island-chat-entry::before{inset:0 0 0 auto;width:48%;height:100%;background-position:center 45%}
.li-island-chat-entry::after{background:linear-gradient(90deg,#fffcf8 0%,#fffbf8f5 45%,#fffaf77a 78%,#fffaf76b)}
.li-island-chat-entry>svg{left:28px;top:33px}
.li-island-chat-entry p{min-height:0;max-width:70%;margin-bottom:8px}
.li-chat-open{overflow:hidden}
.li-chat-open .li-footer{display:none}
.li-content.li-chat-page{padding:22px 18px 0;max-width:1150px;min-height:0}
.li-chat-shell{height:620px;min-height:240px;display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid #ffffffee;border-radius:27px;background-color:#fff9f8;background-image:linear-gradient(120deg,#fffaf5ef,#fff7f9eb),url('../img/loveisle-card-space.svg?v=20261029.16');background-size:auto,630px auto;background-position:0 0,right bottom;background-repeat:no-repeat;box-shadow:0 18px 60px #a26d8715}
.li-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0;padding:17px 23px;border-bottom:1px solid #f0d6df80;background:#fffaf6bb;backdrop-filter:blur(18px)}
.li-chat-heading-person{display:flex;gap:12px;align-items:center;min-width:0}
.li-chat-heading-person>div{min-width:0}
.li-chat-heading h2{font-size:19px;line-height:1.6;font-weight:500;margin:0;max-width:480px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.li-chat-heading [role=status]{display:block;line-height:1.7;color:var(--li-muted);font-size:12px}
.li-chat-connected::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;background:#95b69a;border-radius:50%;vertical-align:middle}
.li-chat-heading-actions{display:flex;gap:8px;flex-shrink:0}
.li-chat-heading-actions .li-icon-button{height:36px;width:36px;background:#fffaf6b3}
.li-chat-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:14px;overflow:hidden;background:linear-gradient(145deg,#f5dce7,#fff7ed);border:1px solid #ffffffed;color:#b6809b}
.li-chat-avatar img{width:100%;height:100%;object-fit:cover}
.li-chat-avatar>svg{height:20px;width:20px}
.li-chat-scroll{flex:1;min-height:0;overflow:auto;overflow-anchor:none;scroll-behavior:auto;overscroll-behavior:contain;padding:16px 23px 24px;scrollbar-width:thin;scrollbar-color:#e4bbcc transparent;touch-action:pan-y}
.li-chat-history{text-align:center;font-size:12px;color:var(--li-muted);line-height:1.8;min-height:22px;margin-bottom:6px}
.li-chat-messages{display:flex;flex-direction:column;gap:22px}
.li-chat-day{display:block;flex-shrink:0;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;color:#ab8798;letter-spacing:0;text-align:center;align-self:center;max-width:100%;box-sizing:border-box;padding:4px 12px;background:#f4e4eb7a;border-radius:20px;margin:5px 0 -2px}
.li-chat-message{display:flex;align-items:flex-start;gap:10px;min-width:0;width:100%}
.li-chat-message.is-mine{flex-direction:row-reverse}
.li-chat-message-main{min-width:0;max-width:calc(100% - 94px);display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.li-chat-message.is-mine .li-chat-message-main{align-items:flex-end}
.li-chat-message-meta{display:flex;align-items:center;gap:8px;min-width:0;color:var(--li-muted);font-size:13px;line-height:1.5}
.li-chat-message-meta span{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li-chat-message.is-mine .li-chat-message-meta{flex-direction:row-reverse}
.li-chat-bubble{font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;padding:6px 14px;background:#ffffffd9;border:1px solid #ead2dd85;border-radius:6px 19px 19px 19px;color:var(--li-ink);box-shadow:0 4px 13px #ad71800a}
.is-mine .li-chat-bubble{background:linear-gradient(130deg,#f8deea,#f1cddd);border-color:#eabbd180;border-radius:19px 6px 19px 19px}
.is-sticker .li-chat-bubble{padding:0;border:0;box-shadow:none;background:transparent!important}
.li-chat-sticker{display:block;width:144px;height:144px;border-radius:20px;object-fit:contain}
.li-chat-bubble:has(.li-chat-photo){padding:5px;white-space:normal;border-radius:17px}
.li-chat-photo{display:block;width:min(280px,50vw);max-width:100%;max-height:320px;aspect-ratio:var(--media-ratio,1);border:0;padding:0;overflow:hidden;border-radius:12px;background:#f5e4ec;cursor:zoom-in}
.li-chat-photo img{display:block;width:100%;height:100%;object-fit:cover}
.li-chat-message-menu{height:28px;width:28px;flex:0 0 28px;padding:5px;border:0;background:transparent;color:#b88ea2;border-radius:50%;margin-top:26px;opacity:.6}
.li-chat-message-menu svg{width:18px;height:18px}
.li-chat-message-menu:focus-visible{opacity:1}
.li-chat-delivery{font-size:11px;line-height:1.8;color:#a7778e;display:flex;gap:8px;align-items:center;flex-wrap:wrap;max-width:100%}
.li-chat-delivery button{font:inherit;color:var(--li-deep);background:none;border:0;padding:3px 4px;text-decoration:underline;text-underline-offset:3px}
.li-chat-sending{display:inline-block;flex:0 0 9px;height:9px;border:1px solid #d5a2b9;border-top-color:transparent;border-radius:50%;animation:li-chat-spin .8s linear infinite}
.li-chat-empty{padding:40px 20px;text-align:center;line-height:1.9;color:var(--li-muted)}
.li-chat-empty>svg{width:44px;height:44px;padding:11px;box-sizing:content-box;border-radius:23px;color:#bd82a0;background:#f4deea80;margin-bottom:12px}
.li-chat-empty h3{font-size:21px;font-weight:500;color:var(--li-ink);margin:12px 0}
.li-chat-empty p{font-size:14px;margin:0}
.li-chat-composer{flex-shrink:0;padding:10px 20px 17px;border-top:1px solid #efd6e180;background:#fffaf7cf;backdrop-filter:blur(20px)}
.li-chat-tools{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.li-chat-tools .li-icon-button,.li-chat-sticker-tool{height:36px;width:36px;background:transparent;border:1px solid transparent;flex-shrink:0}
.li-chat-tools .li-icon-button svg{width:22px;height:22px}
.li-chat-tools>span{font-size:11px;color:#b693a4;margin-left:auto;letter-spacing:1px}
.li-chat-sticker-tool{padding:0;overflow:hidden;border-radius:12px;display:grid;place-items:center}
.li-chat-sticker-tool img{height:36px;width:36px;object-fit:cover}
.li-chat-tools button[aria-expanded=true]{border-color:transparent;background:transparent}
.li-chat-input-row{display:flex;align-items:flex-end;gap:12px}
.li-chat-input-row textarea{display:block;flex:1;min-width:0;min-height:46px;max-height:126px;resize:none;border:1px solid #efd0df;border-radius:17px;background:#ffffffbc;padding:11px 14px;font:inherit;font-size:16px;color:var(--li-ink);line-height:1.55;scrollbar-width:thin}
.li-chat-input-row textarea:focus{outline:2px solid #e7bdd1;outline-offset:1px;border-color:#dca4c0}
.li-chat-input-row>.li-button{min-height:46px;padding:10px 20px;font-size:14px;gap:7px;border-radius:18px;flex-shrink:0}
.li-chat-input-row>.li-button svg{width:19px;height:19px}
.li-chat-shell button:disabled{opacity:.4;cursor:default;transform:none;box-shadow:none}
.li-chat-new{position:absolute;right:23px;bottom:145px;z-index:3;border:1px solid #ecc7d8;border-radius:22px;background:#fff7fbea;backdrop-filter:blur(12px);box-shadow:0 5px 23px #9d698526;color:var(--li-deep);font-size:12px;padding:9px 15px}
.li-chat-picker{flex-shrink:0;max-height:min(345px,42dvh);padding:13px 18px 12px;border-top:1px solid #ebc9d9;background:#fffafbe8;backdrop-filter:blur(24px);animation:li-chat-picker-in .18s ease-out;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.li-chat-picker-head{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.li-chat-picker-head input{flex:1;min-width:0;font:inherit;font-size:14px;padding:9px 13px;border:1px solid #ebcedb;border-radius:14px;background:#ffffffc7;color:var(--li-ink)}
.li-chat-picker-head .li-icon-button{display:grid;place-items:center;box-sizing:border-box;height:32px;width:32px;min-width:32px;flex:0 0 32px;padding:0;line-height:0}
.li-chat-picker-head .li-icon-button svg{display:block;width:20px;height:20px;margin:0}
.li-chat-picker-tabs{display:flex;gap:6px;overflow:auto;scrollbar-width:none;margin-bottom:12px;padding:1px 1px 3px}
.li-chat-picker-tabs button{flex-shrink:0;border:1px solid transparent;background:transparent;border-radius:15px;padding:7px 11px;font:inherit;font-size:12px;color:var(--li-muted)}
.li-chat-picker-tabs button.active{background:#f6dfeb;color:var(--li-deep);border-color:#ecc6d8}
.li-chat-pack-title{font-size:12px;color:#ac7992;letter-spacing:1px;padding:4px 0}
.li-chat-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:5px;align-content:start}
.li-chat-emoji-delete{display:none}
@media(max-width:700px){
  .li-chat-emoji-delete:not([hidden]){position:absolute;z-index:4;display:grid;place-items:center;height:47px;border:1px solid #eed9e3;border-radius:12px;background:#fffcfcf2;color:var(--li-ink);box-shadow:0 3px 12px #8056670c;touch-action:manipulation}
  .li-chat-emoji-delete svg{height:24px;width:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
  .li-chat-emoji-delete:disabled{opacity:.35;cursor:default;box-shadow:none}
  .li-chat-emoji-delete:not(:disabled):active{filter:brightness(.93)}
}
.li-chat-emoji-grid>button{height:40px;min-width:0;border:0;border-radius:11px;background:transparent;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:26px;line-height:1;padding:2px}
.li-chat-sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:9px}
.li-chat-sticker-grid>button{min-width:0;padding:4px;background:transparent;border:0;border-radius:12px;font:inherit;color:#986a82;font-size:11px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}
.li-chat-sticker-grid img{height:auto;width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px;transition:filter .16s ease}
.li-chat-emoji-grid>p,.li-chat-sticker-grid>p{grid-column:1/-1;font-size:13px;color:var(--li-muted);text-align:center;line-height:1.8}
.li-chat-full-image{display:block;width:100%;max-height:68dvh;object-fit:contain;border-radius:17px;background:#f6e8ef;margin-bottom:20px}
@keyframes li-chat-spin{to{transform:rotate(360deg)}}
@keyframes li-chat-picker-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(hover:hover) and (pointer:fine){
  .li-chat-message-menu{opacity:0}.li-chat-message:hover .li-chat-message-menu{opacity:.9}
  .li-chat-message-menu:hover,.li-chat-tools button:hover,.li-chat-emoji-grid>button:hover{background:#f4dfeacc}
  .li-chat-sticker-grid>button:hover img,.li-chat-custom-tile>button:first-child:hover img{filter:brightness(.82)}
}
@media(max-width:700px){
  .li-island-chat-entry{min-height:156px;padding:25px 20px 18px 72px}
  .li-island-chat-entry::before{height:100%;width:55%;inset:0 0 0 auto}
  .li-island-chat-entry::after{background:linear-gradient(90deg,#fffcf8 0%,#fffaf9e8 42%,#fffaf778 100%)}
  .li-island-chat-entry>svg{left:20px;top:28px}.li-island-chat-entry p{max-width:90%;margin-bottom:4px}
  .li-content.li-chat-page{padding:11px 11px 0;max-width:none}
  .li-chat-shell{border-radius:21px;box-shadow:0 10px 30px #a26d8710}
  .li-chat-heading{padding:12px 13px;gap:8px}.li-chat-heading h2{font-size:17px;max-width:190px}
  .li-chat-heading-person{gap:9px}.li-chat-heading-actions{gap:5px}
  .li-chat-heading-actions .li-icon-button{height:32px;width:32px}.li-chat-heading [role=status]{font-size:10px}
  .li-chat-avatar{width:33px;height:33px;flex-basis:33px;border-radius:12px}
  .li-chat-scroll{padding:10px 12px 18px}.li-chat-messages{gap:19px}
  .li-chat-message{gap:7px}.li-chat-message-main{max-width:calc(100% - 69px)}
  .li-chat-bubble{padding:5px 11px;font-size:15px;line-height:1.7}
  .li-chat-message-meta{font-size:12px;gap:7px}.li-chat-message-meta span{max-width:125px}
  .li-chat-message-menu{width:22px;flex-basis:22px;padding:2px}
  .li-chat-sticker{height:125px;width:125px}.li-chat-photo{width:min(240px,52vw);max-height:275px}
  .li-chat-composer{padding:7px 11px 12px}.li-chat-tools{gap:6px;margin-bottom:5px}.li-chat-tools>span{font-size:10px;letter-spacing:0}
  .li-chat-input-row{gap:8px}.li-chat-input-row textarea{padding:10px 11px;border-radius:15px}
  .li-chat-input-row>.li-button{padding:10px 13px;border-radius:15px}.li-chat-input-row>.li-button span{display:none}
  .li-chat-new{bottom:137px;right:15px;font-size:11px;padding:8px 12px}
  .li-chat-picker{padding:10px 10px 12px;max-height:min(310px,39dvh)}
  .li-chat-emoji-grid{grid-template-columns:repeat(auto-fill,minmax(35px,1fr));gap:4px}
  .li-chat-emoji-grid>button{font-size:25px;height:36px}.li-chat-sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .li-chat-sticker-grid img{height:auto;aspect-ratio:1;width:100%}
  .li-chat-keyboard .li-nav{visibility:hidden;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){.li-chat-picker,.li-chat-sending{animation:none!important}}
.li-reduced .li-chat-picker,.li-reduced .li-chat-sending{animation:none!important}

/* Header inbox, quiet read receipts and the desktop/mobile composer variants. */
.li-header-chat{position:relative;flex-shrink:0}
.li-header-chat.active{background:#f6deea;color:var(--li-deep);border-color:#e9b6ce}
.li-chat-unread-badge{position:absolute;top:-4px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:12px;background:#df5e78;color:#fff;font:600 10px/17px system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff7fa;pointer-events:none}
.li-chat-unread-badge[hidden],.li-header-chat[hidden],.li-chat-picker[hidden],.li-chat-background-option[hidden]{display:none!important}
.li-chat-avatar{width:44px;height:44px;flex-basis:44px;border-radius:50%}
.li-chat-heading-person>.li-chat-avatar{width:46px;height:46px;flex-basis:46px}
.li-chat-message-main{max-width:calc(100% - 102px)}
.li-chat-bubble-row{display:flex;align-items:flex-end;gap:8px;max-width:100%;min-width:0}
.li-chat-bubble{font-size:var(--li-chat-font-size,16px);min-width:0}
.li-chat-resend{width:21px;height:21px;flex:0 0 21px;display:grid;place-items:center;padding:2px;margin:0 0 3px;background:#df5f77;color:white;border:0;border-radius:50%;box-shadow:none}
.li-chat-resend svg{width:16px;height:16px;stroke-width:2.5}
.li-chat-bubble-row>.li-chat-sending{margin-bottom:8px}
.li-chat-read-receipt{display:inline-flex;gap:4px;align-items:center;font-size:10px;line-height:1.4;color:#ad8d9d;margin-top:-1px;white-space:nowrap}
.li-chat-read-receipt>span{height:12px;width:12px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex-shrink:0;background:#f0e0e8}
.li-chat-read-receipt img{height:100%;width:100%;object-fit:cover}.li-chat-read-receipt svg{height:9px;width:9px}
.li-chat-heading [data-chat-status]::before{content:"";display:inline-block;height:6px;width:6px;background:#c4b4bf;border-radius:50%;margin-right:6px;vertical-align:middle}
.li-chat-heading [data-chat-status].li-chat-connected::before{background:#17b95f}
.li-chat-composer{padding:12px 18px 16px;background:#fffaf7ab;border-top:1px solid #efd6e170;position:relative}
.li-chat-editor{padding:10px 12px 9px;border:1px solid #ebcedc;border-radius:19px;background:#fffdfbc9;box-shadow:0 2px 8px #ad718006;transition:border-color .2s,box-shadow .2s}
.li-chat-editor:focus-within{border-color:#dba7c0;box-shadow:0 0 0 2px #eec9dd50}
.li-chat-editor>textarea{display:block;box-sizing:border-box;width:100%;min-height:82px;max-height:126px;resize:none;border:0!important;outline:0!important;background:transparent;box-shadow:none!important;padding:4px 6px 10px;font:inherit;font-size:16px;line-height:1.65;color:var(--li-ink);scrollbar-width:thin}
.li-chat-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.li-chat-editor .li-chat-tools{margin:0;gap:7px}
.li-chat-editor .li-chat-tools .li-icon-button{height:34px;width:34px;color:var(--li-ink)}
.li-chat-editor .li-chat-send{min-height:33px;border-radius:13px;padding:6px 16px;font-size:13px;gap:6px}
.li-chat-editor .li-chat-send svg{height:16px;width:16px}
.li-chat-new{bottom:calc(var(--li-chat-composer-height,170px) + 12px)}
.li-chat-picker{position:absolute;z-index:8;bottom:calc(var(--li-chat-composer-height,170px) + 9px);left:18px;width:min(450px,calc(100% - 36px));height:415px;max-height:var(--li-chat-picker-max,410px);padding:13px 13px 0;display:flex;flex-direction:column;border:1px solid #edcedd;border-radius:22px;overflow:hidden;background:#fffcf8f5;box-shadow:0 18px 54px #94617e2c;backdrop-filter:blur(26px)}
.li-chat-picker-head{flex-shrink:0;order:0;margin-bottom:9px}
.li-chat-picker-tabs{order:1;flex-shrink:0;min-height:33px;margin-bottom:7px}
.li-chat-picker-content{order:2;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:12px}
.li-chat-picker-packs{order:3;flex-shrink:0;display:flex;align-items:center;gap:14px;border-top:1px solid #efdbe5;margin:0 -13px;padding:7px 14px;background:#fff7f9a6}
.li-chat-picker-packs>button{display:grid;place-items:center;box-sizing:border-box;height:42px;width:42px;min-width:42px;flex:0 0 42px;aspect-ratio:1;padding:4px;border:1px solid transparent;border-radius:12px;background:transparent;color:#a17e91}
.li-chat-picker-packs>button.active{border-color:#ecc6d7;background:#f6dfeb;color:var(--li-deep)}
.li-chat-picker-packs svg{height:23px;width:23px}.li-chat-picker-packs img{height:30px;width:30px;border-radius:8px;object-fit:cover}
.li-chat-emoji-section{grid-column:1/-1;font-size:12px;color:var(--li-muted);padding:7px 3px 8px}
.li-chat-shell[data-background="rose"]{background-image:radial-gradient(ellipse at 90% 0,#f5cbdc85,transparent 65%),linear-gradient(145deg,#fff8f5,#fce9f0)}
.li-chat-shell[data-background="mint"]{background-image:radial-gradient(ellipse at 90% 0,#bfdad280,transparent 65%),linear-gradient(145deg,#fffaf4,#e7f1eb)}
.li-chat-shell[data-background="lilac"]{background-image:radial-gradient(ellipse at 90% 0,#d9cbe980,transparent 65%),linear-gradient(145deg,#fff9f6,#eee9f6)}
.li-chat-shell[data-background="none"]{background-image:none;background-color:#fffcfa}
.li-chat-shell[data-background="custom"]{background-image:linear-gradient(#fff9f4b8,#fff9f4b8),var(--li-chat-custom-bg);background-size:cover;background-position:center}
.li-chat-settings h3{font-size:20px;font-weight:500;margin:0 0 12px}
.li-chat-settings .li-form>section{display:grid;gap:16px}.li-chat-settings .li-field-note{margin:0}
.li-chat-background-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.li-chat-background-option{display:flex;flex-direction:column;gap:7px;align-items:center;padding:8px;border-radius:17px;border:1px solid #efd7e3;font-size:13px;color:var(--li-muted);cursor:pointer;position:relative;min-width:0}
.li-chat-background-option input{position:absolute;width:1px;height:1px;opacity:0}
.li-chat-background-option:has(input:checked){background:#f7e2ed;border-color:#dba0bf;color:var(--li-deep)}
.li-chat-background-option:focus-within{outline:2px solid #dba0bf;outline-offset:2px}
.li-chat-background-swatch{display:block;width:100%;height:75px;border-radius:11px;overflow:hidden;background:#fff8f6}
.li-chat-background-swatch[data-background="island"]{background:url('../img/loveisle-card-space.svg') center/cover}
.li-chat-background-swatch[data-background="rose"]{background:linear-gradient(145deg,#fff4eb,#f3cada)}
.li-chat-background-swatch[data-background="mint"]{background:linear-gradient(145deg,#fff9e9,#c4dfd5)}
.li-chat-background-swatch[data-background="lilac"]{background:linear-gradient(145deg,#fff5f2,#dcd1ed)}
.li-chat-background-swatch img{height:100%;width:100%;object-fit:cover}
.li-chat-background-upload{justify-self:start;font-size:13px!important;cursor:pointer}
.li-chat-settings-danger{margin-top:28px;padding-top:22px;border-top:1px solid #eed3e0;text-align:center}
.li-chat-settings-danger .li-text-button{display:inline-flex;align-items:center;gap:8px}
.li-chat-settings .li-check{font-size:14px;line-height:1.7}
@media(max-width:700px){
  .li-nav{transition:transform .32s cubic-bezier(.2,.7,.2,1),opacity .25s}
  .li-chat-open .li-nav{transform:translate3d(0,calc(100% + 38px + env(safe-area-inset-bottom)),0);opacity:0;pointer-events:none}
  .li-chat-keyboard .li-nav{visibility:visible}
  .li-chat-avatar{width:40px;height:40px;flex-basis:40px}
  .li-chat-heading-person>.li-chat-avatar{width:42px;height:42px;flex-basis:42px}
  .li-chat-message-main{max-width:calc(100% - 78px)}
  .li-chat-bubble{font-size:var(--li-chat-font-size,16px)}
  .li-chat-read-receipt{font-size:9px;gap:3px}.li-chat-read-receipt>span{height:11px;width:11px}
  .li-chat-shell{--li-chat-input-surface:#fffaf7}
  .li-chat-composer{padding:9px 10px max(10px,env(safe-area-inset-bottom));border-top:1px solid #ecd8e280;background:var(--li-chat-input-surface)}
  .li-chat-shell:has(.li-chat-picker:not([hidden])) .li-chat-composer{padding-bottom:0;margin-bottom:0}
  .li-chat-editor{display:flex;align-items:flex-end;gap:7px;padding:0;border:0;background:transparent;box-shadow:none}
  .li-chat-editor:focus-within{border:0;box-shadow:none}
  .li-chat-editor>textarea{flex:1;min-width:0;min-height:44px;max-height:126px;padding:10px 12px;border:1px solid #edcedc!important;border-radius:15px;background:#ffffffd1;font-size:16px;line-height:1.5}
  .li-chat-editor-toolbar{display:contents}
  .li-chat-editor .li-chat-tools{display:flex;align-items:center;gap:3px;margin-bottom:3px}
  .li-chat-editor .li-chat-tools .li-icon-button{height:36px;width:33px;padding:4px}
  .li-chat-editor .li-chat-tools .li-icon-button svg{height:24px;width:24px}
  .li-chat-editor .li-chat-send{display:none;align-self:flex-end;height:36px;min-height:36px;width:34px;padding:7px;margin-bottom:3px;flex-shrink:0;border-radius:12px}
  .li-chat-editor.has-text .li-chat-send{display:inline-flex}.li-chat-editor .li-chat-send span{display:none}
  .li-chat-picker{position:relative;inset:auto;order:2;flex-shrink:0;box-sizing:border-box;width:100%;height:min(360px,44dvh);max-height:min(var(--li-chat-picker-max,360px),44dvh);border:0;border-radius:0;padding:0 11px max(12px,env(safe-area-inset-bottom));box-shadow:none;background:#fff6faee;animation:li-chat-picker-in .23s ease-out}
  .li-chat-picker-packs{order:0;margin:0 -11px 10px;padding:8px 13px;border:0;gap:12px;background:var(--li-chat-input-surface)}
  .li-chat-picker-head{order:1;min-height:34px;gap:6px;margin-bottom:8px}.li-chat-picker-head input{font-size:14px;padding:7px 10px}
  .li-chat-picker-tabs{order:2;min-height:31px;margin-bottom:5px}
  .li-chat-picker-content{order:3;padding-bottom:5px}
  .li-chat-emoji-grid{grid-template-columns:repeat(auto-fill,minmax(37px,1fr));gap:7px 5px}
  .li-chat-sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 7px}
  .li-chat-background-options{gap:8px}.li-chat-background-option{padding:6px;font-size:12px}.li-chat-background-swatch{height:63px}
}
@media(max-width:380px){.li-header-actions{gap:6px}.li-header-actions>.li-icon-button{width:36px;height:36px}.li-header-back-label{font-size:12px}.li-header .li-brand b{font-size:18px;letter-spacing:1px}.li-header .li-brand-heart{width:25px}.li-header .li-brand-heart svg{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){.li-nav{transition:none!important}}
.li-reduced .li-nav{transition:none!important}

/* Draft image attachments stay inside the editor until Send is pressed. */
.li-chat-attachments{display:flex;gap:9px;overflow:auto;padding:5px 5px 12px;scrollbar-width:thin;max-height:140px}
.li-chat-attachments[hidden]{display:none!important}
.li-chat-attachment{position:relative;height:98px;width:125px;flex:0 0 125px;border:1px solid #ecd3df;border-radius:12px;overflow:hidden;background:#f9edf3}
.li-chat-attachment>img{height:100%;width:100%;object-fit:cover}
.li-chat-attachment>button{position:absolute;top:4px;right:4px;height:21px;width:21px;padding:4px;display:grid;place-items:center;background:#fff7f8ee;border:1px solid #e7c3d3;border-radius:50%;color:#986d82}
.li-chat-attachment>button svg{height:12px;width:12px}
.li-chat-image-caption{max-width:min(280px,50vw);padding:10px 10px 7px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.li-chat-recalled{align-self:center;font-size:11px;color:var(--li-muted);line-height:1.8;padding:4px 9px;text-align:center}
.li-chat-large-text{font-size:24px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}
.li-chat-custom-tile{position:relative;min-width:0;border:0;border-radius:12px;background:transparent}
.li-chat-custom-tile>button:first-child{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;padding:4px;border:0;border-radius:12px;background:transparent;color:#986a82;font:inherit;font-size:11px}
.li-chat-custom-tile img{max-width:100%;height:auto;width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px}
.li-chat-custom-tile span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li-chat-custom-remove{position:absolute;top:2px;right:2px;padding:3px;width:19px;height:19px;border:0;border-radius:50%;background:#fff5f9d9;color:#ac7b95}
.li-chat-custom-remove svg{height:12px;width:12px}.li-chat-sticker-grid>.li-chat-custom-add{justify-content:center;box-sizing:border-box;align-self:start;width:100%;aspect-ratio:1;min-height:0;border:1px dashed #eabed2;border-radius:16px;background:#f6e1eb;color:#a4738e}
.li-chat-custom-add>svg{height:29px;width:29px;margin-bottom:7px}.li-chat-custom-more{justify-content:center;min-height:90px}
.li-chat-message-actions{position:fixed;inset:auto;margin:0;padding:7px;min-width:175px;max-width:230px;display:flex;flex-direction:column;border:1px solid #e9cfdd;border-radius:15px;background:#fffaf7f5;backdrop-filter:blur(25px);box-shadow:0 14px 45px #8c5b7b30;color:var(--li-ink);z-index:90;max-height:70dvh;overflow:auto}
.li-chat-message-actions::backdrop{background:transparent}
.li-chat-message-actions>button{display:flex;align-items:center;gap:11px;border:0;border-radius:10px;background:transparent;text-align:left;color:inherit;font:inherit;font-size:14px;padding:11px 12px;min-height:42px}
.li-chat-message-actions>button svg{height:18px;width:18px;flex-shrink:0;color:#a97c95}
.li-chat-message-actions>button.is-danger{color:#cb6483;border-top:1px solid #efdce6;border-radius:0 0 9px 9px;margin-top:4px}
.li-chat-message-actions>button.is-danger svg{color:inherit}
.li-chat-notice{position:fixed;inset:auto;right:22px;top:calc(94px + env(safe-area-inset-top));margin:0;box-sizing:border-box;width:350px;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:5px;padding:13px 10px 13px 14px;border:1px solid #ffffffb8;border-radius:23px;background:linear-gradient(135deg,#fffdfb99,#fff4f780);backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);box-shadow:0 8px 32px #87546826,inset 0 1px 0 #ffffffd9,inset 0 -1px 0 #ffffff4d;z-index:100;animation:li-chat-notice-in .24s ease-out;color:var(--li-ink);touch-action:none;user-select:none;-webkit-user-select:none}
.li-chat-notice[hidden]{display:none!important}.li-chat-notice::backdrop{background:transparent}
.li-chat-notice-open{display:flex;align-items:center;gap:11px;flex:1;min-width:0;border:0;background:transparent;padding:2px;text-align:left;color:inherit;font:inherit}
.li-chat-notice-open>span:last-child{flex:1;min-width:0;line-height:1.8}.li-chat-notice-open strong{display:flex;justify-content:space-between;gap:9px;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.li-chat-notice-open strong small{font-size:10px;color:var(--li-muted);white-space:nowrap;flex-shrink:0}
.li-chat-notice-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#a07990;line-height:1.7;overflow-wrap:anywhere}
.li-chat-notice-avatar{width:41px;height:41px;flex:0 0 41px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#f4dce8;color:#b77d9b}
.li-chat-notice-avatar img{height:100%;width:100%;object-fit:cover}.li-chat-notice-avatar svg{height:22px;width:22px}
.li-chat-notice-close{display:grid;place-items:center;flex:0 0 28px;align-self:center;border:0;background:transparent;color:#b38b9f;padding:5px;border-radius:50%;height:28px;width:28px}.li-chat-notice-close svg{height:16px;width:16px}
@keyframes li-chat-notice-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media(hover:hover) and (pointer:fine){.li-chat-message-actions>button:hover,.li-chat-message-actions>button:focus-visible{background:#f7e4ee}}
@media(max-width:700px){
  .li-chat-message-actions{width:min(340px,calc(100vw - 24px));max-width:none;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:10px;border-radius:20px;background:#fff9f6f7}
  .li-chat-message-actions>button{flex-direction:column;justify-content:center;gap:8px;padding:10px 2px;font-size:11px;line-height:1.6;text-align:center;min-height:65px;overflow-wrap:anywhere}
  .li-chat-message-actions>button svg{height:23px;width:23px}.li-chat-message-actions>button.is-danger{border:0;margin:0;border-radius:10px}
  .li-chat-editor{flex-wrap:wrap}.li-chat-attachments{flex-basis:100%;padding:0 0 8px;width:100%}.li-chat-attachment{height:81px;width:105px;flex-basis:105px}
  .li-chat-notice{top:calc(91px + env(safe-area-inset-top));right:15px;width:calc(100vw - 30px);border-radius:20px;padding:11px}
  .li-chat-custom-tile img{height:auto;aspect-ratio:1;width:100%}
  .li-chat-tools button[aria-expanded=true],.li-chat-tools button:hover{background:transparent;border-color:transparent}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.li-chat-notice{background:#fff8f7ed}}
@media(prefers-reduced-motion:reduce){.li-chat-notice{animation:none!important}}
.li-reduced .li-chat-notice{animation:none!important}

/* A private sticker uses a square, edge-to-edge preview with no remove badge. */
.li-chat-custom-grid{--li-custom-sticker-radius:13%;align-items:start}
.li-chat-custom-tile{box-sizing:border-box;width:100%;aspect-ratio:1;align-self:start;border-radius:var(--li-custom-sticker-radius);overflow:hidden}
.li-chat-custom-tile>button:first-child{position:relative;display:block;box-sizing:border-box;width:100%;height:100%;aspect-ratio:1;padding:0;border-radius:inherit;overflow:hidden}
.li-chat-custom-tile img{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;border-radius:inherit}
.li-chat-sticker-grid>.li-chat-custom-add{position:relative;box-sizing:border-box;width:100%;aspect-ratio:1;padding:0;background:transparent;border:0;border-radius:var(--li-custom-sticker-radius);transition:filter .18s}
.li-chat-custom-add>svg{width:40px;height:40px}
.li-chat-custom-add::before{content:"";position:absolute;inset:0;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='1' y='1' width='98' height='98' rx='13' fill='none' stroke='%23e5b7cc' stroke-width='1' stroke-dasharray='7 6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.li-chat-sticker-grid>button[data-chat-sticker]{align-self:start;justify-content:flex-start;gap:7px;overflow:visible}
.li-chat-sticker-caption{display:block;flex:none;width:100%;min-height:1.6em;font-size:12px;line-height:1.6;text-align:center;color:#a47990;margin:0;overflow-wrap:anywhere}
.li-chat-sticker-art{position:relative;display:block;flex:none;box-sizing:border-box;width:100%;aspect-ratio:1;border-radius:12px;background:#fff7fa;overflow:hidden;transition:filter .16s ease}
/* Artwork is text-free; the caption is a separate element below the square. */
.li-chat-sticker-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:1;max-width:none;object-fit:contain;border-radius:0;clip-path:none}
@media(hover:hover) and (pointer:fine){
  .li-chat-custom-add:hover{filter:brightness(.72)}
  .li-chat-sticker-grid>button[data-chat-sticker]:hover img{filter:none}
  .li-chat-sticker-grid>button[data-chat-sticker]:hover .li-chat-sticker-art{filter:brightness(.82)}
}
@media(prefers-reduced-motion:reduce){.li-chat-sticker-art{transition:none}}
.li-reduced .li-chat-sticker-art{transition:none}
.li-chat-notice,.li-chat-notice *{touch-action:none;-webkit-user-select:none;user-select:none}
.li-chat-notice{will-change:transform,opacity;cursor:grab}.li-chat-notice:active{cursor:grabbing}.li-chat-notice img{-webkit-user-drag:none;pointer-events:none}
.li-chat-mobile-back{display:none}
@media(max-width:700px){
  .li-chat-open .li-header{display:none}
  .li-chat-open .li-content.li-chat-page{position:fixed;inset:0;z-index:25;box-sizing:border-box;width:100%;max-width:none;min-height:0;margin:0;padding:0;overflow:hidden}
  .li-chat-open .li-chat-shell{width:100%;box-sizing:border-box;max-height:none;min-height:0;border:0;border-radius:0;box-shadow:none}
  .li-chat-heading{padding:calc(12px + env(safe-area-inset-top)) 14px 12px}
  .li-chat-heading-actions .li-chat-mobile-back{display:inline-grid}.li-chat-heading-actions{gap:9px}
  .li-chat-heading-actions .li-icon-button{height:35px;width:35px}
  .li-chat-message-actions{width:min(290px,calc(100vw - 24px));gap:2px;padding:7px;border-radius:17px}
  .li-chat-message-actions>button{gap:5px;padding:7px 2px;min-height:54px;font-size:11px;line-height:1.45}
  .li-chat-message-actions>button svg{height:21px;width:21px}
}

@media(min-width:701px){.li-chat-message-actions{gap:4px;overflow-y:auto;max-height:calc(100dvh - 24px);padding-block:8px}.li-chat-message-actions>button{flex-shrink:0}.li-chat-message-actions>button.is-danger{margin-top:8px;padding-top:14px;border-radius:10px;border-top:0;position:relative}.li-chat-message-actions>button.is-danger::before{content:'';position:absolute;left:0;right:0;top:-6px;height:1px;background:#efdce6;pointer-events:none}}

/* Captions are layout siblings below the art, never clipped into its square. */
.li-chat-sent-sticker{display:flex;flex-direction:column;align-items:center;gap:5px;margin:0;max-width:144px}.li-chat-sent-sticker figcaption{font-size:12px;color:var(--li-muted);line-height:1.5;text-align:center;overflow-wrap:anywhere;max-width:100%}
.li-chat-emoji-delete{touch-action:none!important;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.li-chat-emoji-delete.is-held{filter:brightness(.9)}
@media(max-width:700px){
  .li-chat-message-actions{display:flex;flex-direction:row;flex-wrap:nowrap;width:max-content;min-width:0;max-width:calc(100vw - 24px);gap:2px;padding:5px 6px;border-radius:15px;overflow-x:auto;box-sizing:border-box}
  .li-chat-message-actions>button{flex:0 1 auto;min-width:50px;min-height:45px;padding:5px 7px;gap:3px;font-size:11px;line-height:1.35;white-space:nowrap}
  .li-chat-message-actions>button svg{width:19px;height:19px}.li-chat-sent-sticker{max-width:125px}
}
