/* CSPC WhereITis — futura.css
   Glassmorphism + motion overlay, Nexus, command palette, concierge, voice mic,
   handover beacon. Progressive enhancement; pages work without it. */

.theme-toggle {
  background: var(--glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--glass-border);
}

/* ===== HERO MIC ===== */
.hero__mic {
  flex: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; margin-right: .15rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.hero__mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hero__mic:hover, .hero__mic.is-on { color: var(--brand); background: var(--brand-050); }
.hero__mic.is-on { animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hero__mic.is-on { animation: none; } }

/* ===== HOME NEXUS STRIP ===== */
.nexus-strip { margin: var(--s-5) 0 var(--s-4); }
.nexus-strip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nexus-strip__head h2 { margin: 0; }
.nexus-strip__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .nexus-strip__grid { grid-template-columns: repeat(3, 1fr); } }
.nexus-tile {
  display: flex; flex-direction: column; gap: .45rem; height: 100%;
  padding: 1.15rem 1.2rem; border: 1px solid var(--border); border-radius: 12px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 55%),
    var(--card);
  text-decoration: none; color: inherit;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.nexus-tile:hover { transform: translateY(-2px); border-color: var(--brand); color: inherit;
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--brand) 55%, transparent); }
.nexus-tile strong { font-size: 1.05rem; }
.nexus-tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.nexus-tile kbd {
  display: inline-block; padding: .05rem .4rem; border-radius: 4px; font: 600 .78rem ui-monospace, Menlo, Consolas, monospace;
  background: var(--brand-050); border: 1px solid var(--border);
}

/* ===== NEXUS PAGE ===== */
.nexus { position: relative; background: transparent; }
.nexus-panel--hero { margin-bottom: 1.25rem; }
.nexus-kicker {
  margin: 0 0 .45rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
}
.nexus-panel--hero h1 {
  margin: 0 0 .5rem; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: .02em;
  font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 800;
  color: var(--ink);
}
.nexus-lede { max-width: 62ch; color: var(--ink); margin: 0 0 1.15rem; opacity: .82; }
.nexus-lede kbd {
  padding: .05rem .4rem; border-radius: 4px; font: 600 .8rem ui-monospace, Menlo, Consolas, monospace;
  background: var(--brand-050); border: 1px solid var(--border); color: var(--ink);
}
.nexus-hud {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .65rem; margin: 0;
}
.nexus-hud > div {
  padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--brand-050);
}
.nexus-hud dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .7; }
.nexus-hud dd { margin: .15rem 0 0; font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); }
.nexus-hud__time { font-size: .95rem !important; color: var(--ink) !important; opacity: 1; }

.nexus-body { padding-block: var(--s-5) var(--s-6); background: transparent; }
.nexus .nexus-panel {
  background: color-mix(in srgb, var(--card) 94%, transparent) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.nexus .pulse__title { color: var(--ink); font-weight: 650; }
.nexus .pulse__meta { color: var(--muted); }
.nexus-layout {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 960px) { .nexus-layout { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.nexus-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.2rem 1.25rem 1.35rem; box-shadow: 0 10px 30px -22px rgba(0,0,0,.45);
}
.nexus-panel__head h2 { margin: 0 0 .25rem; font-size: 1.25rem; color: var(--ink); }
.nexus-panel__head p { margin: 0 0 1rem; color: var(--ink); opacity: .75; font-size: .92rem; }
.nexus-panel--pulse {
  margin-top: 2rem;
  padding-top: 1.6rem;
}

/* Radar */
.radar { position: relative; min-height: 340px; }
.radar__field {
  position: absolute; inset: 8% 10% 18% 10%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 62%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, color-mix(in srgb, var(--brand) 10%, transparent) 19px 20px);
  overflow: hidden;
}
.radar__ring {
  position: absolute; inset: 18%; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.radar__ring:nth-child(2) { inset: 32%; }
.radar__ring:nth-child(3) { inset: 46%; }
.radar__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent 0 78%, color-mix(in srgb, var(--brand) 35%, transparent) 92%, transparent 100%);
  animation: radar-spin 5.5s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar__sweep { animation: none; opacity: .4; } }
