*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}
body{background:#fcfcfc;color:#111;font:400 14px/22px Inter,ui-sans-serif,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit;background:none;border:0;cursor:pointer}a{color:inherit;cursor:pointer}
.shell{display:grid;grid-template-columns:280px 1fr;height:100vh}body.pane .shell{grid-template-columns:280px 1fr 300px}
.side{background:#f5f5f5;display:flex;flex-direction:column;min-height:0}
.sh{display:flex;align-items:center;gap:4px;padding:14px 12px 8px 16px}.sp{flex:1}.tl{display:flex;gap:8px}.tl i{width:12px;height:12px;border-radius:9999px;background:#ff5f57}.tl i:nth-child(2){background:#febc2e}.tl i:nth-child(3){background:#28c840}
.ib{width:36px;height:36px;border-radius:9999px;display:inline-grid;place-items:center;color:#333;font-size:17px}.sh .ib{background:#fff}
.pin{display:flex;justify-content:center;padding:14px 0 18px}.tile{width:96px;height:92px;border-radius:6px;background:#e4e4e4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px}.tile img{width:56px;height:56px}
.list{flex:1;overflow:auto;padding:0 8px}
.ag{display:flex;align-items:center;gap:12px;height:58px;padding:0 10px;border-radius:12px;position:relative}.ag:hover{background:#ebebeb}
.ag img{width:36px;height:36px;flex:none}.ag span{min-width:0;flex:1}.ag b{display:block;font-weight:500;font-size:14px;line-height:19px}.ag small{display:block;font-size:12.5px;line-height:18px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ud{width:7px;height:7px;border-radius:9999px;background:#306ccc;flex:none}
.me{display:flex;gap:10px;align-items:center;padding:10px 12px 14px}.av{width:36px;height:36px;border-radius:9999px;background:#d9455f;color:#fff;display:grid;place-items:center;font-weight:500}.conn{flex:1;height:36px;border-radius:9999px;background:#fff;font-size:13px;font-weight:500}
.chat{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
.top{height:64px;display:flex;align-items:center;justify-content:center;flex:none}
.pill{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 6px;border-radius:9999px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);font-size:14px;font-weight:500}.pill img{width:26px;height:26px}
.tr{position:absolute;right:24px;top:14px;height:36px;padding:0 16px;border-radius:9999px;background:#9ab6e4;color:#fff;font-size:13px;font-weight:500}.menu{display:none;position:absolute;left:8px;top:14px}
.thread{flex:1;overflow:auto;padding:0 24px 16px}.in{max-width:960px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.m{display:flex}.m.u{justify-content:flex-end}.bub{max-width:560px;padding:10px 16px;border-radius:18px;font-size:14px;line-height:23px;background:#efefef}.m.u .bub{background:#336ecd;color:#fff}
.sts{align-self:flex-end;display:flex;align-items:center;gap:6px;font-size:11.5px;color:#888;margin:-2px 0}.sts img{width:16px;height:16px}.sts.c{align-self:center;margin-left:240px}
.run{display:flex;align-items:center;gap:10px;font-size:13px;color:#888}.run img{width:24px;height:24px}.run b{color:#444;font-weight:500}
.dock{padding:0 24px 6px;flex:none}.box{max-width:960px;margin:0 auto;height:46px;border-radius:9999px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.04);display:flex;align-items:center;gap:4px;padding:0 6px}
.box input{flex:1;outline:0;cursor:text;padding:0 6px;font-size:14px}.box input::placeholder{color:#999}.pl{background:#f2f2f2;width:32px;height:32px}
.vo{width:32px;height:32px;border-radius:9999px;background:#3b78e7;display:grid;place-items:center}
.study{font-size:11px;color:#6b6b6b;text-align:center;padding-top:6px}
.pane{display:none;background:#fff;border-left:1px solid #ececec;padding:20px;overflow:auto}body.pane .pane{display:block}
.ph{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding-bottom:18px;border-bottom:1px solid #eee}.ph img{width:72px;height:72px}.ph b{font-size:16px;font-weight:500}.ph small{color:#888;font-size:13px}
.sec{padding:14px 0;border-bottom:1px solid #eee}.sec h4{font-size:12px;font-weight:500;color:#888;margin-bottom:6px}.kv{display:flex;justify-content:space-between}.kv span:first-child{color:#666}.inf{font-size:11px;color:#999;margin-top:12px}
.scrim{display:none}
@media(max-width:768px){.shell,body.pane .shell{grid-template-columns:1fr}.menu{display:inline-grid}.tr{right:8px;padding:0 12px}
.side{position:fixed;inset:0 auto 0 0;width:280px;z-index:20;transform:translateX(-100%);transition:transform .2s}body.open .side{transform:none}
body.open .scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.25);z-index:10}
body.pane .pane{position:fixed;inset:0 0 0 auto;width:300px;z-index:20}
.thread{padding:0 12px 12px}.dock{padding:0 8px 6px}.bub{max-width:86%}.sts.c{margin-left:0}}
.ag img,.tile img,.pill img,.sts img,.run img,.ph img{border-radius:9999px;object-fit:cover}
/* fidelity pass */
.tr{background:#fff;color:#111;box-shadow:0 0 0 1px #E6E6E6}
.ag b{font-size:15px;line-height:20px}.bub{font-size:15px;line-height:23px}.box input{font-size:15px}
.ib svg{display:block}
@media(max-width:640px){.ib,.menu,.vo,.send,.pl{min-width:44px;min-height:44px}.tr{height:44px;top:10px}.box{height:56px}.top{height:64px}}
.box input{min-width:0;width:100%}.box>*{flex-shrink:0}.box input{flex-shrink:1}
/* unframed transparent characters */
.ag img,.tile img,.pill img,.sts img,.run img,.ph img{border-radius:0;background:none;object-fit:contain}
.tile{background:#e4e4e4}
/* v3: exact match to reference screenshot (logical px = physical/2) */
.top{height:58px}
.tr{background:#9ab6e4;color:#fff;box-shadow:none;height:34px;top:12px;right:24px;font-size:13px;padding:0 16px}
.in{gap:18px}
.bub{font-size:14px;line-height:22px;padding:7px 14px;border-radius:17px}
.ag b{font-size:14px}
.sts{align-self:center;margin:-6px 0;font-size:11px;line-height:16px;color:#8a8a8a;gap:5px}.sts .bot{width:15px;height:15px}
.box{height:42px}.vo{width:28px;height:28px}.pl{width:28px;height:28px}
.dock{padding-bottom:14px}
.study{position:absolute;right:12px;bottom:0;font-size:10px;padding:0;color:#9a9a9a}
@media(max-width:640px){.tr{height:44px;font-size:12px;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.study{position:static;text-align:center}.box{height:52px}}
