/* NakliyeVakti message workspace: one bounded scroll area per pane. */
.nv-chat{--ink:#17243a;--muted:#58697e;--accent:#172b4d;--line:#e5eaf1;display:grid;grid-template-columns:minmax(260px,32%) minmax(0,1fr);width:min(1220px,calc(100% - 32px));height:min(780px,80svh);min-height:0;margin:24px auto;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--ink);font:15px/1.5 ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 12px 38px rgb(23 43 77 / 7%)}
.nv-chat *{box-sizing:border-box}
.nv-chat [hidden]{display:none}
.nv-chat h2,.nv-chat h3,.nv-chat p{margin:0}
.nv-chat a{color:var(--accent);text-decoration:none}
.nv-chat-list{min-width:0;min-height:0;overflow:auto;border-right:1px solid var(--line);background:#fbfcfe;overscroll-behavior:contain}
.nv-chat-list-header{position:sticky;top:0;z-index:2;padding:20px 18px 14px;background:#fff;border-bottom:1px solid var(--line)}
.nv-chat-kicker{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.08em;color:#805100;background:#fff4df;border-radius:20px;padding:4px 8px}
.nv-chat-list h2{font-size:26px;line-height:1.2;margin:8px 0;color:var(--ink)}
.nv-chat-list-header p,.nv-chat-empty-state p{font-size:13px;color:var(--muted);line-height:1.6}
.nv-chat-list-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.nv-chat-list-stats span{font-size:12px;border:1px solid var(--line);border-radius:10px;padding:6px 9px;background:#f6f8fb}
.nv-chat-list-stats .has-unread{background:#fff4df;border-color:#ead2a5}
.nv-chat-search{display:flex;align-items:center;gap:8px;margin-top:12px;padding:0 12px;border:1px solid #cfd8e4;border-radius:14px;background:#fff}
.nv-chat-search input{width:100%;min-width:0;min-height:44px;border:0;margin:0;padding:8px 0;background:transparent;font:inherit;color:var(--ink)}
.nv-chat-thread{display:block;min-width:0;padding:16px;border-bottom:1px solid var(--line);border-left:3px solid transparent;overflow-wrap:anywhere}
.nv-chat-thread:hover{background:#f0f4fa}
.nv-chat-thread.selected{border-left-color:var(--accent);background:#eaf1fc}
.nv-chat-thread.has-unread:not(.selected){background:#fffcf4}
.nv-chat-thread-row{display:flex;align-items:flex-start;gap:10px;min-width:0}
.nv-chat-thread-copy,.nv-chat-heading{flex:1;min-width:0}
.nv-chat-thread-top{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;flex-wrap:wrap}
.nv-chat-thread strong{font-size:15px;overflow-wrap:anywhere}
.nv-chat-state{font-size:10px;padding:3px 7px;border-radius:20px;background:#eef2f7;color:var(--muted)}
.nv-chat-thread p{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px}
.nv-chat-thread footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:11px}
.nv-chat-count{display:inline-grid;place-items:center;min-width:22px;min-height:22px;border-radius:20px;background:var(--accent);color:#fff;padding:2px 6px}
.nv-chat-unread-label{margin-left:auto;color:#805100;font-weight:700}
.nv-chat-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:14px;overflow:hidden;background:#eaf0f8}
.nv-chat-avatar img{display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:inherit}
.nv-chat-route-points,.nv-chat-active-route{display:flex;align-items:flex-start;gap:10px;min-width:0}
.nv-chat-thread-route{margin-top:6px}
.nv-chat-route-point{display:flex;gap:6px;flex:1;min-width:0}
.nv-chat-route-copy{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.nv-chat-route-copy small{font-size:9px;letter-spacing:.06em;color:var(--muted)}
.nv-chat-route-copy b{font-size:12px;line-height:1.5}
.nv-chat-route-copy em{font-size:11px;font-style:normal;color:var(--muted)}
.nv-chat-route-pin{flex:0 0 7px;height:7px;border:2px solid var(--accent);border-radius:50%;margin-top:5px}
.nv-chat-route-to .nv-chat-route-pin{border-color:#bd7a10;background:#f4a623;border-radius:2px}
.nv-chat-route-job,.nv-chat-route-meta{font-size:10px;color:var(--muted)}
.nv-chat-route-arrow{color:var(--muted);font-style:normal}
.nv-chat-main{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f6f8fc}
.nv-chat-operation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 16px;background:#edf2f8;border-bottom:1px solid var(--line);flex-shrink:0}
.nv-chat-operation>div:first-child{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.nv-chat-operation span{font-size:10px;color:var(--muted)}
.nv-chat-operation strong{font-size:12px;overflow-wrap:anywhere}
.nv-chat-operation-actions{display:flex;gap:8px;flex-wrap:wrap}
.nv-chat-operation a{font-size:12px;text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
.nv-chat-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;background:#fff;border-bottom:1px solid var(--line);flex-shrink:0;min-width:0}
.nv-chat-person{display:block;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.nv-chat-verified{display:block;font-size:11px;color:#25634b}
.nv-chat-header nav{display:flex;gap:6px}
.nv-chat-header nav a{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;font-size:12px}
.nv-chat-active-route{flex-basis:100%;border-top:1px solid var(--line);padding-top:10px;flex-wrap:wrap}
.nv-chat-route-meta{flex-basis:100%}
.nv-chat-back{display:none}
.nv-chat-stream{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;gap:12px;padding:18px;scrollbar-gutter:stable}
.nv-chat-bubble{align-self:flex-start;max-width:min(88%,660px);min-width:0;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:18px 18px 18px 4px;overflow-wrap:anywhere}
.nv-chat-bubble.out{align-self:flex-end;background:#eaf1fc;border-color:#d4e0f4;border-radius:18px 18px 4px 18px}
.nv-chat-bubble.system{align-self:center;max-width:96%;background:#edf1f5;border:0;border-radius:12px;text-align:center;font-size:12px}
.nv-chat-bubble p{white-space:pre-wrap;line-height:1.6}
.nv-chat-bubble footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;font-size:11px;color:var(--muted)}
.nv-chat-bubble button{border:0;background:transparent;color:var(--muted);font:inherit;min-height:44px;padding:6px;cursor:pointer}
.nv-chat-older{align-self:center;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--accent);font-weight:700;cursor:pointer}
.nv-chat-feedback{flex-shrink:0;font-size:13px;color:#a82936;background:#fff;overflow-wrap:anywhere}
.nv-chat-feedback:not(:empty){padding:8px 14px}
.nv-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;flex-shrink:0;margin:0;padding:12px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.nv-chat-compose textarea{width:100%;min-width:0;min-height:48px;max-height:110px;resize:vertical;margin:0;padding:12px;border:1px solid #cfd8e4;border-radius:14px;font:inherit;font-size:16px;color:var(--ink);background:#f7f9fc}
.nv-chat-compose button{min-width:76px;min-height:48px;padding:12px;border:0;border-radius:14px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer}
.nv-chat-compose button:disabled{opacity:.45;cursor:default}
.nv-chat-compose-meta{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;min-width:0;color:var(--muted);font-size:11px}
.nv-chat-compose-meta small{font-size:11px;min-width:0;overflow-wrap:anywhere}
.nv-chat-compose-meta span{flex-shrink:0}
.nv-chat-welcome,.nv-chat-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:auto;padding:24px;text-align:center;max-width:520px;color:var(--muted);overflow-wrap:anywhere}
.nv-chat-welcome h2{font-size:26px;line-height:1.3;color:var(--ink)}
.nv-chat-welcome-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#eaf1fc;font-size:26px;color:var(--accent)}
.nv-chat-welcome-points{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;font-size:12px}
.nv-chat-welcome-points span{padding:6px 10px;border:1px solid var(--line);border-radius:20px;background:#fff}
.nv-chat-search-empty{padding:20px;color:var(--muted)}
.nv-chat :focus-visible{outline:3px solid #bd7a10;outline-offset:2px}
@media(max-width:700px){
 .nv-chat{display:block;width:calc(100% - 16px);height:min(760px,78svh);margin:12px auto;border-radius:18px}
 .nv-chat-list{height:100%;border:0}
 .nv-chat-main{display:none;height:100%}
 .nv-chat.has-active .nv-chat-list{display:none}
 .nv-chat.has-active .nv-chat-main{display:flex}
 .nv-chat-header{padding:10px;gap:8px}
 .nv-chat-person{font-size:15px}
 .nv-chat-back{display:grid;place-items:center;flex:0 0 44px;min-height:44px;border-radius:12px;background:#edf2f7;font-size:22px}
 .nv-chat-avatar-header{display:none}
 .nv-chat-header nav a{font-size:11px}
 .nv-chat-operation{padding:8px 10px}
 .nv-chat-operation-actions a:first-child{display:none}
 .nv-chat-active-route{gap:6px;padding-top:6px}
 .nv-chat-active-route .nv-chat-route-copy em,.nv-chat-route-meta{display:none}
 .nv-chat-stream{padding:12px;gap:10px}
 .nv-chat-compose{padding:10px;gap:6px}
 .nv-chat-compose textarea{resize:none;max-height:96px}
 .nv-chat-compose-meta small{display:none}
 .nv-chat-compose-meta span{margin-left:auto}
}
@media(max-height:600px){.nv-chat-header .nv-chat-kicker,.nv-chat-verified,.nv-chat-operation,.nv-chat-active-route{display:none}}
@media(prefers-reduced-motion:reduce){.nv-chat *{scroll-behavior:auto}}
