.reg-assistant-launcher,
.reg-assistant-panel {
  box-sizing: border-box;
  font-family: 'Noto Sans KR', 'NanumSquare', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  font-size: .9375rem;
  line-height: 1.65;
}
.table-scroll.table-target{outline:2px solid var(--hnu-wine,#a41e44);outline-offset:4px;background:#fcf6f8}
.reg-result-excerpt{white-space:pre-wrap}
.reg-assistant-actions a{display:inline-block;text-decoration:none;font-size:.875rem;color:var(--hnu-indigo,#343465);padding:7px 10px;border:1px solid #dcdce7;border-radius:6px;background:#fafafd}

.reg-assistant-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--hnu-indigo, #343465);
  border-radius: 28px;
  background: var(--hnu-indigo, #343465);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px #24243e24;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.reg-assistant-launcher:hover {
  border-color: var(--hnu-wine, #a41e44);
  background: var(--hnu-wine, #a41e44);
  box-shadow: 0 5px 20px #24243e30;
}

.reg-assistant-launcher svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.reg-assistant-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, calc(100vw - 48px));
  height: min(620px, calc(100vh - 112px));
  height: min(620px, calc(100dvh - 112px));
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d2d2df;
  border-top: 3px solid var(--hnu-wine, #a41e44);
  border-radius: 18px;
  background: #fff;
  color: #39394e;
  box-shadow: 0 12px 44px #24243e26, 0 2px 8px #24243e12;
  isolation: isolate;
}

.reg-assistant-panel.expanded {
  width: min(720px, 90vw);
  height: min(780px, 85vh);
  height: min(780px, 85dvh);
}

.reg-assistant-panel *,
.reg-assistant-panel *::before,
.reg-assistant-panel *::after {
  box-sizing: border-box;
}

.reg-assistant-panel[hidden],
.reg-assistant-launcher[hidden] {
  display: none !important;
}

.reg-assistant-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 15px 20px;
  border-bottom: 1px solid #e1e1e9;
  background: #fafafd;
}

.reg-assistant-header > div {
  flex: 1 1 auto;
  min-width: 0;
}

.reg-assistant-title {
  margin: 0;
  color: var(--hnu-indigo, #343465);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.reg-assistant-status {
  display: block;
  margin: 4px 0 0;
  color: #606074;
  font-size: .875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.reg-assistant-close,
.reg-assistant-expand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #dedee8;
  border-radius: 10px;
  background: #fff;
  color: var(--hnu-indigo, #343465);
  font: inherit;
  font-size: .875rem;
  line-height: 1.4;
  cursor: pointer;
}

.reg-assistant-close:hover,
.reg-assistant-expand:hover {
  border-color: #bcbcd2;
  background: #efeff7;
}

.reg-assistant-close svg,
.reg-assistant-expand svg {
  width: 18px;
  height: 18px;
}

.reg-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  min-width: 0;
  padding: 20px 18px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #f7f7fa;
}

.reg-message {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dedee8;
  border-radius: 14px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.reg-message.assistant {
  align-self: stretch;
  background: #fff;
  color: #39394e;
  border-top-left-radius: 5px;
}

.reg-message.user {
  align-self: flex-end;
  max-width: 88%;
  border-color: var(--hnu-indigo, #343465);
  border-top-right-radius: 5px;
  background: var(--hnu-indigo, #343465);
  color: #fff;
}

.reg-message > p,
.reg-message .textline {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
}

.reg-message > p + p,
.reg-message .textline + .textline {
  margin-top: 8px;
}

.reg-result-card {
  min-width: 0;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dcdce7;
  border-radius: 10px;
  background: #fcfcfe;
  color: #39394e;
}

.reg-result-card + .reg-result-card {
  margin-top: 10px;
}

.reg-result-title {
  display: block;
  margin: 0;
  color: var(--hnu-indigo, #343465);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a.reg-result-title,
button.reg-result-title {
  cursor: pointer;
}

a.reg-result-title:hover,
button.reg-result-title:hover {
  color: var(--hnu-wine, #a41e44);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reg-result-meta {
  margin: 6px 0 0;
  color: #606074;
  font-size: .875rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.reg-result-excerpt {
  margin: 10px 0 0;
  color: #46465a;
  font-size: .9375rem;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.reg-assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.reg-assistant-actions button,
.reg-assistant-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #c8bfd0;
  border-radius: 8px;
  background: #fff;
  color: var(--hnu-wine, #a41e44);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.reg-assistant-actions button:hover,
.reg-assistant-actions a:hover {
  border-color: var(--hnu-wine, #a41e44);
  background: #fbf0f4;
  text-decoration: none;
}

.reg-assistant-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid #dedee8;
  background: #fff;
}

.reg-assistant-composer textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  max-height: 144px;
  margin: 0;
  padding: 12px;
  border: 1px solid #cfcfdd;
  border-radius: 10px;
  background: #fff;
  color: #39394e;
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
}

.reg-assistant-composer textarea::placeholder {
  color: #6b6b7f;
  opacity: 1;
}

.reg-assistant-composer button[type='submit'] {
  min-width: 66px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--hnu-wine, #a41e44);
  border-radius: 10px;
  background: var(--hnu-wine, #a41e44);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.reg-assistant-composer button[type='submit']:hover {
  border-color: #891837;
  background: #891837;
}

.reg-assistant-welcome {
  padding: 2px 0 4px;
  color: #46465a;
  line-height: 1.85;
}

.reg-assistant-welcome h2,
.reg-assistant-welcome h3,
.reg-assistant-welcome strong {
  color: var(--hnu-indigo, #343465);
}

.reg-assistant-welcome h2,
.reg-assistant-welcome h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.reg-assistant-welcome p {
  margin: 8px 0;
}

.reg-assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.reg-assistant-suggestions button {
  min-height: 42px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #cfcfde;
  border-radius: 22px;
  background: #fff;
  color: var(--hnu-indigo, #343465);
  font: inherit;
  font-size: .875rem;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.reg-assistant-suggestions button:hover {
  border-color: var(--hnu-indigo, #343465);
  background: #ededf6;
}

.reg-assistant-launcher:focus-visible,
.reg-assistant-panel :is(button, a, textarea):focus-visible {
  outline: 3px solid var(--hnu-indigo, #343465);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}

.reg-assistant-panel button:disabled {
  border-color: #c5c5d0;
  background: #ececf1;
  color: #626274;
  cursor: not-allowed;
}

@media (max-width: 650px) {
  .reg-assistant-launcher {
    right: 12px;
    bottom: 12px;
    min-height: 50px;
    padding: 11px 17px;
  }

  .reg-assistant-panel,
  .reg-assistant-panel.expanded {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    height: min(680px, calc(100vh - 24px));
    height: min(680px, calc(100dvh - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }

  .reg-assistant-header {
    gap: 6px;
    padding: 13px 12px 12px 16px;
  }

  .reg-assistant-messages {
    padding: 16px 12px;
  }

  .reg-assistant-composer {
    gap: 8px;
    padding: 12px;
  }

  .reg-message {
    padding: 11px 12px;
  }

  .reg-result-card {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reg-assistant-launcher,
  .reg-assistant-panel,
  .reg-assistant-panel * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .reg-assistant-launcher,
  .reg-assistant-panel,
  .reg-message,
  .reg-result-card {
    border: 1px solid CanvasText;
  }

  .reg-assistant-launcher:focus-visible,
  .reg-assistant-panel :is(button, a, textarea):focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .reg-assistant-launcher,
  .reg-assistant-panel {
    display: none !important;
  }
}
