/* Tsugi V5.1.0 — scoped to recommender and home entry */
.tsugi-shell{--tsugi:#b5a1ff;display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:22px;margin:24px auto;max-width:1240px;color:var(--text);align-items:start}.tsugi-sidebar{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:14px;position:sticky;top:80px;min-width:0}.tsugi-brand{display:flex;align-items:center;gap:10px}.tsugi-brand strong,.tsugi-brand small{display:block}.tsugi-brand small,.tsugi-side-label,.tsugi-quota small{font-size:11px;color:var(--muted)}.tsugi-mascot{width:44px;height:44px;flex:none;object-fit:contain}.tsugi-mascot-big{width:112px;height:112px}.tsugi-navitem{background:transparent;border:0;text-align:left;font:inherit;color:var(--text);padding:8px 5px;overflow-wrap:anywhere;cursor:pointer}.tsugi-navitem:hover{color:var(--tsugi)}.tsugi-saved{display:flex;gap:4px;align-items:center;justify-content:space-between}.tsugi-quota{border-top:1px solid var(--line);padding-top:12px;font-size:12px;color:var(--tsugi)}.tsugi-main{min-width:0;display:flex;flex-direction:column;gap:18px}.tsugi-top{display:flex;align-items:center;gap:10px;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid var(--line)}.tsugi-top h1{font-size:clamp(22px,3vw,30px);margin:4px 0}.tsugi-top small,.tsugi-home small{color:var(--tsugi);font-size:11px;letter-spacing:.08em}.tsugi-mobile-new{display:none}.tsugi-welcome{text-align:center;padding:32px 8px 24px;max-width:680px;margin:auto}.tsugi-welcome h2{font-size:clamp(23px,3vw,32px);margin:12px 0}.tsugi-welcome p{color:var(--muted)}.tsugi-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:20px}.tsugi-examples button{background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:10px;text-align:left;padding:12px;font:inherit;cursor:pointer;display:flex;justify-content:space-between;gap:8px}.tsugi-examples button:hover,.tsugi-refine button:hover{border-color:var(--tsugi)}.tsugi-examples span{color:var(--tsugi)}.tsugi-thread{display:grid;gap:20px;min-width:0;scroll-margin-top:90px}.tsugi-thread>div{display:grid;gap:12px;scroll-margin-top:90px;min-width:0}.tsugi-user{display:flex;justify-content:flex-end}.tsugi-user span{background:#35294d;padding:12px 16px;border-radius:14px 14px 3px 14px;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.tsugi-bot{display:flex;gap:10px;align-items:flex-start}.tsugi-bot small{color:var(--tsugi);letter-spacing:.06em;font-size:11px}.tsugi-bot p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.tsugi-bot>div{min-width:0}.tsugi-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tsugi-result{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:5px}.tsugi-result .yn403-result{border:0;background:transparent;margin:0;height:100%;min-width:0}.tsugi-result .yn403-cover{width:88px;flex:none}.tsugi-hide{align-self:flex-end;font-size:11px}.tsugi-old{color:var(--muted);font-size:12px}.tsugi-old summary{cursor:pointer;padding:8px}.tsugi-old[open] .tsugi-results{margin-top:8px}.tsugi-refine{display:grid;gap:8px}.tsugi-refine small{color:var(--muted)}.tsugi-refine .chip{border-color:#493d64;color:#cdbdf8;background:transparent}.tsugi-compose{border:1px solid #57486f;background:var(--panel);border-radius:14px;padding:12px;display:grid;gap:6px}.tsugi-compose textarea{width:100%;border:none!important;background:transparent!important;resize:vertical;min-height:54px;color:var(--text);font:inherit}.tsugi-compose-footer,.tsugi-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.tsugi-compose-footer small,.tsugi-bottom small{color:var(--muted);font-size:12px}.tsugi-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.tsugi-home{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(105deg,#17141f,#252036);padding:24px!important}.tsugi-home>div{flex:1;min-width:0}.tsugi-home h2{margin:8px 0;font-size:clamp(22px,3vw,30px)}.tsugi-home p{color:var(--muted);margin:8px 0 14px}.tsugi-home form{display:flex;gap:8px;max-width:680px}.tsugi-home input{min-width:0;flex:1}.tsugi-home-link{display:inline-block;margin-top:9px;color:var(--tsugi);font-size:12px}.tsugi-home .tsugi-mascot-big{width:140px;height:140px}@media(max-width:980px){.tsugi-results{grid-template-columns:1fr}.tsugi-shell{grid-template-columns:190px minmax(0,1fr)}}@media(max-width:720px){.tsugi-shell{display:block;margin:12px auto}.tsugi-sidebar{display:none}.tsugi-mobile-new{display:inline-flex}.tsugi-top{flex-wrap:wrap}.tsugi-top>div{flex:1 1 100%}.tsugi-main{gap:12px}.tsugi-welcome{padding:18px 0}.tsugi-mascot-big{width:88px;height:88px}.tsugi-examples button{padding:10px;font-size:12px}.tsugi-home{padding:16px!important;gap:12px}.tsugi-home .tsugi-mascot-big{width:80px;height:80px}.tsugi-home form{flex-wrap:wrap}.tsugi-home form input{flex-basis:100%}.tsugi-compose-footer small{font-size:11px}.tsugi-user span{max-width:92%}}@media(prefers-reduced-motion:reduce){.tsugi-shell *{scroll-behavior:auto!important}}

.tsugi-episodes{font-size:11px;color:var(--muted);padding-left:4px}
