.site-helper {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: min(380px, calc(100vw - 24px));
}

.site-helper-shell {
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.96);
  border: 1px solid rgba(31, 27, 23, 0.08);
  box-shadow:
    0 18px 48px rgba(52, 37, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.site-helper-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(31, 27, 23, 0.08);
}

.site-helper-kicker {
  margin: 0 0 6px;
  color: #355847;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-helper-title {
  margin: 0;
  color: #1f1b17;
  font-size: 1rem;
  font-weight: 700;
}

.helper-log {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  max-height: 280px;
  overflow-y: auto;
}

.helper-line {
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.helper-line-user {
  background: rgba(53, 88, 71, 0.10);
  color: #1f1b17;
}

.helper-line-assistant {
  background: rgba(31, 27, 23, 0.05);
  color: #1f1b17;
}

.helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 16px;
}

.helper-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(31, 27, 23, 0.10);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.helper-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 27, 23, 0.16);
  box-shadow: 0 10px 24px rgba(52, 37, 20, 0.08);
}

.helper-form {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
}

.helper-form input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 27, 23, 0.10);
  background: #ffffff;
  color: #1f1b17;
  font: inherit;
  outline: none;
}

.helper-form input:focus {
  border-color: rgba(53, 88, 71, 0.24);
  box-shadow: 0 0 0 4px rgba(53, 88, 71, 0.08);
}

.helper-form button {
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: #355847;
  color: #fffaf3;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.helper-form button:hover {
  transform: translateY(-1px);
  background: #2f4c3d;
  box-shadow: 0 12px 26px rgba(53, 88, 71, 0.20);
}

.site-helper-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.site-helper-toggle {
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #355847;
  color: #fffaf3;
  cursor: pointer;
  box-shadow:
    0 18px 42px rgba(52, 37, 20, 0.18),
    0 10px 24px rgba(53, 88, 71, 0.20);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.site-helper-toggle:hover {
  transform: translateY(-2px) scale(1.02);
  background: #2f4c3d;
  box-shadow:
    0 22px 46px rgba(52, 37, 20, 0.22),
    0 12px 28px rgba(53, 88, 71, 0.24);
}

.site-helper-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.site-helper {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
  pointer-events: none;
}

.site-helper.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-helper-shell {
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.96);
  border: 1px solid rgba(31, 27, 23, 0.08);
  box-shadow:
    0 18px 48px rgba(52, 37, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.site-helper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(31, 27, 23, 0.08);
}

.site-helper-kicker {
  margin: 0 0 6px;
  color: #355847;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-helper-title {
  margin: 0;
  color: #1f1b17;
  font-size: 1rem;
  font-weight: 700;
}

.site-helper-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 27, 23, 0.06);
  color: #1f1b17;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.site-helper-close:hover {
  background: rgba(31, 27, 23, 0.10);
  transform: scale(1.04);
}

.helper-log {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  max-height: 280px;
  overflow-y: auto;
}

.helper-line {
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.helper-line-user {
  background: rgba(53, 88, 71, 0.10);
  color: #1f1b17;
}

.helper-line-assistant {
  background: rgba(31, 27, 23, 0.05);
  color: #1f1b17;
}

.helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 16px;
}

.helper-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(31, 27, 23, 0.10);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.helper-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 27, 23, 0.16);
  box-shadow: 0 10px 24px rgba(52, 37, 20, 0.08);
}

.helper-form {
  display: flex;
  gap: 10px;
  padding: 0 18px 18px;
}

.helper-form input {
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 27, 23, 0.10);
  background: #ffffff;
  color: #1f1b17;
  font: inherit;
  outline: none;
}

.helper-form input:focus {
  border-color: rgba(53, 88, 71, 0.24);
  box-shadow: 0 0 0 4px rgba(53, 88, 71, 0.08);
}

.helper-form button {
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: #355847;
  color: #fffaf3;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.helper-form button:hover {
  transform: translateY(-1px);
  background: #2f4c3d;
  box-shadow: 0 12px 26px rgba(53, 88, 71, 0.20);
}

@media (max-width: 720px) {
  .site-helper-wrap {
    right: 12px;
    bottom: 12px;
  }

  .site-helper {
    width: calc(100vw - 24px);
    bottom: 74px;
  }

  .site-helper-toggle {
    width: 58px;
    height: 58px;
  }
}