.nyk-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 28;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #10392f;
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 57, 47, 0.28);
  font:
    800 14px/1 "Noto Sans",
    "Nirmala UI",
    sans-serif;
}
.nyk-launcher:hover {
  background: #174f3f;
  transform: translateY(-2px);
}
.nyk-prompt {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 27;
  width: min(330px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid #c9cec9;
  border-left: 4px solid #c65a19;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 57, 47, 0.16);
  color: #202622;
}
.nyk-prompt p {
  margin: 0 28px 12px 0;
  font-size: 14px;
  line-height: 1.45;
}
.nyk-prompt button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #174f3f;
  border-radius: 4px;
  background: #174f3f;
  color: #fff;
  font-weight: 700;
}
.nyk-prompt .nyk-dismiss {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202622;
  font-size: 20px;
}
.nyk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(18, 25, 21, 0.36);
}
.nyk-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(410px, 100vw);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #f7f6f1;
  color: #202622;
  box-shadow: -14px 0 40px rgba(16, 57, 47, 0.18);
  overflow: hidden;
}
.nyk-panel,
.nyk-panel * {
  box-sizing: border-box;
  min-width: 0;
}
.nyk-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #d3d0c6;
  background: #fff;
}
.nyk-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nyk-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #10392f;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.nyk-title b,
.nyk-title small {
  display: block;
}
.nyk-title small {
  margin-top: 2px;
  color: #5d665f;
  font-size: 11px;
}
.nyk-head-actions {
  display: flex;
  gap: 5px;
}
.nyk-icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid #d3d0c6;
  border-radius: 4px;
  background: #fff;
  color: #202622;
  font-size: 18px;
}
.nyk-body {
  overflow-y: auto;
  padding: 20px;
}
.nyk-intro h2 {
  margin: 0;
  color: #10392f;
  font-size: 22px;
}
.nyk-intro p {
  margin: 8px 0 18px;
  color: #5d665f;
  font-size: 13px;
  line-height: 1.5;
}
.nyk-starters {
  display: grid;
  gap: 8px;
}
.nyk-starter {
  min-height: 54px;
  padding: 11px 13px;
  border: 1px solid #d3d0c6;
  border-radius: 5px;
  background: #fff;
  color: #202622;
  text-align: left;
  font-weight: 700;
}
.nyk-starter:hover {
  border-color: #174f3f;
  background: #edf3ef;
}
.nyk-messages {
  display: grid;
  gap: 16px;
}
.nyk-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nyk-message.user {
  justify-self: end;
  background: #174f3f;
  color: #fff;
}
.nyk-message.assistant {
  width: 100%;
  max-width: none;
  padding: 18px;
  border: 1px solid #d3d0c6;
  border-left: 3px solid #174f3f;
  background: #fff;
}
.nyk-answer-type {
  margin: 0 0 14px;
  color: #23624f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nyk-answer-content {
  display: grid;
  gap: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nyk-answer-content p {
  margin: 0;
}
.nyk-answer-content strong {
  color: #133f34;
  font-weight: 800;
}
.nyk-answer-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nyk-answer-content li {
  position: relative;
  padding-left: 20px;
}
.nyk-answer-content li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #23745a;
  font-weight: 800;
}
.nyk-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #e3e0d8;
}
.nyk-region-label {
  flex-basis: 100%;
  color: #5d665f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nyk-sources a {
  padding: 6px 8px;
  border: 1px solid #b9c8c0;
  border-radius: 3px;
  background: #f5f8f6;
  color: #14533e;
  font-size: 11px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nyk-boundary {
  margin-top: 15px !important;
  padding: 11px 12px;
  border-left: 3px solid #c65a19;
  background: #fbf5ed;
  color: #5d5148;
  font-size: 11px;
  line-height: 1.45;
}
.nyk-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.nyk-response-actions button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #174f3f;
  border-radius: 4px;
  background: #edf3ef;
  color: #10392f;
  font-weight: 750;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.nyk-response-actions button:hover {
  background: #dce9e1;
}
.nyk-loading {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #cfd9d3;
  border-left: 3px solid #174f3f;
  border-radius: 6px;
  background: #fff;
}
.nyk-loading-mark {
  width: 28px;
  height: 28px;
  border: 3px solid #c8d8d0;
  border-top-color: #174f3f;
  border-radius: 50%;
  animation: nyk-spin 0.9s linear infinite;
}
.nyk-loading-steps {
  display: grid;
  gap: 6px;
}
.nyk-loading-step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  color: #68706b;
  font-size: 11px;
  line-height: 1.35;
}
.nyk-loading-step:first-child {
  color: #174f3f;
  font-weight: 750;
}
.nyk-loading-step:first-child span:first-child {
  animation: nyk-pulse 1.2s ease-in-out infinite;
}
.nyk-composer {
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #d3d0c6;
  background: #fff;
}
.nyk-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}
.nyk-form textarea {
  min-height: 46px;
  max-height: 104px;
  resize: none;
  padding: 12px;
  border: 1px solid #aeb5b0;
  border-radius: 5px;
  font: 14px/1.4 inherit;
}
.nyk-send {
  border: 0;
  border-radius: 5px;
  background: #10392f;
  color: #fff;
  font-size: 20px;
}
.nyk-send:disabled {
  opacity: 0.45;
}
.nyk-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
  color: #5d665f;
  font-size: 10px;
  line-height: 1.35;
}
.nyk-remaining {
  white-space: nowrap;
  font-weight: 750;
}
.nyk-disclaimer {
  text-align: right;
}
.nyk-launcher:focus-visible,
.nyk-panel button:focus-visible,
.nyk-panel textarea:focus-visible,
.nyk-prompt button:focus-visible {
  outline: 3px solid #1670b8;
  outline-offset: 2px;
}
body.nyk-open {
  overflow: hidden;
}
@keyframes nyk-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes nyk-pulse {
  50% {
    opacity: 0.35;
  }
}
@media (max-width: 600px) {
  .nyk-launcher {
    right: 16px;
    bottom: 78px;
  }
  .nyk-prompt {
    right: 12px;
    bottom: 145px;
  }
  .nyk-panel {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    max-width: 100vw;
  }
  .nyk-head {
    z-index: 2;
    padding: 10px 14px;
    border-bottom-color: #cbd5cf;
    box-shadow: 0 2px 8px rgba(16, 57, 47, 0.08);
  }
  .nyk-mark {
    width: 36px;
    height: 36px;
  }
  .nyk-icon-button {
    width: 36px;
    height: 36px;
  }
  .nyk-body {
    padding: 14px 10px 18px;
    background: #e9efeb;
  }
  .nyk-messages {
    gap: 10px;
    width: 100%;
  }
  .nyk-message {
    width: fit-content;
    max-width: 86%;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px 9px 9px 2px;
    box-shadow: 0 1px 2px rgba(28, 48, 39, 0.13);
    font-size: 14px;
    line-height: 1.5;
  }
  .nyk-message.user {
    justify-self: end;
    border-radius: 9px 9px 2px 9px;
    background: #175946;
  }
  .nyk-message.assistant {
    justify-self: start;
    width: fit-content;
    max-width: 92%;
    padding: 13px 12px;
    border: 0;
    background: #fff;
  }
  .nyk-answer-type {
    margin-bottom: 10px;
    font-size: 10px;
  }
  .nyk-answer-content {
    gap: 9px;
  }
  .nyk-boundary {
    margin-top: 12px !important;
    padding: 8px 9px;
  }
  .nyk-loading {
    width: min(92%, 330px);
    padding: 12px;
    border: 0;
    border-radius: 9px 9px 9px 2px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(28, 48, 39, 0.13);
  }
  .nyk-composer {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-top: 0;
    background: #f3f5f3;
  }
  .nyk-form {
    grid-template-columns: 1fr 46px;
    gap: 7px;
  }
  .nyk-form textarea {
    min-height: 44px;
    padding: 11px 15px;
    border-color: #cad2cd;
    border-radius: 22px;
    background: #fff;
    font-size: 16px;
  }
  .nyk-send {
    width: 44px;
    height: 44px;
    align-self: end;
    border-radius: 50%;
  }
  .nyk-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .nyk-disclaimer {
    text-align: left;
  }
  .nyk-remaining {
    order: 1;
  }
  .nyk-disclaimer {
    order: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nyk-launcher,
  .nyk-panel,
  .nyk-prompt {
    transition: none !important;
  }
  .nyk-loading-mark,
  .nyk-loading-step:first-child span:first-child {
    animation: none !important;
  }
}
