/* The launcher lives in the homepage. Conversation controls live in its iframe. */
#tm-dialog[data-tcw], #tc-app.tc-student[data-tcw] {
  --tcw-navy: #263784;
  --tcw-ink: #1c2945;
  --tcw-muted: #52617a;
  --tcw-line: #dbe2ed;
  --tcw-canvas: #f3f5fa;
  --tcw-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--tcw-ink);
  font-family: var(--tcw-font);
}
#tm-dialog[data-tcw] {
  box-sizing: border-box;
  border: 1px solid rgba(27, 44, 87, .18);
  border-radius: 22px;
  box-shadow: 0 22px 64px rgba(18, 30, 62, .23), 0 3px 12px rgba(18, 30, 62, .08);
}
#tm-dialog[data-tcw]::backdrop {background: rgba(19, 30, 57, .18); backdrop-filter: blur(1px)}
@media (min-width:641px) {
  #tm-dialog[data-tcw] {
    width: var(--tmx-w, 510px) !important;
    height: min(var(--tmx-h, 778px), calc(100dvh - 112px)) !important;
  }
}
#tm-dialog[data-tcw] .tm-frame-head,
#tc-app.tc-student[data-tcw-standalone] .tc-student-head {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  position: relative !important;
  inset: auto !important;
  min-height: 76px !important;
  box-sizing: border-box;
  padding: 13px 16px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--tcw-line) !important;
  backdrop-filter: none !important;
}
#tm-dialog[data-tcw] .tm-frame-head img {width: 51px !important; height: 25px !important; object-fit: contain; flex: none}
#tm-dialog[data-tcw] .tm-frame-head > div {min-width: 0}
#tm-dialog[data-tcw] .tm-frame-head strong {
  display: block; color: var(--tcw-ink); font: 750 16px/1.4 var(--tcw-font) !important; letter-spacing: -.035em; white-space: nowrap;
}
#tm-dialog[data-tcw] .tm-frame-head small {display: none !important}
#tm-dialog[data-tcw] .tcw-phone,
#tc-app.tc-student[data-tcw] .tcw-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  box-sizing: border-box; min-height: 46px; margin-inline-start: auto; padding: 5px 13px;
  border: 1px solid var(--tcw-navy); border-radius: 12px; background: var(--tcw-navy);
  color: #fff; text-decoration: none; text-align: left; white-space: nowrap;
  font-family: var(--tcw-font); -webkit-tap-highlight-color: transparent;
}
#tm-dialog[data-tcw] .tcw-phone:hover, #tc-app.tc-student[data-tcw] .tcw-phone:hover {background: #1c296c; border-color: #1c296c; color: #fff}
#tm-dialog[data-tcw] .tcw-phone-copy, #tc-app.tc-student[data-tcw] .tcw-phone-copy {display: grid; gap: 2px}
#tm-dialog[data-tcw] .tcw-phone-label, #tc-app.tc-student[data-tcw] .tcw-phone-label {
  color: #fff; font: 700 13px/1.15 var(--tcw-font); letter-spacing: -.015em;
}
#tm-dialog[data-tcw] .tcw-phone-number, #tc-app.tc-student[data-tcw] .tcw-phone-number {
  color: #e2e8ff; font: 550 11px/1.15 var(--tcw-font); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