.radar__nodes {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  min-height: 340px;
}
.radar__empty { position: absolute; inset: 40% 10% auto; text-align: center; color: var(--muted); }
.radar__node { position: absolute; transform: translate(-50%, -50%); }
.radar__node:nth-child(1) { left: 22%; top: 38%; }
.radar__node:nth-child(2) { left: 48%; top: 22%; }
.radar__node:nth-child(3) { left: 74%; top: 32%; }
.radar__node:nth-child(4) { left: 32%; top: 62%; }
.radar__node:nth-child(5) { left: 58%; top: 58%; }
.radar__node:nth-child(6) { left: 78%; top: 68%; }
.radar__node:nth-child(7) { left: 18%; top: 72%; }
.radar__node:nth-child(8) { left: 50%; top: 78%; }
.radar__node:nth-child(n+9) { left: 40%; top: 44%; }
.radar__pin {
  display: grid; justify-items: center; gap: .2rem; border: 0; background: none;
  color: inherit; cursor: pointer; font: inherit; min-width: 72px;
}
.radar__blip {
  width: calc(10px + var(--heat, 0) * 14px); height: calc(10px + var(--heat, 0) * 14px);
  border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) calc(var(--heat, 0) * 40%), transparent),
              0 0 16px var(--brand);
  animation: blip 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .15s);
}
@keyframes blip { 50% { transform: scale(1.18); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .radar__blip { animation: none; } }
.radar__label { font-size: .72rem; font-weight: 700; max-width: 9rem; text-align: center; line-height: 1.2; color: var(--ink); }
.radar__n {
  font-size: .7rem; font-weight: 700; padding: 0 .35rem; border-radius: 4px;
  background: var(--brand-050); color: var(--brand);
}
.radar__pop {
  position: absolute; left: 50%; top: calc(100% + .4rem); transform: translateX(-50%);
  z-index: 3; width: min(240px, 70vw); padding: .7rem .8rem;
  background: var(--card); border: 1px solid var(--brand); border-radius: 10px;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); text-align: left;
}
.radar__pop p { margin: 0 0 .35rem; font-size: .88rem; }
.radar__pop ul { list-style: none; margin: 0; padding: 0; }
.radar__pop li { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; margin: 0 0 .2rem; }
.radar__legend { display: flex; gap: 1rem; list-style: none; margin: .6rem 0 0; padding: 0; color: var(--muted); font-size: .8rem; }
.radar__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; }
.radar__dot--lost { background: var(--accent-red); }
.radar__dot--found { background: var(--green); }

