:root {
  color-scheme: dark;
  --paper: #101113;
  --ink: #f5f5f7;
  --surface: #1c1c1e;
  --control: #2c2c2e;
  --muted: #b2b2ba;
  --accent: #b8caff;
  --line: #ffffff22;
  --glass: #27282ccc;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", sans-serif;
}

body { font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .logo { font-family: var(--font); }
header {
  position: sticky;
  top: 12px;
  z-index: 2;
  height: auto;
  min-height: 60px;
  margin: 12px auto 18px;
  padding: 6px 8px 6px 15px;
  box-shadow: 0 8px 32px #0004;
}
header, .tabs {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(24px) saturate(140%);
}
.logo { font-size: 24px; letter-spacing: -.05em; }
.logo span { background: #ffffff13; width: 32px; height: 32px; border-radius: 50%; }
.hero { background: #191b20; border-radius: 32px; }
.hero h1 { letter-spacing: -.065em; line-height: .99; font-weight: 700; }
.hero p, small, .muted { color: var(--muted); }
.pic {
  background-image: linear-gradient(90deg,#191b20 0%,#191b2000 25%), linear-gradient(#13182520,#13182545), url('https://images.unsplash.com/photo-1544776193-352d25ca82cd?auto=format&fit=crop&w=1200&q=85');
}
button, input, select, textarea { min-height: 44px; }
button {
  background: var(--control);
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 600;
}
button:hover { background: #39393d; border-color: var(--line); }
button:active { opacity: .8; }
.solid { background: var(--accent); color: #172345; }
.solid:hover { background: #d1dcff; }
:focus-visible { outline-color: var(--accent); }
.tabs { max-width: 100%; }
.tabs button { background: transparent; }
.tabs [aria-pressed=true] { background: #ffffff25; color: var(--ink); }
input, select, textarea { background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.card { background: var(--surface); border-radius: 24px; }
.cardtop button, #close { min-width: 44px; padding: 0; }
.avatar, .pill { background: var(--control); }
.pill { border-radius: 100px; color: var(--muted); }
dialog { background: var(--surface); }
dialog::backdrop { background: #0009; backdrop-filter: blur(8px); }
#notice { background: var(--control); color: var(--ink); border: 1px solid var(--line); }

@media(max-width:600px) {
  .pic {
    background-image: linear-gradient(#191b20 0%,#191b2000 35%), linear-gradient(#13182520,#13182545), url('https://images.unsplash.com/photo-1544776193-352d25ca82cd?auto=format&fit=crop&w=900&q=85');
  }
  .tabs button { font-size: 14px; }
}

/* Responsive feedback for pointer, touch and keyboard. */
button {
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 220ms ease, opacity 140ms ease,
    transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.solid { box-shadow: inset 0 1px 0 #ffffff65; }
.tabs [aria-pressed=true] { box-shadow: inset 0 1px 0 #ffffff22; }
.cardtop [aria-pressed=true] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:active) { transform: translateY(-1px); }
  .solid:hover:not(:active) {
    box-shadow: inset 0 1px 0 #ffffff80, 0 5px 16px #b8caff30;
  }
}
button:active {
  transform: scale(.97);
  opacity: .94;
  transition-duration: 110ms;
  transition-timing-function: ease-out;
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  button:hover:not(:active), button:active { transform: none; }
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 340px);
  isolation: isolate;
}
.tabs::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 2);
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: #555764;
  box-shadow: inset 0 1px 0 #ffffff27;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}
.tabs:has([data-mode="jobs"][aria-pressed="true"])::before {
  transform: translateX(100%);
}
.tabs button, .tabs button:hover, .tabs [aria-pressed=true] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding-inline: 5px;
  transform: none;
}
.tabs [aria-pressed=false] { color: var(--muted); }
.cardtop { align-items: center; }
.cardtop img, .cardtop .avatar, .cardtop button { flex: none; }
.cardtop h3 { overflow-wrap: anywhere; }
.cardfoot { flex-wrap: wrap; }
.cardfoot button { margin-left: auto; }
@media (max-width: 380px) {
  header #publish { padding-inline: 12px; font-size: 13px; }
  .filters > * { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tabs::before { transition: none; }
}

.path-switch {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.search-progress {
  display: grid;
  gap: 24px;
  width: min(100%, 640px);
  margin-inline: auto;
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid #3a3d4b;
  border-radius: 32px;
  background: #202127;
  animation: search-sheet-in 380ms cubic-bezier(.22, 1, .36, 1) both;
}
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
#search-message {
  display: block;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.search-head small { display: block; margin-top: 8px; line-height: 1.4; }
#search-percent {
  flex: none;
  min-width: 3.5em;
  padding: 8px;
  border-radius: 100px;
  background: #303342;
  color: var(--accent);
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.search-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px 16px;
  border-radius: 21px;
  background: #17181d;
  list-style: none;
  counter-reset: search-step;
}
.search-steps li {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 37px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  counter-increment: search-step;
}
.search-steps li::before {
  content: counter(search-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #434550;
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.search-steps li[aria-current] { color: var(--ink); font-weight: 600; }
.search-steps li[aria-current]::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #172345;
  box-shadow: 0 0 16px #b8caff36;
}
.search-steps li.done::before { content: "✓"; color: var(--accent); }
.search-steps progress {
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 100px;
  overflow: hidden;
  background: #30323c;
  accent-color: var(--accent);
}
.search-steps progress::-webkit-progress-bar { background: #30323c; }
.search-steps progress::-webkit-progress-value { background: var(--accent); border-radius: 100px; }
.search-steps progress::-moz-progress-bar { background: var(--accent); border-radius: 100px; }
.search-steps .done progress { opacity: .52; }
@keyframes search-sheet-in {
  from { opacity: .35; transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .search-progress { animation: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.results-reveal { animation: search-reveal 340ms ease-out both; }
@keyframes search-reveal { from { opacity: .4; transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  .results-reveal { animation: none; }
}


.search-action {
  display: flex;
  margin-bottom: 18px;
}
.search-progress { scroll-margin-top: 88px; }
#run-search[aria-disabled=true] { opacity: .7; cursor: wait; transform: none; }
.header-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 12px; }
.header-actions a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-decoration:none; font-size:14px; }
.header-actions a:hover { text-decoration:underline; }

.web-results { margin-bottom: 24px; }
.web-results a { color: var(--accent); }
