#jobedge-site-search-root {
  --jss-primary: #0f172a;
  --jss-accent: #0d9488;
  --jss-bg: #ffffff;
  --jss-muted: #64748b;
  --jss-border: #e2e8f0;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
}

#jobedge-site-search-root * {
  box-sizing: border-box;
}

.jss-launcher {
  pointer-events: auto;
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--jss-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jss-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
}

.jss-launcher svg {
  width: 22px;
  height: 22px;
}

.jss-panel {
  pointer-events: auto;
  position: fixed;
  left: 20px;
  bottom: 88px;
  width: min(400px, calc(100vw - 40px));
  max-height: min(520px, calc(100vh - 120px));
  background: var(--jss-bg);
  border: 1px solid var(--jss-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s;
}

.jss-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.jss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--jss-border);
  background: #f8fafc;
}

#jobedge-site-search-root .jss-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--jss-primary);
}

.jss-close {
  border: none;
  background: #e2e8f0;
  color: var(--jss-primary);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.jss-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1;
}

.jss-input-wrap {
  position: relative;
}

.jss-input {
  width: 100%;
  border: 1px solid var(--jss-border);
  border-radius: 999px;
  padding: 12px 40px 12px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--jss-primary);
}

.jss-input:focus {
  outline: none;
  border-color: var(--jss-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.jss-meta {
  margin: 0;
  font-size: 12px;
  color: var(--jss-muted);
}

.jss-results {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
}

.jss-result button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--jss-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jss-result button:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.jss-result-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--jss-primary);
  margin-bottom: 2px;
}

.jss-result-meta {
  display: block;
  font-size: 11px;
  color: var(--jss-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jss-result-summary {
  display: block;
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.4;
}

.jss-highlight {
  background: #fef08a;
  border-radius: 2px;
  padding: 0 2px;
}

.jss-empty {
  text-align: center;
  font-size: 13px;
  color: var(--jss-muted);
  padding: 24px 12px;
}

.jss-footer-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--jss-accent);
  text-decoration: none;
  padding-top: 4px;
}

.jss-footer-link:hover {
  text-decoration: underline;
}

.jss-modal {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jss-modal.hidden {
  display: none;
}

.jss-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.jss-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jss-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--jss-border);
}

.jss-modal-category {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jss-muted);
}

#jobedge-site-search-root .jss-modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--jss-primary);
}

.jss-modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
}

.jss-modal-body p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.6;
  font-size: 15px;
}

@media (max-width: 640px) {
  .jss-launcher {
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .jss-panel {
    left: 16px;
    right: 16px;
    bottom: 80px;
    width: auto;
  }
}
