/* Scoped to the existing authenticated Testshop conversation. */
#sophia-chat-dialog.ss-ux{font-size:1rem;text-size-adjust:100%;-webkit-text-size-adjust:100%}
.ss-ux .swb-main{overflow:hidden;padding-bottom:max(.65rem,env(safe-area-inset-bottom))}
.ss-ux .swb-main>.sophia-chat-log{min-height:3rem;overscroll-behavior:contain;scroll-padding-bottom:1rem}
#sophia-chat-dialog.ss-ux .sophia-chat-log article,#sophia-chat-dialog.ss-ux .sophia-chat-log article p,#sophia-chat-dialog.ss-ux .sophia-chat-log article li{font-size:max(1.0625rem,17px)!important;line-height:1.7!important}
#sophia-chat-dialog.ss-ux .sophia-chat-log article.answer{margin:.25rem 0 1rem;padding:.4rem .3rem!important}
#sophia-chat-dialog.ss-ux .sophia-chat-log article.user{margin:.7rem 0 .7rem 1.5rem;padding:.7rem 1rem!important;background:#edf4f0}
.ss-ux .ss-markdown p{margin:.55em 0 .85em;white-space:normal!important}.ss-markdown h3{font-size:1.12em;line-height:1.4;margin:1em 0 .5em}.ss-markdown ul{padding-left:1.35em;margin:.6em 0 1em}.ss-markdown li{margin:.4em 0}.ss-markdown strong{font-weight:700;color:#163e35}.ss-markdown pre{overflow:auto;padding:.8rem;background:#f1f5f3;border-radius:.6rem;white-space:pre-wrap}.ss-markdown code{font-size:.9em;background:#f1f5f3;padding:.1em .25em}.ss-markdown a{color:#17664b;text-decoration:underline;text-underline-offset:3px}
.ss-ux .swb-status{padding:.4rem .65rem .55rem;background:#f8faf8}.ss-caption{display:flex;justify-content:space-between;align-items:center;gap:.4rem;font-size:.75rem;line-height:1.4;color:#52675f;margin-bottom:.4rem}.ss-caption button{font:inherit;border:0;background:transparent;color:#315e50;padding:.35rem;min-height:28px;text-decoration:underline;text-underline-offset:3px}
.ss-ux .ss-slots{gap:.35rem}.ss-ux .ss-slots>button{display:grid;grid-template-columns:1rem minmax(0,1fr);gap:.15rem .3rem;padding:.5rem!important;min-height:48px;border:1px solid #d8e3dd!important;background:white!important;color:#29473c!important;align-content:center}.ss-ux .ss-slots>button>span{padding:0;font-size:.75rem;font-weight:600}.ss-slots small{grid-column:2;padding:0!important;font-size:.625rem!important;color:#52675f!important}.ss-ux .ss-slots [data-state=ready]{background:#eaf6ed!important;border-color:#95bfa4!important;color:#24663c!important}.ss-slots [data-state=running] .ss-icon{width:.65rem;height:.65rem;box-sizing:border-box;border:2px solid #a3c3b2;border-top-color:#247354;border-radius:50%;font-size:0!important;animation:ss-turn 1.6s linear infinite;align-self:center}.ss-slots [data-state=ready] .ss-icon{animation:ss-arrive .4s ease-out}.ss-ux .ss-slots [data-state=failed],.ss-ux .ss-slots [data-state=unknown]{border-color:#d8ad93!important;background:#fff7f0!important}.ss-drafts{font:inherit;font-size:.75rem;padding:.3rem;background:none;border:0;color:#315e50;text-decoration:underline}.ss-simulation{font-size:.6875rem!important;line-height:1.3;margin:.4rem 0 0;color:#71541c}
.ss-details{flex:0 1 auto;max-height:45%;overflow:auto;border:1px solid #dce7df;background:#f7faf8;border-radius:12px;margin:0 0 .6rem;padding:.75rem;font-size:.9rem}.ss-detail-head{display:flex;align-items:center;gap:.4rem;justify-content:space-between}.ss-detail-head h3{font-size:1rem;margin:0}.ss-detail-head button{border:0;background:none;font-size:1.3rem;min-width:44px;min-height:44px}.ss-detail-status{font-size:.8rem!important;margin:.3rem 0;color:#52675f}.ss-detail-status[data-state=ready]{color:#286e40;font-weight:700}.ss-muted{color:#52675f;font-size:.85rem!important}.ss-detail-actions{display:flex;flex-wrap:wrap;gap:.4rem}.ss-detail-actions button,.ss-detail-actions a,.ss-markdown>button,.ss-confirm button{font:inherit;font-size:.8rem;border:1px solid #c3d7ca;border-radius:9px;background:white;color:#23553f;padding:.55rem .7rem;min-height:44px;cursor:pointer}.ss-result-copy{max-height:12rem;overflow:auto;font-size:.9rem;line-height:1.6}.ss-result-copy p{font-size:inherit!important}.ss-result-image{display:block;width:100%;max-height:36dvh;object-fit:contain;border-radius:12px;margin:.8rem auto}.ss-confirm{border-top:1px solid #dce7df;margin-top:.7rem;padding-top:.5rem}.ss-search{display:block;margin:.1rem 0 .6rem;font-size:.8rem!important}.ss-search input{font-size:1rem!important;min-height:44px!important;margin-top:.3rem}.ss-ux [hidden]{display:none!important}
#sophia-chat-dialog.ss-ux .sc-composer textarea{font-size:max(1.0625rem,17px)!important;line-height:1.5!important;min-height:46px!important}.ss-ux .sc-header button,.ss-ux .sc-controls button,.ss-ux .sc-controls summary{min-width:44px!important;min-height:44px!important}.ss-ux button:focus-visible,.ss-ux a:focus-visible{outline:3px solid #428d70;outline-offset:2px}.ss-ux .sc-setup{max-height:3rem;overflow:auto}
@keyframes ss-turn{to{transform:rotate(360deg)}}@keyframes ss-arrive{from{transform:scale(.85)}to{transform:scale(1)}}
@media(max-width:599px){#sophia-chat-dialog.ss-ux .sophia-chat-log article,#sophia-chat-dialog.ss-ux .sophia-chat-log article p,#sophia-chat-dialog.ss-ux .sophia-chat-log article li{font-size:max(1.1rem,18px)!important;line-height:1.7!important}#sophia-chat-dialog.ss-ux .sc-composer textarea{font-size:max(1.1rem,18px)!important}.ss-ux .swb-main{padding:.5rem .65rem max(.6rem,env(safe-area-inset-bottom))}.ss-ux .swb-sidebar{width:255px;font-size:1rem}.ss-ux .swb-sidebar button{font-size:.9rem;min-height:44px}.ss-ux .ss-slots>button>span{font-size:.6875rem}.ss-ux .sc-header .sc-identity img{flex:none}.ss-ux .sc-header .sc-identity{min-width:0}.ss-ux .ss-details{max-height:38%}}
@media(max-height:560px){.ss-ux .ss-caption,.ss-ux .ss-simulation{display:none}.ss-ux .swb-status{padding:.25rem .5rem}.ss-ux .ss-details{max-height:30%}.ss-ux .sc-setup,.ss-ux .sc-topic{display:none}.ss-ux .ss-slots>button{min-height:44px;padding:.3rem!important}}
@media(prefers-reduced-motion:reduce){.ss-ux *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.ss-ux .ss-planning{display:flex;gap:.4rem;flex:0 0 auto;margin:.25rem 0 .4rem;flex-wrap:wrap}.ss-ux .ss-planning:empty{display:none}.ss-ux .ss-planning button{flex:1;min-height:44px;border:1px solid #cfdfd5;border-radius:10px;background:#f2f7f4;color:#244f3b;font:inherit;font-size:.8125rem;padding:.4rem .6rem;cursor:pointer}.ss-ux .ss-planning button:disabled{opacity:.65}

/* Conversation-first: no persistent execution shelves. */
#sophia-chat-dialog.ss-conversation [data-swb-status],.ss-conversation [data-swb-notice]{display:none!important}
.ss-conversation .swb-sidebar{width:260px;max-width:85%;padding:12px;box-sizing:border-box;overflow:auto}
.ss-conversation .swb-sidebar h3{font-size:.8rem}.ss-conversation .swb-chat{padding:10px!important;min-height:52px}.ss-conversation .swb-chat small{font-size:.75rem;line-height:1.5}.ss-history-new{color:#245da4;font-weight:600;display:flex;align-items:center;gap:5px}.ss-history-new i{width:7px;height:7px;border-radius:50%;background:#2674dc;flex:none}
.ss-project-fold,.ss-task-fold{margin:8px 0;font-size:.85rem}.ss-project-fold>summary,.ss-task-fold>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#52675f}.ss-project-fold .swb-section-title h3{display:none}.ss-conversation .swb-assignment{padding-top:10px}.ss-conversation .ss-search{margin:10px 0}.ss-conversation .ss-search input{width:100%;box-sizing:border-box}
.ss-focus{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.8rem;color:#52675f;padding:2px 8px;flex:none}.ss-focus span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ss-focus button{background:transparent;border:0;min-width:44px;min-height:36px;font-size:1.2rem}
.ss-conversation .ss-image-preview,.ss-conversation .ss-composed-result{max-width:380px}.ss-conversation .ss-image-preview canvas,.ss-conversation .ss-composed-result canvas{max-height:240px;object-fit:contain}.ss-conversation .ss-details{background:#fff;border:1px solid #e0e7e2;max-height:45%}.ss-conversation .swb-main{gap:0}.ss-conversation .sc-composer{margin-top:auto}.ss-conversation .sophia-chat-log{flex:1;min-height:0}.ss-conversation .ss-result-image{max-height:220px}
@media(min-width:1100px){.ss-conversation.swb-wide .swb-sidebar{position:relative;flex:none}.ss-conversation.swb-wide .swb-main{padding:12px 24px}}
@media(max-width:599px){#sophia-chat-dialog.ss-conversation[open]{border-radius:12px!important}.ss-conversation .swb-sidebar{width:280px}.ss-conversation .ss-image-preview,.ss-conversation .ss-composed-result{max-width:100%}.ss-conversation .ss-details{max-height:40%}}

.ss-working-tasks{font-size:.8rem;line-height:1.5;color:#52675f;padding:5px 8px;flex:none;max-height:3.2em;overflow:auto}.ss-working-tasks:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#507d68;margin-right:8px;animation:ss-arrive 1.8s ease-in-out infinite alternate}
