/* Search is a legible working surface within World's existing desktop. */
.panel-overlay.panel-spotlight {
  display: flex;
  justify-content: center;
  padding: clamp(42px, 12vh, 112px) 16px 24px;
  align-items: flex-start;
  background: rgb(18 24 35 / 20%);
  backdrop-filter: blur(6px);
}
.spotlight[data-ceec-search="true"] {
  --ceec-search-ink: #242a34;
  --ceec-search-muted: #646b75;
  --ceec-search-line: #e4e3de;
  position: relative;
  inset: auto;
  transform: none;
  width: min(820px, 100%);
  max-height: calc(100dvh - 29px - clamp(42px, 12vh, 112px) - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fbfaf7;
  color: var(--ceec-search-ink);
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgb(18 24 35 / 24%), 0 3px 12px rgb(18 24 35 / 10%);
  backdrop-filter: none;
  text-align: left;
}
.spotlight[data-ceec-search="true"] > .spotlight-results,
.spotlight[data-ceec-search="true"] > label,
.spotlight[data-ceec-search="true"] > footer,
.spotlight[data-ceec-search="true"] .spotlight-input > kbd { display: none; }
.spotlight[data-ceec-search="true"] .spotlight-input {
  padding: 18px 22px;
  gap: 12px;
  border-bottom: 1px solid var(--ceec-search-line);
  flex-shrink: 0;
  min-width: 0;
}
.spotlight[data-ceec-search="true"] .spotlight-input > svg { color: #727781; flex: 0 0 23px; }
.spotlight[data-ceec-search="true"] .spotlight-input input {
  min-width: 0;
  width: 100%;
  padding: 6px 0;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.35;
  color: var(--ceec-search-ink);
  font-weight: 450;
  letter-spacing: -.035em;
}
.spotlight[data-ceec-search="true"] .spotlight-input input::placeholder { color: var(--ceec-search-muted); }
.spotlight[data-ceec-search="true"] button { font: inherit; cursor: pointer; }
.spotlight[data-ceec-search="true"] .ceec-search-clear,
.spotlight[data-ceec-search="true"] .ceec-search-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #5a626d;
  border-radius: 9px;
}
.spotlight[data-ceec-search="true"] .ceec-search-clear { font-size: 24px; }
.spotlight[data-ceec-search="true"] .ceec-search-close { font-size: 12px; border-color: var(--ceec-search-line); }
.spotlight[data-ceec-search="true"] .ceec-search-clear[hidden] { display: none; }
.spotlight[data-ceec-search="true"] button:hover { background: #ecece6; }
.spotlight[data-ceec-search="true"] :focus-visible { outline: 3px solid #2868ab; outline-offset: 3px; }
.spotlight[data-ceec-search="true"] input:focus-visible { outline: none; box-shadow: 0 2px 0 #2868ab; }
.ceec-search-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 0; flex: 1 1 auto; }
.ceec-search-list { overflow-y: auto; overscroll-behavior: contain; min-width: 0; min-height: 0; max-height: min(470px, 58dvh); padding: 10px; scrollbar-gutter: stable; }
.ceec-search-group + .ceec-search-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ceec-search-line); }
.ceec-search-group-label { padding: 8px 11px 6px; color: var(--ceec-search-muted); font-size: 11px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.ceec-search-result { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; color: var(--ceec-search-ink); }
.ceec-search-result[aria-selected="true"] { background: #e9e8df; border-color: #dcdace; }
.ceec-search-result-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; }
.ceec-search-icon { object-fit: contain; max-width: 100%; }
.ceec-search-icon-missing::after { content: "◇"; color: #586d80; font-size: 30px; }
.ceec-search-private-mark { display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #365b73; background: #e1e9ed; }
.ceec-search-private-mark svg { width: 70%; height: 70%; }
.ceec-search-private-state { margin: 5px 11px 9px; color: #5d6670; font-size: 12px; line-height: 1.55; }
.ceec-search-private-state[role="alert"] { color: #71323a; }
.spotlight[data-ceec-search="true"] .ceec-search-private-retry { min-height: 34px; margin-left: 4px; padding: 6px 10px; border: 1px solid #b9c2c7; border-radius: 7px; background: #fff; color: #334e61; font-size: 11px; font-weight: 650; }
.ceec-search-result-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.ceec-search-result-copy strong { font-size: 14px; font-weight: 620; line-height: 1.35; overflow-wrap: anywhere; }
.spotlight[data-ceec-search="true"] .ceec-search-result-copy small { font-size: 11px; color: #4c555f; line-height: 1.4; overflow-wrap: anywhere; }
.ceec-search-result-arrow { opacity: 0; font-size: 16px; color: #69716f; }
.ceec-search-result[aria-selected="true"] .ceec-search-result-arrow { opacity: 1; }
.ceec-search-detail { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 36px 30px 28px; border-left: 1px solid var(--ceec-search-line); background: #f5f4ee; overflow-y: auto; }
.ceec-search-detail[hidden] { display: none; }
.ceec-search-detail-icon { display: grid; place-items: center; height: 64px; width: 64px; margin-bottom: 22px; }
.spotlight[data-ceec-search="true"] .ceec-search-kind { margin: 0 0 5px; color: #4c555f; font-size: 11px; font-weight: 600; }
.ceec-search-detail h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.035em; font-weight: 620; margin: 0 0 13px; overflow-wrap: anywhere; }
.ceec-search-description { color: #535d67; font-size: 13px; line-height: 1.65; margin: 0 0 26px; }
.spotlight[data-ceec-search="true"] .ceec-search-open { min-height: 42px; border: 1px solid #ced3d4; border-radius: 9px; background: #fff; color: #28333d; padding: 9px 16px; font-size: 12px; font-weight: 600; margin-top: auto; overflow-wrap: anywhere; max-width: 100%; }
.ceec-search-footer { display: flex; align-items: center; gap: 15px; padding: 10px 17px; border-top: 1px solid var(--ceec-search-line); flex: 0 0 auto; min-width: 0; }
.ceec-search-status, .ceec-search-hint { color: #626a73; font-size: 10px; line-height: 1.45; }
.ceec-search-hint { margin-left: auto; white-space: nowrap; }
.spotlight[data-ceec-search="true"] .ceec-search-browse { min-height: 34px; border: 0; border-radius: 7px; background: transparent; padding: 7px 9px; color: #364f64; font-size: 11px; font-weight: 600; }
.ceec-search-empty { padding: 36px 28px; text-align: center; grid-column: 1 / -1; }
.ceec-search-empty[hidden] { display: none; }
.ceec-search-empty strong { font-size: 18px; font-weight: 600; }
.ceec-search-empty p { max-width: 38ch; margin: 10px auto 0; font-size: 13px; line-height: 1.65; color: var(--ceec-search-muted); }
.ceec-search-body.is-empty .ceec-search-list { display: none; }
.spotlight[data-ceec-search="true"] .spotlight-calculation { border-bottom: 1px solid var(--ceec-search-line); padding: 14px 22px; background: #f1f4ed; }
@media (max-width: 700px) {
  .panel-overlay.panel-spotlight { padding: 42px 10px 18px; }
  .spotlight[data-ceec-search="true"] { border-radius: 15px; max-height: calc(100dvh - 89px); }
  .spotlight[data-ceec-search="true"] .spotlight-input { padding: 10px 12px; gap: 8px; }
  .spotlight[data-ceec-search="true"] .spotlight-input > svg { flex-basis: 20px; width: 20px; }
  .spotlight[data-ceec-search="true"] .ceec-search-clear,
  .spotlight[data-ceec-search="true"] .ceec-search-close { min-height: 44px; flex-basis: 44px; }
  .ceec-search-body { grid-template-columns: minmax(0, 1fr); }
  .ceec-search-detail { display: none; }
  .ceec-search-list { max-height: calc(100dvh - 190px); padding: 6px; }
  .ceec-search-result { min-height: 66px; gap: 10px; padding: 10px; }
  .ceec-search-result-copy strong { font-size: 14px; }
  .ceec-search-result-copy small { font-size: 11px; }
  .ceec-search-hint { display: none; }
  .ceec-search-footer { padding: 6px 10px; gap: 8px; justify-content: space-between; }
  .spotlight[data-ceec-search="true"] .ceec-search-browse { min-height: 44px; }
  .spotlight[data-ceec-search="true"] .ceec-search-private-retry { min-height: 44px; }
  .ceec-search-status { max-width: 18ch; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-overlay.panel-spotlight, .spotlight[data-ceec-search="true"] { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel-overlay.panel-spotlight { backdrop-filter: none; background: rgb(32 37 44 / 72%); }
}
