.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);height:min(760px,78vh);min-height:540px;border:1px solid #e8e3d6;border-radius:26px;background:white;overflow:hidden;margin-top:16px}.chat-inbox{padding:18px;border-right:1px solid #e8e3d6;display:flex;flex-direction:column;min-height:0;gap:12px}.chat-inbox label{font-size:14px;font-weight:600}.chat-inbox input{width:100%;margin-top:8px;border:1px solid #e8e3d6;border-radius:14px;padding:12px;background:#faf9f5;font:inherit}.chat-list{overflow:auto;flex:1;min-height:0}.chat-thread{display:block;width:100%;border:0;border-radius:16px;padding:15px 12px;margin:0 0 6px;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer;position:relative}.chat-thread:hover,.chat-thread.active{background:#f0f5df}.chat-thread strong{display:block;font-size:16px;padding-right:28px;overflow-wrap:anywhere}.chat-thread small,.chat-preview{display:block;font-size:13px;color:#747985;margin-top:6px}.chat-preview{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-thread .chat-badge{position:absolute;right:10px;top:12px}.chat-badge{display:inline-block;padding:3px 7px;margin-left:6px;background:#b3df32;border-radius:12px;color:#222;font-family:inherit;font-weight:700;font-size:12px;line-height:1.3;vertical-align:middle}.chat-badge[hidden]{display:none}.chat-room{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-room-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #efede5}.chat-room-head h3{font-size:20px;line-height:1.3;overflow-wrap:anywhere}.chat-room-head small{color:#747985}.chat-room-head>button{display:none}.chat-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 18px}.chat-tools p{font-size:14px}.chat-tools .mini-btn,.chat-tools .btn{font-size:13px;padding:9px 14px;min-height:36px}.chat-tools small{color:#747985}.chat-status{font-size:14px;line-height:1.45;color:#747985;margin:8px 0;overflow-wrap:anywhere}.chat-room>.chat-status{padding:0 18px;margin:4px 0 8px}.chat-status:empty{display:none}.chat-error{color:#b83a24}.chat-room>button{margin:4px auto;font-size:13px}.chat-history{flex:1;min-height:80px;overflow-y:auto;padding:12px 20px;background:#fafaf6;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-day{text-align:center;color:#888c95;font-size:12px;margin:8px 0 16px}.chat-message{max-width:85%;width:fit-content;padding:12px 16px;margin:0 0 12px;background:#fff;border:1px solid #e9e5dc;border-radius:18px 18px 18px 5px}.chat-message.mine{margin-left:auto;background:#edf6d2;border-color:#e0edbc;border-radius:18px 18px 5px 18px}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.45;margin:0}.chat-message small{display:block;margin-top:7px;font-size:11px;color:#777d83}.chat-compose{border-top:1px solid #e8e3d6;padding:14px 18px;background:white}.chat-compose>label:not(.chat-consent){display:block;font-size:13px;font-weight:600}.chat-compose textarea{display:block;width:100%;max-height:140px;min-height:60px;resize:vertical;border:1px solid #e8e3d6;border-radius:14px;font-family:inherit;font-size:16px;line-height:1.45;padding:10px 12px;background:#faf9f5;margin-top:6px}.chat-compose textarea:disabled{opacity:.55}.chat-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.chat-compose-actions .btn{padding:12px 24px;justify-content:center;text-align:center}.chat-compose-actions .hint{font-size:11px;margin:0}.chat-consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.4;margin-bottom:10px}.chat-consent input{flex:none;width:20px;height:20px;margin:2px 0;accent-color:#91b719}.chat-consent a{color:#187fa2;text-decoration:underline}.chat-empty{padding:24px;color:#7b7f89;font-size:15px;line-height:1.5}.chat-compose>.hint{font-size:12px;margin:6px 0}.chat-message a{color:inherit}.chat-layout button:focus-visible,.chat-layout input:focus-visible,.chat-layout textarea:focus-visible{outline:3px solid #1687cf;outline-offset:2px}
@media(max-width:760px){.chat-layout{display:block;height:calc(100dvh - 170px);min-height:600px;border-radius:20px}.chat-inbox{height:100%;border-right:0}.chat-room{display:none;height:100%}.chat-selected .chat-inbox{display:none}.chat-selected .chat-room{display:flex}.chat-room-head{padding:12px}.chat-room-head>button{display:block;padding:8px;font-size:12px;flex:none}.chat-room-head h3{font-size:17px}.chat-history{padding:12px}.chat-compose{padding:10px 12px}.chat-compose-actions>.hint{display:none}.chat-compose-actions{justify-content:flex-end}.chat-message{max-width:92%}.chat-tools{padding:6px 12px}.chat-room>.chat-status{font-size:12px;padding:0 12px}.chat-consent{font-size:12px}.chat-room-head small{font-size:12px}}

@media(max-width:760px){.chat-layout.chat-selected{position:fixed;inset:76px 0 0;z-index:90;width:100%;height:auto;min-height:0;margin:0;border-radius:0;border-width:1px 0 0}.chat-selected .chat-compose{max-height:55dvh;overflow-y:auto}.chat-selected .chat-history{min-height:40px}}
