/* Layout: one phone-width app column (max 480px), RTL, frosted-glass cards over a fixed space-gray/slate field; floating glass dock + voice FAB at the bottom. Single committed dark look. */
:root {
  --space: #0b0f15;
  --slate: #17233a;
  --slate-2: #22324f;
  --glass: rgba(170, 200, 235, 0.07);
  --glass-strong: rgba(170, 200, 235, 0.12);
  --edge: rgba(200, 225, 255, 0.14);
  --edge-hi: rgba(225, 245, 255, 0.28);
  --fg: #f2f7fc;
  --fg-2: #a9b8cc;
  --fg-3: #6f8098;
  --cyan: #38d6ff;
  --blue: #2f86ff;
  --glow: rgba(56, 214, 255, 0.45);
  --ok: #3fd9a4;
  --warn: #ffbf5a;
  --bad: #ff7a86;
  --f-display: "Rubik", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Hebrew", "Rubik", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --r-card: 22px;
  --r-pill: 999px;
  color-scheme: dark;
}
html, body { height: 100%; }
body {
  background: var(--space);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(47, 134, 255, 0.28), transparent 70%),
    radial-gradient(50% 35% at 0% 30%, rgba(56, 214, 255, 0.14), transparent 70%),
    radial-gradient(80% 50% at 50% 110%, rgba(34, 50, 79, 0.9), transparent 70%),
    linear-gradient(180deg, var(--space) 0%, #0f1724 55%, var(--slate) 100%);
}
.app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding-inline: 16px;
  padding-block: 18px 150px;
  display: flex; flex-direction: column; gap: 22px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
a { color: var(--cyan); }

.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px rgba(255,255,255,0.02), 0 10px 30px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hello { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hello small { color: var(--fg-2); font-size: 13px; }
.hello h1 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.sync {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-pill);
  font-size: 12px; color: var(--fg-2); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); flex: none; }
.dot.live { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.err { background: var(--bad); }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 132px; align-items: center; gap: 8px; padding: 20px 20px 18px; }
.hero::after {
  content: ""; position: absolute; inset-inline-start: -30px; bottom: -60px; width: 220px; height: 160px;
  background: radial-gradient(closest-side, rgba(56,214,255,0.22), transparent); pointer-events: none;
}
.hero-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; color: var(--cyan); letter-spacing: 0.04em; font-weight: 500; }
.hero-num { font-family: var(--f-display); font-weight: 700; font-size: 54px; line-height: 1; letter-spacing: -0.03em; text-shadow: 0 0 28px var(--glow); font-variant-numeric: tabular-nums; }
.hero-sub { color: var(--fg-2); font-size: 14px; text-wrap: balance; }
.robot { width: 132px; height: 150px; position: relative; z-index: 1; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); }
.robot svg { width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .robot svg { animation: hover 5s ease-in-out infinite; }
  .eye { animation: blink 6s infinite; transform-origin: center; transform-box: fill-box; }
  .holo { animation: holo 2.8s ease-in-out infinite; }
}
@keyframes hover { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1) } 96% { transform: scaleY(0.1) } }
@keyframes holo { 0%,100% { opacity: 0.55 } 50% { opacity: 1 } }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; text-align: start; border-radius: 18px; }
.kpi b { font-family: var(--f-data); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--fg-2); }
.kpi.k-int b { color: var(--ok); }
.kpi.k-new b { color: var(--cyan); }

/* Sections */
.sec { display: flex; flex-direction: column; gap: 12px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec-h h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.sec-h button { color: var(--cyan); font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 10px; }

/* Job card */
.job { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 14px; text-align: start; width: 100%; transition: transform .15s ease, border-color .15s ease; }
.job:hover { border-color: var(--edge-hi); }
.job:active { transform: scale(0.985); }
.job-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.job-title { font-weight: 600; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.job-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--fg-2); font-size: 12.5px; }
.job-meta .co { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

.ring {
  --p: 0; --c: var(--fg-3);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #111a28; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.ring b { position: relative; font-family: var(--f-data); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring.hot { --c: var(--cyan); box-shadow: 0 0 18px rgba(56,214,255,0.35); }
.ring.hot b { color: var(--cyan); }
.ring.good { --c: var(--blue); }
.ring.mid { --c: #6d8fb8; }
.ring.none b { color: var(--fg-3); font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 500; border: 1px solid currentColor; white-space: nowrap; line-height: 1.6; }
.st-new { color: var(--cyan); background: rgba(56,214,255,0.08); }
.st-applied { color: #7fb4ff; background: rgba(47,134,255,0.1); }
.st-int { color: var(--ok); background: rgba(63,217,164,0.1); }
.st-offer { color: var(--warn); background: rgba(255,191,90,0.1); }
.st-rej { color: var(--bad); background: rgba(255,122,134,0.08); opacity: 0.85; }
.st-other { color: var(--fg-2); }

/* Jobs tab controls */
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; padding: 13px 0; outline: none; }
.search input::placeholder { color: var(--fg-3); }
.search svg { flex: none; color: var(--fg-3); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--fg-2); border: 1px solid var(--edge); background: var(--glass); }
.fchip[aria-pressed="true"] { color: #04121a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px var(--glow); font-weight: 600; }
.fchip i { font-style: normal; font-family: var(--f-data); font-size: 11.5px; opacity: 0.75; margin-inline-start: 4px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--fg-2); font-size: 13px; }
.sortbtn { color: var(--cyan); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }

/* Pipeline */
.funnel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,0.06); gap: 2px; }
.bar span { display: block; height: 100%; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 16px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { font-family: var(--f-data); margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.lanes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; padding-bottom: 6px; scrollbar-width: none; }
.lanes::-webkit-scrollbar { display: none; }
.lane { flex: 0 0 82%; scroll-snap-align: center; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; }
.lane-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lane-h b { font-family: var(--f-data); color: var(--fg-2); font-size: 13px; }
.lane-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); text-align: start; width: 100%; }
.mini .t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini .c { font-size: 12px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .s { font-family: var(--f-data); font-size: 13px; color: var(--cyan); }
.mini > div { min-width: 0; }

/* States */
.notice { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--fg-2); }
.notice strong { color: var(--fg); display: block; margin-bottom: 2px; }
.notice button { color: var(--cyan); margin-top: 6px; font-size: 13px; }
.empty { padding: 26px 18px; text-align: center; color: var(--fg-2); font-size: 14px; }
.skel { height: 82px; border-radius: var(--r-card); background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: sh 1.4s linear infinite; } }
@keyframes sh { to { background-position: -200% 0; } }

