/* WIPYE v115 — Wipye Chat conversation screens: navy thread, white/blue bubbles, voice player,
   location cards, composer pill, selection, reactions, forward picker, reply and attach sheets.
   Presentation only; every element shown comes from existing data and features. */
#view-chat{--t-navy:#0b2552;--t-navy-deep:#081d44;--t-blue:#1668ff;--t-blue-deep:#0a55e6;--t-ink:#0f2141;--t-muted:#6a7d97;--t-line:#e5ecf6;--t-soft:#eef4ff;--t-wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 30' preserveAspectRatio='none'%3E%3Crect x='0.5' y='6.0' width='3' height='18' rx='1.5'/%3E%3Crect x='5.5' y='6.0' width='3' height='18' rx='1.5'/%3E%3Crect x='10.5' y='8.0' width='3' height='14' rx='1.5'/%3E%3Crect x='15.5' y='5.0' width='3' height='20' rx='1.5'/%3E%3Crect x='20.5' y='5.5' width='3' height='19' rx='1.5'/%3E%3Crect x='25.5' y='11.0' width='3' height='8' rx='1.5'/%3E%3Crect x='30.5' y='10.5' width='3' height='9' rx='1.5'/%3E%3Crect x='35.5' y='8.0' width='3' height='14' rx='1.5'/%3E%3Crect x='40.5' y='11.0' width='3' height='8' rx='1.5'/%3E%3Crect x='45.5' y='9.5' width='3' height='11' rx='1.5'/%3E%3Crect x='50.5' y='4.0' width='3' height='22' rx='1.5'/%3E%3Crect x='55.5' y='5.5' width='3' height='19' rx='1.5'/%3E%3Crect x='60.5' y='8.5' width='3' height='13' rx='1.5'/%3E%3Crect x='65.5' y='6.0' width='3' height='18' rx='1.5'/%3E%3Crect x='70.5' y='7.5' width='3' height='15' rx='1.5'/%3E%3Crect x='75.5' y='12.5' width='3' height='5' rx='1.5'/%3E%3Crect x='80.5' y='10.5' width='3' height='9' rx='1.5'/%3E%3Crect x='85.5' y='7.0' width='3' height='16' rx='1.5'/%3E%3Crect x='90.5' y='9.5' width='3' height='11' rx='1.5'/%3E%3Crect x='95.5' y='7.5' width='3' height='15' rx='1.5'/%3E%3Crect x='100.5' y='3.0' width='3' height='24' rx='1.5'/%3E%3Crect x='105.5' y='6.0' width='3' height='18' rx='1.5'/%3E%3Crect x='110.5' y='9.5' width='3' height='11' rx='1.5'/%3E%3Crect x='115.5' y='7.5' width='3' height='15' rx='1.5'/%3E%3Crect x='120.5' y='9.0' width='3' height='12' rx='1.5'/%3E%3Crect x='125.5' y='13.0' width='3' height='4' rx='1.5'/%3E%3Crect x='130.5' y='9.0' width='3' height='12' rx='1.5'/%3E%3Crect x='135.5' y='5.5' width='3' height='19' rx='1.5'/%3E%3Crect x='140.5' y='8.0' width='3' height='14' rx='1.5'/%3E%3Crect x='145.5' y='6.5' width='3' height='17' rx='1.5'/%3E%3Crect x='150.5' y='3.5' width='3' height='23' rx='1.5'/%3E%3Crect x='155.5' y='8.0' width='3' height='14' rx='1.5'/%3E%3Crect x='160.5' y='11.0' width='3' height='8' rx='1.5'/%3E%3Crect x='165.5' y='8.5' width='3' height='13' rx='1.5'/%3E%3Crect x='170.5' y='9.5' width='3' height='11' rx='1.5'/%3E%3Crect x='175.5' y='12.0' width='3' height='6' rx='1.5'/%3E%3C/svg%3E")}

/* Header in a thread */
#view-chat:has(#chatConversation:not([hidden])) .wc-header{background:var(--t-navy);color:#fff;border-bottom:1px solid #ffffff14;box-shadow:none;min-height:74px;padding:calc(10px + env(safe-area-inset-top)) 8px 10px;gap:4px}
#view-chat:has(#chatConversation:not([hidden])) .wc-header .wc-icon{color:#fff;width:42px;min-width:38px}
#view-chat:has(#chatConversation:not([hidden])) .wc-header .wc-icon:hover{background:#ffffff16!important}
#view-chat:has(#chatConversation:not([hidden])) .wc-header .wc-title h1{color:#fff;font-size:19px!important;font-weight:700;letter-spacing:-.2px}
#view-chat:has(#chatConversation:not([hidden])) .wc-header .wc-title small{color:#c7d6ef;font-size:13px;margin-top:2px}
#view-chat:has(#chatConversation:not([hidden])) .wc-header-avatar{position:relative;min-width:50px;margin:0 4px 0 0}
#view-chat:has(#chatConversation:not([hidden])) .wc-header-avatar .wc-avatar{width:46px;height:46px;min-width:46px;font-size:18px;border:2px solid #ffffff38;background:#dfeaff;color:#0a4fc4}
#view-chat .wc-header[data-presence=online] .wc-header-avatar::after{content:'';position:absolute;right:3px;bottom:5px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--t-navy)}

