/* Connect an AI (features/ai.html): an AI chat app with Greekd connected, drawn in the light Claude look the home page
   uses (a hint of it, not a copy). Used by the hero (screens/ai.js, in a shadow root at 1440 x 935) and by the showcase
   panels (build/features/ai.py, in the page, in a 1100 x 714 frame). */
.ac{display:grid;grid-template-columns:220px minmax(0,1fr);height:100%;background:#FAF9F5;color:#1d1f1c;font-family:Geist,system-ui,sans-serif;text-align:left}
.ap-ai .ac{height:935px;grid-template-columns:270px minmax(0,1fr);font-size:17px}
.ac-side{display:flex;flex-direction:column;gap:2px;padding:18px 12px;background:#F0EEE6;border-right:1px solid #E6E3D8}
.ac-brand{display:flex;align-items:center;gap:9px;padding:2px 8px 16px;font:600 17px/1 Geist,sans-serif}
.ac-brand svg{width:22px;height:22px}
.ac-new{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:8px 10px;border-radius:9px;font-size:13.5px;font-weight:500;color:#3d3f3a}
.ac-new i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#D97757;color:#fff;font-style:normal;font-size:15px;line-height:1}
.ac-lab{padding:8px 10px 6px;font-size:11.5px;color:#8a877c}
.ac-side p.c{padding:7px 10px;border-radius:8px;font-size:13px;color:#3d3f3a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-side p.c.on{background:#E6E3D8}
.ac-me{margin-top:auto;display:flex;align-items:center;gap:9px;padding:8px;font-size:13px}
.ac-me i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#3d3f3a;color:#fff;font-style:normal;font-size:11px;font-weight:600}
.ac-main{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0}
.ac-top{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;flex:none;font-size:13.5px;color:#5d5b53}
.ac-top b{font-weight:500;color:#1d1f1c}
.ac-th{flex:1;min-height:0;overflow:hidden;width:100%;max-width:640px;margin:0 auto;padding:6px 20px 0;display:flex;flex-direction:column;gap:14px}
.ap-ai .ac-th{max-width:820px;gap:18px}
.ac-u{align-self:flex-end;max-width:80%;padding:10px 14px;border-radius:14px;background:#F0EEE6;font-size:14px;line-height:1.5}
.ap-ai .ac-u{font-size:17px;padding:12px 18px}
.ac-file{display:flex;align-items:center;gap:8px;align-self:flex-end;padding:8px 12px 8px 8px;border-radius:10px;background:#fff;border:1px solid #E2DFD5;font-size:12.5px}
.ac-file i{display:grid;place-items:center;width:28px;height:28px;border-radius:6px;background:#E3EAE4;color:#41694F;font-style:normal;font-size:10px;font-weight:700}
.ac-file span{display:flex;flex-direction:column}.ac-file small{color:#8a877c;font-size:11px}
.ac-a{display:flex;gap:12px;font-size:14px;line-height:1.55}
.ap-ai .ac-a{font-size:17px;gap:16px}
.ac-a>svg{flex:none;width:22px;height:22px;margin-top:1px}
.ac-a>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:9px}
.ac-a p b{font-weight:600}
.ac-tools{display:flex;flex-wrap:wrap;gap:6px}
.ac-tool{display:inline-flex;align-items:center;gap:6px;padding:4px 9px 4px 5px;border-radius:7px;background:#fff;border:1px solid #E6E3D8;font:500 11.5px/1.3 "Geist Mono",ui-monospace,monospace;color:#5d5b53}
.ap-ai .ac-tool{font-size:13.5px;padding:5px 11px 5px 6px}
.ac-tool i{display:grid;place-items:center;width:16px;height:16px;border-radius:4px;background:#41694F}
.ac-tool i svg{width:11px;height:11px}
.ac-tab{border:1px solid #E6E3D8;border-radius:10px;background:#fff;overflow:hidden;font-size:13px}
.ap-ai .ac-tab{font-size:15px}
.ac-tab p{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:7px 12px}
.ac-tab p+p{border-top:1px solid #F0EEE6}
.ac-tab p.h{background:#F7F6F2;font-size:11px;color:#8a877c;text-transform:uppercase;letter-spacing:.05em;padding:6px 12px}
.ac-tab em{font-style:normal;color:#8a877c}
.ac-tab em.r{color:#B4472F}.ac-tab em.g{color:#41694F}
.ac-tab b{font-weight:600;text-align:right}
.ac-ask{padding:10px 12px;border-radius:10px;background:#F3EEE4;border:1px solid #E8DFCB;font-size:13px;line-height:1.5}
.ap-ai .ac-ask{font-size:15.5px}
.ac-ask b{font-weight:600}
.ac-comp{flex:none;width:calc(100% - 40px);max-width:600px;margin:10px auto 18px;display:flex;align-items:center;justify-content:space-between;padding:12px 12px 12px 16px;border-radius:16px;background:#fff;border:1px solid #E2DFD5;box-shadow:0 4px 14px rgba(0,0,0,.04);font-size:13.5px;color:#9a978c}
.ap-ai .ac-comp{max-width:780px;font-size:16px;padding:16px 16px 16px 20px}
.ac-comp span{display:flex;align-items:center;gap:8px}
.ac-con{display:inline-flex;align-items:center;gap:6px;padding:3px 8px 3px 4px;border-radius:6px;background:#F4F3ED;color:#3d3f3a;font-size:12px;font-weight:500}
.ac-con img{width:16px;height:16px;border-radius:4px}
.ac-comp>i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#D97757;color:#fff}
.ac-comp>i svg{width:16px;height:16px}
.ac-done{display:flex;align-items:center;gap:7px;color:#41694F;font-weight:500}
.ac-done svg{width:16px;height:16px}
/* panels over the laptop fill the whole screen */
.lap-full .lap-in::before{display:none}
.lap-full .lap-in .fsx-p{left:0;width:auto}
.lap-full .lap-in .fsx-p,.fsx.pin .lap-full .lap-in .fsx-p,.fsx.pin[data-dir=up] .lap-full .lap-in .fsx-p,.fsx.pin .lap-full .lap-in .fsx-p.out{transform:translateY(14px)}
.lap-full .lap-in .fsx-p.on,.fsx.pin .lap-full .lap-in .fsx-p.on{transform:none}
/* the messages in a panel come in one after another */
.fsx-p .ac-th>*{opacity:0;transform:translateY(8px);transition:opacity .4s,transform .5s cubic-bezier(.2,.7,.2,1)}
.fsx-p.on .ac-th>*{opacity:1;transform:none}
.fsx-p.on .ac-th>*:nth-child(2){transition-delay:.25s}.fsx-p.on .ac-th>*:nth-child(3){transition-delay:.5s}
.fsx-p.on .ac-th>*:nth-child(4){transition-delay:.75s}.fsx-p.on .ac-th>*:nth-child(5){transition-delay:1s}
.fsx-p.on .ac-th>*:nth-child(6){transition-delay:1.25s}
.fsx.still .fsx-p .ac-th>*{transition:none}
/* moments */
.ai-term{padding:20px 22px;border-radius:14px;background:#171A17;color:#E7E6DF;font:13px/1.7 "Geist Mono",ui-monospace,monospace;box-shadow:0 18px 50px rgba(23,26,23,.18)}
.ai-term p{white-space:pre-wrap;overflow-wrap:anywhere}
.ai-term .d{color:#7f857b}.ai-term .g{color:#9BC3A6}.ai-term .y{color:#E3C58E}
.ai-term .bar{display:flex;gap:6px;margin-bottom:14px}.ai-term .bar i{width:10px;height:10px;border-radius:50%;background:#3a3d38}
.ai-aud p.r{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;font-size:13px}
.ai-aud p.r+p.r{border-top:1px solid #EEEDE6}
.ai-aud p.r span{display:flex;flex-direction:column;min-width:0}
.ai-aud p.r small{color:#7a7f76;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-aud p.r em{font-style:normal;color:#7a7f76;font-size:12px}
.ai-aud .ai-src{display:inline-block;margin-left:6px;padding:0 6px;border-radius:5px;background:#ECE7F0;color:#6B4E7A;font-size:10.5px;font-weight:600;vertical-align:1px}
.ai-tok p.r{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;font-size:13px}
.ai-tok p.r+p.r{border-top:1px solid #EEEDE6}
.ai-tok p.r span{display:flex;flex-direction:column}.ai-tok p.r small{color:#7a7f76;font-size:12px}
.ai-tok p.r u{text-decoration:none;padding:4px 9px;border-radius:6px;border:1px solid #EBD3CE;color:#B4472F;font-size:12px;font-weight:500}
.ux-pk{display:flex;flex-wrap:wrap;gap:6px}
.ux-pk span{padding:5px 10px;border-radius:7px;border:1px solid #E3E2DA;font-size:12.5px;font-weight:500;color:#7a7f76}
.ux-pk span.on{border-color:#171A17;background:#171A17;color:#fff}
.ux-pk span.more{border-style:dashed}
.ac-gk{display:block;width:16px;height:16px;border-radius:4px;background:#41694F;overflow:hidden}.ac-gk svg{display:block;width:100%;height:100%}
.ap-ai .ac-top{height:74px;padding-top:26px}

.ac-n{align-self:center;font-style:normal;font-size:12px;color:#7a7f76}