/* Dock + FAB */
.dock-wrap { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.dock { pointer-events: auto; max-width: 448px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center; height: 66px; border-radius: 26px; padding: 0 6px; background: rgba(20, 30, 46, 0.62); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--fg-3); padding: 8px 0; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--cyan); }
.tab[aria-current="page"] svg { filter: drop-shadow(0 0 6px var(--glow)); }
.fab {
  justify-self: center; transform: translateY(-22px);
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(120, 230, 255, 0.55), rgba(47, 134, 255, 0.35) 60%, rgba(20, 40, 70, 0.6));
  border: 1px solid rgba(180, 240, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(56,214,255,0.08), 0 0 32px var(--glow), inset 0 1px 0 rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff;
}
.fab svg { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(255,255,255,0.6)); }
@media (prefers-reduced-motion: no-preference) {
  .fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(56,214,255,0.45); animation: pulse 2.6s ease-out infinite; }
}
@keyframes pulse { from { transform: scale(0.9); opacity: 0.9 } to { transform: scale(1.35); opacity: 0 } }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 8, 14, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 88%; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; border-bottom: 0; background: rgba(18, 27, 42, 0.92); padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
.grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.2); margin: 0 auto 12px; flex: none; }
.sheet-scroll { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding-bottom: 4px; }
.sheet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-h h3 { margin: 0; font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
.x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.07); flex: none; color: var(--fg-2); }
.detail-top { display: flex; align-items: center; gap: 16px; }
.detail-top .ring { width: 76px; height: 76px; }
.detail-top .ring::before { inset: 7px; }
.detail-top .ring b { font-size: 22px; }
.kv { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--fg-2); font-size: 13.5px; }
.block { display: flex; flex-direction: column; gap: 6px; }
.block h4 { margin: 0; font-size: 12px; font-weight: 600; color: var(--fg-3); letter-spacing: 0.04em; }
.block p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); font-size: 14px; line-height: 1.6; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--cyan), var(--blue)); color: #03111c; font-weight: 600; text-decoration: none; box-shadow: 0 6px 22px rgba(47,134,255,0.35); }
.ghost { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--edge); color: var(--fg-2); font-size: 13px; align-self: flex-start; }
.ro { font-size: 12px; color: var(--fg-3); text-align: center; }

/* Ask */
.ask-intro { display: flex; gap: 12px; align-items: center; }
.ask-intro .mini-bot { width: 46px; height: 46px; flex: none; }
.ask-intro p { margin: 0; color: var(--fg-2); font-size: 13.5px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { padding: 8px 12px; border-radius: 14px; font-size: 13px; color: var(--fg); background: rgba(56,214,255,0.08); border: 1px solid rgba(56,214,255,0.3); text-align: start; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
.msg.me { align-self: flex-start; background: linear-gradient(180deg, rgba(56,214,255,0.22), rgba(47,134,255,0.2)); border: 1px solid rgba(56,214,255,0.35); border-end-start-radius: 6px; }
.msg.ai { align-self: flex-end; background: rgba(255,255,255,0.06); border: 1px solid var(--edge); border-end-end-radius: 6px; }
.msg.ai.thinking { color: var(--fg-3); }
.msg.err { color: var(--bad); border-color: rgba(255,122,134,0.35); }
.composer { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 6px; border-radius: 18px; margin-top: 12px; flex: none; }
.composer input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: inherit; padding: 10px 10px; outline: none; }
.composer input::placeholder { color: var(--fg-3); }
.send { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, var(--cyan), var(--blue)); color: #03111c; flex: none; }
.send:disabled { opacity: 0.4; cursor: default; }
.hint { font-size: 11.5px; color: var(--fg-3); margin-top: 8px; text-align: center; }

/* Shared by both entries */
[hidden] { display: none !important; }
.footer-link { align-self: center; color: var(--fg-3); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.mic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--cyan); background: rgba(56,214,255,0.1); border: 1px solid rgba(56,214,255,0.35); }
.mic.on { color: #03111c; background: var(--cyan); box-shadow: 0 0 18px var(--glow); }
@media (prefers-reduced-motion: no-preference) { .mic.on { animation: micpulse 1.2s ease-in-out infinite; } }
@keyframes micpulse { 50% { box-shadow: 0 0 4px var(--glow); } }

/* Installed app (PWA): the page owns its own reset and safe areas, which the artifact shell provides otherwise */
html.pwa { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--space); }
html.pwa body { margin: 0; }
html.pwa img { max-width: 100%; }
