:root {
  /* Professional, aerospace-themed but not costume-y: deep navy/graphite
     base with a "blueprint" cyan accent and a warning-amber secondary —
     reads like mission-control / avionics UI rather than a sci-fi movie
     prop. Kept restrained since this is a working tool Ryan will actually
     use to browse job leads, not a marketing site. */
  --as-bg: #0b1220;
  --as-bg-2: #101a2c;
  --as-panel: #131f34;
  --as-panel-2: #17253e;
  --as-ink: #eaf0fb;
  --as-ink-dim: #aebeda;
  --as-ink-faint: #869ab8;
  --as-line: rgba(234, 240, 251, 0.09);
  --as-line-strong: rgba(234, 240, 251, 0.18);
  --as-cyan: #4fd6e8;
  --as-cyan-deep: #2ba8ba;
  --as-amber: #f0a83c;
  --as-radius-lg: 16px;
  --as-radius-md: 10px;
  --as-radius-sm: 7px;
  --as-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --as-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --as-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --as-maxw: clamp(64rem, 94vw, 100rem);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--as-sans);
  background: var(--as-bg);
  color: var(--as-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  position: relative;
}

.as-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60rem 40rem at 15% -10%, rgba(79, 214, 232, 0.08), transparent 55%),
    radial-gradient(ellipse 50rem 40rem at 100% 110%, rgba(240, 168, 60, 0.05), transparent 55%),
    var(--as-bg);
  background-image:
    linear-gradient(rgba(234, 240, 251, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 240, 251, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse 60rem 40rem at 15% -10%, rgba(79, 214, 232, 0.08), transparent 55%),
    radial-gradient(ellipse 50rem 40rem at 100% 110%, rgba(240, 168, 60, 0.05), transparent 55%),
    var(--as-bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

/* ---------- home button ---------- */
.as-home-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--as-panel);
  color: var(--as-ink-dim);
  border: 1px solid var(--as-line);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.as-home-btn svg { width: 14px; height: 14px; }
.as-home-btn:hover { color: var(--as-cyan); border-color: rgba(79, 214, 232, 0.35); transform: translateX(-2px); }
@media (max-width: 640px) {
  .as-home-btn { padding: 6px 10px 6px 7px; font-size: 0.7rem; top: 10px; left: 10px; }
  .as-home-btn span { display: none; }
}

/* ---------- header ---------- */
.as-header {
  position: relative;
  z-index: 1;
  padding: 16px 20px 14px 64px;
  border-bottom: 1px solid var(--as-line);
  background: color-mix(in srgb, var(--as-bg) 80%, transparent);
  backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
  .as-header { padding: 12px 14px 10px 52px; }
  .as-brand { gap: 8px; }
  .as-brand-icon { width: 26px; height: 26px; }
  .as-tagline { font-size: 0.68rem; line-height: 1.35; }
}
@media (max-width: 400px) {
  /* Tight phones: keep just the product name, drop the descriptive
     tagline entirely rather than let it wrap into 3 cramped lines. */
  .as-tagline { display: none; }
}
.as-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--as-maxw);
  margin: 0 auto;
}
.as-brand-icon {
  width: 34px;
  height: 34px;
  color: var(--as-cyan);
  flex: none;
  filter: drop-shadow(0 0 8px rgba(79, 214, 232, 0.4));
}
.as-brand-icon svg { width: 100%; height: 100%; }
.as-brand h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--as-ink);
}
.as-tagline {
  margin: 2px 0 0;
  font-family: var(--as-mono);
  font-size: 0.74rem;
  color: var(--as-ink-faint);
  letter-spacing: 0.01em;
}

