:root{font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN",sans-serif;color:#303c36;background:#f7f8f5;line-height:1.8}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px max(20px,calc((100vw - 1060px)/2));background:white;border-bottom:1px solid #dce4dd}header a{font-weight:600;text-decoration:none}header span{display:block;font-size:.8rem;font-weight:400}a{color:#355f4b;text-underline-offset:4px}main{max-width:820px;margin:auto;padding:32px 24px}h1{font-size:1.9rem;margin:4px 0}p{margin:.5em 0}.eyebrow{font-size:.85rem;color:#617368}.notice{margin:24px 0;padding:16px 20px;border:1px solid #d3dfd5;border-radius:12px;background:#edf3ed}.notice p,.privacy,footer p{font-size:.82rem;color:#536358}button,.primary-link{font:inherit;border-radius:9px;padding:10px 15px;border:1px solid #b9cbbf;background:white;color:#355f4b;cursor:pointer;text-decoration:none;display:inline-block}button:hover{background:#e9f0e9}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #9b704c;outline-offset:3px}#send,.primary-link{background:#355f4b;color:white;border-color:#355f4b}#login button{margin:8px}.chat-tools,.send-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.85rem}.chat-tools{margin:20px 0}#messages{display:grid;gap:18px}.message{padding:18px 20px;border-radius:12px;background:white;border:1px solid #dce4dd;overflow-wrap:anywhere}.message.user{margin-left:40px;background:#e8f0e9}.message strong{display:block;font-size:.8rem;color:#627669}.message .text{white-space:pre-wrap}.sources{margin:16px 0 0;padding:12px 0 0;border-top:1px solid #dce4dd;list-style:none}.sources a{font-size:.9rem}.examples{padding:20px 0}.examples p{font-size:.82rem}.examples button{margin:4px 6px 4px 0;font-size:.85rem;text-align:left}label{display:block;font-weight:600}textarea{font:inherit;resize:vertical;width:100%;max-width:100%;min-height:100px;padding:12px;border:1px solid #aabdad;border-radius:10px;background:white}#feedback,#connection{overflow-wrap:anywhere}#feedback.error{color:#9a352e}.privacy{margin:8px 0 14px}footer{margin-top:32px;padding-top:20px;border-top:1px solid #dce4dd}footer a{display:inline-block;margin:0 20px 8px 0;font-size:.9rem}[hidden]{display:none!important}@media(max-width:600px){main{padding:24px 16px}header{padding:14px 16px;font-size:.85rem}h1{font-size:1.55rem}.message.user{margin-left:20px}.message{padding:14px}.chat-tools{align-items:start}}@media print{header,.notice,#question-form,.examples,.chat-tools,#feedback,#connection,footer{display:none}main{max-width:none;padding:0}.message{break-inside:avoid}}

.reply-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.reply-choice{text-align:left;font-size:.9rem}

/* 管理画面内の小さなチャット。背景の編集画面は操作したままにする。 */
body.embedded{height:100dvh;font-size:14px;line-height:1.65;overflow:hidden}.embedded>header,.embedded .heading,.embedded footer p{display:none}.embedded main{height:100%;max-width:none;padding:10px 12px;display:flex;flex-direction:column;min-height:0}.embedded .notice{margin:0 0 6px;padding:7px 10px;font-size:12px}.embedded .notice p{margin:2px 0;font-size:11px}.embedded #connection:empty{display:none}.embedded #chat{flex:1;min-height:0;display:flex;flex-direction:column}.embedded .chat-tools{margin:4px 0 8px;font-size:12px}.embedded .chat-tools button{padding:5px 8px;font-size:12px}.embedded #messages{flex:1;min-height:40px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;scroll-padding:8px}.embedded .message{padding:10px 12px;flex:none}.embedded .message.user{margin-left:18px}.embedded .sources{margin-top:8px;padding-top:8px}.embedded .sources a{font-size:12px}.embedded .examples{padding:4px 0}.embedded .examples p{display:none}.embedded .examples button{font-size:12px;padding:5px 7px;margin:3px}.embedded.has-conversation .examples{display:none}.embedded #question-form{flex:none;padding-top:8px}.embedded #question-form label{font-size:12px}.embedded textarea{min-height:54px;height:62px;max-height:120px;resize:vertical;padding:8px;font-size:16px}.embedded .privacy{font-size:10px;line-height:1.5;margin:3px 0 6px}.embedded .send-row{font-size:11px}.embedded #send{padding:6px 12px;font-size:13px}.embedded #feedback{font-size:12px;margin:4px 0}.embedded #feedback:empty{display:none}.embedded footer{flex:none;margin-top:6px;padding-top:4px;display:flex;gap:14px}.embedded footer a{font-size:11px;margin:0}.embedded .reply-choice{font-size:12px;padding:7px 9px}
@media(max-height:520px){.embedded .notice{display:none}.embedded .privacy{max-height:32px;overflow:auto}.embedded textarea{height:50px;min-height:44px}}
