/*!
 * Cogmo Enterprise Generative AI/Cogmo Search UI version: 3.6.0
 * version date: 2026-06-03
 * Copyright: IACT CORPORATION.
 * Comment: 再配布を禁じます。契約者でのご利用にて改変を行うことは認められておりますが、新バージョンのUIファイルは標準ファイルのみ配布となりますので、再度、契約者で改変を行ってください。
*/
@charset "UTF-8";

:root {
  --cgm-cursor-after-content: " ";
}

.cogmo-main :where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

.cogmo-main *,
.cogmo-main ::after,
.cogmo-main ::before {
  box-sizing: border-box;
}

.cogmo-main a,
.cogmo-main button {
  cursor: revert;
}

.cogmo-main menu,
.cogmo-main ol,
.cogmo-main ul {
  list-style: none;
}

.cogmo-main img {
  max-inline-size: 100%;
  max-block-size: 100%;
}

.cogmo-main table {
  border-collapse: collapse;
}

.cogmo-main input,
.cogmo-main textarea {
  -webkit-user-select: auto;
}

.cogmo-main textarea {
  white-space: revert;
}

.cogmo-main meter {
  -webkit-appearance: revert;
  appearance: revert;
}

.cogmo-main :where(pre) {
  all: revert;
}

.cogmo-main ::-webkit-input-placeholder {
  color: unset;
}

.cogmo-main :-ms-input-placeholder {
  color: unset;
}

.cogmo-main ::placeholder {
  color: unset;
}

.cogmo-main ::marker {
  content: initial;
}

.cogmo-main :where([hidden]) {
  display: none;
}

