/* ============================================================
   S J LOGISTICS — search.css
   Full-bleed "manifest takeover" search. Not a centred palette:
   the whole viewport becomes a search terminal.
   ============================================================ */
.gs { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column;
  background: linear-gradient(168deg, #221a38 0%, #191128 55%, #120c1f 100%); color: #fff;
  animation: gs-open .3s cubic-bezier(.22,1,.36,1); }
.gs[hidden] { display: none; }
@keyframes gs-open { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.gs-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.gs-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .38; }
.gs-orb.a { width: 420px; height: 420px; background: #8b5cf6; left: -120px; top: -140px; }
.gs-orb.b { width: 360px; height: 360px; background: #d946ef; right: -110px; bottom: -120px; }
.gs-grid { position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(196,181,253,.06) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(196,181,253,.06) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); }

/* top bar */
.gs-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px clamp(20px, 5vw, 54px); border-bottom: 1px solid rgba(196,181,253,.14); }
.gs-doc { display: inline-flex; align-items: center; gap: 9px; font-family: "JetBrains Mono", monospace; font-size: 11px;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(225,216,250,.7);
  border: 1px solid rgba(196,181,253,.26); border-radius: 999px; padding: 7px 15px; }
.gs-doc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 0 4px rgba(168,85,247,.2); }
.gs-close { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(225,216,250,.75);
  background: rgba(255,255,255,.06); border: 1px solid rgba(196,181,253,.24); border-radius: 999px; padding: 8px 16px;
  transition: background .2s ease, color .2s ease; }
.gs-close:hover { background: rgba(139,92,246,.28); color: #fff; }
.gs-close svg { width: 15px; height: 15px; }

/* the stage */
.gs-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vh, 54px) clamp(20px, 5vw, 54px) 0; }
.gs-field { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid rgba(196,181,253,.24); }
.gs-caret { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 1;
  background: linear-gradient(140deg, #c4a5ff, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gs-field input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: #fff;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(24px, 4.4vw, 46px); line-height: 1.15; }
.gs-field input::placeholder { color: rgba(225,216,250,.32); }
.gs-field:focus-within { border-bottom-color: #8b5cf6; }

/* filter pills */
.gs-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.gs-filters button { cursor: pointer; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(225,216,250,.65);
  background: rgba(255,255,255,.05); border: 1px solid rgba(196,181,253,.2); border-radius: 999px; padding: 8px 15px;
  transition: background .2s ease, color .2s ease, border-color .2s ease; }
.gs-filters button:hover { color: #fff; background: rgba(255,255,255,.1); }
.gs-filters button.on { color: #fff; background: linear-gradient(135deg, #3c2b5d, #8b5cf6); border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(139,92,246,.7); }

/* scroll region */
.gs-scroll { flex: 1; min-height: 0; overflow-y: auto; margin-top: 22px; padding-bottom: 24px; }
.gs-suggest .k { display: block; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(225,216,250,.45); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.gs-chips button { cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: rgba(231,224,250,.88);
  background: rgba(255,255,255,.05); border: 1px solid rgba(196,181,253,.2); border-radius: 13px; padding: 11px 18px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.gs-chips button:hover { background: rgba(139,92,246,.25); border-color: rgba(139,92,246,.55); color: #fff; transform: translateY(-2px); }

/* results — manifest rows in two columns */
.gs-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 14px 0 2px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #c4a5ff; }
.gs-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196,181,253,.3), transparent); }
.gs-item { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border-radius: 16px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.045); border: 1px solid rgba(196,181,253,.14);
  transition: background .22s ease, border-color .22s ease, transform .22s ease; }
.gs-item:hover, .gs-item.sel { background: linear-gradient(100deg, rgba(139,92,246,.22), rgba(99,53,153,.08));
  border-color: rgba(139,92,246,.5); transform: translateY(-2px); }
.gs-item .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #c4a5ff;
  background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.3); transition: background .22s ease, color .22s ease; }
.gs-item:hover .ic, .gs-item.sel .ic { background: linear-gradient(140deg, #633599, #8b5cf6); color: #fff; border-color: transparent; }
.gs-item .ic svg { width: 18px; height: 18px; }
.gs-item .tx { flex: 1; min-width: 0; }
.gs-item .tx b { display: block; font-family: "Space Grotesk"; font-weight: 600; font-size: 15px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-item .tx b mark { background: rgba(196,181,253,.22); color: #e6d8ff; border-radius: 3px; padding: 0 2px; }
.gs-item .tx span { display: block; font-size: 12.5px; color: rgba(225,216,250,.6); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-item .go { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(225,216,250,.5); border: 1px solid rgba(196,181,253,.2); transition: all .22s ease; }
.gs-item:hover .go, .gs-item.sel .go { color: #fff; border-color: rgba(196,181,253,.5); transform: translateX(2px); }
.gs-item .go svg { width: 13px; height: 13px; }

/* empty */
.gs-none { grid-column: 1 / -1; text-align: center; padding: clamp(40px, 8vh, 80px) 20px; }
.gs-none-mark { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  font-family: "Space Grotesk"; font-weight: 700; font-size: 26px; color: #c4a5ff;
  border: 2px dashed rgba(196,181,253,.35); margin-bottom: 18px; }
.gs-none b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(18px, 2.6vw, 23px); }
.gs-none span { display: block; margin-top: 8px; font-size: 14px; color: rgba(225,216,250,.6); }

/* foot */
.gs-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 5vw, 54px); border-top: 1px solid rgba(196,181,253,.14);
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(225,216,250,.5); }
.gs-count b { color: #c4a5ff; }
.gs-keys kbd { font-family: inherit; font-size: 9.5px; color: rgba(225,216,250,.8); background: rgba(255,255,255,.07);
  border: 1px solid rgba(196,181,253,.22); border-radius: 5px; padding: 3px 6px; margin: 0 2px; }

@media (max-width: 780px) { .gs-results { grid-template-columns: 1fr; } .gs-keys { display: none; } }
@media (prefers-reduced-motion: reduce) { .gs { animation: none !important; } }
