/* app.css: what the real app needs on top of app.base.css (the approved mock-up's styles). */
html,body{height:100%}
body{background:var(--bg)}
.app{height:100dvh}
.tx{white-space:pre-wrap;overflow-wrap:anywhere}

/* who is speaking: each engine's profile picture is the horse on its own ground */
.mark{width:46px;height:46px}
.mark.pic{border-radius:50%;padding:0;overflow:hidden;background:var(--surface2);box-shadow:0 0 0 1px var(--line2)}
.mark.pic img{width:100%;height:100%;object-fit:cover;display:block}
.mark.md{width:38px;height:38px}.mark.sm{width:22px;height:22px}
.mark.you{--ink:var(--me);color:var(--on-me);font-size:11px;border-radius:50%}

/* pictures, with the marks he drew on them */
.ph{position:relative}
.ph img,.mk img{width:100%;display:block}
svg.marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
svg.marks path{fill:none;stroke:#ff4d2e;stroke-width:3px;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.mk{position:relative}
.mk svg.draw{pointer-events:auto;cursor:crosshair;touch-action:none}

/* charts are drawn from data; colours come from the theme */
.ch-grid{stroke:var(--line2);stroke-width:1}
.ch-t{fill:var(--fg2);font-size:9.5px}
.ch-v{fill:var(--fg);font-size:10.5px;font-weight:700}
.ch-bar{fill:var(--fg2)}.ch-bar.mk{fill:var(--gold)}

/* composer extras */
.achips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.achip{margin:0}
.achip .nm{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rec-time{font-variant-numeric:tabular-nums}
.wave.live i{height:60%;animation:pulse 1.1s infinite}
.wave.live i:nth-child(odd){height:95%;animation-delay:.35s}
.wave.live i:nth-child(3n){height:40%}

/* cards */
.acts2{margin-top:8px}.acts2 .b{flex:1}
.aopts + .ownin{margin-top:10px}

/* sheets and lists */
button.setrow{width:100%;text-align:left;color:var(--fg)}
.endb.on{color:var(--gold-ink);border-color:var(--gold)}
.row .q0{margin:0}
a.linkc{text-decoration:none}
.prog i::after{width:var(--w,0%)}

/* the door: add this device, unlock */
.gin{width:100%;font:inherit;font-size:16px;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:14px;margin-bottom:10px;min-height:52px}
.gin::placeholder{color:rgba(255,255,255,.42)}
.gin:focus{outline:none;border-color:var(--gold-b)}
.gold-btn:disabled{opacity:.5}

/* swipes, as in Karma: the row follows the finger and the action shows underneath */
.swp{position:relative;overflow:hidden}
.swp>.crow{position:relative;z-index:1;background:var(--bg);touch-action:pan-y;will-change:transform}
.swp-bg{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:12.5px;font-weight:700;background:var(--surface2)}
.swp-a{display:flex;align-items:center;gap:8px;opacity:.5;transition:opacity .15s,transform .15s}
.swp-a svg.ic{width:18px;height:18px}
.swp-r{color:var(--gold-ink)}.swp-l{color:var(--need-fg);flex-direction:row-reverse}
.swp[data-side=r] .swp-l,.swp[data-side=l] .swp-r{visibility:hidden}
.swp.arm .swp-a{opacity:1;transform:scale(1.08)}
.swp:not(:last-child)>.crow{border-bottom:1px solid var(--line)}
.pinned{color:var(--gold-ink);flex:none;display:inline-flex}.pinned svg.ic{width:13px;height:13px}
.bub{touch-action:pan-y}

/* replying to one message */
.quote{border-left:3px solid var(--gold);background:rgba(127,127,127,.14);border-radius:8px;padding:5px 9px;font-size:12.5px;line-height:1.35;margin-bottom:6px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer}
.quote b{display:block;font-size:11.5px;color:var(--gold2)}
.quote.inbox{display:flex;align-items:center;gap:8px;margin:0 2px 8px;background:var(--surface);border:1px solid var(--line2);border-left:3px solid var(--gold);padding:7px 6px 7px 10px;cursor:default}
.quote.inbox b{flex:none;color:var(--gold-ink)}.quote.inbox span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg2)}
.quote.inbox .x{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--fg2);flex:none}.quote.inbox .x svg.ic{width:13px;height:13px}

/* a reply that carries a tile (figure, table, chart, file) uses the full bubble width, so columns line up */
.bub.cl.wide{width:93%}
@media (min-width:860px){.bub.cl.wide{width:min(78%,520px)}}