/* ---------- view toggle (mobile: map vs full-screen list) ---------- */
.as-view-toggle {
  display: none;
}
@media (max-width: 860px) {
  .as-view-toggle {
    display: flex;
    position: relative;
    z-index: 1;
    gap: 6px;
    max-width: var(--as-maxw);
    margin: 0 auto;
    padding: 10px 10px 0;
  }
  .as-view-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--as-panel);
    border: 1px solid var(--as-line);
    color: var(--as-ink-dim);
    font-family: var(--as-sans);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: var(--as-radius-md);
    cursor: pointer;
    min-height: 42px;
    transition: all 0.15s ease;
  }
  .as-view-btn.active {
    background: var(--as-panel-2);
    color: var(--as-cyan);
    border-color: rgba(79, 214, 232, 0.35);
  }
}

/* ---------- layout: sidebar + map ---------- */
.as-layout {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--as-maxw);
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 16px 20px;
}
@media (max-width: 860px) {
  .as-layout { flex-direction: column; padding: 10px; gap: 10px; }
  /* Map is the point of the tool — show it first on mobile, list below. */
  .as-map-wrap { order: 1; }
  .as-sidebar { order: 2; }

  /* List view: user tapped "List" — hide the map, let the sidebar take
     over the full screen as a proper scrollable company list, like
     browsing a page rather than squinting at a 34vh strip. */
  .as-layout-list-view .as-map-wrap { display: none; }
  .as-layout-list-view .as-sidebar {
    max-height: none;
    flex: 1 1 auto;
  }
}

/* ---------- sidebar ---------- */
.as-sidebar {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  background: var(--as-panel);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius-lg);
  overflow: hidden;
  min-height: 0;
}
@media (max-width: 860px) {
  .as-sidebar { flex: none; max-height: 34vh; }
}

.as-sidebar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--as-line);
  flex: none;
}
.as-sidebar-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--as-ink);
}
.as-count {
  font-family: var(--as-mono);
  font-size: 0.72rem;
  color: var(--as-cyan);
}