.cogmo-main :where([contenteditable]:not([contenteditable="false"])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

.cogmo-main :where([draggable="true"]) {
  -webkit-user-drag: element;
}

.cogmo-main :where(dialog:modal) {
  all: revert;
}

/* Common */
.cgm-header,
.cgm-footer,
.cogmo-main {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.625;
}

.cgm-search-inner {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 40px;
  padding-left: 40px;
}

@media (max-width: 640px) {
  .cgm-search-inner {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Header */
.cgm-header {
  background: #fff;
}
.cgm-header-logo {
  padding: 21px 30px 8px;
}
.cgm-header-logo img {
  display: block;
  width: 137px;
  height: auto;
}

/* Global Navigation */
.cgm-gnav {
  display: -ms-flexbox;
  display: flex;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding: 10px 10px;
}
.cgm-gnav-item.home {
  width: 80px;
  margin-right: 15px;
}
.cgm-gnav-item:not(:last-child, .home) {
  -ms-flex: 1;
  flex: 1;
  margin-right: 9px;
}
.cgm-gnav-link {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 100%;
  padding: 2px 5px;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease-out;
}
.cgm-gnav-link:hover {
  opacity: 0.7;
}
.current .cgm-gnav-link {
  background: #158c65;
  color: #333;
}
.cgm-gnav-title {
  font-weight: 500;
}
.cgm-gnav-sub {
  font-size: 11px;
  color: #808080;
}

/* Footer */
.cgm-footer {
  padding: 38px 0;
  background: #f5f5f5;
}
.cgm-footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #808080;
}

/* Search UI */
.cgm-search-form-area {
  padding: 18px 0;
  background: #f5f5f5;
}

.cgm-suggest-area {
  position: absolute;
  top: 100%;
  left: -1px;
  z-index: 1;
  width: calc(100% + 2px);
  background: #fff;
  border: 1px solid #1b4db3;
  border-radius: 0 0 3px 3px;
}

.cgm-suggest-item:not(:last-child) {
  border-bottom: 1px solid #ddd;
}
.cgm-suggest-item button {
  display: block;
  width: 100%;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease-out;
}
.cgm-suggest-item button:hover {
  background: rgba(27, 77, 179, 0.05);
}

.cgm-search-input-wrap {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  margin-top: -1px;
  border: 1px solid #1b4db3;
  border-radius: 3px 0 0 3px;
  background: #fff;
}

.cgm-search-input-area {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex: 1;
  flex: 1;
  position: relative;
}
.cgm-search-input-area::before {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 15px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url(../images/ico_search.svg) no-repeat center center;
  background-size: 20px 20px;
  content: "";
}
@media (max-width: 640px) {
  .cgm-search-input-area::before {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }
}
.cgm-search-input-area textarea {
  display: block;
  width: 100%;
  padding: 15px 60px 15px 44px;
  line-height: 1.53;
  font-size: 17px;
  font-weight: 500;
  margin: auto;
}

.cgm-search-input-area textarea::-webkit-input-placeholder {
  position: absolute;
  margin: auto;
  opacity: 0.5;
}

.cgm-search-input-area button {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 15px;
  width: 24px;
  height: 32px;
  padding-top: 4px;
  transform: translateY(-50%);
  cursor: pointer;
}
@media (max-width: 640px) {
  .cgm-search-input-area button {
    right: 11px;
  }
}

.cgm-clear-input-button {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 160px;
  height: 100%;
  min-height: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.cgm-clear-input-button:hover {
  opacity: 0.8;
}
.cgm-clear-input-button::before {
  display: inline-block;
  width: 24px;
  height: 28px;
  background: url(../images/ico_clear02.svg) no-repeat center center;
  content: "";
}

.cgm-search-button {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 140px;
  height: 100%;
  min-height: 60px;
  background: #1b4db3;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.cgm-search-button::before {
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: 12px;
  background: url(../images/ico_submit.svg) no-repeat center center;
  content: "";
}
@media (max-width: 640px) {
  .cgm-search-button {
    width: 200px;
    border-radius: 3px;
  }
}
.cgm-search-button:hover {
  opacity: 0.8;
}
.cgm-search-button:not([disabled]) {
  cursor: pointer;
}

@media (max-width: 640px) {
  .cgm-search-button-area {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    grid-column: 1 / 3;
  }
}

.cgm-search-form {
  margin-bottom: 10px;
}

.cgm-text-filter-form {
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .cgm-text-filter-form {
    margin-bottom: 15px;
  }
}

.cgm-text-filter-input-wrap {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  margin-top: -1px;
}

.cgm-text-filter-input-wrap .cgm-search-input-area {
  border: 1px solid #1b4db3;
  border-radius: 3px 0 0 3px;
  background: #fff;
}
@media (max-width: 640px) {
  .cgm-text-filter-input-wrap .cgm-search-input-area {
    border-radius: 3px;
  }
}

.cgm-text-filter-input-wrap .cgm-search-input-area::before {
  width: 20px;
  height: 20px;
  background-image: url(../images/ico_filter.svg);
}

.cgm-search-form-refresh {
  position: relative;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  align-self: end;
  width: 160px;
  margin-bottom: 10px;
  padding: 4px 5px;
  border-radius: 3px;
  background: #5f4cbf;
  color: #fff;
  font-size: 13px;
  letter-spacing: -0.1em;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.cgm-search-form-refresh:hover {
  opacity: 0.7;
}
.cgm-search-form-refresh::before {
  display: inline-block;
  width: 12px;
  height: 14px;
  margin-right: 4px;
  background: url(../images/ico_refresh.svg) no-repeat center center;
  content: "";
}
.cgm-search-form-refresh:disabled {
  opacity: 0.5;
}

.cgm-search-form-container {
  display: grid;
  grid-template-columns: 1fr 160px;
}

.cgm-search-form-group {
  grid-column: 1 / 3;
}

.cgm-search-mode-switcher {
  padding-right: 5px;
  margin-bottom: 10px;
}

.cgm-tab-item:not(:first-child) {
  margin-left: -30px;
}
.cgm-tab-item:nth-child(2) {
  z-index: 0;
}
.cgm-tab-item:nth-child(2)::before,
.cgm-tab-item:nth-child(2)::after {
  z-index: -2;
}
.cgm-gpt-result-area {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 25px 30px;
  border-width: 1px;
  border-style: solid;
  border-color: #808080;
  border-radius: 5px;
  background: #808080;
  color: #ffffff;
}
.cgm-gpt-result {
  position: relative;
  word-break: break-all;
}
.cgm-gpt-result a {
  color: #ff9f40;
}
.cgm-gpt-result-title {
  grid-column: 1 / 2;
  display: table;
  position: relative;
  margin-bottom: 13px;
  padding: 7px 11px 7px 25px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  background: #808080;
  color: #ffffff;
}
.cgm-gpt-result-title::before {
  display: block;
  position: absolute;
  top: 50%;
  left: 15px;
  width: 0;
  height: 20px;
  border-left: 1px solid;
  transform: translateY(-50%) rotate(30deg);
  content: "";
}
.cgm-gpt-result-body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex: 1;
  flex: 1;
  position: relative;
  margin: 15px 0 13px;
  padding-right: 0;
}

.cgm-gpt-result-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cgm-gpt-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cgm-gpt-feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 10px;
}

.cgm-gpt-feedback-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.cgm-gpt-feedback-option input[type="radio"] {
  accent-color: #30a7bf;
}

.cgm-gpt-result-text a {
  margin-left: 1.5rem;
}

.cgm-gpt-result-text {
  display: block;
  white-space: pre-wrap;
}

.cgm-gpt-result-text::after {
  content: var(--cgm-cursor-after-content);
  display: inline-block;
  animation: cursor-blink 0.8s infinite;
  width: 10px;
  height: 20px;
  background: #c0c0c0;
}

.cgm-feedback-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cgm-feedback-reason-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cgm-feedback-reason-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  width: min(456px, 90vw);
  max-height: min(56vh, 440px);
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  pointer-events: auto;
  overflow: hidden;
}

.cgm-feedback-reason-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  max-height: calc(min(56vh, 440px) - 32px);
}

