/* XMM AI v678: Claude-style layout. Sidebar (New, Search, Code, Files, Plugins, Recents, user menu),
   centered greeting + composer, Settings window. Dark by default, light supported. */
html body.x678{
 --b-bg:#1b1b1a;--b-side:#1b1b1a;--b-ln:#2f2f2d;--b-hov:#2a2a28;--b-act:#2f2f2d;--b-card:#2b2b29;--b-cardln:#3d3d3a;
 --b-tx:#ececea;--b-dim:#9b9a95;--b-ac:#d97757;--b-acx:#c6613f;--b-ov:rgba(0,0,0,.55);--b-sh:0 20px 60px rgba(0,0,0,.5);--b-u:#2f2f2d;
 --b-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,system-ui,sans-serif;
 --b-serif:"Iowan Old Style","Palatino Linotype",Palatino,Charter,Georgia,"Times New Roman",serif;
 --b-fs:15.5px;--b-sw:288px}
html[data-theme="light"] body.x678{
 --b-bg:#faf9f5;--b-side:#f4f3ee;--b-ln:#e5e3da;--b-hov:#ebe9e1;--b-act:#e6e4db;--b-card:#ffffff;--b-cardln:#dad8cf;
 --b-tx:#1f1e1c;--b-dim:#716f68;--b-ov:rgba(30,30,28,.35);--b-sh:0 20px 60px rgba(0,0,0,.18);--b-u:#ece9df}
html:not([data-theme="light"]),html[data-theme="dark"]{background:#1b1b1a!important}
html[data-theme="light"]{background:#faf9f5!important}
html body.x678.x678,html body.x678.x678 #win{background:var(--b-bg)!important;color:var(--b-tx)!important;font-family:var(--b-sans)!important;font-size:var(--b-fs)!important;line-height:1.6}
html body.x678.x678 #dots660,html body.x678.x678 #cf{display:none!important}
html body.x678.x678 button,html body.x678.x678 input,html body.x678.x678 textarea{font-family:var(--b-sans)}

/* ---------- sidebar ---------- */
html body.x678.x678 #side{left:0!important;top:0!important;bottom:0!important;right:auto!important;height:auto!important;width:var(--b-sw)!important;max-width:86vw;margin:0!important;border-radius:0!important;border:0!important;border-right:1px solid var(--b-ln)!important;background:var(--b-side)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:14px 10px 10px!important;gap:0!important;display:flex!important;flex-direction:column;color:var(--b-tx)!important;z-index:40;overflow:hidden}
html body.x678.x678 #side .sh{display:flex!important;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:10px;padding:2px 6px 14px;color:var(--b-tx)!important}
html body.x678.x678 #side .sh b{font:500 22px/1 var(--b-serif)!important;letter-spacing:-.01em;color:var(--b-tx)!important}
html body.x678.x678 #side #sx{width:30px;height:30px;border:0!important;background:transparent!important;color:var(--b-dim)!important;border-radius:8px;box-shadow:none!important;display:grid;place-items:center;cursor:pointer}
html body.x678.x678 #side #sx:hover{background:var(--b-hov)!important;color:var(--b-tx)!important}
html body.x678.x678 #side #stabs,html body.x678.x678 #side #snew{display:none!important}
html body.x678.x678 #side #scode{display:none!important;flex-direction:column;gap:2px;padding:4px 0 8px}
html body.x678.x678[data-tab="code"] #side #scode{display:flex!important}
html body.x678.x678 #side #scode button{background:transparent!important;border:0!important;color:var(--b-dim)!important;text-align:left;padding:7px 12px;border-radius:8px;font-size:14px;cursor:pointer;box-shadow:none!important}
html body.x678.x678 #side #scode button:hover{background:var(--b-hov)!important;color:var(--b-tx)!important}
#x678nav{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
#x678nav button,#x678nav a{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:10px;font:400 15px/1.2 var(--b-sans);color:var(--b-tx);cursor:pointer;width:100%}
#x678nav button:hover{background:var(--b-hov)}
#x678nav button.on{background:var(--b-act)}
#x678nav button:focus-visible,.x678-ft:focus-visible,#x678menu button:focus-visible{outline:2px solid var(--b-ac);outline-offset:-2px}
#x678nav svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#x678nav .nw{background:var(--b-act)}
#x678rh{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:6px 12px;font:400 13px/1 var(--b-sans);color:var(--b-dim);cursor:pointer;border-radius:8px;width:max-content}
#x678rh:hover{color:var(--b-tx)}
#x678rh svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;transition:transform .15s}
#x678rh.c svg{transform:rotate(-90deg)}
html body.x678.x678 #side #sl{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:1px;padding:2px 0!important}
html body.x678.x678 #side #sl.c{display:none}
html body.x678.x678 #side #sl::-webkit-scrollbar{width:6px}html body.x678.x678 #side #sl::-webkit-scrollbar-thumb{background:var(--b-cardln);border-radius:3px}
html body.x678.x678 #side .si{display:flex!important;align-items:center;gap:8px;padding:8px 12px!important;border-radius:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--b-tx)!important;cursor:pointer;font-size:14.5px;line-height:1.3;position:relative}
html body.x678.x678 #side .si:hover{background:var(--b-hov)!important}
html body.x678.x678 #side .si.on{background:var(--b-act)!important}
html body.x678.x678 #side .si .sn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit!important}
html body.x678.x678 #side .si small{display:none!important}
html body.x678.x678 #side .si .sd{opacity:0;width:24px;height:24px;border:0!important;background:transparent!important;color:var(--b-dim)!important;border-radius:6px;cursor:pointer;font-size:12px;flex:none}
html body.x678.x678 #side .si:hover .sd,html body.x678.x678 #side .si:focus-within .sd{opacity:1}
html body.x678.x678 #side .si .sd:hover{background:var(--b-cardln)!important;color:var(--b-tx)!important}
html body.x678.x678 #side .dim{color:var(--b-dim)!important;font-size:13.5px}
.x678-ft{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;margin-top:8px;padding:10px 10px;border-top:1px solid var(--b-ln);border-radius:0;cursor:pointer;font:500 14px/1 var(--b-sans);color:var(--b-tx);width:100%}
.x678-ft:hover .x678-nm{color:var(--b-ac)}
.x678-av{width:28px;height:28px;border-radius:50%;background:#2f9e44;color:#fff;display:grid;place-items:center;font:600 13px/1 var(--b-sans);flex:none;text-transform:uppercase}
.x678-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x678-ft svg{width:14px;height:14px;stroke:var(--b-dim);fill:none;stroke-width:2;flex:none}

/* user menu */
#x678menu{position:fixed;left:10px;bottom:62px;width:268px;max-width:calc(100vw - 20px);background:var(--b-card);border:1px solid var(--b-cardln);border-radius:14px;box-shadow:var(--b-sh);padding:6px;z-index:2147483100;display:none;color:var(--b-tx);font-family:var(--b-sans)}
#x678menu.on{display:block;animation:x678p .12s ease-out}
#x678menu .who{padding:8px 12px 6px;font-size:12.5px;color:var(--b-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#x678menu button,#x678menu a{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border-radius:9px;font:400 14.5px/1.2 var(--b-sans);color:var(--b-tx);cursor:pointer}
#x678menu button:hover,#x678menu a:hover{background:var(--b-hov)}
#x678menu svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#x678menu kbd{margin-left:auto;font:12px var(--b-sans);color:var(--b-dim)}
#x678menu hr{border:0;border-top:1px solid var(--b-ln);margin:6px 4px}
@keyframes x678p{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- main area ---------- */
@media(min-width:900px){
 html body.x678.x678 #win{margin-left:var(--b-sw)!important;width:calc(100vw - var(--b-sw))!important;transition:margin .18s,width .18s}
 html body.x678.x678 #side{transform:none!important;transition:transform .18s}
 html body.x678.x678.sc #side{transform:translateX(-102%)!important}
 html body.x678.x678.sc #win{margin-left:0!important;width:100vw!important}
 html body.x678.x678 #top{display:none!important}
 html body.x678.x678 #sbk{display:none!important}
}
#x678open{position:fixed;top:12px;left:12px;z-index:35;width:36px;height:36px;border-radius:9px;border:0;background:transparent;color:var(--b-dim);cursor:pointer;display:none;place-items:center}
#x678open:hover{background:var(--b-hov);color:var(--b-tx)}
#x678open svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:900px){html body.x678.x678.sc #x678open{display:grid}}
@media(max-width:899px){
 html body.x678.x678 #side{transform:translateX(-102%)!important;transition:transform .22s!important;box-shadow:none}
 html body.x678.x678.so #side{transform:none!important;box-shadow:0 0 60px rgba(0,0,0,.5)}
 html body.x678.x678 #sbk{background:var(--b-ov)!important}
 html body.x678.x678 #top{display:flex!important;background:var(--b-bg)!important;border-bottom:1px solid var(--b-ln)!important;color:var(--b-tx)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
 html body.x678.x678 #top .tt{font:500 18px/1 var(--b-serif);color:var(--b-tx)}
 html body.x678.x678 #top button{background:transparent!important;border:0!important;color:var(--b-tx)!important;box-shadow:none!important}
}
html body.x678.x678 #top{position:static!important;margin:0!important}
html body.x678.x678 #win #log{padding:26px max(18px,calc((100% - 760px)/2)) 12px!important;background:transparent!important;font-size:var(--b-fs)}
html body.x678.x678 #win #log .row,html body.x678.x678 #win #log .a .body{color:var(--b-tx)}
html body.x678.x678 #win #log .a{gap:0}
html body.x678.x678 #win #log .a>.dot{display:none!important}
html body.x678.x678 #win #log .a .body{line-height:1.7}
html body.x678.x678 #win #log .dim{color:var(--b-dim)!important}
html body.x678.x678 #win #log .or,html body.x678.x678 .body h1,html body.x678.x678 .body h2,html body.x678.x678 .body h3{color:var(--b-tx)!important}
html body.x678.x678 .body h3{font-size:1.08em;font-weight:600}
html body.x678.x678 .body a{color:#d97757!important}
html body.x678.x678 .body code{background:var(--b-hov)!important;color:var(--b-tx)!important;border-radius:5px;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
html body.x678.x678 .cb{background:var(--b-card)!important;border:1px solid var(--b-cardln)!important;border-radius:12px!important}
html body.x678.x678 .cb header{background:transparent!important;color:var(--b-dim)!important}
html body.x678.x678 .cb pre,html body.x678.x678 .cb pre code{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace!important;color:var(--b-tx)!important;background:transparent!important}
html body.x678.x678 #win #log>.u,html body.x678.x678 #win #log .u{background:var(--b-u)!important;border:0!important;border-radius:18px!important;color:var(--b-tx)!important;box-shadow:none!important;padding:10px 16px!important}
html body.x678.x678 #win #log .u>div{color:var(--b-tx)!important}
html body.x678.x678 .sep,html body.x678.x678 #hint{display:none!important}
html body.x678.x678 #win #in .p{display:none!important}

/* composer card */
html body.x678.x678 #win #in{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 6px!important;width:min(calc(100% - 36px),680px);margin:0 auto 10px!important;padding:14px 14px 10px 16px!important;background:var(--b-card)!important;border:1px solid var(--b-cardln)!important;border-radius:20px!important;box-shadow:0 2px 14px rgba(0,0,0,.18)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-sizing:border-box;position:relative;flex:none!important}
html body.x678.x678 #win #in:focus-within{border-color:#5a5955!important;background:var(--b-card)!important;box-shadow:0 2px 18px rgba(0,0,0,.25)!important}
html[data-theme="light"] body.x678 #in:focus-within{border-color:#b9b6aa!important}
html body.x678.x678 #win #in #ta{order:0;flex:1 0 100%!important;width:100%!important;min-height:26px!important;max-height:220px!important;padding:2px 2px 8px!important;margin:0!important;font:400 16px/1.55 var(--b-sans)!important;color:var(--b-tx)!important;caret-color:var(--b-tx)!important;caret-shape:auto!important;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important}
html body.x678.x678 #win #in #ta::placeholder{color:var(--b-dim)!important;opacity:1}
html body.x678.x678 #win #in #plus{order:1;margin-right:auto!important}
html body.x678.x678 #win #in #thk{order:2}html body.x678.x678 #win #in #mchip{order:3}html body.x678.x678 #win #in #vbtn{order:4}html body.x678.x678 #win #in #go{order:5}
html body.x678.x678 #win #in #plus,html body.x678.x678 #win #in #thk,html body.x678.x678 #win #in #vbtn{width:34px!important;height:34px!important;min-width:34px;border-radius:9px!important;background:transparent!important;border:0!important;color:var(--b-dim)!important;box-shadow:none!important;display:grid;place-items:center;font-size:22px;line-height:1;padding:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body.x678.x678 #win #in #plus:hover,html body.x678.x678 #win #in #thk:hover,html body.x678.x678 #win #in #vbtn:hover{background:var(--b-hov)!important;color:var(--b-tx)!important}
html body.x678.x678 #win #in #thk.on{background:var(--b-act)!important;color:var(--b-ac)!important;border:0!important}
html body.x678.x678 #win #in #mchip{background:transparent!important;border:0!important;color:var(--b-dim)!important;box-shadow:none!important;font-size:13.5px!important;border-radius:9px!important;padding:6px 10px!important;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body.x678.x678 #win #in #mchip:hover{background:var(--b-hov)!important;color:var(--b-tx)!important}
html body.x678.x678 #win #in #go{width:34px!important;height:34px!important;min-width:34px;border-radius:10px!important;background:var(--b-ac)!important;color:#fff!important;border:0!important;box-shadow:none!important;display:grid;place-items:center;font-size:18px;line-height:1;padding:0!important}
html body.x678.x678 #win #in #go:hover{background:var(--b-acx)!important}
html body.x678.x678 #win #in #go:disabled{opacity:.5}

/* under-composer mode switch */
#x678under{display:none;width:min(calc(100% - 36px),680px);margin:0 auto 14px;justify-content:flex-end;gap:4px;font:400 13.5px var(--b-sans)}
body.x678 #x678under{display:flex}
#x678under button{all:unset;box-sizing:border-box;padding:6px 12px;border-radius:9px;color:var(--b-dim);cursor:pointer;font:400 13.5px/1 var(--b-sans)}
#x678under button:hover{background:var(--b-hov);color:var(--b-tx)}
#x678under button.on{color:var(--b-tx);background:var(--b-act)}

/* empty state: greeting + composer centered */
html body.x678.x678.e678 #win{justify-content:center!important}
html body.x678.x678.e678 #win #log{flex:none!important;overflow:visible!important;padding:0 18px 6px!important}
html body.x678.x678.e678 .home .cards{display:none!important}
html body.x678.x678 .home{display:block;text-align:center;background:transparent!important;border:0!important}
html body.x678.x678 .home .hm{display:flex!important;align-items:center;justify-content:center;gap:14px;margin:0 0 26px!important}
html body.x678.x678 .home .hm .appico{width:38px!important;height:38px!important;margin:0!important;border-radius:9px}
html body.x678.x678 .home h1{font:400 clamp(28px,4.2vw,40px)/1.15 var(--b-serif)!important;color:var(--b-tx)!important;margin:0!important;letter-spacing:-.01em}
html body.x678.x678 .home{padding:0!important}
html body.x678.x678.e678 #win #in{margin-bottom:10px!important}
html body.x678.x678:not(.e678) #win #in{margin-bottom:8px!important}
html body.x678.x678:not(.e678) #x678under{margin-bottom:10px}

/* ---------- search overlay + settings ---------- */
.x678-ov{position:fixed;inset:0;z-index:2147483200;background:var(--b-ov);display:none;align-items:flex-start;justify-content:center;padding:10vh 16px 16px;font-family:var(--b-sans);color:var(--b-tx)}
.x678-ov.on{display:flex}
.x678-ov.mid{align-items:center;padding-top:16px}
#x678s{width:min(640px,100%);background:var(--b-card);border:1px solid var(--b-cardln);border-radius:16px;box-shadow:var(--b-sh);overflow:hidden;display:flex;flex-direction:column;max-height:72vh}
#x678s input{all:unset;box-sizing:border-box;padding:16px 20px;font:400 17px/1.3 var(--b-sans);color:var(--b-tx);border-bottom:1px solid var(--b-ln);width:100%}
#x678s input::placeholder{color:var(--b-dim)}
#x678sr{overflow-y:auto;padding:6px}
#x678sr button{all:unset;box-sizing:border-box;display:block;width:100%;padding:10px 14px;border-radius:10px;cursor:pointer}
#x678sr button:hover,#x678sr button.k{background:var(--b-hov)}
#x678sr b{display:block;font:500 14.5px/1.3 var(--b-sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#x678sr span{display:block;font:400 13px/1.4 var(--b-sans);color:var(--b-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
#x678sr .none{padding:18px 14px;color:var(--b-dim);font-size:14px}
#x678sr mark{background:rgba(217,119,87,.3);color:inherit;border-radius:3px}

#x678set{width:min(1000px,100%);height:min(720px,92vh);background:var(--b-card);border:1px solid var(--b-cardln);border-radius:16px;box-shadow:var(--b-sh);display:flex;flex-direction:column;overflow:hidden}
html[data-theme="light"] #x678set,html[data-theme="light"] #x678s{background:#fff}
#x678set>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--b-ln);flex:none}
#x678set>header h2{margin:0;font:500 17px/1 var(--b-sans)}
#x678set .x{all:unset;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;cursor:pointer;color:var(--b-dim)}
#x678set .x:hover{background:var(--b-hov);color:var(--b-tx)}
#x678set .x svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
#x678set .bd{display:flex;flex:1;min-height:0}
#x678set nav{width:216px;flex:none;border-right:1px solid var(--b-ln);padding:12px;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
#x678set nav button{all:unset;box-sizing:border-box;padding:9px 12px;border-radius:9px;cursor:pointer;font:400 14.5px/1.2 var(--b-sans);color:var(--b-tx);display:flex;align-items:center;gap:10px}
#x678set nav button:hover{background:var(--b-hov)}
#x678set nav button.on{background:var(--b-act)}
#x678set nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
#x678pn{flex:1;min-width:0;overflow-y:auto;padding:20px 28px 28px}
#x678pn h3{margin:0 0 6px;font:500 16px/1.3 var(--b-sans)}
#x678pn .sub{color:var(--b-dim);font-size:13.5px;margin:0 0 14px;line-height:1.5}
.x678-r{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--b-ln)}
.x678-r:last-child{border-bottom:0}
.x678-r .l{min-width:0}.x678-r .l b{display:block;font:400 14.5px/1.3 var(--b-sans)}.x678-r .l small{display:block;color:var(--b-dim);font-size:13px;margin-top:3px;line-height:1.4}
.x678-b{all:unset;box-sizing:border-box;padding:8px 14px;border-radius:9px;background:var(--b-hov);color:var(--b-tx);font:400 14px/1 var(--b-sans);cursor:pointer;white-space:nowrap;border:1px solid var(--b-cardln)}
.x678-b:hover{background:var(--b-act)}
.x678-b.pr{background:var(--b-ac);border-color:var(--b-ac);color:#fff}.x678-b.pr:hover{background:var(--b-acx)}
.x678-b.dg{color:#e5766b;border-color:rgba(229,118,107,.45)}
.x678-b:focus-visible,#x678set nav button:focus-visible,#x678set .x:focus-visible{outline:2px solid var(--b-ac);outline-offset:1px}
.x678-in{all:unset;box-sizing:border-box;padding:8px 12px;border-radius:9px;background:var(--b-hov);border:1px solid var(--b-cardln);font:400 14.5px/1.2 var(--b-sans);color:var(--b-tx);width:240px;max-width:100%}
.x678-in:focus{border-color:var(--b-ac)}
.x678-sg{display:inline-flex;background:var(--b-hov);border:1px solid var(--b-cardln);border-radius:10px;padding:3px;gap:2px}
.x678-sg button{all:unset;padding:6px 14px;border-radius:7px;cursor:pointer;font:400 13.5px/1 var(--b-sans);color:var(--b-dim)}
.x678-sg button.on{background:var(--b-card);color:var(--b-tx);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.x678-tg{all:unset;box-sizing:border-box;width:42px;height:24px;border-radius:12px;background:var(--b-cardln);position:relative;cursor:pointer;flex:none;transition:background .15s}
.x678-tg::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.x678-tg.on{background:var(--b-ac)}.x678-tg.on::after{transform:translateX(18px)}
.x678-tg:focus-visible{outline:2px solid var(--b-ac);outline-offset:2px}
.x678-mem{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--b-ln);border-radius:10px;margin-bottom:8px;font-size:14px;line-height:1.45}
.x678-mem span{flex:1;min-width:0;word-break:break-word}
.x678-mem button{all:unset;cursor:pointer;color:var(--b-dim);padding:2px 6px;border-radius:6px;font-size:16px;line-height:1}
.x678-mem button:hover{background:var(--b-hov);color:#e5766b}
.x678-add{display:flex;gap:8px;margin:0 0 14px}.x678-add .x678-in{flex:1;width:auto}
.x678-av2{width:52px;height:52px;border-radius:50%;background:#2f9e44;color:#fff;display:grid;place-items:center;font:600 22px/1 var(--b-sans);text-transform:uppercase}
.x678-lk{display:flex;flex-direction:column}
.x678-lk a{color:var(--b-tx);text-decoration:none;padding:12px 0;border-bottom:1px solid var(--b-ln);font-size:14.5px;display:flex;justify-content:space-between}
.x678-lk a:hover{color:var(--b-ac)}.x678-lk a:last-child{border-bottom:0}.x678-lk a span{color:var(--b-dim);font-size:13px}
#x678toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(10px);background:var(--b-card);border:1px solid var(--b-cardln);color:var(--b-tx);padding:10px 16px;border-radius:12px;font:400 14px var(--b-sans);box-shadow:var(--b-sh);z-index:2147483300;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
#x678toast.on{opacity:1;transform:translateX(-50%)}
@media(max-width:700px){
 .x678-ov{padding:0}.x678-ov:not(.mid){padding:8vh 12px 12px}
 #x678set{width:100%;height:100%;border-radius:0;border:0}
 #x678set .bd{flex-direction:column}
 #x678set nav{width:auto;flex-direction:row;border-right:0;border-bottom:1px solid var(--b-ln);padding:8px;overflow-x:auto;overflow-y:hidden;flex:none}
 #x678set nav button{white-space:nowrap}#x678set nav svg{display:none}
 #x678pn{padding:16px}
 .x678-r{flex-wrap:wrap}.x678-in{width:100%}
}

/* ---------- layout reset: beat the older layers ---------- */
html body.x678.x678 #win{position:fixed!important;top:0!important;bottom:0!important;right:0!important;left:var(--b-sw)!important;width:auto!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;box-sizing:border-box}
html body.x678.x678.sc #win{left:0!important}
html body.x678.x678 #win::before,html body.x678.x678 #win::after{display:none!important}
html body.x678.x678 #win #log,html body.x678.x678.n660 #win #log{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;width:auto!important;max-width:none!important;margin:0!important;text-align:left;flex:1 1 auto!important;padding:26px max(18px,calc((100% - 760px)/2)) 12px!important}
html body.x678.x678.e678 #win #log,html body.x678.x678.e678.n660 #win #log{flex:0 0 auto!important;overflow:visible!important;padding:0 18px 6px!important;text-align:center}
html body.x678.x678 #win #in{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;max-width:680px!important;width:calc(100% - 36px)!important;margin:0 auto 8px!important;min-height:0!important}
html body.x678.x678 #x678under{position:relative}
@media(max-width:899px){html body.x678.x678 #win{left:0!important}}
/* ---------- composer + logo: beat the older hide rules ---------- */
html body.x678.x678 #win #in{flex-wrap:wrap!important}
html body.x678.x678 #win #in #go{display:grid!important}
html body.x678.x678 #win #in #mchip{display:inline-flex!important;align-items:center;max-width:210px!important;order:3}
html body.x678.x678 #win #in #plus{margin-right:auto!important;font-size:22px}
html body.x678.x678 .home .hm>img,html body.x678.x678 .home .hm>img.appico{display:block!important}
html body.x678.x678 #win #in #ta{flex:1 0 100%!important}
html body.x678.x678 .home .hm{flex-direction:row!important}
html body.x678.x678 #win #in #vbtn{display:grid!important}
html body.x678.x678 #win #in #mchip,html body.x678.x678 #win #in #thk+#mchip{margin-left:0!important;margin-right:0!important;flex:0 1 auto!important;min-width:0!important}
html body.x678.x678 #win #in #vbtn,html body.x678.x678 #win #in #go,html body.x678.x678 #win #in #thk{margin-left:0!important;flex:none!important}
@media(max-width:520px){html body.x678.x678 #win #in #mchip{max-width:108px!important}html body.x678.x678 #win #in{padding:12px 10px 8px 14px!important}}
/* v678b: no model switcher; on mobile the composer stays at the bottom */
html body.x678.x678 #win #in #mchip{display:none!important}
@media(max-width:899px){
 html body.x678.x678.e678 #win{justify-content:flex-start!important}
 html body.x678.x678.e678 #win #log,html body.x678.x678.e678.n660 #win #log{flex:1 1 auto!important;display:flex!important;align-items:center;justify-content:center;overflow:hidden!important;padding:0 18px!important}
 html body.x678.x678 #win #in{margin-bottom:max(6px,env(safe-area-inset-bottom,0px))!important}
 html body.x678.x678 #x678under{margin-bottom:max(8px,env(safe-area-inset-bottom,0px))}
}