/* Scanner */
.scan-form__row { position: relative; }
.scan-form__q {
  width: 100%; min-height: 96px; resize: vertical; font: inherit; color: var(--ink);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg));
  border: 1px solid var(--border); border-radius: 12px; padding: .8rem 3rem .8rem .9rem;
}
.scan-form__q:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.scan-form__mic {
  position: absolute; top: .7rem; right: .7rem; width: 38px; height: 38px; border: 0; border-radius: 9px;
  background: var(--card); color: var(--muted); cursor: pointer;
  display: inline-grid; place-items: center; box-shadow: 0 0 0 1px var(--border);
}
.scan-form__mic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.scan-form__mic.is-on, .scan-form__mic:hover { color: var(--brand); }
.scan-form__filters {
  display: grid; gap: .6rem; grid-template-columns: 1fr; margin: .8rem 0;
}
@media (min-width: 640px) { .scan-form__filters { grid-template-columns: 1fr 1fr 1fr; } }
.scan-form__filters label { display: grid; gap: .25rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.scan-form__filters select {
  font: inherit; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 8px; min-height: 40px; padding: 0 .6rem;
  backdrop-filter: blur(10px);
}
.scan-results { margin-top: 1rem; display: grid; gap: .7rem; }
.scan-hit {
  display: grid; grid-template-columns: 72px 1fr; gap: .85rem; padding: .75rem;
  border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--bg);
}
.scan-hit:hover { border-color: var(--brand); color: inherit; }
.scan-hit img, .scan-hit__ph {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--brand-050);
}
.scan-hit__ph { display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.scan-hit h3 { margin: 0 0 .2rem; font-size: 1rem; }
.scan-hit p { margin: 0; font-size: .82rem; color: var(--muted); }
.scan-hit__bar { height: 4px; border-radius: 99px; background: var(--border); margin: .45rem 0 .35rem; overflow: hidden; }
.scan-hit__bar > span { display: block; height: 100%; background: var(--brand); width: calc(var(--score) * 100%); }
.scan-hit__reasons { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: .35rem 0 0; padding: 0; }
.scan-hit__reasons li {
  font-size: .72rem; padding: .1rem .4rem; border-radius: 4px; background: var(--brand-050); color: var(--brand);
}
.scan-empty, .scan-status { color: var(--muted); font-size: .92rem; }

/* Pulse */
.pulse { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pulse > li { margin: 0; }
.pulse a {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; align-items: center;
  padding: .75rem .85rem; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 6px 18px -14px rgba(0,0,0,.35);
}
.pulse a:hover { border-color: var(--brand); color: inherit; background: var(--brand-050); }
.pulse__kind {
  grid-row: span 2; align-self: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .5rem; border-radius: 6px;
}
.pulse__kind--lost { background: color-mix(in srgb, var(--accent-red) 18%, var(--card)); color: var(--accent-red); }
.pulse__kind--found { background: color-mix(in srgb, var(--green) 18%, var(--card)); color: var(--green); }
.pulse__title {
  font-weight: 650; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pulse__meta { font-size: .78rem; color: var(--muted); }
.pulse__empty {
  color: var(--muted); padding: .9rem 1rem;
  border: 1px dashed var(--border); border-radius: 12px; background: var(--card);
}
.nexus-shortcuts {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}
.nexus-shortcuts h2 { margin: 0 0 .5rem; color: var(--ink); }
.nexus-shortcuts ul { margin: 0; color: var(--ink); }
.nexus-shortcuts kbd {
  padding: .05rem .4rem; border-radius: 4px; font: 600 .78rem ui-monospace, Menlo, Consolas, monospace;
  background: var(--brand-050); border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .pulse a { grid-template-columns: auto 1fr; }
  .pulse__meta { grid-column: 2; }
  .radar { min-height: 280px; }
  .radar__nodes { min-height: 280px; }
}

/* ===== COMMAND PALETTE ===== */
.cmdk[hidden] { display: none; }
.cmdk { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 12vh 1rem 1rem; }
.cmdk__backdrop { position: absolute; inset: 0; background: rgba(6, 10, 16, .55); backdrop-filter: blur(6px); }
.cmdk__panel {
  position: relative; width: min(560px, 100%); background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.55);
}
.cmdk__search { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.cmdk__search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.cmdk__search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink);
}
.cmdk__search input:focus { outline: none; }
.cmdk__search kbd { font: 600 .72rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.cmdk__list { list-style: none; margin: 0; padding: .4rem; max-height: min(50vh, 380px); overflow: auto; }
.cmdk__list li { margin: 0; }
.cmdk__item {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  padding: .55rem .7rem; border: 0; border-radius: 8px; background: transparent;
  color: inherit; font: inherit; cursor: pointer; text-decoration: none;
}
.cmdk__item:hover, .cmdk__item.is-active { background: var(--brand-050); color: inherit; }
.cmdk__item small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.cmdk__hint { margin: 0; padding: .45rem .9rem .7rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--border); }

/* ===== CONCIERGE ===== */
.concierge-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 20px; border: 1px solid color-mix(in srgb, #fff 28%, transparent); cursor: pointer;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 68%, #000));
  color: var(--on-brand);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 75%, #000), inset 0 1px 0 rgba(255,255,255,.28);
  display: inline-grid; place-items: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.concierge-fab:hover { transform: translateY(-2px) scale(1.04); }
.concierge-fab:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.concierge-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; position: relative; z-index: 1; }
.concierge-fab__pulse {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent);
  animation: fab-pulse 2.8s ease-out infinite;
}
@keyframes fab-pulse { 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.concierge[hidden], .concierge-fab[hidden] { display: none; }

.concierge {
  position: fixed; right: 1.1rem; bottom: 5.9rem; z-index: 61;
  width: min(396px, calc(100vw - 1.5rem)); height: min(590px, calc(100dvh - 8.5rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border)); border-radius: 22px;
  box-shadow: 0 34px 80px -28px rgba(5, 15, 35, .6), 0 2px 0 rgba(255,255,255,.05) inset;
  transform-origin: bottom right;
  animation: concierge-in .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes concierge-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* header */
.concierge__head {
  display: flex; align-items: center; gap: .8rem; padding: .95rem 1rem .9rem 1.05rem;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
  background:
    radial-gradient(110% 160% at 0% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent);
}
.concierge__avatar {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 66%, #000));
  color: var(--on-brand);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 80%, #000), inset 0 1px 0 rgba(255,255,255,.3);
}
.concierge__avatar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.concierge__titles { flex: 1; min-width: 0; }
.concierge__kicker { margin: 0; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.concierge__head h2 { margin: .08rem 0 0; font-size: 1.12rem; line-height: 1.15; }
.concierge__status { margin: .22rem 0 0; display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); }
.concierge__status i {
  width: 7px; height: 7px; border-radius: 50%; background: #2fb36b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2fb36b 22%, transparent);
}
.concierge__tools { display: flex; gap: .25rem; align-self: flex-start; }
.concierge__tool {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.concierge__tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.concierge__tool:hover, .concierge__tool:focus-visible {
  background: var(--brand-050); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, var(--border)); outline: none;
}
.concierge__tool[data-concierge-clear]:hover svg { transform: rotate(180deg); }
.concierge__tool svg { transition: transform .4s cubic-bezier(.2,.8,.2,1); }

/* conversation */
.concierge__log {
  flex: 1; min-height: 0; overflow: auto; list-style: none; margin: 0; padding: 1rem 1rem .6rem;
  display: flex; flex-direction: column; gap: .6rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, var(--bg)), color-mix(in srgb, var(--brand) 1.5%, var(--bg)));
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}
.concierge__log li {
  margin: 0; max-width: 88%; padding: .65rem .85rem; font-size: .9rem; line-height: 1.5;
  animation: concierge-pop .24s cubic-bezier(.2,.8,.2,1);
}
@keyframes concierge-pop { from { opacity: 0; transform: translateY(6px); } }
.concierge__log .is-bot {
  align-self: flex-start; background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 6px 18px 18px 18px;
  box-shadow: 0 6px 16px -12px rgba(5, 15, 35, .4);
}
.concierge__log .is-me {
  align-self: flex-end; color: var(--on-brand); border-radius: 18px 18px 6px 18px;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000));
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--brand) 80%, #000);
}
.concierge__log a { color: var(--brand); text-underline-offset: 2px; }
.concierge__log .is-me a { color: inherit; }
.concierge__line + .concierge__line { margin-top: .4rem; }

/* quick-action cards (replace the old plain chips) */
.concierge__log li.concierge__chips {
  align-self: stretch; max-width: 100%; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .15rem;
}
.concierge__chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left;
  padding: .7rem .75rem; font: inherit; cursor: pointer; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s, box-shadow .18s, background .18s;
}
.concierge__chip-ico {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--brand-050); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.concierge__chip-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.concierge__chip-label { font-size: .84rem; font-weight: 700; line-height: 1.25; }
.concierge__chip-hint { display: block; margin-top: .1rem; font-size: .72rem; font-weight: 400; color: var(--muted); line-height: 1.3; }
.concierge__chip:hover, .concierge__chip:focus-visible {
  transform: translateY(-2px); border-color: var(--brand); outline: none;
  box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--brand) 60%, transparent);
}
.concierge__chip:hover .concierge__chip-ico, .concierge__chip:focus-visible .concierge__chip-ico { background: var(--brand); color: var(--on-brand); }