/* ---------- favorites toggle ---------- */
.as-tool-row-fav {
  padding: 10px 16px;
  border-bottom: 1px solid var(--as-line);
}
.as-fav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--as-bg-2);
  border: 1px solid var(--as-line);
  color: var(--as-ink-dim);
  font-family: var(--as-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--as-radius-sm);
  cursor: pointer;
  min-height: 40px;
  transition: all 0.15s ease;
}
.as-fav-toggle svg { flex: none; color: #e2597a; }
.as-fav-toggle-label { flex: 1 1 auto; text-align: left; }
.as-fav-count {
  font-family: var(--as-mono);
  font-size: 0.74rem;
  color: var(--as-ink-faint);
  flex: none;
  background: var(--as-panel-2);
  border-radius: 999px;
  padding: 1px 7px;
}
.as-fav-toggle:hover { border-color: var(--as-line-strong); color: var(--as-ink); }
.as-fav-toggle.active {
  background: rgba(226, 89, 122, 0.12);
  border-color: rgba(226, 89, 122, 0.4);
  color: var(--as-ink);
}
.as-fav-toggle.active .as-fav-count { background: rgba(226, 89, 122, 0.25); color: var(--as-ink); }

/* ---------- toolbar: commute radius + status filter ---------- */
.as-toolbar {
  flex: none;
  border-bottom: 1px solid var(--as-line);
}
.as-tool-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--as-ink-dim);
  font-family: var(--as-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.as-tool-toggle:hover { color: var(--as-cyan); }
.as-tool-toggle svg { flex: none; }
.as-tool-toggle span { flex: 1 1 auto; text-align: left; }
.as-tool-chevron { transition: transform 0.18s ease; }
.as-tool-toggle[aria-expanded="true"] .as-tool-chevron { transform: rotate(180deg); }
.as-commute-panel {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.as-field-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--as-ink-faint);
  font-weight: 600;
}
.as-commute-input-row {
  display: flex;
  gap: 6px;
}
.as-commute-address {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--as-bg-2);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius-sm);
  color: var(--as-ink);
  font-family: var(--as-sans);
  font-size: 0.82rem;
  padding: 7px 9px;
}
@media (max-width: 640px) {
  /* iOS Safari auto-zooms the page on any input focus if its computed
     font-size is under 16px — forcing 16px here kills that jarring zoom. */
  .as-commute-address, .as-search { font-size: 16px; }
}
.as-commute-address:focus { outline: none; border-color: var(--as-cyan); }
.as-tool-btn {
  flex: none;
  background: var(--as-cyan);
  color: #0b1220;
  border: none;
  border-radius: var(--as-radius-sm);
  font-family: var(--as-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 38px;
}
.as-tool-btn:hover { background: var(--as-cyan-deep); }
.as-tool-btn-ghost {
  background: var(--as-bg-2);
  color: var(--as-ink-dim);
  border: 1px solid var(--as-line);
  align-self: flex-start;
}
.as-tool-btn-ghost:hover { color: var(--as-ink); border-color: var(--as-line-strong); }
.as-commute-radius-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.as-commute-radius-row input[type="range"] {
  flex: 1 1 auto;
  accent-color: var(--as-cyan);
}
.as-commute-radius-val {
  font-family: var(--as-mono);
  font-size: 0.76rem;
  color: var(--as-cyan);
  flex: none;
  min-width: 3.2em;
  text-align: right;
}
.as-commute-status {
  margin: 0;
  font-size: 0.74rem;
  color: var(--as-ink-faint);
  min-height: 1.1em;
}
.as-commute-status.ok { color: var(--as-cyan); }
.as-commute-status.err { color: #e2555a; }
.as-tool-row {
  padding: 12px 16px 14px;
}
.as-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.as-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--as-bg-2);
  border: 1px solid var(--as-line);
  color: var(--as-ink-dim);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.as-category-chip:has(input:checked) {
  color: var(--as-ink);
  border-color: var(--as-line-strong);
  background: var(--as-panel-2);
}
.as-category-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.as-category-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}
.as-category-chip:has(input:checked) .as-category-chip-dot { opacity: 1; }
.as-category-chip-prime .as-category-chip-dot { background: var(--as-cyan); }
.as-category-chip-supplier .as-category-chip-dot { background: var(--as-amber); }
.as-category-chip-startup .as-category-chip-dot { background: #5ad46a; }
.as-search-wrap {
  position: relative;
  padding: 10px 14px;
  border-bottom: 1px solid var(--as-line);
  flex: none;
}
.as-search-icon {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--as-ink-faint);
  pointer-events: none;
}
.as-search {
  width: 100%;
  background: var(--as-bg-2);
  border: 1px solid var(--as-line);
  border-radius: var(--as-radius-sm);
  color: var(--as-ink);
  font-family: var(--as-sans);
  font-size: 0.86rem;
  padding: 8px 10px 8px 32px;
}
.as-search:focus { outline: none; border-color: var(--as-cyan); }
.as-search::placeholder { color: var(--as-ink-faint); }

