.ntk-chat,.ntk-chat *{box-sizing:border-box}.ntk-chat{width:100%;min-width:0;margin:24px 0;border:1px solid #dce3e9;border-radius:18px;background:#fff;box-shadow:0 10px 32px #18273812;overflow:hidden;color:#263343}
.ntk-chat-topbar{display:flex;align-items:center;gap:12px;min-width:0;padding:16px 20px;border-bottom:1px solid #e8edf1}.ntk-chat-topbar-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#fcebed;color:#a71921}.ntk-chat-topbar-icon svg,.ntk-chat-refresh svg,.ntk-chat-compose button svg{width:22px;height:22px}.ntk-chat-heading{min-width:0;flex:1}.ntk-chat-heading h2{margin:0;font-size:1.08rem;line-height:1.3;color:#1e2937}.ntk-chat-heading p{margin:3px 0 0;color:#647386;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ntk-chat-refresh{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 11px;border-radius:10px;color:#536375;text-decoration:none;font-size:.85rem;font-weight:600}.ntk-chat-refresh:hover{background:#f3f5f7;color:#a71921}
.ntk-chat-thread{display:flex;flex-direction:column;gap:14px;min-height:280px;max-height:min(62vh,650px);padding:24px clamp(14px,3vw,32px);overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(135deg,#f6f8fa,#f1f4f7)}.ntk-chat-day{align-self:center;margin:4px 0;color:#718092;font-size:.75rem;font-weight:600}.ntk-chat-day span{display:block;padding:6px 11px;border-radius:99px;background:#e6ebf0}.ntk-chat-older{align-self:center;padding:8px 12px;border-radius:9px;background:#fff;color:#a71921;font-size:.85rem;font-weight:600;text-align:center;text-decoration:none}
.ntk-chat-message{display:flex;align-items:flex-end;gap:9px;max-width:min(78%,660px);min-width:0}.ntk-chat-message--self{align-self:flex-end}.ntk-chat-message--other{align-self:flex-start}.ntk-chat-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#dce4ec;color:#4c5c6d;font-size:.85rem;font-weight:700}.ntk-chat-bubble{min-width:0;padding:10px 14px 11px;border:1px solid #e3e8ed;border-radius:16px 16px 16px 4px;background:#fff;box-shadow:0 2px 8px #1e2d410a;overflow-wrap:anywhere}.ntk-chat-message--self .ntk-chat-bubble{border-color:#a71921;border-radius:16px 16px 4px 16px;background:#a71921;color:#fff}.ntk-chat-meta{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:5px;font-size:.74rem;line-height:1.3}.ntk-chat-meta strong{font-weight:700}.ntk-chat-meta time{flex:none;color:#728095}.ntk-chat-message--self .ntk-chat-meta time{color:#ffdade}.ntk-chat-bubble p{margin:0;font-size:.94rem;line-height:1.5;white-space:normal}
.ntk-chat-empty{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;max-width:330px;align-self:center;text-align:center;color:#647386}.ntk-chat-empty>span{display:grid;place-items:center;width:56px;height:56px;margin-bottom:12px;border-radius:18px;background:#fff;color:#a71921;font-size:1.6rem}.ntk-chat-empty strong{color:#263343}.ntk-chat-empty p{margin:7px 0;font-size:.88rem;line-height:1.5}.ntk-chat-compose{display:block;margin:0;padding:14px 20px 11px;border-top:1px solid #e5eaee;background:#fff}.ntk-chat-compose-row{display:flex;align-items:flex-end;gap:10px;min-width:0}.ntk-chat-compose textarea{display:block;flex:1;min-width:0;max-height:180px;min-height:48px;width:100%;padding:12px 14px;border:1px solid #cbd5df;border-radius:12px;background:#f8fafb;color:#263343;font:inherit;font-size:.94rem;line-height:1.4;resize:vertical}.ntk-chat-compose textarea::placeholder{color:#8995a2}.ntk-chat-compose button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:48px;padding:0 16px;border:0;border-radius:12px;background:#a71921;color:#fff;font:inherit;font-size:.9rem;font-weight:700;cursor:pointer}.ntk-chat-compose button:hover{background:#8d1119}.ntk-chat-compose-help{display:flex;justify-content:space-between;gap:10px;margin:7px 2px 0;color:#748294;font-size:.72rem}.ntk-chat-readonly{padding:16px 20px;color:#647386;font-size:.88rem}
.ntk-chat :is(a,button,textarea):focus-visible,.client-chat-list a:focus-visible,.ntk-chat-inbox-row:focus-visible{outline:3px solid #d97077;outline-offset:2px}.ntk-chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ntk-chat-inbox{display:grid;gap:8px;max-width:980px;margin:20px 0}.ntk-chat-inbox-row{display:flex;align-items:center;gap:14px;min-width:0;min-height:82px;padding:14px 17px;border:1px solid #dce3e9;border-radius:14px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 3px 12px #18273808}.ntk-chat-inbox-row:hover{border-color:#c98185;background:#fffafa}.ntk-chat-inbox-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#fcebed;color:#a71921;font-weight:800}.ntk-chat-inbox-content{display:grid;gap:4px;min-width:0;flex:1}.ntk-chat-inbox-head,.ntk-chat-inbox-preview{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}.ntk-chat-inbox-head strong{font-size:.98rem}.ntk-chat-inbox-head time,.ntk-chat-inbox-preview small{flex:none;color:#718092;font-size:.75rem}.ntk-chat-inbox-preview span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#536375;font-size:.86rem}.ntk-chat-inbox-route{color:#718092;font-size:.77rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-chat-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.client-chat-list a{display:flex;align-items:center;min-height:64px;padding:14px 16px;border:1px solid #dce3e9;border-radius:12px;text-decoration:none;color:inherit;line-height:1.45}.client-chat-list a:hover{border-color:#c98185;background:#fffafa}
@media(max-width:600px){.ntk-chat{margin:16px 0;border-radius:14px}.ntk-chat-topbar{padding:12px;gap:9px}.ntk-chat-topbar-icon{flex-basis:40px;width:40px;height:40px}.ntk-chat-heading h2{font-size:1rem}.ntk-chat-refresh{width:44px;min-width:44px;padding:0}.ntk-chat-refresh span{display:none}.ntk-chat-thread{min-height:260px;max-height:55vh;padding:16px 10px}.ntk-chat-message{max-width:94%}.ntk-chat-avatar{flex-basis:27px;width:27px;height:27px}.ntk-chat-bubble{padding:9px 11px}.ntk-chat-compose{padding:10px}.ntk-chat-compose button{width:48px;padding:0}.ntk-chat-compose button span{display:none}.ntk-chat-inbox-row{gap:10px;padding:12px}.ntk-chat-inbox-avatar{flex-basis:38px;width:38px;height:38px}.ntk-chat-inbox-preview small{display:none}}@media(max-width:360px){.ntk-chat-heading p{font-size:.75rem}.ntk-chat-message{max-width:97%}.ntk-chat-meta{gap:7px}.ntk-chat-compose-help{font-size:.67rem}.ntk-chat-inbox-head time{font-size:.68rem}}@media(prefers-reduced-motion:no-preference){.ntk-chat-refresh,.ntk-chat-compose button,.ntk-chat-inbox-row{transition:background .18s,border-color .18s,color .18s}}
.ntk-chat-compose textarea{height:48px;margin:0;min-height:48px;max-width:none}.ntk-chat-compose button{height:48px;margin:0;align-self:flex-end}
/* Calm, high-contrast palette for the conversation. */
.ntk-chat{border-color:#d6dee5;box-shadow:0 10px 30px #2436480d}.ntk-chat-topbar{background:#fcfdfd}.ntk-chat-topbar-icon{background:#e9eff2;color:#345267}.ntk-chat-thread{background:linear-gradient(145deg,#f2f5f6,#eaf0f2)}.ntk-chat-day span{background:#dfe7eb;color:#536778}.ntk-chat-avatar{background:#d6e1e6;color:#345267}.ntk-chat-bubble{border-color:#dce4e8;box-shadow:0 3px 10px #2436480a}.ntk-chat-message--self .ntk-chat-bubble{border-color:#c7d5dc;background:#e1ebef;color:#253c4b;box-shadow:0 3px 10px #2436480a}.ntk-chat-message--self .ntk-chat-meta time{color:#5b7180}.ntk-chat-compose textarea{background:#f8fafb;border-color:#bdcbd4}.ntk-chat-compose button{background:#29475a}.ntk-chat-compose button:hover{background:#1e384a}.ntk-chat-refresh:hover{color:#29475a}.ntk-chat-older{color:#29475a}.ntk-chat-empty>span{color:#345267;background:#e9eff2}.ntk-chat :is(a,button,textarea):focus-visible,.client-chat-list a:focus-visible,.ntk-chat-inbox-row:focus-visible{outline-color:#63849a}.ntk-chat-inbox-avatar{background:#e9eff2;color:#345267}.ntk-chat-inbox-row:hover,.client-chat-list a:hover{border-color:#9aafbb;background:#f8fbfc}
