/* YSC Help Popup */
#ysc-help-popup-root,
#ysc-help-popup-root * {
  box-sizing: border-box;
}

#ysc-help-popup-root {
  --ysc-help-black: #121212;
  --ysc-help-surface: #181a1c;
  --ysc-help-surface-2: #202326;
  --ysc-help-line: rgba(247, 245, 239, 0.13);
  --ysc-help-text: #ffffff;
  --ysc-help-muted: #d8d2c6;
  --ysc-help-soft: #9d968a;
  --ysc-help-accent: #d88427;
  --ysc-help-blue: #176ea8;
  --ysc-help-purple: #8b6fc7;
  font-family: "Plus Jakarta Sans", "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#ysc-help-popup-root .ysc-help-icon,
#ysc-help-popup-root .material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 23px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.ysc-help-popup {
  position: fixed;
  left: 22px;
  right: auto;
  bottom: 22px;
  z-index: 99;
}

.ysc-help-launcher {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(var(--ysc-help-black), var(--ysc-help-black)) padding-box, linear-gradient(90deg, var(--ysc-help-accent), #4f94c8, var(--ysc-help-purple)) border-box;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: filter 160ms ease, transform 160ms ease;
}

.ysc-help-launcher:hover,
.ysc-help-launcher:focus {
  color: #fff;
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.ysc-help-panel {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  bottom: 76px;
  width: min(390px, calc(100vw - 32px));
  background:
    radial-gradient(circle at 0 0, rgba(216, 132, 39, 0.14), transparent 38%),
    linear-gradient(135deg, var(--ysc-help-surface), #111314 82%);
  border: 1px solid var(--ysc-help-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: var(--ysc-help-text);
  overflow: hidden;
}

.ysc-help-popup.is-open .ysc-help-panel {
  display: block;
}

.ysc-help-header {
  background: rgba(18, 18, 18, 0.8);
  border-bottom: 1px solid rgba(247, 245, 239, 0.1);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ysc-help-header span {
  display: block;
  color: #f0a356;
  font-size: 11px;
  
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-bottom: 3px;
}

.ysc-help-header strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.ysc-help-header button {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  border: 1px solid rgba(247, 245, 239, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.ysc-help-header button:hover,
.ysc-help-header button:focus {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  outline: none;
}

.ysc-help-body {
  padding: 18px;
}

.ysc-help-intro {
  margin: 0 0 10px;
  color: var(--ysc-help-muted);
  line-height: 1.45;
}

.ysc-help-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.ysc-help-form label span {
  display: block;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.ysc-help-form input,
.ysc-help-form textarea {
  width: 100%;
  border: 1px solid var(--ysc-help-line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  color: var(--ysc-help-text);
  font: inherit;
  padding: 11px 12px;
  line-height: 1.4;
}

.ysc-help-form input::placeholder,
.ysc-help-form textarea::placeholder {
  color: var(--ysc-help-soft);
}

.ysc-help-form textarea {
  resize: vertical;
}

.ysc-help-form input:focus,
.ysc-help-form textarea:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(240, 163, 86, 0.72);
  outline: none;
}

.ysc-help-form button {
  border: 2px solid transparent;
  border-radius: 8px;
  background: linear-gradient(var(--ysc-help-black), var(--ysc-help-black)) padding-box, linear-gradient(90deg, var(--ysc-help-accent), #4f94c8, var(--ysc-help-purple)) border-box;
  color: #fff;
  font-weight: 900;
  padding: 12px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 160ms ease, transform 160ms ease;
}

.ysc-help-form button:hover,
.ysc-help-form button:focus {
  color: #fff;
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.ysc-help-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ysc-help-status {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.ysc-help-status.is-success {
  background: rgba(47, 125, 87, 0.16);
  color: #bde6cf;
  border: 1px solid rgba(121, 191, 152, 0.32);
}

.ysc-help-status.is-error {
  background: rgba(199, 53, 61, 0.14);
  color: #f2b8bc;
  border: 1px solid rgba(239, 128, 134, 0.32);
}

.ysc-help-note {
  margin: 14px 0 0;
  color: var(--ysc-help-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .ysc-help-popup {
    left: 14px;
    right: auto;
    bottom: 14px;
  }

  .ysc-help-panel {
    width: calc(100vw - 28px);
    bottom: 74px;
  }
}