.as-company-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
}
.as-company-group {
  border-radius: var(--as-radius-md);
  transition: background 0.15s ease;
}
.as-company-group:hover { background: var(--as-bg-2); }
.as-company-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  cursor: pointer;
}
.as-company-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.as-company-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--as-ink);
}
.as-company-sector {
  display: block;
  font-size: 0.72rem;
  color: var(--as-ink-faint);
  font-weight: 400;
  margin-top: 1px;
}
.as-office-count {
  margin-left: auto;
  font-family: var(--as-mono);
  font-size: 0.68rem;
  color: var(--as-ink-faint);
  flex: none;
}
.as-heart-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--as-ink-faint);
  cursor: pointer;
  transition: all 0.15s ease;
}
.as-heart-btn:hover { color: #e2597a; background: rgba(226, 89, 122, 0.1); }
.as-heart-btn.is-fav { color: #e2597a; }
@media (max-width: 640px) {
  .as-heart-btn { width: 36px; height: 36px; }
}
.as-office-list {
  padding: 0 10px 8px 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.as-office-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--as-ink-dim);
  font-family: var(--as-sans);
  font-size: 0.8rem;
  padding: 5px 8px;
  border-radius: var(--as-radius-sm);
  cursor: pointer;
  transition: all 0.14s ease;
  min-height: 34px;
}
@media (max-width: 640px) {
  .as-office-btn { min-height: 40px; display: flex; align-items: center; }
  .as-company-head { min-height: 44px; }
  .as-category-chip { padding: 8px 12px 8px 10px; }
}
.as-office-btn:hover { background: var(--as-bg-2); color: var(--as-cyan); }

/* ---------- map ---------- */
.as-map-wrap {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 320px;
  position: relative;
  border-radius: var(--as-radius-lg);
  overflow: hidden;
  border: 1px solid var(--as-line);
  margin-left: 16px;
}
@media (max-width: 860px) {
  .as-map-wrap { margin-left: 0; min-height: 46vh; flex: 1 1 auto; }
}
.as-map { width: 100%; height: 100%; background: var(--as-bg-2); }

.as-map-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  max-width: calc(100% - 24px);
  background: color-mix(in srgb, var(--as-panel) 92%, transparent);
  border: 1px solid var(--as-line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.72rem;
  color: var(--as-ink-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  backdrop-filter: blur(6px);
}
.as-legend-title {
  font-weight: 700;
  color: var(--as-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.66rem;
}
.as-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  white-space: nowrap;
}
.as-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.as-legend-prime { background: var(--as-cyan); }
.as-legend-supplier { background: var(--as-amber); }
.as-legend-startup { background: #5ad46a; }
.as-legend-sep { color: var(--as-ink-faint); }
.as-legend-hint { color: var(--as-ink-faint); font-weight: 400; white-space: nowrap; }
@media (max-width: 640px) {
  .as-map-legend { bottom: 8px; left: 8px; right: 8px; border-radius: var(--as-radius-md); }
  .as-legend-hint { display: none; }
}

/* ---------- leaflet overrides: dark theme ---------- */
.leaflet-container { background: var(--as-bg-2); font-family: var(--as-sans); }
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--as-panel) 85%, transparent) !important;
  color: var(--as-ink-faint) !important;
  font-size: 0.65rem !important;
}
.leaflet-control-attribution a { color: var(--as-ink-dim) !important; }
.leaflet-control-zoom a {
  background: var(--as-panel) !important;
  color: var(--as-ink) !important;
  border-color: var(--as-line) !important;
}
.leaflet-control-zoom a:hover { background: var(--as-panel-2) !important; color: var(--as-cyan) !important; }
.leaflet-popup-content-wrapper {
  background: var(--as-panel);
  color: var(--as-ink);
  border-radius: var(--as-radius-md);
  border: 1px solid var(--as-line-strong);
}
.leaflet-popup-tip { background: var(--as-panel); border: 1px solid var(--as-line-strong); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--as-sans); }
.leaflet-tooltip.as-marker-tooltip {
  background: var(--as-panel);
  color: var(--as-ink);
  border: 1px solid var(--as-line-strong);
  border-radius: var(--as-radius-sm);
  font-family: var(--as-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
}
.leaflet-tooltip.as-marker-tooltip::before { border-top-color: var(--as-line-strong); }
.as-popup-company { font-weight: 700; font-size: 0.92rem; margin: 0 0 2px; }
.as-popup-office { font-size: 0.78rem; color: var(--as-ink-dim); margin: 0 0 8px; }
.as-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0b1220;
  background: var(--as-cyan);
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
}
.as-popup-btn:hover { background: var(--as-cyan-deep); }

/* custom marker — a small plain dot, colored by category. Deliberately
   tiny and simple (not a badge/glyph) so 35+ pins don't visually dominate
   the map — category is still readable via the legend, sidebar dots, and
   filter chips, not by squinting at each pin's shape. */
