.studio-shell .chat-page{width:min(1080px,100% - 2rem);max-width:none;margin:16px auto 2rem;padding:0}.modok-chat{min-height:calc(100svh - 110px);color:var(--color-text-primary);background:var(--surface-canvas);flex-direction:column;display:flex}.modok-chat-bar{justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;display:flex}.modok-chat-bar>div{gap:2px;display:grid}.modok-chat-bar strong{font-size:1.15rem}.modok-chat-bar span{color:var(--color-text-tertiary);font-size:.8rem}.modok-chat button{font:inherit;cursor:pointer}.modok-chat-bar button{color:var(--color-text-secondary);border:1px solid var(--border-default);background:0 0;border-radius:999px;align-items:center;gap:.5rem;min-height:44px;padding:.6rem 1rem;display:flex}.modok-chat button:disabled{opacity:.4;cursor:default}.modok-chat svg{flex:none;width:18px;height:18px}.modok-thread{flex:1;width:min(100%,760px);min-height:0;margin:0 auto}.modok-chat:not(.modok-chat-active) .modok-thread{flex:none;margin-top:clamp(1rem,7vh,5rem)}.modok-chat:not(.modok-chat-active) .modok-composer-dock{margin:0 auto auto;position:relative}.modok-welcome{text-align:center;padding:clamp(3rem,12vh,8rem) 0 2rem}.modok-welcome>svg{width:32px;height:32px;color:var(--color-accent-text);margin:0 auto 1.5rem}.modok-welcome h1{font-family:var(--font-body);font-size:clamp(1.8rem,4vw,2.5rem);font-weight:var(--weight-text);letter-spacing:var(--track-heading);margin:0;line-height:1.2}.modok-welcome p{color:var(--color-text-secondary);margin:1rem auto 0}.modok-turn{padding-block:1.5rem}.modok-question{justify-content:flex-end;margin-bottom:2rem;display:flex}.modok-question p{background:var(--surface-card-emphasis);overflow-wrap:anywhere;border-radius:24px;max-width:85%;margin:0;padding:.8rem 1.25rem}.modok-response{overflow-wrap:anywhere;line-height:1.75}.modok-response-label{font-size:.8rem;font-weight:650}.chat-answer{font-size:1.0625rem}.chat-answer p{white-space:pre-wrap;margin:.75rem 0 1.25rem}.chat-answer-tools{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.chat-answer-tools a{background:var(--surface-card-emphasis);color:var(--color-text-secondary);border-radius:6px;align-items:center;gap:4px;padding:.2rem .6rem;font-size:.8rem;text-decoration:none;display:inline-flex}.chat-answer-tools a svg{width:12px}.chat-answer-tools button{color:var(--color-text-secondary);background:0 0;border:0;place-items:center;min-width:44px;min-height:44px;display:grid}.modok-sources h2{font:600 1rem var(--font-body);margin-top:1rem}.modok-sources>a{border-bottom:1px solid var(--border-subtle);color:inherit;grid-template-columns:1fr auto;padding-block:1rem;text-decoration:none;display:grid}.modok-sources>a span{color:var(--color-text-secondary);grid-column:1;font-size:.9rem}.modok-sources>a svg{grid-area:1/2/3}.modok-composer-dock{width:min(100%,760px);padding:12px 0 max(12px, env(safe-area-inset-bottom));background:var(--surface-canvas);z-index:3;margin:1rem auto 0;position:sticky;bottom:0}.modok-composer{border:1px solid var(--border-default);background:var(--surface-card-emphasis);border-radius:26px;padding:1rem 1rem .7rem;box-shadow:0 4px 24px #00000008}.modok-composer:focus-within{border-color:var(--border-default);box-shadow:none}.studio-shell .modok-composer textarea{field-sizing:content;resize:none;width:100%;min-height:56px;max-height:180px;box-shadow:none;color:inherit;font:inherit;background:0 0;border:0;outline:0;padding:0 .3rem;line-height:1.6;display:block}.modok-composer-bottom{justify-content:space-between;align-items:center;gap:1rem;display:flex}.modok-composer-bottom span{color:var(--color-text-tertiary);padding-left:.3rem;font-size:.8rem}.modok-composer-bottom button{background:var(--color-text-primary);width:44px;height:44px;color:var(--surface-canvas);border:0;border-radius:50%;place-items:center;display:grid}.modok-suggestions{flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem;display:flex}.modok-suggestions button{border:1px solid var(--border-default);background:var(--surface-canvas);color:var(--color-text-secondary);border-radius:999px;align-items:center;gap:.5rem;min-height:44px;padding:.5rem .8rem;font-size:.8rem;display:inline-flex}.modok-suggestions button:hover,.modok-chat-bar button:hover{border-color:color-mix(in srgb, var(--color-accent) 50%, transparent)}.modok-disclaimer{text-align:center;color:var(--color-text-tertiary);margin:.75rem 0 0;font-size:.75rem;line-height:1.5}@media (max-width:600px){.studio-shell .chat-page{margin-top:12px}.modok-chat{min-height:calc(100svh - 100px)}.modok-welcome{padding-top:3rem}.modok-question p{max-width:92%}}.modok-with-character{grid-template-rows:auto 1fr auto;grid-template-columns:minmax(260px,35%) minmax(0,1fr);column-gap:clamp(1.5rem,4vw,4rem);display:grid}.modok-with-character .modok-chat-bar{grid-column:1/-1}.modok-companion{grid-area:2/1/4;align-self:start;position:sticky;top:90px}.modok-with-character .modok-thread{grid-area:2/2;align-self:start;width:100%}.modok-with-character .modok-composer-dock{grid-area:3/2;width:100%}.modok-with-character:not(.modok-chat-active) .modok-thread{margin-top:2rem}.modok-with-character .modok-welcome{padding-top:3rem}.modok-with-character .modok-welcome>svg{display:none}@media (max-width:800px){.modok-with-character{display:flex}.modok-companion{flex:none;width:100%;position:relative;top:auto}.modok-with-character .modok-thread{align-self:auto}.modok-with-character:not(.modok-chat-active) .modok-thread{margin-top:0}.modok-with-character .modok-welcome{padding:1.25rem 0 1rem}.modok-with-character .modok-welcome h1{font-size:clamp(1.45rem,5vw,2rem)}.modok-with-character .modok-welcome p{margin-top:.65rem}.modok-with-character .modok-composer-dock{margin-top:0}}
