/* AI agent case: white phone with a chat that shows the agent's tools and sources while it answers. */
.phone-demo{--pc-accent:var(--chosen-accent,#ff5a00);display:flex;justify-content:center;padding:8px 0 4px}
.phone-frame{position:relative;width:min(100%,340px);height:660px;padding:11px;border-radius:52px;background:linear-gradient(160deg,#ffffff,#eef0f3);border:1px solid #d9dde3;box-shadow:0 40px 80px -30px #0d101859,0 18px 36px -24px #0d101840,inset 0 0 0 2px #fff;box-sizing:border-box;animation:pc-rise .9s cubic-bezier(.2,.9,.3,1.1) both}
.phone-button{position:absolute;width:3px;border-radius:2px;background:#cfd4db}
.phone-button-left{left:-4px;top:120px;height:56px;box-shadow:0 74px 0 #cfd4db}
.phone-button-right{right:-4px;top:150px;height:72px}
.phone-screen{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:42px;background:#f4f5f7;border:1px solid #e3e6ea;color:#14161b}
.phone-status{display:flex;align-items:center;justify-content:space-between;padding:12px 24px 6px;font-size:12px}
.phone-island{width:92px;height:26px;border-radius:999px;background:#0d1018}
.phone-icons{display:flex;gap:3px;align-items:flex-end}.phone-icons i{display:block;width:4px;border-radius:1px;background:#14161b}.phone-icons i:nth-child(1){height:6px}.phone-icons i:nth-child(2){height:9px}.phone-icons i:nth-child(3){height:12px}
.phone-head{display:flex;align-items:center;gap:10px;padding:8px 14px 12px;background:#fff;border-bottom:1px solid #e8eaee}
.phone-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:50%;background:#ffe3d1;color:#863100;font-weight:700;font-size:13px}
.phone-head div{min-width:0;flex:1}.phone-head b{display:block;font-size:14px}
.phone-head small{display:flex;align-items:center;gap:4px;font-size:11px;color:#6b7280}.phone-head small img{height:10px;width:auto}
.phone-agent-badge{font-size:10px;font-weight:700;letter-spacing:.02em;padding:5px 8px;border-radius:999px;background:var(--pc-accent);color:#1a100a}
.phone-chat{flex:1;min-height:0;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;scrollbar-width:none}
.phone-chat::-webkit-scrollbar{display:none}
.pc-msg{max-width:84%;padding:9px 12px 7px;border-radius:18px;font-size:13px;line-height:1.45;animation:pc-in .35s cubic-bezier(.2,.9,.3,1.2) both}
.pc-msg p{margin:0}.pc-msg time{display:block;margin-top:3px;font-size:10px;opacity:.6;text-align:right}
.pc-in{align-self:flex-start;background:#fff;border:1px solid #e3e6ea;border-bottom-left-radius:6px}
.pc-out{align-self:flex-end;background:#14161b;color:#fff;border-bottom-right-radius:6px}
.pc-from{display:block;font-size:10px;font-weight:700;color:var(--pc-accent);margin-bottom:2px}
.pc-work{align-self:stretch;margin:0 4px;padding:10px;border-radius:14px;background:#fff;border:1px dashed #ffc29e;animation:pc-in .35s ease both}
.pc-work.is-done{border-style:solid;border-color:#eceef1}
.pc-work-head{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:11px;font-weight:700;color:#4b5260}
.pc-spark{color:var(--pc-accent);animation:pc-spin 1.4s linear infinite}.pc-work.is-done .pc-spark{animation:none}
.pc-tool{display:grid;grid-template-columns:40px 1fr 18px;align-items:center;gap:8px;padding:6px 2px;animation:pc-in .3s ease both}
.pc-tool+.pc-tool{border-top:1px solid #f0f1f4}
.pc-tool-logo{display:grid;place-items:center;height:26px;border-radius:7px;background:#f4f5f7;border:1px solid #eceef1}
.pc-tool-logo img{max-width:32px;max-height:12px}
.pc-tool-logo svg{width:15px;height:15px;fill:none;stroke:var(--pc-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pc-tool b{display:block;font-size:11.5px;line-height:1.3}.pc-tool small{display:block;font-size:10.5px;color:#6b7280;line-height:1.3}
.pc-tool-state i{display:block;width:14px;height:14px;border-radius:50%;border:2px solid #ffd2b3;border-top-color:var(--pc-accent);animation:pc-spin .8s linear infinite;box-sizing:border-box}
.pc-tool.is-done .pc-tool-state i{border:0;background:var(--pc-accent);animation:pc-pop .3s ease both;position:relative}
.pc-tool.is-done .pc-tool-state i::after{content:"";position:absolute;left:4.5px;top:2.5px;width:3px;height:6px;border:solid #1a100a;border-width:0 2px 2px 0;transform:rotate(45deg)}
.pc-typing{align-self:flex-end;display:flex;gap:4px;padding:11px 14px;border-radius:18px;border-bottom-right-radius:6px;background:#14161b}
.pc-typing i{width:6px;height:6px;border-radius:50%;background:#fff;opacity:.4;animation:pc-dot .9s ease-in-out infinite}
.pc-typing i:nth-child(2){animation-delay:.15s}.pc-typing i:nth-child(3){animation-delay:.3s}
.phone-suggest{padding:10px 12px 6px;background:#fff;border-top:1px solid #e8eaee}
.phone-suggest p{margin:0 0 6px;font-size:10.5px;color:#6b7280}
.phone-chips{display:flex;flex-direction:column;gap:6px}
.phone-chip{min-height:34px;padding:7px 12px;border:1px solid #e3e6ea;border-radius:999px;background:#f8f9fa;color:#14161b;font:inherit;font-size:12px;text-align:left;cursor:pointer;transition:border-color .2s ease,background-color .2s ease}
.phone-chip:hover{border-color:var(--pc-accent)}
.phone-chip[aria-pressed=true]{background:#fff1e8;border-color:var(--pc-accent);color:#863100;font-weight:600}
.phone-chip:focus-visible{outline:3px solid var(--pc-accent);outline-offset:2px}
.phone-home{width:110px;height:4px;margin:6px auto 8px;border-radius:999px;background:#14161b;opacity:.85}
@keyframes pc-in{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes pc-rise{from{opacity:0;transform:translateY(30px) rotate(-1.5deg) scale(.95)}to{opacity:1;transform:none}}
@keyframes pc-spin{to{transform:rotate(360deg)}}
@keyframes pc-pop{from{transform:scale(.3)}to{transform:none}}
@keyframes pc-dot{0%,100%{opacity:.35;transform:none}50%{opacity:1;transform:translateY(-3px)}}
@media(max-width:480px){.phone-frame{height:620px;border-radius:46px}.phone-screen{border-radius:36px}}
@media(prefers-reduced-motion:reduce){.phone-frame,.pc-msg,.pc-work,.pc-tool,.pc-spark,.pc-tool-state i,.pc-typing i{animation:none}}
/* Theme rules color every .portfolio-panel p, so the bubbles set their text color explicitly. */
html[data-theme] .phone-demo .pc-in p{color:#14161b}
html[data-theme] .phone-demo .pc-out p{color:#fff}
html[data-theme] .phone-demo .phone-suggest p,html[data-theme] .phone-demo .pc-work-head{color:#6b7280}
.pc-tool-logo{overflow:hidden}
.pc-tool-logo img[alt=InPost]{max-width:48px;max-height:30px}
.phone-chips{flex-direction:row;flex-wrap:wrap}
.phone-chip{min-height:32px;padding:6px 11px;font-size:11.5px}