.as-pin {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.15s ease;
  /* Visible dot stays small/dense (35+ pins), but the actual tappable
     area is padded out via a transparent halo so fingers on mobile can
     hit ~32px targets without the map looking cluttered. */
  position: relative;
}
.as-pin::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.as-pin:hover { transform: scale(1.35); }
.as-pin.as-pin-outside {
  opacity: 0.25;
  filter: grayscale(70%);
}
.as-pin.as-pin-favorite {
  border-color: #e2597a;
  box-shadow: 0 0 0 2px rgba(226, 89, 122, 0.35), 0 1px 4px rgba(0, 0, 0, 0.55);
}
/* commute radius circle */
.as-commute-circle {
  stroke: var(--as-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  fill: rgba(79, 214, 232, 0.06);
}
/* home base marker — little stick figure standing on a glowing pad,
   deliberately not pin-shaped so it never reads as "just another
   company" at a glance. */
.as-home-marker {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 26px;
  height: 30px;
}
.as-home-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240, 168, 60, 0.55) 0%, rgba(240, 168, 60, 0) 72%);
  box-shadow: 0 0 10px 2px rgba(240, 168, 60, 0.35);
}
.as-home-figure {
  position: relative;
  z-index: 1;
  color: var(--as-amber);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.as-office-row .as-office-btn { flex: 1 1 auto; }

/* ---------- detail panel (slide-up on mobile / side card on desktop) ---------- */
.as-detail-panel {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  max-height: 60vh;
  overflow-y: auto;
  background: var(--as-panel);
  border: 1px solid var(--as-line-strong);
  border-radius: var(--as-radius-lg);
  padding: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--as-ease);
}
.as-detail-panel.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  /* Bottom sheet on mobile instead of a floating card — full width,
     anchored to the screen edge, thumb-reachable, no risk of overlapping
     the sidebar/map controls at narrow widths. */
  .as-detail-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 50vh;
    padding: 16px 16px 18px;
    transform: translateY(100%);
  }
  .as-detail-panel.show { transform: translateY(0); }
  .as-detail-btn { padding: 11px 16px; }
}
.as-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--as-bg-2);
  color: var(--as-ink-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.as-detail-close:hover { color: var(--as-cyan); }
.as-detail-heart {
  position: absolute;
  top: 10px;
  right: 46px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--as-bg-2);
  color: var(--as-ink-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.as-detail-heart:hover { color: #e2597a; }
.as-detail-heart.is-fav { color: #e2597a; background: rgba(226, 89, 122, 0.15); }
@media (max-width: 640px) {
  .as-detail-heart { width: 32px; height: 32px; right: 52px; }
}
.as-detail-eyebrow {
  font-family: var(--as-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--as-ink-faint);
  margin: 0 0 4px;
}
.as-detail-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 2px; padding-right: 20px; }
.as-detail-sector { font-size: 0.78rem; color: var(--as-cyan); margin: 0 0 12px; }
.as-detail-office { font-weight: 600; font-size: 0.88rem; margin: 0 0 4px; }
.as-detail-address { font-size: 0.8rem; color: var(--as-ink-dim); margin: 0 0 10px; line-height: 1.4; }
.as-detail-note { font-size: 0.8rem; color: var(--as-ink-dim); line-height: 1.5; margin: 0 0 14px; padding: 10px; background: var(--as-bg-2); border-radius: var(--as-radius-sm); border-left: 2px solid var(--as-cyan); }
.as-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.as-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.as-detail-btn-primary { background: var(--as-cyan); color: #0b1220; }
.as-detail-btn-primary:hover { background: var(--as-cyan-deep); transform: translateY(-1px); }
.as-detail-btn-ghost { background: var(--as-bg-2); color: var(--as-ink-dim); border: 1px solid var(--as-line); }
.as-detail-btn-ghost:hover { color: var(--as-ink); border-color: var(--as-line-strong); }
.as-detail-btn svg { width: 13px; height: 13px; }

/* ---------- footer ---------- */
.as-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 20px 16px;
  font-size: 0.7rem;
  color: var(--as-ink-faint);
}
@media (max-width: 640px) {
  .as-footer { padding: 8px 16px 14px; font-size: 0.66rem; line-height: 1.5; }
}
.as-footer a { color: var(--as-cyan); text-decoration: none; }
.as-footer a:hover { text-decoration: underline; }
