/* Solid dark surfaces, no gradients. Scoped mobile chat and shared autocomplete. */
.at67-complete{position:fixed;z-index:2147483000;box-sizing:border-box;background:#181b20;color:#f0f2f5;border:1px solid #383d46;border-radius:12px;overflow:auto;overscroll-behavior:contain;box-shadow:0 8px 24px #0008;font-family:inherit;font-size:14px;line-height:1.4;scrollbar-width:thin}
.at67-complete[hidden]{display:none!important}.at67-complete-label{padding:9px 13px 6px;font-size:11px;font-weight:650;color:#a8aeb9;letter-spacing:.035em}.at67-complete [role=option]{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:10px 12px;min-height:42px;cursor:pointer;border-top:1px solid #ffffff09;box-sizing:border-box}.at67-complete [role=option]:hover,.at67-complete [aria-selected=true]{background:#2a3038}.at67-complete-icon,.at67-complete-arrow{color:#9da9b8;text-align:center;font-size:16px}.at67-complete-text{overflow-wrap:anywhere}.at67-complete [aria-selected=true] .at67-complete-icon{color:#58c6f2}
@media(max-width:800px){
 body .tsugi-shell{margin:0 auto!important;padding:9px 12px 0!important;box-sizing:border-box;max-width:100%!important;display:block!important}
 body .tsugi-shell .tsugi-main{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0;min-height:0;height:var(--at67-chat-space,calc(100dvh - 135px));max-height:none!important}
 body .tsugi-shell .tsugi-main>*{flex-shrink:0;min-width:0}
 body .tsugi-shell .tsugi-top{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;padding:2px 0 9px!important;border-bottom:1px solid #262a30!important;margin:0!important}
 body .tsugi-shell .tsugi-top>div:has(h1){flex:1 0 100%!important;min-width:0}
 body .tsugi-shell .tsugi-top h1{flex:1 0 100%;font-size:22px!important;letter-spacing:-.65px!important;line-height:1.2!important;margin:0 0 3px!important;color:#f1f3f5!important}
 body .tsugi-shell .tsugi-top>div:not(:has(h1)):has(button),body .tsugi-shell .tsugi-top .at60-chat-options{display:contents!important}
 body .tsugi-shell .tsugi-top :is(button,a.btn){display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto!important;width:auto!important;min-height:36px!important;padding:6px 9px!important;font-size:12px!important;font-weight:600!important;line-height:1.2!important;border-radius:8px!important;white-space:nowrap;margin:0!important;background:#1b1e23!important;color:#e1e5e9!important;border:1px solid #2b3037!important;box-shadow:none!important}
 body .tsugi-shell .tsugi-top [aria-pressed=true],body .tsugi-shell .tsugi-top [aria-expanded=true]{background:#29333b!important;border-color:#42545f!important;color:#d8f2ff!important}
 body .tsugi-shell .tsugi-main .tsugi-thread{flex:1 1 0!important;height:auto!important;min-height:100px!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:5px 2px 7px 0!important;gap:10px!important;scrollbar-width:thin;scrollbar-color:#292e35 transparent;overscroll-behavior-y:contain}
 body .tsugi-shell .tsugi-user{margin:1px 0!important;max-width:100%}
 body .tsugi-shell .tsugi-user span{max-width:88%!important;padding:8px 12px!important;font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere}
 body .tsugi-shell .tsugi-bot{gap:6px!important;margin:0!important;max-width:100%;align-items:flex-start}
 body .tsugi-shell .tsugi-bot .tsugi-mascot{width:30px!important;height:33px!important;object-fit:contain;flex:none}
 body .tsugi-shell .tsugi-bot:not(.tsugi-typing)>div{max-width:calc(100% - 36px)!important;padding:9px 11px!important;border-radius:4px 12px 12px 12px!important;box-sizing:border-box;overflow-wrap:anywhere}
 body .tsugi-shell .tsugi-bot small{font-size:10px!important;letter-spacing:.04em!important}
 body .tsugi-shell .tsugi-bot p{margin:4px 0 0!important;font-size:14px!important;line-height:1.52!important}
 body .tsugi-shell .tsugi-results{gap:9px!important;margin:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .tsugi-shell .tsugi-results.at60-list{grid-template-columns:minmax(0,1fr)!important}
 body .tsugi-shell .tsugi-result-title{font-size:13px!important;line-height:1.35!important;overflow-wrap:anywhere}
 body .tsugi-shell .tsugi-result-copy{padding:6px 0!important;gap:4px!important}
 body .tsugi-shell .tsugi-result-reason{font-size:12px!important;line-height:1.45!important}
 body .tsugi-shell .tsugi-main .tsugi-compose{position:static!important;inset:auto!important;flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;margin:0!important;padding:7px 9px!important;border-radius:13px!important;background:#171a1f!important;border:1px solid #30363f!important;box-shadow:none!important}
 body .tsugi-shell .tsugi-compose textarea{min-height:42px!important;height:46px;max-height:96px!important;resize:none!important;font-size:16px!important;padding:7px 4px!important;line-height:1.4!important}
 body .tsugi-shell .tsugi-compose-footer{display:flex!important;align-items:center;justify-content:space-between!important;gap:6px!important;flex-wrap:wrap}
 body .tsugi-shell .tsugi-compose-footer small{font-size:10px!important;line-height:1.25!important;max-width:70%}
 body .tsugi-shell .tsugi-compose button.primary{min-height:38px!important;min-width:76px!important;border-radius:8px!important;background:#e9edf1!important;color:#171b20!important;font-size:13px!important;padding:6px 11px!important;box-shadow:none!important}
 body .tsugi-shell .tsugi-refine{height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important}
 body .tsugi-shell .tsugi-refine-empty{display:none!important}
 body .tsugi-shell .tsugi-bottom{font-size:10px!important;line-height:1.25!important;margin:0!important;padding:0!important}
 body .tsugi-shell>.tsugi-sidebar.a62-sidebar-open{display:flex!important;position:static!important;max-height:42dvh!important;margin:0 0 9px!important;padding:10px!important;border:1px solid #292f37!important;overflow:auto!important;gap:6px!important}
 body .tsugi-shell:has(>.tsugi-sidebar.a62-sidebar-open) .tsugi-main{height:auto!important;min-height:330px}
 body .tsugi-shell:has(>.tsugi-sidebar.a62-sidebar-open) .tsugi-main .tsugi-thread{min-height:180px!important;max-height:45dvh!important;flex:auto!important}
 .at67-complete [role=option]{min-height:44px;padding:10px 12px}
}
@media(max-width:380px){body .tsugi-shell{padding-inline:9px!important}body .tsugi-shell .tsugi-top :is(button,a.btn){font-size:11px!important;padding-inline:7px!important}body .tsugi-shell .tsugi-top{gap:5px!important}body .tsugi-shell .tsugi-top h1{font-size:20px!important}}
@media(max-width:500px){
 body .tsugi-shell .tsugi-top :is(button,a.btn)[data-at67-short]{flex:1 1 0!important;min-width:0;min-height:38px!important;font-size:0!important;gap:0!important;padding-inline:5px!important}
 body .tsugi-shell .tsugi-top :is(button,a.btn)[data-at67-short]>*{display:none!important}
 body .tsugi-shell .tsugi-top :is(button,a.btn)[data-at67-short]::after{content:attr(data-at67-short);font-size:12px;font-weight:650;line-height:1.2;white-space:nowrap}
}
@media(max-width:800px){
 body .tsugi-shell>.tsugi-sidebar:not(.a62-sidebar-open),body .tsugi-shell>.a62-chat-side{display:none!important}
}

/* V6.6.7 — conversational workspace, flat graphite surfaces. */
body .tsugi-shell{--tsugi:#76c8ec;box-sizing:border-box;gap:16px!important}
body .tsugi-shell .tsugi-main{background:#101216;border:1px solid #272b32;border-radius:16px;padding:16px;gap:12px!important;box-sizing:border-box;min-width:0}
body .tsugi-shell .tsugi-top{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap;gap:7px!important;padding:0 0 12px!important;border-bottom:1px solid #2a2d34!important}
body .tsugi-shell .tsugi-top>div:has(h1){margin-right:auto;flex:1 1 180px;min-width:0}
body .tsugi-shell .tsugi-top h1{font-size:25px!important;line-height:1.2!important;letter-spacing:-.65px!important;margin:2px 0!important}
body .tsugi-shell .tsugi-top>div:has(h1)>small{display:block!important;color:#a3aab6!important;font-size:10px!important;letter-spacing:.075em;line-height:1.2}
body .tsugi-shell .tsugi-top .at60-chat-options{display:contents!important}
body .tsugi-shell .tsugi-top :is(button,a.btn){background:#1c2026!important;color:#e1e5eb!important;border:1px solid #343a44!important;border-radius:8px!important;min-height:36px!important;padding:7px 10px!important;font-size:12px!important;box-shadow:none!important;white-space:nowrap}
body .tsugi-shell .tsugi-top :is(button,a.btn):hover{background:#2a3039!important;border-color:#697482!important}
body .tsugi-shell .tsugi-top [aria-pressed=true],body .tsugi-shell .tsugi-top [aria-expanded=true]{background:#263540!important;color:#d9effb!important;border-color:#496170!important}
body .tsugi-shell .tsugi-top .tsugi-mobile-new{display:inline-flex!important}
body .tsugi-shell .tsugi-main .tsugi-thread{padding:8px 6px 14px 2px!important;gap:18px!important;background:transparent;max-height:none;scrollbar-color:#454a53 transparent}
body .tsugi-shell .tsugi-thread>div{gap:10px!important}
body .tsugi-shell .tsugi-thread>div[id^=tsugi-turn-]+div[id^=tsugi-turn-]{border-top:1px solid #272b32;padding-top:16px}
body .tsugi-shell .tsugi-user span{background:#292f38!important;color:#f3f5f7!important;padding:10px 14px!important;border:1px solid #373f49!important;font-size:14px!important;line-height:1.5!important;max-width:min(90%,720px)!important}
body .tsugi-shell .tsugi-bot{margin:4px 0!important;gap:9px!important}
body .tsugi-shell .tsugi-bot .tsugi-mascot{width:36px!important;height:40px!important;object-fit:contain}
body .tsugi-shell .tsugi-bot:not(.tsugi-typing)>div{background:transparent!important;border:0!important;border-radius:0!important;padding:0 4px 0 0!important;max-width:min(calc(100% - 45px),760px)!important}
body .tsugi-shell .tsugi-bot:not(.tsugi-typing) small{color:#b0bac7!important;font-size:11px!important;font-weight:650!important;letter-spacing:.04em!important}
body .tsugi-shell .tsugi-bot:not(.tsugi-typing) p{font-size:15px!important;line-height:1.58!important;margin:4px 0 0!important;color:#eef1f5!important}
/* Gallery uses compact, horizontal editorial cards rather than giant covers. */
body .tsugi-shell .tsugi-main .tsugi-results{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch}
body .tsugi-shell .tsugi-main .tsugi-results.at60-list{grid-template-columns:minmax(0,1fr)!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-compact-row{display:grid!important;grid-template-columns:82px minmax(0,1fr) 30px!important;align-items:start!important;gap:10px!important;padding:10px!important;border:1px solid #2d323b!important;background:#191d23!important;border-radius:11px!important;min-width:0!important;position:relative!important;box-sizing:border-box}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-compact-row:hover{border-color:#46525f!important;background:#1e232a!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-compact-row .tsugi-cover{width:82px!important;height:123px!important;aspect-ratio:2/3!important;border-radius:7px!important;position:relative!important;align-self:start!important;overflow:hidden!important;background:#101317!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-cover :is(img,.poster){width:100%!important;height:100%!important;object-fit:contain!important;position:absolute!important;inset:0!important;margin:0!important;background:#101317!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-copy{width:auto!important;min-width:0!important;padding:0!important;gap:4px!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-title{font-size:14px!important;line-height:1.36!important;color:#f3f5f8!important;margin:0!important;overflow-wrap:anywhere}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-meta{font-size:11px!important;color:#a4aebc!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-reason{font-size:12px!important;line-height:1.55!important;color:#c3cad4!important;margin:2px 0!important;opacity:1!important;overflow-wrap:anywhere}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-actions{gap:6px 12px!important;margin-top:3px!important;flex-wrap:wrap}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-view-link{color:#91d3ef!important;font-weight:650;font-size:12px!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-hide{color:#aab3bf!important;font-size:12px!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-save{position:static!important;inset:auto!important;background:transparent!important;justify-self:end!important}
body .tsugi-shell .tsugi-main .tsugi-results .tsugi-result-save button{background:#262c34!important;border:1px solid #373f49!important;border-radius:7px!important;width:30px!important;height:30px!important;padding:5px!important}
body .tsugi-shell .tsugi-main .tsugi-results.at60-list .tsugi-compact-row{grid-template-columns:58px minmax(0,1fr) 30px!important;padding:9px!important}
body .tsugi-shell .tsugi-main .tsugi-results.at60-list .tsugi-cover{width:58px!important;height:87px!important}
body .tsugi-shell .tsugi-main .tsugi-compose{background:#1a1e24!important;border:1px solid #343b45!important;border-radius:12px!important;padding:10px 12px!important;box-shadow:none!important}
body .tsugi-shell .tsugi-main .tsugi-compose:focus-within{border-color:#6c8192!important}
body .tsugi-shell .tsugi-compose textarea{height:48px;font-size:15px!important;resize:vertical}
body .tsugi-shell .tsugi-compose button.primary{background:#e7edf4!important;color:#141920!important;border-radius:8px!important;min-height:36px!important}
body .tsugi-shell .tsugi-compose-footer small{font-size:11px!important;color:#a4adb9!important}
body .tsugi-shell .tsugi-refine .chip{border:1px solid #343c46!important;background:#20252c!important;color:#d1d9e3!important;border-radius:8px!important}
body .tsugi-shell .tsugi-bottom{font-size:11px!important}
body .tsugi-shell .tsugi-refine-empty{display:none!important}
@media(min-width:801px){body .tsugi-shell .tsugi-main .tsugi-thread{height:clamp(280px,calc(100dvh - 260px),850px);min-height:260px!important;flex:1 1 auto}body .tsugi-shell .tsugi-main .tsugi-top>div:has(h1){flex:1 1 190px}body .tsugi-shell .tsugi-main .tsugi-top .tsugi-mobile-new{display:inline-flex!important}}
@media(max-width:1100px){body .tsugi-shell .tsugi-main .tsugi-results{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:800px){body .tsugi-shell{padding:6px 8px 0!important}body .tsugi-shell .tsugi-main{padding:10px 8px;border-radius:12px;gap:7px!important}body .tsugi-shell .tsugi-top{justify-content:flex-start!important;padding-bottom:8px!important;gap:5px!important}body .tsugi-shell .tsugi-top h1{font-size:20px!important}body .tsugi-shell .tsugi-main .tsugi-thread{min-height:100px!important;max-height:none!important;padding:6px 2px 8px!important;gap:12px!important}body .tsugi-shell .tsugi-main .tsugi-results{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}body .tsugi-shell .tsugi-main .tsugi-results .tsugi-compact-row{grid-template-columns:66px minmax(0,1fr) 30px!important;padding:8px!important;gap:8px!important}body .tsugi-shell .tsugi-main .tsugi-results .tsugi-compact-row .tsugi-cover{width:66px!important;height:99px!important}body .tsugi-shell .tsugi-main .tsugi-results.at60-list .tsugi-compact-row{grid-template-columns:48px minmax(0,1fr) 30px!important}body .tsugi-shell .tsugi-main .tsugi-results.at60-list .tsugi-cover{width:48px!important;height:72px!important}body .tsugi-shell .tsugi-bot .tsugi-mascot{width:29px!important;height:33px!important}body .tsugi-shell .tsugi-bot:not(.tsugi-typing)>div{max-width:calc(100% - 38px)!important}body .tsugi-shell .tsugi-bot:not(.tsugi-typing) p{font-size:14px!important}body .tsugi-shell .tsugi-compose textarea{font-size:16px!important;resize:none}body .tsugi-shell .tsugi-main .tsugi-compose{padding:7px 8px!important}body .tsugi-shell .tsugi-compose-footer small{font-size:10px!important}}
@media(max-width:500px){body .tsugi-shell .tsugi-top :is(button,a.btn)[data-at67-short]{font-size:0!important;padding-inline:4px!important}}
/* Give the conversation the available viewport, rather than a fixed-height inner pane. */
@media(min-width:801px){
 body .tsugi-shell{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;max-width:1380px!important;padding:12px 0!important}
 body .tsugi-shell>.tsugi-sidebar{display:flex!important;max-height:calc(100dvh - 110px);overflow-y:auto;position:sticky!important;top:80px}
 body .tsugi-shell>.a62-chat-side{display:none!important}
 body .tsugi-shell .tsugi-top [data-a62-sidebar]{display:none!important}
 body .tsugi-shell .tsugi-main:not(:has(.tsugi-advanced)){height:var(--at67-chat-space,calc(100dvh - 120px));min-height:380px}
 body .tsugi-shell .tsugi-main:not(:has(.tsugi-advanced))>*{flex-shrink:0}
 body .tsugi-shell .tsugi-main:not(:has(.tsugi-advanced)) .tsugi-thread{flex:1 1 0!important;height:auto!important;min-height:120px!important}
}
@media(min-width:1500px){body .tsugi-shell{grid-template-columns:190px minmax(0,1fr) 195px!important;max-width:1480px!important}body .tsugi-shell>.a62-chat-side{display:block!important;max-height:calc(100dvh - 110px);overflow:auto}}
@media(max-width:800px){body .tsugi-shell .tsugi-top>div:has(h1){flex-basis:100%!important}body .tsugi-shell .tsugi-main:has(.tsugi-advanced){height:auto!important;min-height:0}body .tsugi-shell .tsugi-main:has(.tsugi-advanced) .tsugi-thread{height:280px!important;flex:auto!important}}