.cgm-feedback-reason-header,
.cgm-feedback-reason-footer {
  flex: 0 0 auto;
}

.cgm-feedback-reason-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cgm-feedback-reason-content::-webkit-scrollbar {
  display: none;
}

.cgm-feedback-reason-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.cgm-feedback-reason-guide {
  font-size: 12px;
  color: #6b7280;
}

.cgm-feedback-reason-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.cgm-feedback-reason-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.cgm-feedback-reason-option {
  position: relative;
  display: block;
  height: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.cgm-feedback-reason-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cgm-feedback-reason-option-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.cgm-feedback-reason-option input[type="radio"]:checked + .cgm-feedback-reason-option-label {
  background: #1b4db3;
  color: #ffffff;
  font-weight: 600;
}

.cgm-feedback-reason-option input[type="radio"]:focus-visible + .cgm-feedback-reason-option-label {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.cgm-feedback-reason-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.cgm-feedback-reason-input-label {
  font-size: 13px;
  color: #94a3b8;
}

.cgm-feedback-reason-textarea {
  width: 100%;
  min-height: 80px;
  border: 0;
  background: transparent;
  resize: vertical;
  font-size: 13px;
  color: #111827;
}

.cgm-feedback-reason-textarea::placeholder {
  color: #9ca3af;
}

.cgm-feedback-reason-textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cgm-feedback-reason-textarea:focus {
  outline: none;
}

.cgm-feedback-reason-textarea-error {
  color: #dc3545;
}

.cgm-feedback-reason-counter {
  text-align: right;
  font-size: 11px;
  color: #6b7280;
}

.cgm-feedback-reason-error {
  font-size: 12px;
  color: #dc3545;
}

.cgm-feedback-reason-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

button.cgm-feedback-reason-cancel,
button.cgm-feedback-reason-submit {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

button.cgm-feedback-reason-cancel {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

button.cgm-feedback-reason-cancel:hover {
  background: #f3f4f6;
}

button.cgm-feedback-reason-cancel:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

button.cgm-feedback-reason-submit {
  background: #1b4db3;
  color: #ffffff;
  border: 1px solid #1b4db3;
}

button.cgm-feedback-reason-submit:hover:not(:disabled) {
  background: #1a44a0;
}

button.cgm-feedback-reason-submit:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

button.cgm-feedback-reason-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .cgm-feedback-reason-popover {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    transform: none;
    z-index: 1000;
    overscroll-behavior: contain;
  }

  .cgm-feedback-reason-body {
    max-height: calc(60vh - 32px);
  }
}

button.cgm-feedback-thumb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  background: #808080;
  border: 1px solid #c0c0c0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  transition:
    transform 120ms ease-out,
    border-color 120ms ease-out,
    box-shadow 120ms ease-out,
    background-color 120ms ease-out,
    opacity 0.2s ease-out;
}

.cgm-feedback-thumb-button:hover:not(:disabled) {
  opacity: 0.7;
  border-color: #c0c0c0;
  transform: none;
}

.cgm-feedback-thumb-button:focus {
  outline: none;
}

.cgm-feedback-thumb-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.cgm-feedback-thumb-button:active:not(:disabled) {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.cgm-feedback-thumb-button:disabled {
  cursor: default;
  opacity: 0.4;
  border-color: #c0c0c0;
}

.cgm-feedback-thumb-button.is-loading {
  opacity: 0.7;
  position: relative;
}

.cgm-feedback-thumb-button-icon {
  display: block;
  background-color: currentColor;
  transition: opacity 0.2s ease;
}

.cgm-feedback-thumb-button-icon.is-active {
  opacity: 1;
}

.cgm-feedback-thumb-button-spinner {
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cgm-feedback-spin 0.8s linear infinite;
}

.cgm-feedback-thumb-button.is-error {
  animation: cgm-feedback-shake 0.5s ease-in-out;
}

.cgm-feedback-thumb-button[data-tooltip]:hover:not(:disabled)::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.cgm-feedback-thumb-button-icon {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  filter: brightness(0) invert(1);
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}
.cgm-feedback-thumb-button-icon.cgm-feedback-thumb-button-icon--good {
  background-image: url(../images/ico_thumb_up.svg);
}
.cgm-feedback-thumb-button-icon.cgm-feedback-thumb-button-icon--bad {
  background-image: url(../images/ico_thumb_down.svg);
}

.cgm-feedback-thumb-button.is-active.cgm-feedback-thumb-button--good
  .cgm-feedback-thumb-button-icon.cgm-feedback-thumb-button-icon--good {
  background-image: url(../images/ico_thumb_up_fill.svg);
  opacity: 1;
}
.cgm-feedback-thumb-button.is-active.cgm-feedback-thumb-button--bad
  .cgm-feedback-thumb-button-icon.cgm-feedback-thumb-button-icon--bad {
  background-image: url(../images/ico_thumb_down_fill.svg);
  opacity: 1;
}

.cgm-feedback-thumb-button-spinner {
  border-color: rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
}

.cgm-feedback-composer-inline {
  align-self: flex-end;
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #f7f9fb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.cgm-feedback-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.cgm-feedback-composer-rating {
  font-size: 13px;
  color: #e0e0e0;
}
.cgm-feedback-textarea {
  width: 100%;
  min-height: 140px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: #1f2328;
  resize: vertical;
}
.cgm-feedback-textarea:focus {
  outline: 2px solid rgba(21, 140, 101, 0.35);
  outline-offset: 2px;
  border-color: rgba(21, 140, 101, 0.6);
}
.cgm-feedback-textarea-error {
  border-color: #dc3545;
}
.cgm-feedback-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cgm-feedback-counter {
  font-size: 12px;
  color: #e0e0e0;
}
.cgm-feedback-counter-error {
  color: #dc3545;
}
.cgm-feedback-counter-message {
  font-size: 12px;
  color: #dc3545;
}
.cgm-feedback-composer-actions {
  display: flex;
  gap: 8px;
}
.cgm-feedback-thumb-button-cancel,
.cgm-feedback-thumb-button-submit {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cgm-feedback-thumb-button-cancel:hover,
.cgm-feedback-thumb-button-submit:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}
.cgm-feedback-thumb-button-cancel:disabled,
.cgm-feedback-thumb-button-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cgm-gpt-result-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 640px) {
  .cgm-feedback-thumb-button {
    width: 36px;
    height: 36px;
  }
}

.cgm-gpt-result-copy {
  top: 52px;
  right: 0;
  width: 35px;
  height: 35px;
  color: #158c65;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.cgm-gpt-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Normalize copy button positioning inside GPT action rows */
.cgm-gpt-result-composer {
  position: absolute;
  top: calc((100% - 46px) / 2);
  bottom: auto;
  right: 60px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 360px;
}
.cgm-gpt-result-composer .cgm-feedback-composer-inline {
  width: 100%;
  max-width: 360px;
}
.cgm-gpt-result-copy:hover {
  opacity: 0.7;
}

.cgm-gpt-reference-divider {
  margin: 15px 0 13px;
  border-top: 1px solid #a0a0a0;
}

.cgm-search-query {
  margin-top: 10px;
  display: none;
}

.cgm-search-result-num {
  margin-bottom: 10px;
}

.cgm-result-header {
  margin-top: 30px;
  margin-bottom: 10px;
}
.cgm-result-header .cgm-search-result-num {
  margin-bottom: 0;
  flex: 0 0 auto;
}
.cgm-result-header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cgm-sort {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 32px;
}
.cgm-sort-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cgm-sort-visible-label {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.625;
  white-space: nowrap;
}
button.cgm-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 15px;
  border: 1px solid rgba(27, 77, 179, 0.35);
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition:
    border-color 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background-color 0.2s ease-out;
}
button.cgm-sort-trigger:hover:not(:disabled) {
  border-color: #1b4db3;
}
button.cgm-sort-trigger.is-open {
  border-color: #1b4db3;
  box-shadow: 0 0 0 1px rgba(27, 77, 179, 0.08);
}
button.cgm-sort-trigger:focus-visible {
  outline: 2px solid rgba(27, 77, 179, 0.45);
  outline-offset: 1px;
  border-color: #1b4db3;
}
button.cgm-sort-trigger:disabled {
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}
.cgm-sort-trigger-text {
  width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.cgm-sort-trigger-icon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #1a1a1a;
  border-bottom: 1.5px solid #1a1a1a;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease-out;
}
button.cgm-sort-trigger.is-open .cgm-sort-trigger-icon {
  transform: translateY(1px) rotate(225deg);
}

.cgm-sort-menu-wrap {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
}
.cgm-sort-menu {
  display: flex;
  flex-direction: column;
  min-width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid rgba(27, 77, 179, 0.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
button.cgm-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f6f85;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s ease-out,
    color 0.2s ease-out;
}
button.cgm-sort-option:hover {
  background: #f7f8fa;
}
button.cgm-sort-option:focus-visible {
  outline: 2px solid rgba(27, 77, 179, 0.45);
  outline-offset: -1px;
  background: #f7f8fa;
}
button.cgm-sort-option.is-selected {
  background: #f0f4ff;
  color: #0057ff;
}
.cgm-sort-option-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cgm-sort-option-check {
  min-width: 12px;
  color: #0057ff;
  font-size: 12px;
  text-align: right;
}

.cgm-sort-native-select {
  width: fit-content;
  max-width: 100%;
  height: 44px;
  padding: 0 36px 0 15px;
  border: 1px solid rgba(27, 77, 179, 0.35);
  border-radius: 8px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #1a1a1a 50%),
    linear-gradient(135deg, #1a1a1a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.cgm-sort-native-select:focus-visible {
  outline: 2px solid rgba(27, 77, 179, 0.45);
  outline-offset: 1px;
  border-color: #1b4db3;
}
.cgm-sort-native-select:disabled {
  color: #94a3b8;
  background-color: #f7f8fa;
  box-shadow: none;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  button.cgm-sort-trigger,
  .cgm-sort-trigger-icon,
  button.cgm-sort-option {
    transition: none;
  }
}

@media (max-width: 640px) {
  .cgm-result-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cgm-sort {
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
  }
  button.cgm-sort-trigger {
    min-width: 0;
    min-height: 44px;
    padding: 11px 16px;
    justify-content: space-between;
  }
  .cgm-sort-trigger-text {
    width: auto;
    flex: 1;
  }
  .cgm-sort-menu-wrap {
    left: 0;
    right: auto;
  }
  .cgm-sort-menu {
    max-width: min(280px, calc(100vw - 32px));
  }
  button.cgm-sort-option {
    min-height: 44px;
    padding: 12px 14px;
  }
}

.cgm-num-hits {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}
.cgm-num-label {
  margin-right: 12px;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  background: #ddd;
}
.cgm-num-counts {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px;
}
.cgm-num-current {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
}
.cgm-num-current::after {
  display: inline-block;
  width: 0;
  height: 20px;
  margin: -6px 7px 0 6px;
  border-left: 1px solid #aaa;
  transform: rotate(15deg);
  vertical-align: middle;
  content: "";
}
.cgm-num-sum {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
}

.cgm-pagination {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 30px;
}
.cgm-pagination-previous-link,
.cgm-pagination-next-link,
.cgm-pagination-page-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.cgm-pagination-previous-link:hover,
.cgm-pagination-next-link:hover,
.cgm-pagination-page-link:hover {
  opacity: 0.7;
}
.cgm-pagination-page-link {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.cgm-pagination-disabled {
  display: none;
}
.cgm-pagination-active .cgm-pagination-page-link {
  background: #e5e5e5;
}
.cgm-pagination-previous-link,
.cgm-pagination-next-link {
  display: block;
  position: relative;
  padding: 0;
  text-indent: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.cgm-pagination-previous-link::before,
.cgm-pagination-next-link::before {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 16px;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 9px 16px;
  content: "";
}
.cgm-pagination-previous-link::before {
  background-image: url(../images/ico_previous.svg);
}
.cgm-pagination-next-link::before {
  background-image: url(../images/ico_next.svg);
}

.cgm-search-result-area {
  margin-right: auto;
  margin-left: auto;
}

.cgm-search-result-item {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-top: 25px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

@media (min-width: 640px) {
  .cgm-search-result-item .cgm-search-result-thumbnail {
    width: 210px;
    margin-right: 30px;
  }
}
@media (max-width: 640px) {
  .cgm-search-result-item .cgm-search-result-thumbnail {
    margin-bottom: 15px;
  }
}
.cgm-search-result-item .cgm-search-result-thumbnail img {
  display: block;
  width: 100%;
}
@media (min-width: 640px) {
  .cgm-search-result-item .cgm-search-result-text-area {
    width: calc(100% - 240px);
    -ms-flex: 1;
    flex: 1;
  }
}

.cgm-search-result-item:first-child {
  border-top: 1px solid #ddd;
}
.cgm-search-result-title {
  margin-bottom: 7px;
  line-height: 1.5;
  font-size: 20px;
  font-weight: 700;
}
.cgm-search-result-title a {
  color: inherit;
}
.cgm-search-result-url {
  color: #30a7bf;
  word-break: break-all;
}
.cgm-search-result-body {
  margin-top: 15px;
  padding: 25px 30px;
  border-radius: 5px;
  background: #f5f5f5;
  word-break: break-all;
}
.cgm-search-result-body em {
  font-weight: 700;
  color: #30a7bf;
}
.cgm-search-result-update {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  text-align: right;
}
.cgm-search-result-body,
.cgm-search-result-url {
  grid-column: 1 / 3;
}

.cgm-search-result-thumbnail img {
  border: 1px solid #ddd;
}

.cgm-item-feedback {
  display: flex;
  gap: 8px;
  margin: 5px 0 5px auto;
  align-items: center;
  justify-content: flex-end;
}

.cgm-item-feedback > button {
  border-radius: 50%;
}

button.cgm-item-feedback-button {
  color: #333;
  padding: 6px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  position: relative;
}

.cgm-item-feedback-button:hover:not(:disabled) {
  border-color: #30a7bf;
  background: #f8f9fa;
}

.cgm-item-feedback-button:focus {
  border-color: #30a7bf;
  outline: none;
}

.cgm-item-feedback-button:focus-visible {
  outline: 2px solid #30a7bf;
  outline-offset: 2px;
}

.cgm-item-feedback-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cgm-item-feedback-button--active {
  border-color: #30a7bf;
  background: #fff;
  color: #30a7bf;
}

.cgm-item-feedback-button--active:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #30a7bf;
}

.cgm-item-feedback-button--loading {
  border-color: #ccc;
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

.cgm-item-feedback-button--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #ccc;
  border-top-color: #30a7bf;
  border-radius: 50%;
  animation: cgm-feedback-spin 0.8s linear infinite;
}

@keyframes cgm-feedback-spin {
  to {
    transform: rotate(360deg);
  }
}

.cgm-item-feedback-button--loading .cgm-item-feedback-button-icon {
  opacity: 0;
}

.cgm-item-feedback-button--error {
  border-color: #dc3545;
  background: #f8d7da;
  color: #721c24;
  animation: cgm-feedback-shake 0.5s ease-in-out;
}

@keyframes cgm-feedback-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.cgm-item-feedback-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cgm-item-feedback-button-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.2s ease;
}

.cgm-item-feedback-button-icon--thumb-up {
  background-image: url(../images/ico_thumb_up.svg);
}

.cgm-item-feedback-button-icon--thumb-down {
  background-image: url(../images/ico_thumb_down.svg);
}

.cgm-item-feedback-button--active .cgm-item-feedback-button-icon--thumb-up {
  background-image: url(../images/ico_thumb_up_fill.svg);
}

.cgm-item-feedback-button--active .cgm-item-feedback-button-icon--thumb-down {
  background-image: url(../images/ico_thumb_down_fill.svg);
}

@media (max-width: 640px) {
  .cgm-item-feedback {
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
  }

  .cgm-item-feedback-button {
    min-width: 32px;
    min-height: 32px;
  }

  .cgm-item-feedback-button-icon {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }
}

@media (max-width: 480px) {
  .cgm-item-feedback {
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 3px;
  }

  .cgm-item-feedback-button {
    min-width: 28px;
    min-height: 28px;
    padding: 4px 6px;
  }

  .cgm-item-feedback-button-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
  }
}

.cgm-gpt-result-history-area {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

.cgm-gpt-result-history-area::before {
  display: block;
  position: absolute;
  top: 13px;
  left: 7px;
  height: 100%;
  border-left: 1px solid #ddd;
  content: "";
}

.cgm-gpt-result-history-separator {
  padding-top: 10px;
  padding-bottom: 10px;
}

.cgm-gpt-result-history {
  position: relative;
  padding-right: 0;
  padding-bottom: 35px;
  word-break: break-all;
}

.cgm-gpt-result-history:not(:last-child) {
  margin-bottom: 35px;
  border-bottom: 1px solid #ddd;
}

.cgm-gpt-result-history::before {
  display: block;
  position: absolute;
  top: 6px;
  width: 15px;
  height: 15px;
  border: 2px solid #aaa;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  left: -32px;
  content: "";
}

.cgm-gpt-result-history-input {
  margin-bottom: 20px;
  color: #158c65;
  font-weight: 500;
  white-space: pre-wrap;
}

.cgm-gpt-result-history-output {
  color: #202020;
  white-space: pre-wrap;
}

.cgm-fetch-more-button-area {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.cgm-fetch-more-button:hover {
  opacity: 0.7;
}
.cgm-fetch-more-button-area button {
  width: 160px;
  padding: 5px;
  border-radius: 3px;
  background: #158c65;
  font-weight: 500;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.1em;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
@keyframes cursor-blink {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.cgm-search-loading {
  width: 64px;
  height: 64px;
  margin: 20px auto;
  border: 4px #ddd solid;
  border-top: 4px #65a20c solid;
  border-radius: 50%;
  animation: sp-anime 1s infinite linear;
}
@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}

.cgm-gpt-loading,
.cgm-gpt-loading:before,
.cgm-gpt-loading:after {
  background: #ffffff;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
.cgm-gpt-loading {
  color: #ffffff;
  text-indent: -9999em;
  margin: 88px auto;
  position: relative;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.cgm-gpt-loading:before,
.cgm-gpt-loading:after {
  position: absolute;
  top: 0;
  content: "";
}
.cgm-gpt-loading:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.cgm-gpt-loading:after {
  left: 1.5em;
}

@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

.cgm-filter-group {
  display: flex;
  margin: 6px 0;
}
@media (max-width: 640px) {
  .cgm-filter-group {
    flex-wrap: wrap;
  }
}
.cgm-filter-group--with-bulk-actions {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-template-areas:
    "label actions"
    ". form";
  column-gap: 0;
  row-gap: 4px;
  align-items: center;
}
.cgm-filter-group--with-bulk-actions > .cgm-filter-group-body {
  grid-area: form;
}
.cgm-filter-group--with-bulk-actions .cgm-filter-group-label {
  grid-area: label;
}
.cgm-filter-group--with-bulk-actions .cgm-checkbox-filter-bulk-actions {
  grid-area: actions;
}
.cgm-filter-group-header {
  display: contents;
}
.cgm-filter-group-header {
  padding: 0;
}
@media (max-width: 640px) {
  .cgm-filter-group--with-bulk-actions {
    grid-template-columns: max-content 1fr;
    grid-template-areas:
      "label actions"
      "form form";
  }
}
.cgm-filter-group-label {
  display: inline-block;
  font-size: 15px;
  margin: 3px 3px 3px 0;
  line-height: 1.467;
}
@media (max-width: 640px) {
  .cgm-filter-group-label {
    width: 100%;
  }
  .cgm-filter-group--with-bulk-actions .cgm-filter-group-label {
    width: auto;
  }
}
.cgm-filter-group > .cgm-filter-group-body,
.cgm-filter-group > form {
  flex: 1;
}
.cgm-checkbox-filter-bulk-actions {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}
.cgm-checkbox-filter-bulk-actions > button {
  all: revert;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  padding: 3px 10px;
  min-height: 24px;
  border: 1px solid #c7dbff;
  border-radius: 999px;
  background: #eef5ff;
  color: #1a5fb4;
}
.cgm-checkbox-filter-bulk-actions > button:focus-visible {
  outline: 2px solid #1a5fb4;
  outline-offset: 2px;
}
.cgm-checkbox-filter-bulk-actions > button:hover {
  background: #e2eeff;
}
.cgm-radio-filter-input {
  all: revert;
}
.cgm-checkbox-filter-input {
  all: revert;
}

.cgm-radio-filter,
.cgm-checkbox-filter {
  display: inline-block;
  position: relative;
  margin: 3px 12px 3px 0;
  padding-left: 27px;
  line-height: 22px;
  font-size: 15px;
}
.cgm-radio-filter-input,
.cgm-checkbox-filter-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.cgm-radio-filter-input:checked + label::before {
  border-color: #1b4db3;
}
.cgm-radio-filter-input:checked + label::after {
  opacity: 1;
}
.cgm-radio-filter label,
.cgm-checkbox-filter label {
  display: inline-block;
  cursor: pointer;
}
.cgm-radio-filter label::before,
.cgm-radio-filter label::after {
  display: block;
  position: absolute;
  border-radius: 50%;
  content: "";
}

.cgm-radio-filter label::before {
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #aaa;
  background: #fff;
}
.cgm-radio-filter label::before {
  border-radius: 50%;
}
.cgm-radio-filter label::after {
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  background: #1b4db3;
  opacity: 0;
}

.cgm-checkbox-filter-input:checked + label::before {
  border-color: #1b4db3;
  background-color: #1b4db3;
}
.cgm-checkbox-filter-input:checked + label::after {
  opacity: 1;
}
.cgm-checkbox-filter label::before,
.cgm-checkbox-filter label::after {
  display: block;
  position: absolute;
  content: "";
}
.cgm-checkbox-filter label::before {
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
}
.cgm-checkbox-filter label::after {
  top: 7px;
  left: 6px;
  width: 11px;
  height: 9px;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%229.507%22%20height%3D%228.314%22%20viewBox%3D%220%200%209.507%208.314%22%3E%3Cpath%20d%3D%22M2158.323%2C282.824l-3.521-3.712a.75.75%2C0%2C0%2C1%2C1.088-1.032l2.331%2C2.457%2C4.544-5.742a.75.75%2C0%2C0%2C1%2C1.176.931Z%22%20transform%3D%22translate(-2154.596%20-274.51)%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E")
    no-repeat center center;
  background-size: contain;
  opacity: 0;
}

.cgm-gpt-copy-wrapper {
  position: absolute;
  top: calc((100% - 46px) / 2);
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.cgm-gpt-copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: #808080;
  border: 1px solid #c0c0c0;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
  overflow: visible;
}
.cgm-gpt-copy-button:hover {
  opacity: 0.7;
}
.cgm-gpt-copy-button-icon {
  display: inline-block;
  width: 100%;
  height: 100%;
  background: url(../images/ico_copy.svg) no-repeat center center / 13px 16px;
}
.cgm-gpt-copied-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 5px;
  min-width: 118px;
  max-width: none;
  width: auto;
  padding: 7px;
  border-radius: 3px;
  background: rgba(102 102 102 / 0.9);
  line-height: 1.308;
  text-align: center;
  font-size: 13px;
  transform: translateX(-50%);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

.cgm-gpt-result-history-actions .cgm-gpt-copy-wrapper,
.cgm-gpt-result-actions .cgm-gpt-copy-wrapper {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
}

.cgm-chip-suggest-area {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-end;
  gap: 5px;
  width: 100%;
  min-height: 47px;
  position: relative;
  padding-top: 7px;
  padding-left: 80px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .cgm-chip-suggest-area {
    min-height: 0;
    padding-left: 0;
    padding-top: 10px;
  }
}

.cgm-chip-suggest-area::before {
  display: flex;
  align-items: center;
  position: absolute;
  top: 7px;
  left: 0;
  height: 40px;
  font-size: 15px;
  content: "絞込候補：";
}

@media (max-width: 640px) {
  .cgm-chip-suggest-area::before {
    position: static;
    top: 10px;
    height: auto;
  }
}

.cgm-chip-suggest-item {
  cursor: pointer;
  display: inline-block;
  align-items: center;
  padding: 8px 17px;
  border: 1px solid #aaa;
  font-size: 15px;
  line-height: 1.47;
  border-radius: 3px;
  background-color: #fff;
  color: #212121;
}
.cgm-chip-suggest-item span:hover {
  background: rgba(27, 77, 179, 0.05);
}

.cgm-snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
}

.cgm-snackbar.error {
  background-color: #e0474c;
  color: #ffffff;
}

.cgm-snackbar.show {
  visibility: visible;
  animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {
    top: 0;
    opacity: 0;
  }
  to {
    top: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    top: 30px;
    opacity: 1;
  }
  to {
    top: 0;
    opacity: 0;
  }
}