/* search hits */
.concierge__hits { display: grid; gap: .45rem; margin-top: .6rem; }
.concierge__hit {
  display: block; padding: .6rem .7rem .6rem .8rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 4px 12px 12px 4px;
  background: color-mix(in srgb, var(--brand) 5%, var(--card));
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.concierge__hit:hover, .concierge__hit:focus-visible {
  border-color: var(--brand); outline: none; transform: translateX(2px);
  box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--brand) 65%, transparent);
}
.concierge__hit strong { display: block; font-size: .87rem; }
.concierge__hit span { display: block; font-size: .75rem; color: var(--muted); line-height: 1.35; margin-top: .1rem; }
.concierge__hit span:last-child:not(:first-of-type) { color: var(--brand); font-weight: 600; }

/* link buttons */
.concierge__links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.concierge__links a {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--brand);
  background: var(--brand-050); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  transition: background .15s, color .15s;
}
.concierge__links a::after { content: "\2192"; transition: transform .15s; }
.concierge__links a:hover, .concierge__links a:focus-visible { background: var(--brand); color: var(--on-brand); outline: none; }
.concierge__links a:hover::after { transform: translateX(2px); }

/* typing */
.concierge__log .is-typing { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: .5rem; }
.concierge__dots { display: inline-flex; gap: 3px; }
.concierge__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .35; animation: concierge-dot 1.1s ease-in-out infinite; }
.concierge__dots i:nth-child(2) { animation-delay: .15s; }
.concierge__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes concierge-dot { 40% { opacity: 1; transform: translateY(-3px); } }

/* composer */
.concierge__form {
  display: flex; align-items: center; gap: .4rem; margin: .5rem .8rem .35rem; padding: .28rem .28rem .28rem 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.concierge__form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.concierge__form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: .9rem; padding: .5rem 0;
}
.concierge__form input::placeholder { color: var(--muted); }
.concierge__send {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 68%, #000)); color: var(--on-brand);
  box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--brand) 80%, #000);
  transition: transform .15s;
}
.concierge__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.concierge__send:hover { transform: scale(1.07); }
.concierge__send:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.concierge__note { margin: 0; padding: .1rem 1rem .75rem; text-align: center; font-size: .68rem; letter-spacing: .01em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .concierge, .concierge__log li, .concierge-fab__pulse, .concierge__dots i { animation: none; }
  .concierge__chip, .concierge__hit, .concierge__send, .concierge-fab { transition: none; }
}

@media (max-width: 520px) {
  .concierge__head { padding: .8rem .85rem .75rem; gap: .65rem; }
  .concierge__avatar { width: 38px; height: 38px; border-radius: 12px; }
  .concierge__log { padding: .8rem .8rem .5rem; }
  .concierge__log li.concierge__chips { grid-template-columns: 1fr; gap: .4rem; }
  .concierge__chip { flex-direction: row; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 12px; }
  .concierge__chip-hint { display: none; }
  .concierge__chip-label { font-size: .86rem; }
}

/* ===== HANDOVER BEACON ===== */
.beacon {
  margin: 1rem 0 0; padding: 1rem 1.1rem; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 40%),
    var(--card);
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
}
.beacon__sigil {
  width: 84px; height: 84px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  padding: 6px; border-radius: 10px; background: #061018; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent);
}
.beacon__sigil span { display: block; border-radius: 1px; background: transparent; }
.beacon__sigil span.on { background: var(--brand); box-shadow: 0 0 6px var(--brand); }
.beacon__copy h3 { margin: 0 0 .2rem; font-size: 1rem; }
.beacon__copy p { margin: 0; color: var(--muted); font-size: .85rem; }
.beacon__copy code { font-size: .95em; }
.beacon__actions { display: flex; flex-direction: column; gap: .4rem; }
@media (max-width: 640px) {
  .beacon { grid-template-columns: 1fr; }
  .beacon__actions { flex-direction: row; flex-wrap: wrap; }
}
@media print {
  .concierge, .concierge-fab, .cmdk, .glass-dock, .glass-ambient, .scroll-progress { display: none !important; }
}

/* ===== GLASSMORPHISM + MOTION =====
   Palette sampled from the CSPC campus photo: sky #5eb8ea, building #1e86d4,
   deep navy #0d4a86, concrete #cfd6dc, palm #4a8a4e, torch #f08a2a. */
:root {
  --brand: #1e86d4;
  --brand-600: #1570b8;
  --brand-050: #dff3fc;
  --on-brand: #ffffff;
  --ink: #14344c;
  --muted: #4d6d82;
  --bg: #d5eef8;
  --card: #ffffff;
  --border: #b9d4e6;
  --veil: rgba(213, 238, 248, .42);
  --accent: #f08a2a;
  --green: #3f8a52;
  --glass: rgba(255, 255, 255, .32);
  --glass-border: rgba(255, 255, 255, .72);
  --glass-shadow: 0 14px 44px -18px rgba(13, 74, 134, .38), inset 0 1px 0 rgba(255,255,255,.7);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] {
  --brand: #6ec4f2;
  --brand-600: #9ed8f7;
  --brand-050: #12344c;
  --on-brand: #062033;
  --ink: #e8f6ff;
  --muted: #9bb8cb;
  --bg: #0a2438;
  --card: #123044;
  --border: #2a5570;
  --veil: rgba(10, 36, 56, .55);
  --glass: rgba(10, 40, 64, .38);
  --glass-border: rgba(255, 255, 255, .16);
  --glass-shadow: 0 16px 48px -18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1);
}