/* Selection mode header + floating reaction bar */
#view-chat .wc-selection{background:var(--t-navy);color:#fff;border-bottom:1px solid #ffffff14;min-height:74px;padding:calc(10px + env(safe-area-inset-top)) 6px 10px;gap:2px}
#view-chat .wc-selection strong{font-size:18px;font-weight:600;letter-spacing:-.2px;margin-left:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-chat .wc-selection .wc-icon{color:#fff;width:42px;min-width:36px;font-size:22px!important}
#view-chat .wc-selection .wc-icon:hover{background:#ffffff16!important}
#view-chat .wc-reaction-picker{position:absolute;top:calc(86px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);justify-content:center;gap:2px;padding:6px 8px;border-radius:999px;background:#fff;box-shadow:0 12px 32px #03133466,0 1px 0 #ffffff;z-index:6}
#view-chat .wc-reaction-picker .wc-react{background:transparent;min-width:40px;width:40px;height:40px;font-size:25px!important;padding:0;border-radius:50%;transition:transform .12s}
#view-chat .wc-reaction-picker .wc-react:hover{transform:scale(1.15);background:#f1f5fc}
#view-chat .wc-reaction-picker .wc-react:last-child{background:#edf2fa;color:#2459c4;font-size:22px!important;margin-left:2px}

/* Conversation surface */
#view-chat:has(#chatConversation:not([hidden])) .wc-conversation{background:var(--t-navy-deep)}
#view-chat .wc-messages{padding:14px 16px 18px}
#view-chat .wc-messages #chatMessages{gap:7px}
#view-chat .wc-banner:not(:empty){background:#0f2d5e;color:#dbe6f8;border-bottom:1px solid #ffffff12}
#view-chat .wc-thread-translation{position:absolute;top:10px;left:0;right:0;display:flex;justify-content:center;padding:0 16px;z-index:2;pointer-events:none}
#view-chat .wc-banner:not(:empty)~.wc-thread-translation{position:static;padding:8px 16px 0}
#view-chat .wc-conversation:has(>.wc-banner:empty~.wc-thread-translation:not([hidden])) .wc-messages{padding-top:58px}
#view-chat .wc-thread-translation-pill{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;max-width:100%;min-height:38px;padding:7px 15px 7px 12px;border-radius:999px;background:#13336be6;border:1px solid #ffffff30!important;color:#e8f0ff;font-size:13px!important;font-weight:500;box-shadow:0 6px 18px #00102a40}
#view-chat .wc-thread-translation-pill::before{content:'';width:18px;height:18px;flex:0 0 18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h10M8 3v2m3 0c-1 4-4 8-8 10m3-6c1 2 3 4 6 5'/%3E%3Cpath d='m12 21 4.5-10L21 21m-7.5-3h6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h10M8 3v2m3 0c-1 4-4 8-8 10m3-6c1 2 3 4 6 5'/%3E%3Cpath d='m12 21 4.5-10L21 21m-7.5-3h6'/%3E%3C/svg%3E") center/contain no-repeat}
#view-chat .wc-thread-translation-pill span,#view-chat .wc-thread-translation-pill strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-chat .wc-thread-translation-pill strong{font-weight:600;color:#fff}
#view-chat .wc-thread-translation-pill strong::before{content:'⇄';margin-right:7px;opacity:.75;font-weight:400}
#view-chat:not([data-theme=mint]) .wc-date{background:#ffffff1c;color:#e3ecfb;border:1px solid #ffffff26;box-shadow:none;font-size:12px;font-weight:500;padding:5px 15px;border-radius:999px;margin:10px auto 12px}

