/* Chat background dimming, projects and chat actions, undo notice, community icons, roomy sidebar, adding chats to projects. */
/* behind a conversation the mask fades right back so it never fights the text */
#heroArt{transition:opacity .8s ease}
body.chat-live #heroArt{opacity:.34}
/* projects (folders of chats), chat actions, undo notice */
.side-chats-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.side-chats-h h2{margin:0}
.pj-add{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--text-2);transition:background-color .15s,color .15s}
.pj-add:hover{background:rgba(255,255,255,.07);color:var(--text)}
.pj-add .ic{width:17px;height:17px}
.hist li{position:relative;list-style:none}
.hist .hi-b{padding-right:38px}
.hist .hi-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.hist .hi-more{position:absolute;right:5px;top:50%;width:30px;min-height:0;height:30px;padding:0;display:grid;place-items:center;border-radius:8px;color:var(--text-2);opacity:0;transform:translateY(-50%);transition:opacity .15s,background-color .15s,color .15s}
.hist .hi-more .ic{width:17px;height:17px}
.hi:hover>.hi-more,.pj-row:hover>.hi-more,.hist .hi-more:focus-visible,.hist .is-menu>.hi-more,.hist .is-menu>.pj-row>.hi-more,.hist .hi-more[aria-expanded="true"]{opacity:1}
.hist .hi-more:hover{background:rgba(255,255,255,.09);color:var(--text)}
@media (hover:none){
  .hist .hi-more{opacity:.75}
}
.pj-row{position:relative}
.hist .pj-b{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:6px 38px 6px 6px;border-radius:12px;color:var(--text-2);font-size:13.5px}
.hist .pj-b:hover{background:rgba(236,238,242,.06);color:var(--text)}
.pj-b .ic{width:16px;height:16px;flex:none}
.pj-b .pj-chev{width:13px;height:13px;transform:rotate(-90deg);transition:transform .2s ease;color:var(--text-3)}
.pj.is-open .pj-chev{transform:none}
.pj-n{font-size:11.5px;color:var(--text-3);font-variant-numeric:tabular-nums}
.hist .pj-list{margin:2px 0 6px 14px;padding-left:8px;border-left:1px solid var(--line)}
.pj-empty{padding:6px 8px;font-size:12.5px;line-height:1.5;color:var(--text-3)}
.pj-empty .tlink{font-size:12.5px}
.hist .hi-in{display:block;width:100%;height:40px;padding:0 10px;border:0;border-radius:11px;background:rgba(0,0,0,.45);box-shadow:inset 0 0 0 1.5px #ff2a4a;color:var(--text);font:inherit;font-size:14px;outline:none}
.ch-menu{position:fixed;z-index:400;min-width:212px;max-width:270px;max-height:min(62vh,440px);overflow:auto;overscroll-behavior:contain;padding:6px;border-radius:14px;background:rgba(19,19,23,.97);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:inset 0 0 0 1px var(--line),0 24px 60px rgba(0,0,0,.65)}
.ch-menu[hidden]{display:none}
.ch-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:9px;font-size:13.5px;color:var(--text);text-align:left;transition:background-color .12s}
.ch-menu button:hover,.ch-menu button:focus-visible{background:rgba(255,255,255,.08);outline:none}
.ch-menu button .ic{width:16px;height:16px;flex:none;color:var(--text-2)}
.ch-menu button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-menu [aria-checked="true"]::after{content:"";margin-left:auto;width:7px;height:7px;border-radius:50%;background:#ff2a4a;flex:none}
.ch-menu .danger,.ch-menu .danger .ic{color:#ff8a9b}
.cm-sep{height:1px;margin:5px 6px;background:var(--line)}
.cm-lab{padding:6px 10px 3px;font-size:11.5px;color:var(--text-3)}
.toast{position:fixed;left:50%;top:calc(16px + env(safe-area-inset-top));z-index:500;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 24px);padding:9px 9px 9px 16px;border-radius:14px;background:rgba(24,24,28,.97);box-shadow:inset 0 0 0 1px var(--line),0 20px 50px rgba(0,0,0,.6);color:var(--text);font-size:14px;transform:translate(-50%,-14px);opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease}
.toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast button{flex:none;padding:7px 13px;border-radius:9px;background:rgba(255,255,255,.09);color:#fff;font:inherit;font-size:13.5px;font-weight:600}
.toast button:hover{background:rgba(255,255,255,.16)}
.toast button:focus-visible,.pj-add:focus-visible,.hist .pj-b:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media (prefers-reduced-motion:reduce){
  .toast{transition:none}
}
/* community icons: bigger tiles, our own drawings, quiet idle motion */
.cm-ic{width:56px;height:56px;border-radius:16px}
.ci{width:32px;height:32px;overflow:visible;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ci .ci-fill{fill:rgba(255,255,255,.96);stroke:#fff;stroke-width:1.1}
.ci .ci-ln{stroke:rgba(255,255,255,.9)}
.ci-pl{transform-box:fill-box;transform-origin:center;animation:ciFloat 3.4s ease-in-out infinite}
@keyframes ciFloat{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(1.2px,-1.6px) rotate(-4deg)}}
.ci-trail{stroke:#ff5a75;stroke-width:1.5;stroke-dasharray:6 7;animation:ciDash 1.4s linear infinite}
@keyframes ciDash{to{stroke-dashoffset:-26}}
.ci-w{stroke:#ff5a75;opacity:.15;animation:ciWave 2.1s ease-out infinite}
.ci-w2{animation-delay:.3s}
.ci-w3{animation-delay:.6s}
@keyframes ciWave{0%{opacity:.12}30%{opacity:1}100%{opacity:.12}}
.ci-xs{stroke:#fff;stroke-width:2.8}
.ci-run{stroke:#ff6a83;stroke-width:3;stroke-dasharray:.1 100;animation:ciRun 2.6s cubic-bezier(.5,0,.4,1) infinite}
.ci-run2{animation-delay:1.3s}
@keyframes ciRun{0%{stroke-dashoffset:4;opacity:0}12%{opacity:1}88%{opacity:1}100%{stroke-dashoffset:-100;opacity:0}}
.ci-ses .ci-run{stroke-width:3.4;stroke:#ff6a83;animation-duration:2.4s}
.ci-route{stroke:rgba(255,255,255,.55);stroke-width:1.4;stroke-dasharray:2 2.6}
.ci-node{fill:#fff;stroke:none}
.ci-ses .ci-ln{animation:ciGuard 3.2s ease-in-out infinite}
@keyframes ciGuard{50%{stroke:#ffb3c0}}
.cm-card:hover .ci-pl{animation-duration:1.8s}
@media (prefers-reduced-motion:reduce){
  .ci *{animation:none!important}
}
.motion-off .ci *{animation-play-state:paused!important}
/* the sidebar gives the chats room. Section rows are tighter, the sections can fold into one row of
   icons (folded by default on short screens), and the whole sidebar scrolls as one so the chat list is
   never squeezed into a sliver; the account button stays pinned at the bottom. */
.side{gap:10px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
.side::-webkit-scrollbar{width:6px}
.side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px}
.tabs{gap:1px}
.tab{min-height:36px;font-size:14px}
.tabs-hl{right:auto;width:100%}
.nav-h{display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 8px;margin-bottom:-4px;font-size:12px;font-weight:500;color:var(--text-3)}
.nav-fold{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--text-2);transition:background-color .15s,color .15s}
.nav-fold:hover{background:rgba(255,255,255,.07);color:var(--text)}
.nav-fold .ic{width:16px;height:16px}
.nav-fold[aria-pressed="true"]{color:var(--text)}
.nav-fold:focus-visible{outline:2px solid #fff;outline-offset:1px}
.side.nav-mini .tabs{display:flex;flex-wrap:wrap;gap:2px;justify-content:space-between}
.side.nav-mini .tab{width:32px;min-height:34px;padding:0;justify-content:center;gap:0}
.side.nav-mini .tab>span[data-t]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.side-chats{flex:1 0 auto;min-height:min(380px,48vh);overflow:visible;-webkit-mask-image:none;mask-image:none}
.side-foot{position:sticky;bottom:-12px;z-index:3;margin:0 -12px -12px;padding:14px 12px 12px;background:linear-gradient(to bottom,rgba(10,10,13,0),rgba(10,10,13,.94) 16px)}
.side.nav-mini .tabs-hl{box-shadow:none!important;background:rgba(255,42,74,.16)!important;border-radius:9px}
/* adding existing chats to a project */
.pj-dlg{width:min(480px,calc(100vw - 24px))}
.pk-list{display:grid;gap:2px;max-height:min(52vh,420px);overflow-y:auto;overscroll-behavior:contain;margin:4px -6px 16px;padding:2px 6px}
.ck.pk-row{min-height:46px;padding:4px 8px;border-radius:12px;color:var(--text);transition:background-color .15s}
.ck.pk-row:hover{background:rgba(255,255,255,.05)}
.pk-row .mark{width:22px;height:22px;border-radius:7px;flex:none}
.pk-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.pk-where{display:inline-flex;align-items:center;gap:5px;max-width:42%;font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-where .ic{width:13px;height:13px;flex:none}
.pj-dlg .pf-foot .lq-primary:disabled{opacity:.45;cursor:not-allowed}
.pj-empty .tlink+.tlink{margin-left:6px}
/* drag a chat onto a project */
.hist .hi[draggable="true"]{-webkit-user-drag:element}
.hist .is-drag{opacity:.45}
.hist .pj-row.is-drop .pj-b,.side-chats-h.is-drop{background:rgba(255,42,74,.12);box-shadow:inset 0 0 0 1.5px rgba(255,42,74,.6);border-radius:12px}
.hist .pj-list.is-drop{border-left-color:#ff2a4a}
.hist .pj-empty{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.hist .pj-empty>span{width:100%}
.hist .pj-empty .tlink{display:inline;width:auto;min-height:0;padding:2px 0;border-radius:0;font-size:12.5px;background:none}
.hist .pj-empty .tlink+.tlink{margin-left:0}
.vhead-copy{grid-template-columns:minmax(0,1fr);min-width:0;max-width:min(640px,100%)}

/* live mode: the demo badge and the "this is a demo" notes go away */
.msg-err{color:#ff8a9b}
.pay-addr{word-break:break-all}
.pay-steps li.done{opacity:.6}