body {
  background-color: #8ecff0;
  background-image:
    linear-gradient(180deg, rgba(213, 238, 248, .42) 0%, rgba(213, 238, 248, .78) 48%, rgba(213, 238, 248, .92) 100%),
    url('/img/background.jpg');
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
:root[data-theme="dark"] body {
  background-color: #0a2438;
  background-image:
    linear-gradient(180deg, rgba(10, 36, 56, .7) 0%, rgba(10, 36, 56, .86) 100%),
    url('/img/background.jpg');
}

.glass-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glass-ambient span {
  position: absolute; border-radius: 50%; filter: blur(40px);
  opacity: .4; animation: orb 18s ease-in-out infinite alternate;
}
.glass-ambient span:nth-child(1) {
  width: 340px; height: 340px; left: -80px; top: 12%;
  background: rgba(30, 134, 212, .45);
}
.glass-ambient span:nth-child(2) {
  width: 280px; height: 280px; right: -60px; top: 40%;
  background: rgba(94, 184, 234, .4);
  animation-duration: 22s; animation-delay: -4s;
}
.glass-ambient span:nth-child(3) {
  width: 220px; height: 220px; left: 35%; bottom: -40px;
  background: rgba(240, 138, 42, .28);
  animation-duration: 16s; animation-delay: -8s;
}
@keyframes orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.12); }
}
main, .site-footer { position: relative; z-index: 1; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 3px;
  background: transparent; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #fff));
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 70%, transparent);
}

/* Floating glass command bar */
.site-header.site-header--glass {
  position: sticky; top: 0; z-index: 50;
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: .65rem 0 .2rem;
}
.site-header--glass .nav-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  gap: 1rem;
  padding: .4rem .55rem .4rem .85rem;
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 52%, transparent);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 40px -18px color-mix(in srgb, var(--brand) 40%, #000),
    inset 0 1px 0 rgba(255,255,255,.5);
  overflow: visible;
}
.site-header--glass .nav-row::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 42%; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.7), transparent);
  pointer-events: none;
}
.site-header--glass.is-scrolled .nav-row {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  box-shadow:
    0 16px 48px -20px color-mix(in srgb, var(--brand) 50%, #000),
    inset 0 1px 0 rgba(255,255,255,.45);
}
.site-header--glass .brand { position: relative; z-index: 1; justify-self: start; }
.site-header--glass .brand__seal {
  width: 42px; height: 42px;
  box-shadow: 0 0 0 2px color-mix(in srgb, #fff 55%, var(--border)), 0 0 18px color-mix(in srgb, var(--brand) 35%, transparent);
}
.site-header--glass .brand-text strong {
  font-size: 1.05rem; letter-spacing: .01em;
}
.site-header--glass .brand-text small {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}

.site-header--glass .primary-nav {
  position: relative; z-index: 1;
  gap: .15rem; margin-left: 0;
  justify-self: center;
  padding: .2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  border: 1px solid color-mix(in srgb, #fff 28%, var(--border));
}
.site-header--glass .primary-nav a {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: .42rem 1rem !important;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted);
  transform: none !important;
  transition: color .2s, background-color .25s var(--ease-out), box-shadow .25s;
}
.site-header--glass .primary-nav a::after { content: none !important; display: none !important; }
.site-header--glass .primary-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 10%, transparent) !important;
}
.site-header--glass .primary-nav a[aria-current="page"] {
  color: var(--on-brand) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand)) !important;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 80%, transparent),
              inset 0 1px 0 rgba(255,255,255,.35);
}

.site-header--glass .nav-actions {
  position: relative; z-index: 1; gap: .65rem;
  margin-left: 0; justify-self: end;
}
.site-header--glass .nav-link--glass {
  display: inline-flex; align-items: center; height: 40px; padding: 0 1.05rem;
  border-radius: 999px; font-size: .9rem; font-weight: 650;
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s;
}
.site-header--glass .nav-link--glass:hover {
  color: var(--on-brand);
  background: var(--brand);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.site-header--glass .theme-toggle,
.site-header--glass .nav-icon {
  width: 40px; height: 40px;
  background: color-mix(in srgb, var(--card) 40%, transparent) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border) !important;
}
.site-header--glass .profile-chip {
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--card) 40%, transparent);
  border-radius: 999px;
}
.site-header--glass .profile-menu { position: relative; z-index: 80; }
.site-header--glass .profile-menu__panel {
  z-index: 90;
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.45);
}

