.lookup-trigger,.lookup-close{
  display:inline-grid;
  place-items:center;
  flex:none;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid #ffffff36;
  border-radius:50%;
  color:#fff;
  background:transparent;
  cursor:pointer;
}
.lookup-trigger .ico,.lookup-close .ico,.lookup-field .ico{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.lookup-trigger:hover,.lookup-close:hover{border-color:var(--brand);color:var(--brand)}
.lookup-trigger:focus-visible,.lookup-close:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
html:has(.lookup[open]){overflow:hidden}
.lookup{
  position:fixed;
  inset:0;
  width:min(600px,calc(100% - 32px));
  max-width:none;
  max-height:min(74vh,650px);
  max-height:min(74dvh,650px);
  padding:0;
  margin:auto;
  border:1px solid #ffffff38;
  border-radius:16px;
  background:var(--coal);
  color:white;
  box-shadow:0 24px 80px #0006;
  font-family:var(--body);
  overflow:hidden;
}
.lookup[open]{display:flex;flex-direction:column}
.lookup::backdrop{background:rgba(10,12,16,.73);backdrop-filter:blur(5px)}
.lookup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 14px}
.lookup-head h2{
  font:700 clamp(30px,4.4vw,38px)/1 var(--display);
  text-transform:uppercase;
  letter-spacing:-.015em;
  margin:0;
}
.lookup-close{width:36px;height:36px}
.lookup-field{
  flex:none;
  display:flex;
  gap:11px;
  align-items:center;
  margin:0 24px 20px;
  padding:0 15px;
  min-height:48px;
  border:1px solid #686c74;
  border-radius:6px;
  background:#21252d;
}
.lookup-field .ico{flex:none;color:var(--brand)}
.lookup-field:focus-within{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.lookup-field input{
  display:block;
  width:100%;
  min-width:0;
  min-height:46px;
  border:0;
  outline:0;
  border-radius:0;
  padding:0 3px;
  background:transparent;
  color:white;
  font:500 16px/1.35 var(--body);
  color-scheme:dark;
}
.lookup-field input::placeholder{color:#c5c8cf;opacity:1}
.lookup-label{
  flex:none;
  margin:0;
  padding:14px 24px 8px;
  color:#515762;
  background:#fff;
  font:700 13px/1.45 var(--body);
}
.lookup-results{
  overflow:auto;
  overscroll-behavior:contain;
  list-style:none;
  margin:0;
  padding:0 16px 12px;
  background:white;
  color:var(--ink);
  scrollbar-color:#c1c4cc #fff;
}
.lookup-results li{list-style:none}
.lookup-results li+li{border-top:1px solid #e6e7eb}
.lookup-results a{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(65px,auto) 21px;
  align-items:center;
  gap:14px;
  padding:13px 8px;
  min-height:49px;
  color:inherit;
  text-decoration:none;
  border-radius:4px;
}
.lookup-results a:hover,.lookup-results a:focus-visible{background:#f4f4f6}
.lookup-results a:focus-visible{outline:2px solid #555b66;outline-offset:-2px}
.lookup-results strong{font:650 16px/1.25 var(--body);overflow-wrap:anywhere}
.lookup-results small{font:500 12px/1.35 var(--body);color:#505762;text-align:right}
.lookup-arrow{font:500 21px/1 var(--body);text-align:right}
@media(max-width:690px){
  .lookup-trigger{width:38px;height:38px}
  .lookup{margin:12px auto auto;width:calc(100% - 20px);max-height:calc(100vh - 24px);max-height:min(78dvh,calc(100dvh - 24px));border-radius:12px}
  .lookup-head{padding:14px 16px 12px}
  .lookup-field{margin:0 16px 16px}
  .lookup-label{padding:12px 16px 6px}
  .lookup-results{padding:0 10px 10px}
  .lookup-results a{gap:8px;padding:11px 6px}
  .lookup-results small{max-width:93px}
}
@media(prefers-reduced-motion:no-preference){
  .lookup[open]{animation:lookup-enter .18s ease-out}
  @keyframes lookup-enter{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
}