/* Bubbles */
#view-chat .wc-bubble{background:#fff;color:var(--t-ink);border:0;border-radius:20px 20px 20px 6px;box-shadow:0 2px 6px #00112e2e;padding:9px 13px 7px;font-size:15.5px;line-height:1.4;max-width:84%}
#view-chat:not([data-theme=mint]) .wc-bubble.mine{background:linear-gradient(160deg,#2b7cff,#0b5cf0);color:#fff;border:0;border-radius:20px 20px 6px 20px;box-shadow:0 3px 10px #0636a044}
#view-chat .wc-bubble::after{content:'';position:absolute;bottom:0;left:-5px;width:12px;height:13px;background:inherit;clip-path:path('M12 0C12 7 9 11 0 13H12Z');pointer-events:none}
#view-chat .wc-bubble.mine::after{left:auto;right:-5px;clip-path:path('M0 0C0 7 3 11 12 13H0Z')}
#view-chat .wc-bubble.has-visual::after,#view-chat .wc-bubble.wc-album::after{display:none}
#view-chat .wc-bubble:not(.has-media):not(:has(.wc-message-card)){display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:12px}
#view-chat .wc-bubble:not(.has-media):not(:has(.wc-message-card))>*{flex:1 1 100%;min-width:0}
#view-chat .wc-bubble:not(.has-media):not(:has(.wc-message-card))>.wc-message-text{flex:0 1 auto}
#view-chat .wc-bubble:not(.has-media):not(:has(.wc-message-card))>.wc-meta{flex:0 0 auto;margin-left:auto}
#view-chat .wc-bubble .wc-message-text{font-size:15.5px;line-height:1.42}
#view-chat .wc-bubble .wc-meta{color:#7a8ca5;font-size:11px;gap:4px;margin-top:2px}
#view-chat:not([data-theme=mint]) .wc-bubble.mine .wc-meta{color:#d7e5ff}
#view-chat:not([data-theme=mint]) .wc-bubble.mine .wc-meta .read{color:#fff}
#view-chat .wc-meta .read{color:#1668ff}
#view-chat:not([data-theme=mint]) .wc-bubble.mine .wc-message-text a{color:#fff}
#view-chat .wc-bubble .wc-author{color:#1d63d8;font-size:12px}
#view-chat .wc-quote{border-left:3px solid #1fb3ff;background:#eef4ff;color:#3c5a80;border-radius:10px;padding:6px 10px;font-size:13px;margin-bottom:6px}
#view-chat:not([data-theme=mint]) .mine .wc-quote{background:#ffffff26;border-left-color:#bfe3ff;color:#eef5ff}
#view-chat .wc-forwarded{display:flex;align-items:center;gap:4px;color:#7a8ca5;font-size:11px;font-style:italic}
#view-chat:not([data-theme=mint]) .mine .wc-forwarded{color:#d7e5ff}
#view-chat .wc-forwarded svg{width:13px;height:13px}
#view-chat .wc-message-menu{color:inherit!important;opacity:.5;font-size:15px!important;min-width:20px}
@media (hover:hover){#view-chat .wc-bubble .wc-message-menu{opacity:0;transition:opacity .15s}#view-chat .wc-bubble:hover .wc-message-menu,#view-chat .wc-message-menu:focus-visible{opacity:.7}}
#view-chat .wc-quick-forward{background:#ffffff1f;color:#dbe7fb;box-shadow:none;border:1px solid #ffffff26!important}
#view-chat .wc-bubble.selected{outline:2px solid #5d9bff;outline-offset:1px;box-shadow:0 0 0 6px #5d9bff2e}
#view-chat:not([data-theme=mint]) .wc-bubble.mine.selected{background:linear-gradient(160deg,#4a8fff,#2a74ff)}
#view-chat .wc-bubble:not(.mine).selected{margin-left:34px}
#view-chat .wc-bubble.selected::before{content:'';position:absolute;left:-36px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:50%;background:#1668ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;box-shadow:0 0 0 2px #fff}
#view-chat .wc-reactions{position:relative;margin:4px 0 -2px;gap:4px}
#view-chat .wc-reactions button{background:#fff;color:var(--t-ink);border:1px solid #dbe5f3!important;border-radius:999px;padding:3px 9px;font-size:13px!important;box-shadow:0 2px 6px #00112e22}
#view-chat .wc-reactions .mine{border-color:#1668ff!important;background:#eef4ff}

/* Voice messages */
#view-chat .wc-bubble.has-media:has(.wc-voice,.is-audio){width:min(300px,84%);padding:8px 10px 6px}
#view-chat .wc-loaded-media.wc-voice{display:flex;align-items:center;gap:10px;overflow:visible;border-radius:0;padding:2px 0}
#view-chat .wc-voice-audio{display:none!important}
#view-chat .wc-voice-play{flex:0 0 44px;width:44px;height:44px;min-height:44px;border-radius:50%;padding:0!important;display:grid;place-items:center;background:var(--t-blue);color:#fff;box-shadow:0 4px 12px #1668ff44}
#view-chat .wc-voice-play svg{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:1.6}
#view-chat .wc-voice.is-playing .wc-voice-play svg{fill:none;stroke-width:3}
#view-chat:not([data-theme=mint]) .mine .wc-voice-play{background:#fff;color:var(--t-blue);box-shadow:none}
#view-chat .wc-voice-seek{flex:1 1 auto;min-width:60px;height:30px;margin:0!important;padding:0!important;border:0!important;-webkit-appearance:none;appearance:none;background:linear-gradient(90deg,var(--t-blue) var(--wc-voice-progress,0%),#a8bad3 0)!important;-webkit-mask:var(--t-wave) center/100% 100% no-repeat;mask:var(--t-wave) center/100% 100% no-repeat;cursor:pointer;box-shadow:none!important;border-radius:0!important}
#view-chat:not([data-theme=mint]) .mine .wc-voice-seek{background:linear-gradient(90deg,#fff var(--wc-voice-progress,0%),#ffffff7a 0)!important}
#view-chat .wc-voice-seek::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:3px;height:30px;background:transparent;border:0}
#view-chat .wc-voice-seek::-moz-range-thumb{width:3px;height:30px;background:transparent;border:0}
#view-chat .wc-voice-seek:focus-visible{outline:2px solid #1fb3ff;outline-offset:3px}
#view-chat .wc-voice .wc-duration{flex:0 0 auto;min-width:32px;font-size:12px;color:var(--t-muted);font-variant-numeric:tabular-nums}
#view-chat:not([data-theme=mint]) .mine .wc-voice .wc-duration{color:#e1ecff}
#view-chat .wc-media-placeholder.is-audio{min-height:52px;flex-direction:row;justify-content:flex-start;gap:12px;background:transparent;padding:4px 2px;color:var(--t-muted)}
#view-chat .wc-media-placeholder.is-audio>span{font-size:14px}

/* Automatic translation inside a message */
#view-chat .wc-translation{margin-top:9px;padding-top:9px;border-top:1px solid var(--t-line);color:var(--t-ink);font-size:15px;flex-basis:100%}
#view-chat .wc-translation>small:first-child{display:flex;align-items:center;gap:7px;margin:0 0 8px;padding:7px 10px;border-radius:12px;background:var(--t-soft);color:#1d3f78;font-size:12px;font-weight:600}
#view-chat .wc-translation>small:first-child::before{content:'';width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:var(--t-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h10M8 3v2m3 0c-1 4-4 8-8 10m3-6c1 2 3 4 6 5'/%3E%3Cpath d='m12 21 4.5-10L21 21m-7.5-3h6'/%3E%3C/svg%3E") center/13px no-repeat}
#view-chat .wc-translation>div:not(.wc-translation-original){font-size:15.5px;line-height:1.42;margin:0 2px 8px}
#view-chat .wc-translation-action{display:inline-flex;align-items:center;min-height:36px;margin:2px 6px 4px 0;padding:7px 12px!important;border-radius:12px;border:1px solid #c8d9f7!important;background:#fff;color:#0b58e0;font-size:13px!important;font-weight:600}
#view-chat .wc-translation-action:hover{background:var(--t-soft)}
#view-chat .wc-translation-original{margin:6px 0 2px;padding:8px 12px;border:1px solid var(--t-line);border-inline-start:3px solid #8db8f0;border-radius:12px;background:#f7f9fd;color:#2b3f5e;font-size:14px}
#view-chat .wc-translation audio{margin-top:6px}
#view-chat[data-theme=night] .wc-translation{color:#edf3fc;border-top-color:#ffffff24}
#view-chat[data-theme=night] .wc-translation-original{background:#22344e;border-color:#ffffff1f;color:#dbe6f6}
#view-chat[data-theme=night] .wc-voice .wc-duration,#view-chat[data-theme=night] .wc-bubble .wc-meta{color:#b9c7da}

/* Location cards */
#view-chat .wc-bubble:has(.wc-location-card){width:min(304px,86%);padding:5px 5px 6px}
#view-chat .wc-message-card.wc-location-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 6px;width:100%;min-width:0;max-width:none;padding:0 0 8px;border-radius:16px;overflow:hidden;background:#fff;color:var(--t-ink)}
#view-chat .wc-location-card>*{grid-column:1/-1;min-width:0}
#view-chat .wc-location-card .wc-location-preview{height:150px;min-height:0;aspect-ratio:auto;border-radius:14px 14px 0 0;overflow:hidden;margin:0 0 6px}
#view-chat .wc-location-card .wc-location-preview>*{min-height:0!important;height:100%!important}
#view-chat .wc-location-card>strong{padding:2px 12px 0;font-size:15px;font-weight:650;color:var(--t-ink)}
#view-chat .wc-location-card>small{padding:0 12px;font-size:12px;color:var(--t-muted)}
#view-chat .wc-location-card>.wc-card-action{grid-column:auto;display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;margin:8px 0 0;padding:8px 6px!important;border-radius:12px;border:0!important;background:var(--t-soft);color:#0b58e0!important;font-size:13.5px!important;font-weight:600;text-decoration:none;text-align:center}
#view-chat .wc-location-card>button.wc-card-action:first-of-type{margin-left:8px}
#view-chat .wc-location-card>.wc-location-navigate{margin-right:8px;background:linear-gradient(160deg,#2b7cff,#0b5cf0);color:#fff!important}
#view-chat .wc-location-card>.wc-location-navigate~.wc-card-action{grid-column:1/-1;margin:6px 8px 0}
#view-chat .wc-location-card>button.wc-card-action:first-of-type::before{content:'';width:17px;height:17px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3Z M9 3v15 M15 6v15'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3Z M9 3v15 M15 6v15'/%3E%3C/svg%3E") center/contain no-repeat}
#view-chat .wc-location-card>.wc-location-navigate::before{content:'';width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3 3 10.5l7.5 3 3 7.5Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3 3 10.5l7.5 3 3 7.5Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}
#view-chat .wc-bubble:has(.wc-location-card)>.wc-meta{padding:4px 8px 0}
#view-chat .wc-message-card:not(.wc-location-card):not(.wc-sticker-card){border-radius:14px}

/* Photos and albums */
#view-chat .wc-bubble.wc-album,#view-chat .wc-bubble.has-visual{padding:4px 4px 6px;border-radius:18px}
#view-chat .wc-album-grid{border-radius:15px}
#view-chat .wc-bubble.has-visual .wc-loaded-media{border-radius:15px}
#view-chat .wc-album .wc-album-label{color:var(--t-muted)}
#view-chat:not([data-theme=mint]) .mine.wc-album .wc-album-label{color:#dbe7ff}

/* Composer: one white pill and a round blue voice/send button */
#view-chat:has(#chatConversation:not([hidden])) .wc-compose{position:relative;align-items:flex-end;gap:0;padding:10px 10px calc(10px + env(safe-area-inset-bottom));background:var(--t-navy-deep);border-top:0}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose::before{content:'';position:absolute;left:10px;right:72px;top:10px;bottom:calc(10px + env(safe-area-inset-bottom));background:#fff;border-radius:27px;box-shadow:0 6px 18px #00102a55;pointer-events:none}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose>*{position:relative;z-index:1}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose textarea{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;min-height:54px;padding:15px 6px!important;color:var(--t-ink);font-size:16px!important}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose textarea:focus{outline:none;box-shadow:none!important}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose:focus-within::before{box-shadow:0 0 0 3px #4f8dff66,0 6px 18px #00102a55}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose .wc-icon{height:54px;width:40px;min-width:36px;color:#5a6d88;font-size:24px!important}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose .wc-icon:hover{background:transparent!important;color:var(--t-blue)}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose #emojiToggle{margin-left:6px;font-size:26px!important}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose #chatVoice,#view-chat:has(#chatConversation:not([hidden])) .wc-compose #sendMessage{width:54px;min-width:54px;height:54px;margin-left:auto;padding:0!important;border-radius:50%;display:grid;place-items:center;background:linear-gradient(160deg,#2b7cff,#0b5cf0)!important;color:#fff!important;box-shadow:0 6px 16px #0b5cf066;font-size:22px!important}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose textarea~#chatVoice,#view-chat:has(#chatConversation:not([hidden])) .wc-compose textarea~#sendMessage{margin-left:18px}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose #chatVoice.danger{background:#e5484d!important;box-shadow:0 6px 16px #e5484d66}
#view-chat:has(#chatConversation:not([hidden])) .wc-compose #chatVoice svg,#view-chat:has(#chatConversation:not([hidden])) .wc-compose #sendMessage svg{width:24px;height:24px}

/* Reply preview, drafts and the recorder sit on the same navy band as the composer */
#view-chat .wc-reply:not([hidden]){display:flex;align-items:center;gap:8px;margin:0;padding:10px 10px 0;background:var(--t-navy-deep);border:0}
#view-chat .wc-reply-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-radius:14px;border-left:4px solid #1fb3ff;background:#fff;box-shadow:0 4px 12px #00102a40}
#view-chat .wc-reply-body strong{color:#0b58e0;font-size:13.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-chat .wc-reply-text{display:flex;align-items:center;gap:6px;color:var(--t-muted);font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-chat .wc-reply-text.is-voice::before{content:'';width:15px;height:15px;flex:0 0 15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 4a3 3 0 0 1 6 0v7a3 3 0 0 1-6 0Z M5 10v1a7 7 0 0 0 14 0v-1 M12 18v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 4a3 3 0 0 1 6 0v7a3 3 0 0 1-6 0Z M5 10v1a7 7 0 0 0 14 0v-1 M12 18v4'/%3E%3C/svg%3E") center/contain no-repeat}
#view-chat .wc-reply>.wc-icon{flex:0 0 40px;width:40px;height:40px;color:#dbe7fb;font-size:18px!important;background:#ffffff14}
#view-chat:has(#chatConversation:not([hidden])) .wc-attachment:not([hidden]){margin:10px 10px 0;border-radius:16px;border:0;box-shadow:0 4px 12px #00102a40}
#view-chat:has(#chatConversation:not([hidden])) .wc-conversation>.wc-attachment:not([hidden])+.wc-compose,#view-chat .wc-reply:not([hidden])~.wc-compose{padding-top:8px}
#view-chat:has(#chatConversation:not([hidden])) .wc-recorder:not([hidden]){margin:10px 10px 0;border-radius:18px;background:#fff;border:0;box-shadow:0 4px 12px #00102a40}

/* Sheets opened from a thread (phone width): full-width bottom sheets with a handle */
@media (max-width:699px){
 #view-chat:has(#chatConversation:not([hidden])) #chatModal:is(:not([data-layout]),[data-layout=attachments]){padding:0}
 #view-chat:has(#chatConversation:not([hidden])) #chatModal:is(:not([data-layout]),[data-layout=attachments]) .wc-dialog{border-radius:28px 28px 0 0;border:0;max-height:90%;padding-bottom:env(safe-area-inset-bottom)}
 #view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-dialog::before{content:'';width:40px;height:5px;flex:0 0 5px;background:#c9d4e3;border-radius:5px;margin:10px auto 0}
}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:is(:not([data-layout]),[data-layout=attachments]) .wc-dialog>header{padding:14px 18px 8px}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:is(:not([data-layout]),[data-layout=attachments]) .wc-dialog>header h2{font-size:20px!important;font-weight:700;color:var(--t-ink);letter-spacing:-.3px}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:is(:not([data-layout]),[data-layout=attachments]) #closeChatModal{color:var(--t-ink);background:transparent}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) #chatModalBody{padding:6px 16px 20px}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-option{min-height:56px;gap:14px;padding:12px 14px;margin:0 0 8px;border:1px solid var(--t-line)!important;border-radius:16px;background:#fff;color:var(--t-ink);font-size:15.5px!important;font-weight:500}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-option:hover{background:#f6f9ff}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-option::after{content:'';flex:0 0 8px;width:8px;height:8px;margin-left:auto;margin-right:4px;border-top:2px solid #98a8bf;border-right:2px solid #98a8bf;transform:rotate(45deg)}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-option-icon{width:28px;height:28px;background:transparent;border-radius:0;color:#1d4fa8}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-option-icon svg{width:23px;height:23px}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) .wc-option:is([data-icon=trash],[data-icon=block],[data-icon=report]) .wc-option-icon{color:#e5484d}
#view-chat:has(#chatConversation:not([hidden])) #chatModal:not([data-layout]) #chatModalBody>p{color:var(--t-muted);font-size:14px;line-height:1.45}

/* "Zgjidh reagimin" sheet */
#view-chat .wc-reaction-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:4px 0 8px}
#view-chat .wc-reaction-grid .wc-react{background:transparent;width:100%;min-width:0;height:50px;font-size:30px!important;border-radius:14px}
#view-chat .wc-reaction-grid .wc-react:hover{background:#f1f5fc}

/* "Përcill te…" picker */
#view-chat #chatModalBody:has(.wc-forward-footer){padding-bottom:0}
#view-chat #chatModalBody:has(.wc-forward-footer)>input[type=search]{width:100%;min-height:50px;margin:2px 0 8px;padding:12px 14px 12px 44px!important;border:0!important;border-radius:16px!important;background:#f0f4fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2350637d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 15l6 6 M10 3a7 7 0 1 1 0 14 7 7 0 0 1 0-14'/%3E%3C/svg%3E") 14px center/20px no-repeat!important;font-size:15px!important;box-shadow:none!important}
#view-chat #chatModalBody:has(.wc-forward-footer) .wc-row{min-height:70px;padding:10px 4px;gap:14px;background:#fff;border-top:0!important;border-bottom:1px solid #eef2f8!important}
#view-chat #chatModalBody:has(.wc-forward-footer) .wc-row .wc-avatar{width:48px;height:48px;min-width:48px;font-size:19px}
#view-chat #chatModalBody:has(.wc-forward-footer) .wc-row>span:last-child:not(.wc-avatar){flex:0 0 26px;width:26px;height:26px;border-radius:50%;border:2px solid #b4c3d7;font-size:0;color:transparent;overflow:hidden}
#view-chat #chatModalBody:has(.wc-forward-footer) .wc-row[aria-pressed=true]{background:#f5f9ff}
#view-chat #chatModalBody:has(.wc-forward-footer) .wc-row[aria-pressed=true]>span:last-child:not(.wc-avatar){border-color:var(--t-blue);background:var(--t-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/15px no-repeat}
#view-chat .wc-forward-footer{position:sticky;bottom:0;display:flex;align-items:center;gap:12px;margin:8px -16px 0;padding:14px 16px calc(16px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--t-line);z-index:1}
#view-chat .wc-forward-count{flex:1;min-width:0;color:var(--t-ink);font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-chat .wc-forward-footer>button{flex:0 1 200px;min-height:50px;margin:0;border-radius:14px;font-size:16px!important;font-weight:650}
#view-chat .wc-forward-footer[data-count="0"]>button{opacity:.55}

/* "Bashkëngjit" sheet */
#view-chat [data-layout=attachments] #chatModalBody{padding:4px 16px 18px}
#view-chat [data-layout=attachments] .wc-attach-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:6px 0 14px}
#view-chat [data-layout=attachments] .wc-attach-item{min-height:110px;justify-content:center;gap:10px;padding:14px 6px 12px;border:1px solid var(--t-line)!important;border-radius:18px;background:#fff;box-shadow:0 2px 8px #1a3d7008}
#view-chat [data-layout=attachments] .wc-attach-item:hover{background:#f7faff;border-color:#cfdcf0!important}
#view-chat [data-layout=attachments] .wc-attach-item>span{width:54px;height:54px;border:0;border-radius:16px;background:#e8f0ff;color:#1668ff;box-shadow:none}
#view-chat [data-layout=attachments] .wc-attach-item svg{width:27px;height:27px;stroke-width:2}
#view-chat [data-layout=attachments] .wc-attach-item small{font-size:13px;font-weight:500;color:var(--t-ink);line-height:1.25}
#view-chat [data-layout=attachments] .wc-attach-item:first-child>span{background:#efe9ff;color:#7044e6}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=gallery]:not(:first-child)>span{background:#efe9ff;color:#8b4ce6}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=camera]>span{background:#e3f0ff;color:#0a6cf0}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=location]>span{background:#dff6ec;color:#0d9b5f}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=contact]>span{background:#ffeedd;color:#ea7a12}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=document]>span{background:#e3edff;color:#2563eb}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=poll]>span{background:#ffe6f0;color:#e2366f}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=event]>span{background:#f1e8ff;color:#7c3aed}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=ai]>span{background:#e6eeff;color:#3b5bdb}
#view-chat [data-layout=attachments] #chatModalBody>small.wc-help{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;border-radius:14px;background:#f2f5fa;color:#4f6280;font-size:13px}
#view-chat [data-layout=attachments] #chatModalBody>small.wc-help::before{content:'i';flex:0 0 20px;width:20px;height:20px;border:1.6px solid currentColor;border-radius:50%;display:grid;place-items:center;font:600 12px/1 serif}
#view-chat [data-layout=attachments] .wc-recent-media{margin:16px 0 0;border-top:0;padding-top:0}
#view-chat [data-layout=attachments] .wc-recent-heading strong{color:var(--t-ink);font-size:16px;font-weight:650}
#view-chat [data-layout=attachments] .wc-recent-browse{font-size:14px;font-weight:600}
#view-chat [data-layout=attachments] .wc-recent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#view-chat [data-layout=attachments] .wc-recent-tile{border-radius:14px}
#view-chat [data-layout=attachments] .wc-send-batch{width:100%;min-height:52px;border-radius:16px;font-size:16px!important}

@media (max-width:360px){
 #view-chat .wc-messages{padding-left:12px;padding-right:12px}
 #view-chat:has(#chatConversation:not([hidden])) .wc-compose .wc-icon{width:32px;min-width:30px}
 #view-chat [data-layout=attachments] .wc-attach-item{min-height:96px}
}
@media (min-width:700px){
 #view-chat .wc-messages{padding-left:28px;padding-right:28px}
 #view-chat .wc-bubble{max-width:72%}
}

/* WIPYE_CHAT_V122 — WhatsApp-like thread on the Wipye navy wallpaper.
   Own messages: flat Wipye blue, right. Received: white, left. Compact padding, small tail, time + ticks inside.
   No backdrop blur and only a hairline shadow per bubble (cheap on phones). */
#view-chat .wc-messages #chatMessages{gap:3px}
#view-chat .wc-bubble{max-width:80%;padding:6px 9px 5px;border-radius:12px 12px 12px 4px;box-shadow:0 1px .5px #00000040;font-size:15px;line-height:1.38;margin-top:3px}
#view-chat .wc-bubble.mine,#view-chat:not([data-theme=mint]) .wc-bubble.mine{background:#1f6bff;color:#fff;border-radius:12px 12px 4px 12px;box-shadow:0 1px .5px #00000040}
#view-chat .wc-bubble::after{left:-4px;width:9px;height:10px;clip-path:path('M9 0C9 5 7 8 0 10H9Z')}
#view-chat .wc-bubble.mine::after{right:-4px;clip-path:path('M0 0C0 5 2 8 9 10H0Z')}
#view-chat .wc-bubble .wc-message-text{font-size:15px;line-height:1.38}
#view-chat .wc-bubble:not(.has-media):not(:has(.wc-message-card)){column-gap:8px}
#view-chat .wc-bubble .wc-meta{font-size:11px;gap:3px;margin-top:1px;line-height:16px;color:#7a8ca5}
#view-chat:not([data-theme=mint]) .wc-bubble.mine .wc-meta{color:#d6e4ff}
#view-chat .wc-meta .wc-tick{font-size:11.5px;letter-spacing:-3px;padding-right:3px}
#view-chat:not([data-theme=mint]) .wc-bubble.mine .wc-meta .read{color:#8ff0ff}
#view-chat .wc-meta .wc-meta-star{width:11px;height:11px;fill:currentColor}
#view-chat .wc-meta .wc-edited{font-style:italic}
@media (hover:none){#view-chat .wc-bubble .wc-message-menu{display:none}}
/* Selection: a light band across the row instead of a heavy outline, like WhatsApp. */
#view-chat .wc-bubble.selected,#view-chat:not([data-theme=mint]) .wc-bubble.mine.selected{outline:0;box-shadow:0 0 0 100vmax #4f8dff38;clip-path:inset(-3px -100vmax);margin-left:0}
#view-chat:not([data-theme=mint]) .wc-bubble.mine.selected{background:#1f6bff}
#view-chat .wc-bubble:not(.mine).selected{margin-left:0}
#view-chat .wc-bubble.selected::before{content:none}
#view-chat .wc-reaction-picker{box-shadow:0 4px 14px #00102a55;padding:4px 6px;transition:none}
#view-chat .wc-reaction-picker .wc-react{width:38px;min-width:38px;height:38px;font-size:24px!important}
#view-chat #starSelected.is-on svg{fill:currentColor}
/* Quotes: author + one line, tappable. */
#view-chat .wc-quote{display:flex;flex-direction:column;gap:1px;margin:0 0 5px;padding:5px 9px;border-radius:8px;border-left:4px solid #1fb3ff;background:#0b25520d;color:#3c5a80;font-size:13px;cursor:pointer;max-width:100%}
#view-chat:not([data-theme=mint]) .mine .wc-quote{background:#00000024;border-left-color:#bfe3ff;color:#eef5ff}
#view-chat .wc-quote-author{font-weight:650;font-size:12.5px;color:#1d63d8}
#view-chat .mine .wc-quote-author{color:#cfe6ff}
#view-chat .wc-quote-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view-chat .wc-quote-text.is-voice::before{content:'🎤 '}
#view-chat .wc-bubble:not(.has-media):not(:has(.wc-message-card))>.wc-quote{flex:1 1 100%}
/* Deleted for everyone */
#view-chat .wc-bubble.is-deleted .wc-deleted-text{display:inline-flex;align-items:center;gap:6px;font-style:italic;color:#6a7d97}
#view-chat:not([data-theme=mint]) .wc-bubble.mine.is-deleted .wc-deleted-text{color:#dbe7ff}
#view-chat .wc-deleted-text svg{width:15px;height:15px;flex:0 0 15px}
/* Voice notes: compact player, no file name. */
#view-chat .wc-bubble.has-media:has(.wc-voice,.is-audio){width:min(280px,80%);padding:5px 8px 4px}
#view-chat .wc-voice-play{flex:0 0 38px;width:38px;height:38px;min-height:38px;box-shadow:none}
#view-chat .wc-voice-seek{height:26px}
#view-chat .wc-bubble.has-voice>.wc-meta{margin-top:-4px}
#view-chat .wc-media-placeholder.is-audio{min-height:44px}
/* Photos and videos: time over the image when there is no caption; video duration bottom-left. */
#view-chat .wc-bubble.has-visual{padding:3px}
#view-chat .wc-bubble.has-visual.no-caption>.wc-meta{position:absolute;right:8px;bottom:8px;margin:0;padding:1px 7px;border-radius:9px;background:#00000066;color:#fff!important;z-index:1}
#view-chat .wc-bubble.has-visual.no-caption>.wc-meta .read{color:#8ff0ff!important}
#view-chat .wc-bubble.has-visual>.wc-message-text{padding:4px 6px 0}
#view-chat .wc-bubble.has-visual:not(.no-caption)>.wc-meta{padding:0 6px 2px}
#view-chat .wc-compact-preview.is-video{position:relative}
#view-chat .wc-compact-preview.is-video .wc-video-play{width:52px;height:52px;background:#00000080;border:0;box-shadow:none;font-size:22px}
#view-chat .wc-compact-preview.is-video .wc-video-duration{position:absolute;left:8px;bottom:8px;right:auto;top:auto;padding:1px 7px;border-radius:9px;background:#00000066;color:#fff;font-size:11px;line-height:16px}
/* Automatic translation: one small line, the text, and small text actions. No provider names. */
#view-chat .wc-translation{margin-top:5px;padding-top:5px;border-top:1px solid #0b255214;font-size:14.5px}
#view-chat .wc-translation>small:first-child{display:block;margin:0 0 2px;padding:0;background:none;border-radius:0;color:#6a7d97;font-size:11px;font-weight:500}
#view-chat .wc-translation>small:first-child::before{content:none}
#view-chat .wc-translation>div:not(.wc-translation-original):not(.wc-translation-actions){font-size:15px;line-height:1.38;margin:0 0 2px}
#view-chat .wc-translation-actions{display:flex;flex-wrap:wrap;gap:0 14px}
#view-chat .wc-translation-action{min-height:28px;margin:0;padding:4px 0!important;border:0!important;border-radius:0;background:transparent!important;color:#0b58e0;font-size:12px!important;font-weight:600}
#view-chat .wc-translation-original{padding:5px 9px;margin:4px 0;font-size:13.5px;border-radius:8px}
#view-chat .wc-translation-note{display:block;color:#6a7d97;font-size:11px;margin-top:4px}
#view-chat .wc-translation audio{height:34px;max-width:100%}
/* Thread translation: a slim bar under the header that takes its own space (never covers messages). */
#view-chat .wc-thread-translation,#view-chat .wc-banner:not(:empty)~.wc-thread-translation{position:static;display:flex;justify-content:center;padding:4px 12px;background:var(--t-navy);border-bottom:1px solid #ffffff12;pointer-events:auto}
#view-chat .wc-thread-translation[hidden]{display:none}
#view-chat .wc-conversation:has(>.wc-banner:empty~.wc-thread-translation:not([hidden])) .wc-messages{padding-top:10px}
#view-chat .wc-thread-translation-pill{min-height:28px;padding:3px 12px 3px 9px;background:#ffffff14;border:0!important;box-shadow:none;font-size:12px!important;color:#cfdcf3}
#view-chat .wc-thread-translation-pill::before{width:15px;height:15px;flex-basis:15px}
#view-chat:not([data-theme=mint]) .wc-date{font-size:11.5px;padding:3px 12px;background:#0f2d5e;border-color:#ffffff1a;margin:8px auto}
/* Dialogs: a simple dim overlay, no blur. Delete is a small centred dialog with text actions. */
#view-chat .wc-overlay{background:#030c1c99}
#view-chat #chatModal[data-layout=confirm]{align-items:center;justify-content:center;padding:24px}
#view-chat #chatModal[data-layout=confirm] .wc-dialog{width:100%;max-width:330px;height:auto;max-height:none;border-radius:14px;border:0;padding:20px 12px 8px 22px;box-shadow:0 10px 30px #00000059}
#view-chat #chatModal[data-layout=confirm] .wc-dialog::before{content:none}
#view-chat #chatModal[data-layout=confirm] .wc-dialog>header{padding:0;margin:0 0 8px;border:0;min-height:0}
#view-chat #chatModal[data-layout=confirm] .wc-dialog>header h2{font-size:17px!important;font-weight:600;color:var(--t-ink)}
#view-chat #chatModal[data-layout=confirm] #closeChatModal{display:none}
#view-chat #chatModal[data-layout=confirm] #chatModalBody{padding:0;overflow:visible}
#view-chat #chatModal[data-layout=confirm] #chatModalBody>p{margin:0 10px 8px 0;color:var(--t-muted);font-size:14px;line-height:1.4}
#view-chat .wc-confirm-actions{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin-top:10px}
#view-chat .wc-text-action{min-height:42px;padding:8px 12px!important;border:0!important;border-radius:20px;background:transparent!important;color:#0b58e0!important;font-size:15px!important;font-weight:600;box-shadow:none}
#view-chat .wc-text-action:hover{background:#eef4ff!important}
#view-chat .wc-text-action.is-danger{color:#0b58e0!important}
/* Undo snackbar for "Fshi për mua". */
#view-chat .wc-snackbar{position:absolute;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:5;display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 8px 6px 16px;border-radius:10px;background:#1d2a3c;color:#f1f5fb;font-size:14px;box-shadow:0 4px 14px #00000059}
#view-chat .wc-snackbar[hidden]{display:none}
#view-chat .wc-snackbar>span{flex:1;min-width:0}
#view-chat .wc-snackbar-action{min-height:36px;padding:6px 10px!important;border:0!important;background:transparent!important;color:#6cc4ff!important;font-size:14px!important;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
/* Attach sheet: round coloured icons in a 4-column grid. */
#view-chat [data-layout=attachments] .wc-attach-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 6px;padding:10px 0 16px}
#view-chat [data-layout=attachments] .wc-attach-item{min-height:0;gap:8px;padding:2px 0!important;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none}
#view-chat [data-layout=attachments] .wc-attach-item:hover{background:#f3f6fb!important}
#view-chat [data-layout=attachments] .wc-attach-item>span,#view-chat [data-layout=attachments] .wc-attach-item:first-child>span{width:54px;height:54px;border-radius:50%;color:#fff;background:#5b6b82}
#view-chat [data-layout=attachments] .wc-attach-item svg{width:25px;height:25px}
#view-chat [data-layout=attachments] .wc-attach-item small{font-size:12.5px;color:#33425e}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=gallery]>span{background:#8b5cf6;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=camera]>span{background:#ec407a;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=location]>span{background:#16a34a;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=contact]>span{background:#0ea5e9;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=document]>span{background:#6366f1;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=poll]>span{background:#f59e0b;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=event]>span{background:#e11d48;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=ai]>span{background:#2563eb;color:#fff}
#view-chat [data-layout=attachments] .wc-attach-item[data-kind=stickers]>span{background:#14b8a6;color:#fff}
@media (min-width:700px){#view-chat .wc-bubble{max-width:65%}}

/* v126 · View once (Një shikim): a compact WhatsApp-style pill, never a preview. */
#view-chat .wc-bubble.has-media.has-once{display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:14px;width:auto;min-width:0;max-width:80%;padding:4px 9px 5px 8px}
#view-chat .wc-bubble.has-once>.wc-once-pill{flex:0 1 auto}
#view-chat .wc-bubble.has-once>.wc-meta{flex:0 0 auto;margin-left:auto}
#view-chat .wc-bubble.has-once>.wc-message-text{flex:1 1 100%}
#view-chat .wc-once-pill{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:4px 6px 4px 2px;border:0;background:none;color:inherit;font:600 15px/1.2 inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#view-chat .wc-once-pill[aria-disabled=true]{cursor:default}
#view-chat .wc-once-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:2px dashed currentColor;font:800 12px/1 system-ui,sans-serif;flex:none}
#view-chat .wc-bubble:not(.mine) .wc-once-pill[data-state=new] .wc-once-mark{color:#1f6bff}
#view-chat .wc-once-pill[data-state=opened]{font-weight:500;opacity:.78}
#view-chat .wc-once-pill[data-state=opened] .wc-once-mark{border-style:solid;border-width:1.5px}
#view-chat .wc-once-pill[data-state=opened] .wc-once-mark svg{width:14px;height:14px}
#view-chat .wc-once-pill:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:10px}

/* v126 · Media viewer: the chat shows through while swiping down; video takes our gestures. */
#view-chat #chatModal[data-layout="media-viewer"]{background:rgba(8,10,14,var(--viewer-opacity,1))}
#view-chat #chatModal[data-layout="media-viewer"] .wc-dialog,#view-chat #chatModal[data-layout="media-viewer"] #chatModalBody,#view-chat #chatModal[data-layout="media-viewer"] .wc-dialog .wc-viewer-stage{background:transparent}
/* Phones zoom with pinch and double tap, like WhatsApp: no floating zoom buttons over the photo. */
@media (pointer:coarse){#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-controls{display:none}}
#view-chat #chatModal[data-layout="media-viewer"] video.wc-viewer-media{touch-action:none}
#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-media{backface-visibility:hidden}
#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-toolbar,#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-controls,#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-footer,#view-chat #chatModal[data-layout="media-viewer"] .wc-viewer-strip,#view-chat #chatModal[data-layout="media-viewer"] .w78-video-controls{transition:opacity .18s ease}
#view-chat #chatModal[data-layout="media-viewer"][data-zoomed=true] .wc-viewer-strip{opacity:0;pointer-events:none}