#tm-dialog[data-tcw] .tcw-phone svg, #tc-app.tc-student[data-tcw] .tcw-phone svg {display: block; flex: none; width: 17px; height: 17px}
#tm-dialog[data-tcw] .tm-close {
  display: grid; place-content: center; box-sizing: border-box; min-width: 44px; width: 44px; height: 44px;
  margin: 0 !important; padding: 12px; color: #52617b; background: #f3f5f9 !important; border: 0 !important; border-radius: 12px;
}
#tm-dialog[data-tcw] .tm-close:hover {background: #e9edf5 !important}
#tm-dialog[data-tcw] .tm-frame-head .tm-close:focus-visible,
#tm-dialog[data-tcw] .tcw-phone:focus-visible, #tc-app.tc-student[data-tcw] .tcw-phone:focus-visible,
#tc-app.tc-student[data-tcw] :is(button, summary, a):focus-visible {
  outline: 3px solid #5774c0 !important; outline-offset: 2px !important;
}
#tm-dialog[data-tcw] iframe {min-width: 0; background: var(--tcw-canvas)}
@media (max-width:640px) {
  #tm-dialog[data-tcw][open] {padding-bottom: 0 !important}
  #tm-dialog[data-tcw][open] .tm-frame-head {
    min-height: calc(66px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(9px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 9px max(14px, env(safe-area-inset-left, 0px)) !important;
  }
}
@media (max-width:375px) {
  #tm-dialog[data-tcw] .tm-frame-head, #tc-app.tc-student[data-tcw-standalone] .tc-student-head {gap: 7px}
  #tm-dialog[data-tcw] .tm-frame-head img {width: 42px !important}
  #tm-dialog[data-tcw] .tm-frame-head strong {font-size: 15px !important}
  #tm-dialog[data-tcw] .tcw-phone, #tc-app.tc-student[data-tcw] .tcw-phone {gap: 6px; padding-inline: 9px}
}
@media (max-width:310px) {
  #tm-dialog[data-tcw] .tm-frame-head img, #tm-dialog[data-tcw] .tcw-phone-number {display: none}
}
#tc-app.tc-student[data-tcw] {
  min-width: 0; max-width: none; width: 100%; font-family: var(--tcw-font); margin: 0 auto; background: var(--tcw-canvas);
}
#tc-app.tc-student[data-tcw-standalone] {max-width: 620px}
#tc-app.tc-student[data-tcw] .tc-student-shell {min-width: 0; background: var(--tcw-canvas)}
#tc-app.tc-student[data-tcw-standalone] .tc-student-head {justify-content: flex-start}
#tc-app.tc-student[data-tcw-standalone] .tc-student-head .tc-online {display: none}
#tc-app.tc-student[data-tcw-standalone] .tc-brand {margin: 0; flex-shrink: 1; min-width: 0}
#tc-app.tc-student[data-tcw-standalone] .tc-brand small {display: none}
#tc-app.tc-student[data-tcw-standalone] .tc-student-head .tc-kakao {
  white-space: nowrap; font-size: 12px; padding: 8px 6px; min-height: 44px; display: inline-flex; align-items: center;
}
#tc-app.tc-student[data-tcw] .to-availability {
  color: #75470f; background: #fff6e5; border: 0; border-bottom: 1px solid #efdfbd;
  padding: 9px 18px; font: 500 13px/1.55 var(--tcw-font); white-space: pre-line; overflow-wrap: anywhere;
}
#tc-app.tc-student[data-tcw] [data-tcw-merged], #tc-app.tc-student[data-tcw] [data-tcw-replaced] {display: none !important}
html #tc-app.tc-student[data-tcw] .tm-ai-bar {
  flex: 0 0 auto; position: relative !important; inset: auto !important; z-index: auto !important;
  padding: 7px 17px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #dce3ef !important;
  background: #edf1fa !important; backdrop-filter: none !important; color: #374865;
}
#tc-app.tc-student[data-tcw] .tm-ai-top {display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center}
#tc-app.tc-student[data-tcw] .tm-ai-top .tcw-status,
#tc-app.tc-student[data-tcw] .tm-ai-top .tm-ai-label {
  flex: 1 1 165px; margin: 0; min-width: 0; color: #374865;
  font: 550 13px/1.45 var(--tcw-font) !important; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: anywhere;
}
#tc-app.tc-student[data-tcw] .tm-ai-top button, #tc-app.tc-student[data-tcw] .tm-ai-bar > button {
  min-height: 36px !important; padding: 5px 10px !important; border-radius: 9px; color: #354b86; border: 1px solid #bdcbe2;
  background: #fff; font-size: 12px !important; font-weight: 650 !important;
}
#tc-app.tc-student[data-tcw] .tm-ai-bar [hidden] {display: none !important}
html #tc-app.tc-student[data-tcw] #tc-connection {position: static !important; color: #485977; background: #f3f5fa; font-size: 12px !important}
html #tc-app.tc-student[data-tcw] #tc-messages {
  min-height: 0; min-width: 0; flex: 1 1 0; padding: 16px 16px 8px !important;
  background: var(--tcw-canvas) !important; scrollbar-width: thin; scrollbar-color: #c3cddd transparent;
}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message {min-width: 0; margin: 0 0 13px !important; gap: 3px 0}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message.tmx-notlast {margin-bottom: 6px !important}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message:not(.own):not(.system) {padding-left: 0 !important}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message:not(.own):not(.system)::after {
  width: 20px !important; height: 20px !important; border-radius: 7px; top: 0; background-size: 82%;
}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message:not(.own):not(.system)[data-tmx-date]::after {top: 39px}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message[data-tmx-date]::before {margin-inline: 0; flex-basis: 100%; color: #546681}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message:not(.own):not(.system) .tc-message-author {
  min-height: 20px; box-sizing: border-box; padding-left: 26px; padding-top: 2px; margin-bottom: 2px !important;
}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message .tc-message-author::before {font: 650 12px/1.5 var(--tcw-font) !important; color: #4a5973}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message:not(.system) .tc-bubble {
  min-width: 0; max-width: 94% !important; box-sizing: border-box;
  color: var(--tcw-ink); background: #fff; border: 1px solid #e0e5ed !important;
  border-radius: 5px 16px 16px !important; padding: 11px 14px !important;
  font: 400 15px/1.62 var(--tcw-font) !important; letter-spacing: -.018em;
  white-space: normal; word-break: normal; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(27, 42, 76, .025);
}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message.own .tc-bubble {
  background: var(--tcw-navy) !important; border-color: var(--tcw-navy) !important; color: #fff; max-width: 87% !important;
  border-radius: 16px 5px 16px 16px !important;
}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message .tc-message-time {
  flex: 0 0 100%; min-width: 0; order: 2; margin: 0 2px !important; color: #596980 !important;
  font: 450 11px/1.4 var(--tcw-font) !important;
}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message.own .tc-message-time {text-align: right}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message.system .tc-bubble {color: #465674 !important; background: #e8edf5 !important}
#tc-app.tc-student[data-tcw] #tc-messages .tc-message .tc-bubble img {max-width: 100%; height: auto}
#tc-app.tc-student[data-tcw] .tc-composer {
  flex-shrink: 0; align-items: flex-end; gap: 8px !important; box-sizing: border-box;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) !important;
  border-top: 1px solid var(--tcw-line) !important; background: #fff !important;
}
#tc-app.tc-student[data-tcw] .tc-composer textarea#tc-message {
  min-height: 44px !important; padding: 10px 14px !important; border-radius: 16px !important;
  border: 1px solid #cdd6e5 !important; color: var(--tcw-ink) !important; background: #f6f8fc !important;
  font: 400 16px/1.4 var(--tcw-font) !important;
}
#tc-app.tc-student[data-tcw] .tc-composer textarea#tc-message:placeholder-shown {height: 44px !important}
#tc-app.tc-student[data-tcw] .tc-composer textarea#tc-message::placeholder {color: #5b687e}
#tc-app.tc-student[data-tcw] .tc-composer textarea#tc-message:focus {
  background: #fff !important; border-color: #475eac !important; box-shadow: 0 0 0 2px #344a9a18;
}
#tc-app.tc-student[data-tcw] .tc-composer #tc-send,
#tc-app.tc-student[data-tcw] .tc-composer .tc-file-label {
  min-width: 44px !important; width: 44px !important; min-height: 44px !important; height: 44px !important; max-height: 44px !important;
  border-radius: 15px !important; box-sizing: border-box;
}
#tc-app.tc-student[data-tcw] .tc-composer #tc-send {background-color: var(--tcw-navy) !important}
#tc-app.tc-student[data-tcw] .tc-composer .tc-file-label {background-color: #f1f4fa !important; color: #415173 !important; border: 1px solid #e0e5ee !important}
#tc-app.tc-student[data-tcw] .tc-composer .tc-file-label:focus-within {outline: 2px solid #5774c0; outline-offset: 1px}
@media (max-width:420px) {
  html #tc-app.tc-student[data-tcw] #tc-messages {padding-inline: 12px !important}
  #tc-app.tc-student[data-tcw] #tc-messages .tc-message:not(.system) .tc-bubble {max-width: 97% !important}
  #tc-app.tc-student[data-tcw] .tc-composer {gap: 6px !important}
  #tc-app.tc-student[data-tcw-standalone] .tc-student-head {padding-inline: 10px !important}
}
@media (pointer:coarse) {
  #tc-app.tc-student[data-tcw] .tm-ai-top button, #tc-app.tc-student[data-tcw] .tm-ai-bar > button {min-height: 44px !important}
}
/* A landscape phone has little vertical space for a floating desktop-sized window. */
@media (max-width: 950px) and (max-height: 540px) {
  #tm-dialog[data-tcw][open] {
    position: fixed !important; inset: 0 !important; margin: 0 !important;
    width: 100% !important; max-width: 100vw !important; min-width: 0 !important;
    height: 100vh !important; height: 100dvh !important; max-height: 100dvh !important; min-height: 0 !important;
    border: 0 !important; border-radius: 0; padding: 0 !important;
  }
  #tm-dialog[data-tcw][open] .tm-frame-head,
  #tc-app.tc-student[data-tcw-standalone] .tc-student-head {
    padding: 3px max(12px, env(safe-area-inset-right, 0px)) 3px max(12px, env(safe-area-inset-left, 0px)) !important;
    min-height: 52px !important;
  }
  #tm-dialog[data-tcw] .tcw-phone, #tc-app.tc-student[data-tcw] .tcw-phone {min-height: 44px}
  #tm-dialog[data-tcw] .tmx-rs {display: none !important}
  #tc-app.tc-student[data-tcw] .tm-ai-bar {padding-block: 3px !important}
  #tc-app.tc-student[data-tcw] .tc-composer {padding-top: 5px !important; padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)) !important}
}