:root[data-theme="dark"] .site-header--glass .nav-row {
  background: color-mix(in srgb, #0c121c 62%, transparent);
  border-color: color-mix(in srgb, #fff 12%, var(--border));
  box-shadow: 0 16px 48px -18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
:root[data-theme="dark"] .site-header--glass .primary-nav {
  background: color-mix(in srgb, #05080f 45%, transparent);
}
:root[data-theme="dark"] .site-header--glass .primary-nav a[aria-current="page"] {
  color: #041018 !important;
}

@media (max-width: 860px) {
  .site-header--glass .nav-row { border-radius: 18px; padding-inline: .7rem; }
}

.btn {
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform .25s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s !important;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 55%, transparent); }
.btn:hover::after { animation: shine .7s var(--ease-out); }
@keyframes shine { to { transform: translateX(120%); } }
.btn--primary { box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand) 60%, transparent); }

.hero__search, .hero__actions .btn {
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.hero__search {
  background: color-mix(in srgb, var(--card) 70%, transparent) !important;
  border-color: var(--glass-border) !important;
}
.hero__actions .btn--ghost {
  background: color-mix(in srgb, var(--card) 35%, transparent);
  color: var(--ink);
  border-color: var(--glass-border);
}

.card, .report-card, .stat-card, .nexus-tile, .nexus-panel, .how__steps li,
.match-card, .claim-row, .empty-state, .beacon, .filters, .form-section,
.doc-hero, .doc-body, .doc-toc, .chat, .site-footer, .scan-hit, .pulse a {
  background: var(--glass) !important;
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  border-radius: 18px !important;
}
.counters--hero {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.site-footer {
  border-top: 0 !important;
  margin-top: var(--s-5);
  padding: var(--s-4) var(--pad);
  max-width: 1680px;
  margin-inline: auto;
}
.stat-card { border-radius: 0 !important; box-shadow: none; background: transparent !important; border: 0 !important; }
.report-card, .nexus-tile, .how__steps li, .scan-hit {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .18s ease, box-shadow .25s var(--ease-out), border-color .2s;
  will-change: transform;
}
.report-card:hover, .nexus-tile:hover, .how__steps li:hover {
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--brand) 50%, transparent);
}

.hero--campus::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 32%;
  background: linear-gradient(to top, rgba(213, 238, 248, .92), transparent);
  pointer-events: none;
}
:root[data-theme="dark"] .hero--campus::after {
  background: linear-gradient(to top, rgba(10, 36, 56, .92), transparent);
}
.hero__kicker {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 40%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
  color: var(--ink);
}
.hero__headline span { color: #171b21; }
.hero__headline-accent {
  font-style: italic;
  color: #10427a !important;
}
:root[data-theme="dark"] .hero__headline span { color: #eceff3; }
:root[data-theme="dark"] .hero__headline-accent { color: #8dbbf0 !important; }
.hero__sub {
  display: block;
  max-width: 50ch;
  margin: 0 0 1.25rem;
  padding: 0;
  border-radius: 0;
  color: #171b21 !important;
  opacity: .85 !important;
  font-weight: 400;
  line-height: 1.6;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
}
:root[data-theme="dark"] .hero__sub { color: #eceff3 !important; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: .4rem;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-border); border-radius: 14px; box-shadow: var(--glass-shadow);
}
.suggest[hidden] { display: none; }
.suggest li { margin: 0; }
.suggest a {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 0.7rem;
  padding: .55rem .7rem; border-radius: 10px; text-decoration: none; color: inherit;
}
.suggest a:hover, .suggest a.is-active { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.suggest__kind {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .4rem; border-radius: 4px; align-self: start;
}
.suggest__kind--lost { background: color-mix(in srgb, var(--accent-red) 18%, transparent); color: var(--accent-red); }
.suggest__kind--found { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.suggest__title { font-weight: 600; }
.suggest__meta { grid-column: 2; font-size: .78rem; color: var(--muted); }

.glass-dock {
  display: none;
}
@media (max-width: 860px) {
  .glass-dock {
    display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: end;
    position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%); z-index: 55;
    width: min(440px, calc(100vw - 1.2rem));
    padding: .45rem .55rem .5rem;
    background: var(--glass); backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid var(--glass-border); border-radius: 22px;
    box-shadow: var(--glass-shadow);
  }
  .glass-dock a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600;
  }
  .glass-dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .glass-dock a:hover, .glass-dock a[aria-current="page"] { color: var(--brand); }
  .glass-dock__plus {
    width: 52px; height: 52px; margin-top: -22px; border-radius: 50%;
    background: var(--brand); color: var(--on-brand) !important;
    justify-content: center; box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--brand) 70%, #000);
  }
  .glass-dock__plus svg { width: 24px; height: 24px; }
  body { padding-bottom: 88px; }
  .concierge-fab { bottom: 5.6rem; }
  .concierge { bottom: 9.4rem; }
}

.cmdk__panel {
  background: var(--glass) !important;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--glass-border) !important;
}
.cmdk__backdrop { background: color-mix(in srgb, #05080f 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .glass-ambient span, .btn::after { animation: none !important; }
  .report-card, .nexus-tile, .how__steps li { transform: none !important; }
}

/* ===== PHONE / SMALL TABLET ===== */
html { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 1100px) {
  .site-header--glass .primary-nav a { padding: .4rem .7rem !important; font-size: .82rem; }
}

@media (max-width: 860px) {
  body, :root[data-theme="dark"] body { background-attachment: scroll; }
  .glass-ambient { display: none; }
  .site-header--glass { padding: .4rem 0 .15rem; }
  .site-header--glass .nav-row {
    grid-template-columns: 1fr auto;
    min-height: 56px; gap: .5rem; border-radius: 16px;
    padding: .3rem .5rem .3rem .65rem;
  }
  .site-header--glass .nav-actions {
    justify-self: end;
    margin-left: 0;
    gap: .4rem;
  }
  .site-header--glass .brand__seal { width: 36px; height: 36px; }
  .site-header--glass .nav-link--glass { height: 36px; padding: 0 .8rem; font-size: .85rem; }
  .site-header--glass .theme-toggle,
  .site-header--glass .nav-icon { width: 36px; height: 36px; }

  .hero--campus { min-height: unset; }
  .hero__overlay { padding-block: 1.1rem 1.4rem; }
  .hero__headline { font-size: clamp(1.55rem, 7.2vw, 2.2rem) !important; }
  .hero__sub { font-size: .95rem; max-width: 40ch; }
  .hero__actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; max-width: none;
  }
  .hero__actions .btn { width: 100%; min-height: 48px; padding: 0 .4rem; }
  .hero__search {
    flex-wrap: nowrap; max-width: none; gap: .25rem; padding: 6px;
  }
  .hero__search-input { flex: 1 1 auto; min-width: 0; width: auto; }
  .hero__search-btn { flex: none; }

  .counters--hero { margin-inline: 0; }
  .stat-card, .counter { padding: .75rem .85rem; }
  .stat-card strong, .counter strong { font-size: 1.35rem; }

  .container { padding-inline: max(.9rem, env(safe-area-inset-left)) max(.9rem, env(safe-area-inset-right)); }
  .card-grid { grid-template-columns: 1fr !important; }
  .filters { grid-template-columns: 1fr !important; }
  .form, .form--narrow { max-width: none; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .nexus-panel--hero h1 { font-size: 1.85rem; }
  .nexus-hud { grid-template-columns: 1fr 1fr; }
  .nexus-layout, .scan-form__filters { grid-template-columns: 1fr !important; }
  .radar, .radar__nodes { min-height: 260px; }
  .radar__label { font-size: .65rem; max-width: 5.5rem; }
  .pulse a { grid-template-columns: auto 1fr; }
  .pulse__meta { grid-column: 2; }
  .beacon { grid-template-columns: 1fr; }
  .detail__top { display: block; }
  .detail__photo img { width: 100%; border-radius: 14px; }

  .cmdk { padding: 10vh .7rem .7rem; }
  .concierge {
    left: .6rem; right: .6rem; width: auto;
    height: min(78dvh, 600px);
    bottom: calc(6.4rem + env(safe-area-inset-bottom));
  }
  .concierge-fab { right: .8rem; bottom: calc(5.4rem + env(safe-area-inset-bottom)); }

  .site-footer { margin-inline: .9rem; padding: 1rem; }
}

@media (max-width: 520px) {
  .hero__search-kbd { display: none; }
  .hero__search-btn { flex: none; padding: 0 1rem; border-radius: 10px; }
  .hero__search-input { font-size: .95rem; padding-left: 2.6rem; }
  .hero__mic { width: 36px; margin-right: 0; }
  .section-header { flex-wrap: wrap; gap: .35rem; }
  .btn { white-space: normal; height: auto; min-height: 44px; padding: .65rem 1rem; }
}

@media (max-width: 380px) {
  .site-header--glass .brand-text { display: none; }
}



/* =====================================================================
   SYMBOLS ONLY — calmer icon, circle and Lost/Found label colours.
   Delete this block to go back to the old look.
   ===================================================================== */
:root { --navy: #0d4a86; }
:root[data-theme="dark"] { --navy: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --navy: var(--brand); } }

/* Lost / Found: colour follows meaning.  Lost = red, Found = blue (safe, held),
   Returned = green (resolved), red stays for errors.  The word is always shown too. */
:root { --lost: #b42318; --found: #0d4a86; }
:root[data-theme="dark"] { --lost: #f4908a; --found: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lost: #f4908a; --found: var(--brand); } }

.report-card__kind--lost, .kind-badge--lost, .pulse__kind--lost, .suggest__kind--lost, .pill--lost {
  background: color-mix(in srgb, var(--lost) 14%, var(--card)); color: var(--lost);
  border: 1px solid color-mix(in srgb, var(--lost) 55%, transparent);
}
.report-card__kind--found, .kind-badge--found, .pulse__kind--found, .suggest__kind--found, .pill--found {
  background: color-mix(in srgb, var(--found) 12%, var(--card)); color: var(--found);
  border: 1px solid color-mix(in srgb, var(--found) 45%, transparent);
}

/* Circles / dots / icons */
.radar__dot--lost { background: var(--lost); }
.radar__dot--found { background: var(--found); }
.stat-card--lost { --c: var(--lost); }
.stat-card--found { --c: var(--found); }
.stat-card--returned { --c: var(--green); }
.empty-state--green .empty-state__icon { --c: var(--navy); color: var(--navy); }
.match-card__reasons svg { color: var(--navy); }
.how__num, .how__steps li:hover .how__num { background: var(--navy); color: var(--on-brand); }

/* --- touch-ups --- */
/* step-number circles: remove the leftover orange ring */
.how__num { border-color: var(--navy); }
/* all four stat icons share one colour (Returned stays green) */
.stat-card { --c: var(--navy); }
.stat-card--lost { --c: var(--lost); }
.stat-card--found { --c: var(--found); }
.stat-card--returned { --c: var(--green); }
/* light mode: make the ghost button readable on the photo */
:root:not([data-theme="dark"]) .hero__actions .btn--ghost {
  background: color-mix(in srgb, var(--card) 82%, transparent);
  color: var(--navy);
}

/* --- phone: keep the home search bar on ONE row (icon | input | mic | Search) --- */
@media (max-width: 860px) {
  .hero__search { flex-wrap: nowrap; gap: .25rem; }
  .hero__search-input { flex: 1 1 0; min-width: 0; width: auto; }
  .hero__search-btn { flex: none; width: auto; }
  .hero__mic { flex: none; margin-right: 0; }
}
@media (max-width: 520px) {
  .hero__search-btn { flex: none; width: auto; padding: 0 1rem; border-radius: 9px; }
  .hero__search-input { font-size: 1rem; padding-left: 2.6rem; }
}
.hero__search-input { text-overflow: ellipsis; }
.hero__search-input::placeholder { text-overflow: ellipsis; }

/* "I lost / I found" chooser on the report form uses the same meaning colours */
.kind-choice__option:has(input[value="lost"]:checked) .kind-choice__body {
  border-color: var(--lost); background: color-mix(in srgb, var(--lost) 8%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lost) 18%, transparent);
}
.kind-choice__option:has(input[value="lost"]:checked) .kind-choice__body::before {
  border-color: var(--lost); background: var(--lost); box-shadow: inset 0 0 0 3px var(--card);
}
.kind-choice__option:has(input[value="found"]:checked) .kind-choice__body {
  border-color: var(--found); background: color-mix(in srgb, var(--found) 8%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--found) 18%, transparent);
}
.kind-choice__option:has(input[value="found"]:checked) .kind-choice__body::before {
  border-color: var(--found); background: var(--found); box-shadow: inset 0 0 0 3px var(--card);
}

/* green is reserved for "Returned", so recent days-held text is neutral */
.days-badge--fresh, .days-badge--warm { color: var(--muted); }

/* Lost / Found label ON the photo: frosted-glass pill, colour only in the glowing dot.
   Readable on any photo, same in light and dark mode. */
.report-card__kind--lost, .report-card__kind--found {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .8rem .3rem .65rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  color: #fff; background: rgba(10, 18, 32, .72);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.report-card__kind--lost::before, .report-card__kind--found::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 30%, transparent), 0 0 10px var(--dot);
}
.report-card__kind--lost  { --dot: #ff5a4f; background: rgba(10, 18, 32, .72); color: #fff; }
.report-card__kind--found { --dot: #5cc2ff; background: rgba(10, 18, 32, .72); color: #fff; }

/* heading underline bars: brand blue instead of orange */
.section-header h2::after, .page-head__eyebrow::before { background: var(--navy); }


/* =====================================================================
   PHONE SWIPE ROWS (home page) — Latest / Found / Lost
   One full-size card per swipe, no peeking. Pure CSS scroll-snap; swipe.js only
   adds the dots + counter. Everything here is inside the phone media query,
   so desktop and tablet keep the normal card grid.
   ===================================================================== */
.phone-only, .swipe-more, .swipe-ind { display: none; }

@media (max-width: 640px) {
  .phone-only { display: block; }

  .swipe-track {
    display: flex; grid-template-columns: none; gap: .75rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .swipe-track::-webkit-scrollbar { display: none; }
  .swipe-track:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 14px; }
  .swipe-track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .swipe-track > li > .report-card { height: 100%; }

  /* Put the full-size card back (Latest Reports used the small "compact" card on phones). */
  .swipe .swipe-track .report-card__photo-wrap { aspect-ratio: 16 / 10; }
  .swipe .swipe-track .report-card__body { padding: .9rem 1rem 1rem; gap: .35rem; }
  .swipe .swipe-track .report-card__kind { left: .6rem; top: .6rem; padding: .3rem .8rem .3rem .65rem; font-size: .68rem; }
  .swipe .swipe-track .report-card__top { font-size: .78rem; gap: .6rem; flex-wrap: nowrap; }
  .swipe .swipe-track .report-card__title { font-size: 1.02rem; line-height: 1.3; display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
  .swipe .swipe-track .report-card__snippet { display: block; }
  .swipe .swipe-track .report-card__tags { display: flex; }
  .swipe .swipe-track .report-card__meta { font-size: .82rem; gap: .5rem; }
  .swipe .swipe-track .report-card__meta-item:nth-child(2) { display: revert; }
  .swipe .swipe-track .report-card__meta svg { width: 14px; height: 14px; }

  /* Last slide: a "See all" card so the swipe has a clear end. */
  .swipe-more { display: block; }
  .swipe-more__card {
    height: 100%; min-height: 240px; box-sizing: border-box; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .4rem; padding: 1.5rem; text-align: center;
    border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 14px;
    background: var(--brand-050); color: var(--brand); text-decoration: none;
  }
  .swipe-more__card strong { font-size: 1.1rem; }
  .swipe-more__card span { font-size: .88rem; color: var(--muted); }

  /* Dots + counter under each row. */
  .swipe-ind { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .75rem; }
  .swipe-ind__dots { display: flex; align-items: center; gap: 6px; }
  .swipe-ind__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .2s ease, background-color .2s ease; }
  .swipe-ind__dot.is-active { width: 22px; background: var(--brand); }
  .swipe-ind__count { font-size: .82rem; color: var(--muted); min-width: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) { .swipe-ind__dot { transition: none; } }
