@charset "utf-8";

/* 게시판 쓰기 */
/*#char_count_desc {display:block;margin:0 0 5px;padding:0}
#char_count_wrap {margin:5px 0 0;text-align:right}
#char_count {font-weight:bold}*/

#autosave_wrapper {position:relative}
#autosave_pop {display:none;z-index:10;position:absolute !important;top:34px;right:0;width:350px;height:auto !important;height:180px;max-height:180px;border:1px solid #565656;background:#fff;
    -webkit-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
    -moz-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
    box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2)}
#autosave_pop:before {content:"";position:absolute;top:-8px;right:45px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #000 transparent}
#autosave_pop:after {content:"";position:absolute;top:-7px;right:45px;width:0;height:0;border-style:solid;border-width:0 6px 8px 6px;border-color:transparent transparent #fff transparent}
html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !important} /* overflow 미지원 기기 대응 */
#autosave_pop strong {position:absolute;font-size:0;line-height:0;overflow:hidden}
#autosave_pop div {text-align:center;margin:0 !important}
#autosave_pop button {margin:0;padding:0;border:0}
#autosave_pop ul {padding:3px; margin-bottom: 0px; border-top:1px solid #e9e9e9;list-style:none;overflow-y:scroll;height:130px;border-bottom:1px solid #e8e8e8}
#autosave_pop li {padding:8px 5px;border-bottom:1px solid #fff;background:#eee;zoom:1}
#autosave_pop li:after {display:block;visibility:hidden;clear:both;content:""}
#autosave_pop a {display:block;float:left}
#autosave_pop span {display:block;float:right;font-size:0.92em;font-style:italic;color:#999}
.autosave_close {cursor:pointer;width:100%;height:30px;background:#333;color:#fff;font-weight:bold;font-size:0.92em}
.autosave_close:hover {background:#666;color:#fff;}
.autosave_content {display:none}
.autosave_del {background:url(./img/close_btn.png) no-repeat 50% 50%;text-indent:-999px;overflow:hidden;height:20px;width:20px}

.ai-news-post{
    max-width: 600px;
    margin: 0 auto;
}

/* 제목 input과 임시 저장된 글 버튼 높이 맞추기 */
#autosave_wrapper .btn {
    height: calc(1.5em + 0.75rem + 2px);
    line-height: 1.5;
}

.ai-lab-chat {
    margin: 28px 0 8px;
    padding: 18px 14px;
    border-radius: 24px;
    background: #b6d2f5;
  }
  
  .ai-lab-chat__thread {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .ai-lab-chat__msg {
    display: flex;
    width: 100%;
  }
  
  .ai-lab-chat__msg--gemini {
    justify-content: flex-start;
  }
  
  .ai-lab-chat__msg--chatgpt {
    justify-content: flex-end;
  }
  
  .ai-lab-chat__msg--chatgpt .ai-lab-chat__speaker {
    color: #1f2937;
    text-align: right;
  }
  
  .ai-lab-chat__bubble {
    max-width: 78%;
    padding: 20px 22px 18px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  
  .ai-lab-chat__msg--gemini .ai-lab-chat__bubble {
    background: #ffffff;
    border-radius: 30px 30px 30px 0px;
    color: #1f2937;
  }
  
  .ai-lab-chat__msg--chatgpt .ai-lab-chat__bubble {
    background: #ffeb3b;
    border-radius: 30px 30px 0px 30px;
    color: #1f2937;
  }
  
  .ai-lab-chat__speaker {
    display: block;
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.88;
  }
  
  .ai-lab-chat__text {
    margin: 0;
    font-size: 20px;
    line-height: 1.62;
    word-break: keep-all;
  }
  
  @media (max-width: 640px) {
    .ai-lab-chat {
      margin: 24px 0 6px;
      padding: 14px 10px;
      border-radius: 20px;
    }
  
    .ai-lab-chat__bubble {
      max-width: 86%;
      padding: 9px 11px 10px;
      border-radius: 16px;
    }
  
    .ai-lab-chat__speaker {
      font-size: 11px;
    }
  
    .ai-lab-chat__text {
      font-size: 14px;
      line-height: 1.58;
    }
  }