/* Chats: conversation list, Snapchat-style conversation, per-conversation stats */
#chats-view{padding-bottom:90px}
.ch-summary{text-align:center;padding:14px 16px 6px}
.ch-big{font-size:30px;font-weight:800;color:#fff;letter-spacing:-.01em}
.ch-big span{font-size:15px;font-weight:600;color:rgba(255,255,255,.6)}
.ch-sub{color:rgba(255,255,255,.55);font-size:12.5px;margin-top:4px;line-height:1.5}
.ch-subnote{font-size:11.5px;color:rgba(255,255,255,.38);max-width:440px;margin:6px auto 0}
.ch-subnote[hidden]{display:none}
.ch-info{width:20px;height:20px;min-height:0;margin-left:7px;padding:0;border:1.5px solid rgba(255,255,255,.4);border-radius:50%;
  background:none;color:rgba(255,255,255,.65);font:italic 700 12px/1 Georgia,serif;cursor:pointer;vertical-align:5px}
.ch-info[aria-expanded="true"]{background:rgba(255,255,255,.85);color:#111;border-color:transparent}
.ch-tools{position:sticky;top:0;z-index:6;background:rgba(13,13,13,.94);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);padding:8px 14px 10px}
.ch-tools input{flex:1;background:none;border:0;outline:0;color:#fff;font:inherit;font-size:14px}
.ch-bar{display:flex;align-items:center;gap:8px}
.ch-bar .ch-qbox{flex:1;height:36px}
.ch-bar-sp{flex:1}
.ch-qbox:not([hidden])+.ch-bar-sp{display:none}
.ch-qbox[hidden]{display:none}
/* round icon buttons (search, filter / sort) and their menu */
.ch-ico{flex:none;position:relative;width:36px;height:36px;min-height:0;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;cursor:pointer}
.ch-ico svg{width:18px;height:18px}
.ch-ico[aria-expanded="true"]{background:#fff;color:#111}
.ch-ico.dot::after{content:"";position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:#FFFC00}
.ch-pop{position:relative;flex:none}
.ch-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:220px;padding:6px;border-radius:14px;
  background:rgba(28,28,30,.98);border:1px solid rgba(255,255,255,.1);box-shadow:0 14px 40px rgba(0,0,0,.55);
  display:flex;flex-direction:column;text-align:left}
.ch-menu[hidden]{display:none}
.ch-mh{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.42);padding:9px 10px 4px}
.ch-menu .ch-opt{display:flex;align-items:center;gap:8px;width:100%;min-height:0;padding:9px 10px;border:0;border-radius:9px;
  background:none;color:#fff;font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer}
.ch-menu .ch-opt small{color:rgba(255,255,255,.45);font-size:12px}
.ch-menu .ch-opt.on{background:none;color:#fff}
.ch-menu .ch-opt.on::after{content:"✓";margin-left:auto;color:#FFFC00;font-weight:800}
.ch-menu .ch-opt:hover{background:rgba(255,255,255,.07)}
.ch-date{position:relative}
.ch-date svg{width:17px;height:17px;flex:none;opacity:.8}
.ch-date input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;color-scheme:dark}
.ch-chip{font:inherit;font-size:12.5px;font-weight:600;border:0;border-radius:999px;padding:6px 13px;cursor:pointer;
  background:rgba(255,255,255,.09);color:rgba(255,255,255,.75)}
.ch-chip.on{background:#fff;color:#111}
.ch-row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:0;background:none;color:#fff;
  font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ch-row:hover{background:rgba(255,255,255,.05)}
.ch-av{flex:none;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#2b2b36;font-weight:800;font-size:17px;color:#fff}
.ch-av.grp{background:#24323a;font-size:19px}
.ch-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ch-title{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-prev{font-size:13px;color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-meta{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px;color:rgba(255,255,255,.5)}
.ch-meta small{font-size:11px;color:rgba(255,255,255,.35)}
.ch-none,.ch-empty{padding:40px 24px;text-align:center;color:rgba(255,255,255,.55);font-size:14px;line-height:1.6}
.ch-empty b:first-child{display:block;color:#fff;font-size:16px;margin-bottom:6px}

/* conversation */
.ch-head{position:sticky;top:0;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;
  background:rgba(13,13,13,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.07)}
.ch-back{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer}
.ch-htxt{flex:1 1 calc(100% - 52px);min-width:0}   /* the whole first line: the tools wrap to a second one */
.ch-htitle{display:flex;align-items:center;gap:4px;min-width:0;font-size:15.5px;font-weight:700}
.ch-hname{overflow-wrap:anywhere}   /* the conversation's name always in full */
.ch-head .ch-seg{margin-left:auto}
.ch-head .ch-menu{left:0;right:auto}   /* its icon now starts the second line */
/* names given in the app: pencil (one-to-one), sender's name (group), inline field */
.ch-rename{flex:none;width:26px;height:26px;border:0;border-radius:50%;padding:0;background:none;cursor:pointer;
  color:rgba(255,255,255,.45);display:flex;align-items:center;justify-content:center}
.ch-rename:hover,.ch-rename:focus-visible{color:#fff;background:rgba(255,255,255,.08)}
.ch-rename[hidden]{display:none}
.ch-whon{font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.ch-whon:hover{text-decoration:underline}
.ch-rename-in{font:inherit;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.3);
  border-radius:8px;padding:2px 8px;width:min(260px,100%);min-width:0;outline:none}
.ch-rename-in:focus{border-color:#fff}
.ch-who .ch-rename-in{font-size:13px;font-weight:600;letter-spacing:0}
.ch-hsub{font-size:12px;color:rgba(255,255,255,.5);margin-top:1px}
.ch-seg{flex:none;display:flex;background:rgba(255,255,255,.08);border-radius:999px;padding:3px}
.ch-seg button{font:inherit;font-size:12.5px;font-weight:600;border:0;border-radius:999px;padding:6px 12px;cursor:pointer;
  background:none;color:rgba(255,255,255,.7)}
.ch-seg button.on{background:#fff;color:#111}
.ch-note{padding:12px 16px 4px;font-size:12px;line-height:1.55;color:rgba(255,255,255,.45);text-align:center}
.ch-link{font:inherit;border:0;background:none;color:#fff;text-decoration:underline;cursor:pointer;padding:0}
.ch-msgs{padding:4px 14px 20px}
.ch-day{text-align:center;font-size:11.5px;font-weight:700;letter-spacing:.04em;color:rgba(255,255,255,.45);
  text-transform:uppercase;margin:22px 0 8px}
.ch-who{font-size:11px;font-weight:800;letter-spacing:.05em;margin:12px 0 3px}
.ch-who span{font-weight:600;letter-spacing:0;color:rgba(255,255,255,.35);margin-left:7px}
.ch-msg{border-left:2px solid var(--c);padding:2px 0 2px 10px;font-size:14.5px;line-height:1.42;color:#f2f2f2;
  overflow-wrap:anywhere}
.ch-text{white-space:pre-wrap}
.ch-ghost{color:rgba(255,255,255,.32);font-style:italic;font-size:13.5px}
.ch-event{text-align:center;font-size:12px;color:rgba(255,255,255,.4);margin:8px 0}
.ch-pill{display:inline-block;font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;margin:2px 0;
  background:rgba(255,255,255,.09);color:rgba(255,255,255,.75)}
.ch-pill.snapi{background:#f23c5726;color:#ff8a9b}
.ch-pill.snapv{background:#a77bf326;color:#c9adff}
.ch-thumb{display:inline-block;position:relative;width:150px;height:200px;margin:4px 6px 2px 0;border:0;padding:0;
  border-radius:12px;overflow:hidden;background:#1c1c1c;cursor:pointer;vertical-align:top}
.ch-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ch-dur{position:absolute;right:9px;bottom:8px;font-size:11.5px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;
  text-shadow:0 1px 3px rgba(0,0,0,.85)}
.ch-thumb.vid:has(.ch-dur)::after{right:auto;left:9px}   /* play mark left, duration right */
.ch-thumb.vid::after{content:"";position:absolute;right:9px;bottom:9px;border-left:11px solid #fff;
  border-top:7px solid transparent;border-bottom:7px solid transparent;filter:drop-shadow(0 1px 2px #000a)}

/* stats sheet (reuses the Rétro tiles, sections and hero) */
.ch-stats{padding:14px 16px 30px}
.ch-awards{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;margin:4px 0 6px}
.ch-award{display:flex;gap:10px;align-items:center;background:#ffffff0a;border:1px solid #ffffff12;border-radius:14px;padding:10px 12px}
.ch-award .ic{font-size:22px}
.ch-award small{display:block;font-size:11px;color:#9a9a9a}
.ch-award b{display:block;font-size:14px;color:#fff}
.ch-award em{display:block;font-style:normal;font-size:11.5px;color:#bdbdbd}
.ch-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:#cfcfcf;margin-bottom:10px}
.ch-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.ch-bar-row{display:flex;align-items:center;gap:10px;margin:7px 0}
.ch-bar-name{flex:none;width:96px;font-size:13px;color:#ddd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-bar-track{flex:1;height:14px}
.ch-bar{display:flex;gap:2px;height:100%;min-width:3px}
.ch-bar i{display:block;height:100%;min-width:2px}
.ch-bar i:first-child{border-radius:4px 0 0 4px}
.ch-bar i:last-child{border-radius:0 4px 4px 0}
.ch-bar i:only-child{border-radius:4px}
.ch-bar i:hover{filter:brightness(1.25)}
.ch-bar-v{flex:none;width:52px;text-align:right;font-size:12px;color:#9a9a9a;font-variant-numeric:tabular-nums}
.ch-months{display:flex;align-items:flex-end;gap:2px;height:104px}
.ch-months .col{flex:1;display:flex;align-items:flex-end;height:100%}
.ch-months .bar{width:100%;background:#8a6fd0;border-radius:3px 3px 1px 1px;min-height:2px}
.ch-months .col:hover .bar{filter:brightness(1.3)}
.ch-years{position:relative;height:16px;margin-top:4px}
.ch-years span{position:absolute;transform:translateX(-50%);font-size:10px;color:#8a8a8a}
.ch-hm{display:grid;gap:3px}
.ch-hm-row{display:grid;grid-template-columns:30px repeat(24,1fr);gap:3px;align-items:center}
.ch-hm-row span{font-size:10.5px;color:#8a8a8a}
.ch-hm-row i{display:block;aspect-ratio:1;border-radius:2px}
.ch-hm-row i:hover{outline:1.5px solid #fff;outline-offset:1px}
.ch-hm-x b{font-size:9.5px;font-weight:500;color:#8a8a8a}
.ch-table-wrap{overflow-x:auto}
.ch-table{border-collapse:collapse;width:100%;font-size:12.5px;font-variant-numeric:tabular-nums}
.ch-table th,.ch-table td{padding:7px 6px;text-align:right;white-space:nowrap;border-bottom:1px solid #ffffff10}
.ch-table thead th{color:#8a8a8a;font-weight:600;font-size:11.5px}
.ch-table tbody th{text-align:left;color:#fff;font-weight:600;max-width:110px;overflow:hidden;text-overflow:ellipsis}
.ch-table td{color:#ddd}
.ch-table td small{display:block;font-size:10.5px;color:#8a8a8a}
.ch-foot{font-size:11.5px;color:#8a8a8a;line-height:1.5;margin-top:8px}
.ch-words{display:flex;flex-wrap:wrap;gap:6px}
.ch-words span{background:#ffffff0d;border:1px solid #ffffff14;border-radius:999px;padding:4px 10px;font-size:13px;color:#eee}
.ch-words small{color:#8a8a8a;margin-left:3px}
.ch-words.emo span{font-size:17px}
.ch-find{flex-basis:100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ch-find .ch-chip{height:34px;padding:0 13px}
.ch-find[hidden]{display:none}
.ch-find .search-inner{flex:1 1 160px;height:34px}
.ch-find input[type=text]{flex:1;background:none;border:0;outline:0;color:#fff;font:inherit;font-size:13.5px}
.ch-find input[type=date]{flex:none;height:34px;border-radius:999px;border:0;padding:0 12px;background:rgba(255,255,255,.11);
  color:#fff;font:inherit;font-size:13px;color-scheme:dark}
.ch-endnote{margin:0 14px 18px;padding:10px 13px;border-radius:12px;background:#ffb3470f;border:1px solid #ffb34755;
  font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.75)}
.ch-kinds{flex-basis:100%;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:1px}
.ch-kinds::-webkit-scrollbar{display:none}
.ch-kinds .ch-chip{flex:none;padding:6px 12px}
.ch-kinds .ch-chip small{font-size:11px;opacity:.6;margin-left:3px}

/* plan cap note (free / Essentiel): the newest N messages only */
.ch-cap{max-width:460px;margin:10px auto 2px;padding:10px 14px;border-radius:12px;background:#fffc0012;border:1px solid #fffc0040;
  font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.8)}
.ch-cap button{font:inherit;font-weight:700;border:0;border-radius:999px;padding:3px 10px;margin-left:4px;cursor:pointer;background:#FFFC00;color:#1a1a00}
