#flexible .section-heading{margin-bottom:7px}
.flex-intro{max-width:800px;margin:0 auto 17px;text-align:center;color:var(--muted);font-size:12px;line-height:1.55}
.flex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 30px;max-width:1000px;margin:auto}
.flex-card{position:relative;min-width:0;padding:8px;background:#f6f8fb;border:1px solid #e1e7ef;border-radius:10px;transition:border-color .18s,box-shadow .18s}
.flex-card.is-active{border-color:#8daacb;box-shadow:0 0 0 2px #426b9b0b;background:#f2f6fb}
.flex-card:focus-within,.flex-card:hover{z-index:5}
.flex-frame{border-radius:5px}
.flex-frame video{cursor:pointer}
.flex-interaction{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;z-index:4;min-height:40px}
.flex-command-wrap{min-width:0;flex:1}
.flex-command{position:relative;display:flex;justify-content:flex-start;align-items:center;width:100%;gap:7px;min-height:37px;padding:6px 8px 6px 5px;border:1px solid #d9e3ef;border-radius:6px;background:#fff;color:#2e547e;font-size:13px;line-height:1.4;text-align:left;transition:background .2s,border-color .2s}
.flex-user-avatar{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#e7eef8;color:#5b7ca3;flex-shrink:0}
.flex-user-avatar svg{width:16px;height:16px}
.flex-draft{flex:1;min-width:0}
.flex-state{font-size:10px;white-space:nowrap;color:#52769e}
.flex-command.is-settled{background:#eef3f9;border-color:#e0e7f0;color:#426187}
.flex-command:hover,.flex-command[aria-expanded="true"]{border-color:#a0b8d5}
.flex-command.is-typing{background:#fff;border-color:#8eadd2;box-shadow:0 0 0 2px #b5cdeb30}
.flex-command.is-typing .flex-draft::after{content:'▏';margin-left:1px}
.flex-card.is-inputting .flex-command.is-typing .flex-draft::after{animation:flex-caret .8s steps(2,start) infinite}
.flex-command.is-sent{border-color:#a9c3e3;background:#edf5ff}
.flex-full-prompt{position:absolute;left:0;right:0;bottom:calc(100% + 7px);padding:11px 12px;border:1px solid #d9e3ef;background:#fff;color:#263548;border-radius:7px;font-size:13px;line-height:1.65;max-height:175px;overflow:auto;box-shadow:0 4px 18px #13263d20;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s}
.flex-command-wrap.prompt-below .flex-full-prompt{bottom:auto;top:calc(100% + 7px)}
.flex-command-wrap.prompt-open .flex-full-prompt{opacity:1;visibility:visible;pointer-events:auto}
@media(hover:hover){.flex-command-wrap:hover:not(.prompt-dismissed) .flex-full-prompt{opacity:1;visibility:visible;pointer-events:auto}}
.flex-system{display:flex;align-items:center;gap:5px;flex-shrink:0;padding:2px 0;color:#617389;min-width:125px}
.flex-system-mark{display:block;width:24px;height:24px;flex-shrink:0;opacity:.7}
.flex-system-copy{display:flex;flex-direction:column;gap:3px}
.flex-system strong{font-size:12px;font-weight:600;line-height:1.2;display:flex;align-items:center;gap:4px}
.flex-system small{font-size:10px;line-height:1.2;color:#7b8b9d}
.flex-system.is-streaming{color:#426b9b}
.flex-system.is-streaming .flex-system-mark{opacity:1}
.flex-system.is-streaming strong::after{content:'';width:4px;height:4px;background:#6ba49a;border-radius:50%}
.flex-system.is-streaming small{color:#426b9b}
.flex-frame .flex-activate{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#f5f8ffde;border:1px solid #ffffffaa;color:#426b9b;border-radius:50%;width:42px;height:42px;padding:11px;box-shadow:0 2px 15px #14283f26}
.flex-frame .flex-activate[hidden]{display:none}
.flex-frame .flex-activate:hover{background:#fff}
.flex-controls{margin:6px 2px 0;gap:6px}
.flex-controls .timeline{flex:1;min-width:35px;width:0;height:3px;opacity:.65}
.flex-controls .timeline:hover,.flex-controls .timeline:focus-visible{opacity:1}
.flex-controls .icon-button{background:transparent;width:24px;height:24px;padding:4px;color:#6b82a0}
.flex-controls .speed-buttons button{font-size:11px;padding:3px 5px}
.flex-controls .clock{font-size:10px}
@keyframes flex-caret{to{opacity:0}}
@media(max-width:1000px){.flex-grid{gap:18px 24px}.flex-interaction{gap:6px}.flex-command{font-size:12px;gap:5px;padding-right:5px}.flex-system{min-width:120px;gap:5px}.flex-system-mark{width:24px;height:24px}}
@media(max-width:900px){.flex-grid{grid-template-columns:1fr;max-width:530px}.flex-command{font-size:13px}}
@media(max-width:700px){.flex-intro{font-size:11px}.flex-card{padding:6px}.flex-full-prompt{font-size:12px;max-height:150px}.flex-controls{gap:5px}.flex-user-avatar{width:21px;height:21px}.flex-command{font-size:12px}.flex-system{min-width:120px}.flex-system strong{font-size:11px}.flex-system small{font-size:9.5px}}
@media(prefers-reduced-motion:reduce){.flex-card,.flex-command,.flex-full-prompt{transition:none}.flex-command.is-typing .flex-draft::after{animation:none!important}}



.flex-frame video{transition:filter .5s ease}
.flex-card.is-unstarted .flex-frame video{filter:brightness(.68) blur(2px)}
.flex-card.is-initializing .flex-frame video{filter:brightness(.68) blur(1.6px)}
.flex-command.is-empty{background:#f0f3f7;border-color:#e1e6ee;color:#8995a5}
.flex-command.is-empty .flex-draft{font-size:12px}
.flex-command.is-empty:hover{border-color:#9eb5d0;color:#526f92;background:#fff}
.flex-command.is-empty .flex-user-avatar{opacity:.65}
.flex-system small[hidden]{display:none}
.flex-card.is-unstarted .flex-activate{width:auto;height:40px;padding:8px 14px;border-radius:22px;gap:6px;font-size:12px}
.flex-card:not(.is-unstarted) .flex-activate span{display:none}
.flex-full-prompt[hidden]{display:none}
.flex-launch-layer{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;opacity:0;visibility:hidden;pointer-events:none;color:white;z-index:2;transition:opacity .25s,visibility .25s}
.flex-card.is-launching .flex-launch-layer{opacity:1;visibility:visible}
.flex-launch-spinner{width:30px;height:30px;border:2px solid #ffffff45;border-top-color:white;border-radius:50%}
.flex-card.is-launching .flex-launch-spinner{animation:flex-startup-spin .8s linear infinite}
.flex-launch-label{font-size:13px;font-weight:500;letter-spacing:.2px}
.flex-system.is-starting{color:#426b9b}
.flex-system.is-starting .flex-system-mark{opacity:1}
.flex-system.is-starting strong::after{content:'';width:8px;height:8px;border:1px solid #426b9b35;border-top-color:#426b9b;border-radius:50%;animation:flex-startup-spin .8s linear infinite}
@keyframes flex-startup-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.flex-frame video,.flex-launch-layer{transition:none}.flex-card.is-launching .flex-launch-spinner,.flex-system.is-starting strong::after{animation:none}}


.flex-receipt{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;flex-shrink:0;min-width:24px}
.flex-send-key{display:inline-flex;align-items:center;justify-content:center;width:23px;height:22px;border:1px solid transparent;border-radius:4px;background:#eaf1f8;color:#52769e;box-shadow:none;font-size:14px;line-height:1;transform:scale(1);transition:transform .24s cubic-bezier(.2,1.6,.5,1),background .2s,color .2s}
.flex-send-key.is-pressed{transform:scale(.9);box-shadow:none;background:#426b9b;border-color:transparent;color:#fff}
.flex-send-key.is-confirmed{background:transparent;border-color:transparent;box-shadow:none;transform:scale(1);font-size:12px;color:#6b87a9}
.flex-command.is-empty .flex-send-key{opacity:.5}
@media(prefers-reduced-motion:reduce){.flex-send-key{transition:none;transform:none}.flex-send-key.is-pressed{transform:none}}


.flex-grid{max-width:1160px}
.flex-interaction{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:8px;min-height:40px}
.flex-command{gap:5px;padding:6px 6px 6px 5px;font-size:11.5px;line-height:1.25;min-height:37px}
.flex-user-avatar{width:22px;height:22px}
.flex-draft{letter-spacing:-.2px;white-space:nowrap}
.flex-receipt{width:54px;min-width:54px;gap:4px}
.flex-state{font-size:9px}
.flex-send-key{width:20px;height:21px}
.flex-system{width:128px;min-width:128px;max-width:128px;height:36px;padding:0;gap:5px;justify-self:start}
.flex-system-copy{min-width:0;gap:2px}
.flex-system strong{white-space:nowrap;font-size:11.5px}
.flex-system small{white-space:nowrap;font-size:9.5px;letter-spacing:-.15px}
@media(min-width:1361px) and (max-width:1439px){
 .flex-interaction{grid-template-columns:minmax(0,1fr) 116px}
 .flex-system{width:116px;min-width:116px;max-width:116px;gap:4px}
 .flex-system-mark{width:22px;height:22px}
 .flex-system small{font-size:8.8px;letter-spacing:-.15px}
 .flex-system strong{font-size:11px}
 .flex-command{gap:4px;padding:6px 5px}
 .flex-user-avatar{width:20px;height:20px}
 .flex-draft{letter-spacing:-.4px}
 .flex-receipt{width:44px;min-width:44px;gap:3px}
 .flex-state{font-size:8.5px}
 .flex-send-key{width:17px;height:20px}
}
@media(max-width:1360px){.flex-grid{grid-template-columns:1fr;max-width:640px}}
@media(max-width:700px){
 .flex-interaction{grid-template-columns:minmax(0,1fr) 128px;gap:6px}
 .flex-command{font-size:12px;line-height:1.35}
 .flex-draft{white-space:normal;letter-spacing:-.1px}
 .flex-receipt{width:49px;min-width:49px;gap:3px}
}


@media(max-width:900px){.flex-draft{white-space:normal}}
