/* Scoped readability improvements; retain CAI ONE's existing layout and double bars. */
#caiInfinityHome .cai-runway h3{font:700 22px/1.3 system-ui,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;margin:0 0 12px!important;overflow-wrap:anywhere}
#caiInfinityHome .cai-runway h3::after{content:none!important;display:none!important}
#caiInfinityHome .cai-runway{padding:16px!important;min-width:0;overflow-wrap:anywhere}
#caiInfinityHome .cai-runway p{font-size:16px!important;line-height:1.6!important}
.cai-reply-export{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.cai-reply-export .action{min-height:44px;font-size:14px!important;padding:8px 12px!important}
#glamCompare[hidden]{display:none!important}#glamCompare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;padding:12px;box-sizing:border-box}#glamCompare figure{margin:0;min-width:0}#glamCompare img{display:block!important;width:100%!important;height:auto!important;max-height:65vh;object-fit:contain!important;border-radius:12px}#glamCompare figcaption{font:700 16px/1.5 system-ui;color:#fff;text-align:center;padding:8px}#glamStudioShell .glam-view-toggle{flex-wrap:wrap}#glamStudioShell .glam-view-toggle button{min-height:44px}
@media(max-width:480px){#glamCompare{grid-template-columns:1fr}.cai-reply-export .action{font-size:13px!important}}
#caiChatFinder{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;color:#eaf4ff;font:15px/1.4 system-ui}#caiChatFinder .action{min-height:44px;padding:8px 12px!important;font-size:14px!important}#caiChatSearchFields{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}#caiChatSearchFields[hidden]{display:none!important}#caiChatSearchFields input{flex:1 1 200px;min-width:0;box-sizing:border-box;font:16px/1.4 system-ui;padding:11px;border:1px solid #7c9cbf;border-radius:12px;background:#081a30;color:#fff}#caiChatSearchFields [role=status]{font-size:14px;color:#d5e5f7}#messages .cai-search-current{outline:2px solid #e4c780;outline-offset:4px;border-radius:12px}#caiChatFinder :focus-visible{outline:3px solid #71c9ff;outline-offset:3px}
#caiInteractiveTools[hidden]{display:none!important}#caiInteractiveTools{box-sizing:border-box;max-width:100%;margin:12px 0 20px;padding:18px;border:1px solid #6a91b8;border-radius:20px;background:#0b1c33;color:#edf5ff;font:16px/1.6 system-ui,sans-serif}#caiInteractiveTools h3,#caiInteractiveTools h4{font:700 20px/1.4 system-ui!important;letter-spacing:normal!important;text-transform:none!important;margin:0 0 12px!important}#caiInteractiveTools h3::after,#caiInteractiveTools h4::after{display:none!important}#caiInteractiveTools p{font:inherit!important;color:#d6e5f7!important}#caiInteractiveTools .cai-tool-choices{display:flex;flex-wrap:wrap;gap:8px}#caiInteractiveTools button{min-height:44px;padding:10px 14px!important;font-size:15px!important;white-space:normal}#caiInteractiveTools label{display:block;margin:12px 0;color:#edf5ff}#caiInteractiveTools input:not([type=checkbox]),#caiInteractiveTools textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:12px;border:1px solid #779ec7;border-radius:10px;background:#061426;color:white;font:16px/1.5 system-ui}#caiInteractiveTools progress{width:100%;accent-color:#39b9ff}#caiInteractiveTools .cai-check-task{display:flex;align-items:flex-start;gap:12px;min-height:44px;overflow-wrap:anywhere}#caiInteractiveTools input[type=checkbox]{flex:none;width:22px;height:22px;margin-top:3px;accent-color:#39b9ff}#caiInteractiveTools :focus-visible{outline:3px solid #75d3ff;outline-offset:3px}#caiInteractiveTools .cai-tool-content>button{margin:6px 8px 6px 0}
#caiReadingControls[hidden]{display:none!important}#caiReadingControls{box-sizing:border-box;display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;padding:12px;border:1px solid #698eb5;border-radius:14px;background:#0b1c33;color:#edf5ff}#caiReadingControls select{max-width:100%;min-height:44px;padding:8px;border:1px solid #7a9cc1;border-radius:8px;background:#061426;color:white;font:16px system-ui}#caiReadingControls [role=status]{flex-basis:100%;font-size:14px}#caiReadingControls button[aria-pressed=true]{outline:2px solid #77d2ff;background:#173c60}#messages[data-cai-read-size=large] .msg.assistant .bubble{font-size:20px!important}#messages[data-cai-read-size=larger] .msg.assistant .bubble{font-size:24px!important}#messages.cai-read-spacious .msg.assistant .bubble{line-height:1.85!important}#messages.cai-read-spacious .msg.assistant .bubble p{margin-block:1em}#caiReadingControls :focus-visible{outline:3px solid #77d2ff;outline-offset:3px}
#caiSavedChats[hidden],#caiRequestStatus [hidden]{display:none!important}#caiSavedChats{box-sizing:border-box;max-width:100%;padding:16px;border:1px solid #7b9dbd;border-radius:16px;background:#0b1c33;color:#edf5ff;font:16px/1.6 system-ui}#caiSavedChats h3{font:700 20px/1.4 system-ui!important;letter-spacing:normal!important;text-transform:none!important}#caiSavedChats h3::after{display:none!important}#caiSavedChats p{font:inherit!important}#caiSavedChats button{min-height:44px;font-size:14px!important;padding:10px!important;margin:4px}#caiSavedChats input{box-sizing:border-box;width:100%;padding:12px;background:#061426;color:white;border:1px solid #7b9dbd;border-radius:10px;font:16px system-ui;margin:12px 0}.cai-saved-row{border-top:1px solid #536a84;padding:12px 0}.cai-saved-row strong{display:block;overflow-wrap:anywhere}#caiRequestStatus{font:15px/1.5 system-ui;color:#d6e5f7;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}#caiRequestStatus progress{max-width:100px}#caiRequestStatus button{min-height:44px}#caiInteractiveTools .cai-compare-wrap{overflow-x:auto}#caiInteractiveTools table{width:100%;border-collapse:collapse;font:16px/1.5 system-ui}#caiInteractiveTools th,#caiInteractiveTools td{padding:10px;text-align:left;border:1px solid #6c88a5;overflow-wrap:anywhere}#caiSavedChats :focus-visible{outline:3px solid #77d2ff;outline-offset:3px}
#caiStoragePanel[hidden],#caiVoiceStatus [hidden]{display:none!important}#caiStoragePanel{box-sizing:border-box;max-width:100%;padding:16px;border:1px solid #7b9dbd;border-radius:16px;background:#0b1c33;color:#edf5ff;font:16px/1.6 system-ui}#caiStoragePanel h3,#caiStoragePanel h4{font:700 20px/1.4 system-ui!important;letter-spacing:normal!important;text-transform:none!important}#caiStoragePanel h3::after,#caiStoragePanel h4::after{display:none!important}#caiStoragePanel p{font:inherit!important}#caiStoragePanel button{min-height:44px;font-size:14px!important;padding:10px!important;margin:4px}#caiStoragePanel .cai-storage-row,#caiStoragePanel article{border-top:1px solid #536a84;padding:12px 0;overflow-wrap:anywhere}#caiVoiceStatus{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:15px/1.5 system-ui;color:#d6e5f7;margin:8px 0}#caiVoiceStatus button{min-height:44px}.cai-image-controls{position:absolute;bottom:12px;left:5%;right:5%;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:10px;background:#0b1c33;color:white;border:1px solid #7b9dbd;border-radius:12px;z-index:2;font:16px/1.4 system-ui}.cai-image-controls button{min-height:44px}.cai-image-controls input{max-width:35vw;min-height:44px}#caiImageViewer{overflow:auto!important}#caiImageViewer img{transform-origin:center;transition:none}#caiStoragePanel :focus-visible,.cai-image-controls :focus-visible{outline:3px solid #77d2ff;outline-offset:3px}

/* Keep image navigation above the activity banner and separate all viewer controls. */
#caiImageViewer{z-index:10050;box-sizing:border-box;overflow:hidden!important;padding:calc(env(safe-area-inset-top,0px) + 76px) 14px calc(env(safe-area-inset-bottom,0px) + 14px);gap:12px}
#caiImageViewer.show{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center}
#caiImageViewer>button{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);right:14px;width:auto;max-width:calc(100vw - 28px);height:auto;min-height:48px;padding:10px 16px;font:700 16px/1.25 system-ui;z-index:4}
#caiImageViewer>img{grid-row:1;min-height:0;max-width:100%;max-height:calc(100vh - 250px);max-height:calc(100dvh - 250px);object-fit:contain;align-self:center}
#caiImageViewer .cai-image-controls{grid-row:2;position:relative;inset:auto;box-sizing:border-box;width:min(100%,720px);max-height:38dvh;overflow:auto;margin:0;z-index:3}
#caiImageViewer .cai-image-controls button{position:static;inset:auto;width:auto;height:auto;min-height:44px;padding:10px 14px;border-radius:12px;font:700 16px/1.3 system-ui}
#caiImageViewer .cai-image-controls input{min-width:120px;max-width:50vw}
