/* One readable conversation column, with controls kept beside the messages. */
.nx-user-turn{display:flex;flex-direction:column;align-items:flex-end;margin:0 0 30px;gap:10px}
#zy-messages .nx-user-turn .zy-user-message{margin:0;max-width:85%}
.nx-message-files{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:100%}
.nx-message-files:empty{display:none}
.nx-sent-file{display:flex;flex-direction:column;width:220px;max-width:100%;overflow:hidden;border:1px solid var(--zy-border,#deded4);border-radius:14px;background:var(--zy-paper,#fff)}
.nx-sent-file>img{width:100%;max-height:220px;object-fit:contain;background:var(--zy-soft,#f0f0ea)}
.nx-sent-file>span{padding:10px 12px;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.nx-sent-file small{display:block;margin-top:3px;font-size:10px;opacity:.65}
.nx-file-format{font-size:10px;padding:8px;border-radius:6px;background:var(--zy-soft,#f0f0ea)}
.nx-file-error{border-color:#b54135}.nx-file-error small{color:#b54135}
.zy-thread-tools{display:none!important}
.zy-conversation{padding:28px clamp(20px,4vw,64px) 32px;scroll-behavior:smooth;overscroll-behavior:contain}
#zy-thread{width:min(100%,780px);max-width:780px;margin:0 auto;padding:0}
#zy-messages{width:100%;padding-bottom:16px}
#zy-messages .zy-user-message{display:flex;justify-content:flex-end;width:100%;max-width:none;margin:12px 0 34px;text-align:left}
#zy-messages .zy-user-message p{width:fit-content;max-width:min(85%,620px);margin:0;padding:12px 19px;border-radius:24px;background:#eeeee8;color:var(--zy-ink,#292e26);font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#zy-messages .zy-answer{width:100%;margin:0 0 36px;color:var(--zy-ink,#292e26);font-size:16px;line-height:1.85}
#zy-messages .nx-answer-text{white-space:normal;overflow-wrap:anywhere}
#zy-messages .nx-answer-text p{font-size:inherit;line-height:inherit;margin:0 0 18px}
#zy-messages .nx-answer-text p:last-child{margin-bottom:0}
#zy-messages .nx-answer-text h2{font-size:24px;letter-spacing:-.5px;line-height:1.4;margin:26px 0 14px;color:inherit}
#zy-messages .nx-answer-text h3{font-size:20px;margin:24px 0 12px;color:inherit}
#zy-messages .nx-answer-text h4,#zy-messages .nx-answer-text h5,#zy-messages .nx-answer-text h6{font-size:17px;margin:20px 0 10px}
#zy-messages .nx-answer-text ul,#zy-messages .nx-answer-text ol{margin:14px 0 22px;padding-left:26px}
#zy-messages .nx-answer-text ul{list-style:disc outside}
#zy-messages .nx-answer-text ol{list-style:decimal outside}
#zy-messages .nx-answer-text li{margin:6px 0;padding-left:3px;line-height:1.7}
#zy-messages .nx-answer-text li::before{content:none}
#zy-messages .nx-answer-text li::marker{color:inherit;font-size:1em}
#zy-messages .nx-answer-text a{color:#87681e;text-decoration:underline;text-underline-offset:3px}
#zy-messages .nx-answer-text blockquote{margin:20px 0;border-left:3px solid #cdd2c5;padding:3px 18px;color:#69715f}
#zy-messages .nx-answer-text hr{border:0;border-top:1px solid #e3e5dc;margin:26px 0}
#zy-messages code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:#eeeee8;border-radius:5px;padding:2px 5px}
#zy-messages pre{margin:0;padding:18px;overflow:auto;line-height:1.7;white-space:pre;background:#f3f4ef;border-radius:12px}
#zy-messages pre code{background:none;padding:0;color:inherit}
.nx-code{margin:20px 0;border:1px solid #e1e5da;border-radius:12px;overflow:hidden}
.nx-code-head{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;background:#ecefe6;color:#747c68;font-size:11px}
.nx-code-head button,.nx-answer-actions button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:6px;border:0;border-radius:7px;background:transparent;color:#7e8577;cursor:pointer}
.nx-code-head svg,.nx-answer-actions svg{width:20px;height:20px}
.nx-answer-actions{display:flex;align-items:center;gap:4px;margin-top:12px;min-height:32px}
.nx-answer-actions button:hover,.nx-code-head button:hover{background:#e8ebe2;color:#30372a}
.nx-answer-actions button:focus-visible,.nx-code-head button:focus-visible{outline:2px solid #a17c25;outline-offset:2px}
.nx-response-model{margin-inline-start:6px;min-width:0;overflow-wrap:anywhere;color:#727868;font-size:11px;line-height:1.4}
.nx-table{max-width:100%;overflow:auto;margin:20px 0}
.nx-table table{border-collapse:collapse;width:100%;font-size:14px}
.nx-table th,.nx-table td{border-bottom:1px solid #dde1d4;padding:10px 14px;text-align:left;min-width:120px}
.nx-table th{font-weight:600;background:#f1f3ed}
.nx-thinking{display:flex;gap:6px;align-items:center;min-height:36px;margin:0 0 28px}
.nx-thinking span{width:7px;height:7px;border-radius:50%;background:#929b87;animation:nx-pulse 1.2s infinite ease-in-out}
.nx-thinking span:nth-child(2){animation-delay:.15s}.nx-thinking span:nth-child(3){animation-delay:.3s}
@keyframes nx-pulse{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.zy-composer{border-radius:26px;padding:14px 16px 10px;box-shadow:0 4px 18px #252d2108}
.zy-composer textarea{min-height:38px;font-size:16px;line-height:1.6;max-height:180px}
.zy-compose-bottom{margin-top:4px}
#zy-composer-hint{display:none}
.gc-setup{background:#f6f3e9;border:1px solid #e5dfca;border-radius:12px;padding:16px;margin:18px 0;font-size:12px;overflow-wrap:anywhere}
.gc-setup ul{padding-left:18px;line-height:2}
@media(max-width:700px){.zy-conversation{padding:20px 18px 24px}#zy-messages .zy-answer{font-size:15px;margin-bottom:28px}#zy-messages .zy-user-message{margin-bottom:28px}#zy-messages .zy-user-message p{font-size:15px;max-width:90%;padding:11px 16px}.zy-composer textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.zy-conversation{scroll-behavior:auto}.nx-thinking span{animation:none}}
html.nx-dark #zy-messages .zy-user-message p{background:#2a3025;color:#e6eadf}
html.nx-dark #zy-messages code,html.nx-dark #zy-messages pre{background:#23281e;color:#e3e8db}
html.nx-dark .nx-code{border-color:#39422f}html.nx-dark .nx-code-head{background:#2d3426;color:#b1bba4}
html.nx-dark .nx-answer-actions button,html.nx-dark .nx-code-head button{color:#a5b098}
html.nx-dark .nx-response-model{color:#a5b098}
html.nx-dark .nx-answer-actions button:hover,html.nx-dark .nx-code-head button:hover{background:#303829;color:#eef2e8}
html.nx-dark .nx-table th{background:#283022}html.nx-dark .nx-table th,html.nx-dark .nx-table td{border-color:#3b4532}
html.nx-dark #zy-messages .nx-answer-text a{color:#e4c976}html.nx-dark .gc-setup{background:#2b2c21;border-color:#4b4b34}
