.team-chat[hidden],.team-chat-panel[hidden]{display:none}
.chat-input-hint{margin:6px 0;font:12px/1.6 Pretendard,sans-serif;color:#5b756f;word-break:keep-all}.chat-drop-active{outline:2px dashed #287f7a;outline-offset:-4px;background:#edf8f5!important}.team-chat-messages{min-height:80px}.team-chat-form{max-height:70%;overflow-y:auto}.inline-chat-file-pick{display:inline-flex!important;align-items:center;gap:8px;min-height:40px;padding:6px 12px;border:1px solid #cbdcd9;border-radius:8px;background:#f5fbf9;cursor:pointer}.inline-chat-file-pick input{width:150px!important}.inline-chat-file{display:flex!important;align-items:center;gap:8px;padding:7px 9px;margin:7px 0;border:1px solid #d7e8e2;border-radius:8px;overflow-wrap:anywhere}.inline-chat-file input{width:auto!important}.inline-chat-file button{margin-left:auto;min-height:32px;border:0;border-radius:6px;background:#edf6f2;color:#26594f;cursor:pointer}.inline-chat-attachments{margin:8px 0 14px}
.team-chat{position:fixed;right:26px;bottom:24px;z-index:80;font-family:inherit;color:#243d3a}
.team-chat-toggle{min-height:48px;padding:0 19px;border:1px solid #286c69;border-radius:14px;background:#235a56;color:#fff;font-weight:700;box-shadow:0 8px 24px rgba(32,66,62,.2);cursor:pointer;transition:transform .18s,background .18s}
.team-chat-toggle:hover{background:#194d49;transform:translateY(-2px)}.team-chat-toggle:active{transform:scale(.98)}
.team-chat-panel{position:absolute;right:0;bottom:60px;display:flex;flex-direction:column;width:min(390px,calc(100vw - 30px));height:min(620px,calc(100vh - 110px));border:1px solid #d7e8e5;border-radius:17px;background:#fff;box-shadow:0 18px 50px rgba(32,66,62,.2);overflow:hidden}
.team-chat-panel>header{display:flex;justify-content:space-between;gap:15px;align-items:start;padding:19px 20px;border-bottom:1px solid #e4eeec;background:#f5fbfa}
.team-chat-panel>header strong,.team-chat-panel>header span{display:block}.team-chat-panel>header strong{font-size:16px}.team-chat-panel>header span{font-size:12px;line-height:1.5;color:#617c77;margin-top:4px}
.team-chat-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:#e5f3f1;color:#285e58;font-size:25px;cursor:pointer}
.team-chat-earlier{align-self:center;margin:10px 0 0;padding:5px 10px;border:0;border-radius:8px;background:#eef7f5;color:#286c65;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.team-chat-earlier[hidden]{display:none}
.team-chat-messages{flex:1;overflow-y:auto;padding:20px 16px;overscroll-behavior:contain;background:#edf5f3}
.team-chat-empty{margin:12px 0!important;color:#607974;text-align:center;font-size:13px;line-height:1.6;word-break:keep-all}
.team-chat-message{display:flex;align-items:flex-start;flex-direction:column;gap:5px;margin:0 0 16px;overflow-wrap:anywhere}.team-chat-message.is-mine{align-items:flex-end}.team-chat-meta{display:flex;align-items:baseline;gap:8px;padding:0 3px}.team-chat-meta strong{font-size:12px;color:#345d56}.team-chat-meta time{font-size:11px;color:#6c837e}.team-chat-bubble{max-width:85%;padding:10px 13px;border:1px solid #e1eeeb;border-radius:4px 15px 15px;background:#fff;box-shadow:0 2px 5px rgba(36,75,68,.04)}.is-mine .team-chat-bubble{border-color:#cbe6df;border-radius:15px 4px 15px 15px;background:#d8f0e9}.team-chat-bubble p{white-space:pre-wrap;font-size:14px;line-height:1.55;margin:0;color:#263e39}.team-chat-bubble a{font-size:13px;color:#12655d;overflow-wrap:anywhere}.team-chat-file{display:block;border:0;padding:7px 0;background:none;color:#12655d;font:inherit;font-size:13px;text-align:left;cursor:pointer;word-break:break-word}
.team-chat-form{border-top:1px solid #e4eeec;padding:14px 17px;background:#fff}.team-chat-form label,.team-feedback-form label{display:block;font-size:12px;font-weight:700;color:#42645e;margin-bottom:5px}.team-chat-form textarea,.team-chat-form input,.team-chat-form select,.team-feedback-form textarea,.team-feedback-form select{width:100%;padding:10px 12px;border:1px solid #cbdcd9;border-radius:10px;background:#fbfdfd;color:#253c39;font:inherit;font-size:14px;line-height:1.5}.team-chat-form textarea,.team-feedback-form textarea{resize:vertical}.team-chat-attachment{margin:8px 0;font-size:12px;color:#42645e}.team-chat-attachment summary{padding:7px 0;cursor:pointer;font-weight:700}.team-chat-attachment label{margin-top:9px}.team-chat-attachment p{font-size:12px;line-height:1.5;color:#69817c;margin:7px 0}.team-chat-bottom,.team-feedback-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.team-chat-status,.team-feedback-actions [role=status]{font-size:12px;color:#58736d;line-height:1.4}.team-chat-bottom .btn,.team-feedback-actions .btn{min-height:40px;flex:none}
.team-feedback{margin:20px 0;border:1px solid #d4e6e3;border-radius:14px;background:#fff}.team-feedback>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;cursor:pointer}.team-feedback>summary::-webkit-details-marker{display:none}.team-feedback>summary::after{content:'펼치기 +';color:#29736c;font-size:13px;font-weight:700;white-space:nowrap}.team-feedback[open]>summary::after{content:'접기 −'}.team-feedback summary strong,.team-feedback summary small{display:block}.team-feedback summary strong{font-size:16px;color:#234d47}.team-feedback summary small{font-size:13px;color:#6a817d;line-height:1.5;margin-top:4px}.team-feedback-body{border-top:1px solid #e7efed;padding:20px}.team-feedback-form label:not(:first-child){margin-top:14px}.team-feedback-results{margin-top:24px}.team-feedback-results h4{font-size:14px;margin:20px 0 10px}.team-feedback-results ul{list-style:none;margin:0;padding:0}.team-feedback-results li{padding:12px 14px;margin-top:8px;border-radius:10px;background:#f5faf9;overflow-wrap:anywhere}.team-feedback-results strong{font-size:13px;color:#345f58}.team-feedback-results p{white-space:pre-wrap;font-size:14px;line-height:1.6;margin:7px 0}.team-feedback-results small,.team-feedback-empty{font-size:12px;color:#708682}
.team-chat :focus-visible,.team-feedback :focus-visible{outline:3px solid #31867f;outline-offset:2px}
@media(max-width:600px){.team-chat{right:12px;bottom:12px}.team-chat-panel{right:0;bottom:58px;width:calc(100vw - 24px);height:min(620px,calc(100dvh - 90px))}.team-feedback-body{padding:16px}.team-feedback>summary{padding:16px}}
@media(prefers-reduced-motion:reduce){.team-chat-toggle{transition:none}.team-chat-toggle:hover,.team-chat-toggle:active{transform:none}}

.team-chat-selected{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;padding:7px 10px;border-radius:9px;background:#edf8f5;font-size:13px;color:#245b53;overflow-wrap:anywhere}.team-chat-selected[hidden]{display:none}.team-chat-remove{flex:none;border:0;background:transparent;color:#426b64;font-size:21px;cursor:pointer}.team-chat-bottom input[type=file]{display:none}.team-chat-status{flex:1}.team-chat-bubble a,.team-chat-file{max-width:100%}
/* 컴포저 아이콘 버튼: 44px 터치 타깃 + 키보드 포커스 */
.team-chat-attach,.team-chat .team-chat-form .team-chat-bottom .team-chat-send{display:inline-grid;place-items:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:12px;cursor:pointer}
.team-chat-attach{border:1px solid #d4e7e2;background:#f6fbf9;color:#245f56}.team-chat-attach:hover:not(:disabled){background:#e8f4f0}
.team-chat-send{border:1px solid #286c69;background:#235a56;color:#fff}.team-chat-send:hover:not(:disabled){background:#194d49}
.team-chat-attach:disabled,.team-chat-send:disabled{opacity:.5;cursor:not-allowed}
.team-chat-attach:focus-visible,.team-chat-send:focus-visible,.team-chat-remove:focus-visible{outline:3px solid #31867f;outline-offset:2px}
.team-chat-send:focus-visible{outline-color:#12403c;box-shadow:0 0 0 2px #fff,0 0 0 5px #31867f}
.team-chat .chat-control-icon{display:block;pointer-events:none}
/* 선택한 파일 칩 */
.team-chat-selected{gap:10px;padding:6px 6px 6px 12px;border:1px solid #cbe6df;border-radius:12px;justify-content:flex-start}
.team-chat-selected-icon{display:inline-grid;place-items:center;flex:none;color:#2c7f75}
.team-chat-selected-name{flex:1;min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-chat-selected-size{flex:none;font-size:12px;color:#5b756f}
.team-chat-remove{display:grid;place-items:center;width:44px;height:44px;margin:-6px 0;border-radius:10px;line-height:1}.team-chat-remove:hover{background:#dcefe9}
/* 전송 대기/진행 표시 */
.team-chat-file.is-pending{color:#3c6f68;font-style:italic;cursor:default}
.team-chat .chat-delivery{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px;padding:0 3px;font-size:11px;color:#5b756f}.team-chat .chat-delivery.is-failed{color:#a13a2f}.team-chat .chat-delivery button{min-height:32px;padding:0 8px;border:0;border-radius:6px;background:#eef7f5;color:#235a56;font:inherit;font-weight:700;cursor:pointer}
.team-chat .chat-upload-progress{flex:1 1 90px;min-width:90px;max-width:160px;height:6px;border:0;border-radius:3px;overflow:hidden;appearance:none;-webkit-appearance:none;background:#cfe3de}.team-chat .chat-upload-progress::-webkit-progress-bar{background:#cfe3de}.team-chat .chat-upload-progress::-webkit-progress-value{background:#2c7f75;transition:width .15s}.team-chat .chat-upload-progress::-moz-progress-bar{background:#2c7f75}
@media(prefers-reduced-motion:reduce){.team-chat .chat-upload-progress::-webkit-progress-value{transition:none}}
