/* Product demos on the home page and in the demo video: the Auto-apply page (tick jobs, progress) and the
   extension filling an application. Built and played by autoapply-demo.js. Example companies and people only. */

.cfa, .cff {
  --a-ink: var(--cf-ink, #0b0b0c); --a-muted: var(--cf-muted, #6b6b70); --a-line: var(--cf-line, #ebe9e6);
  --a-soft: var(--cf-soft, #f5f3f1); --a-accent: var(--cf-accent, #ff531f);
  --a-sky: #0369a1; --a-amber: #b45309; --a-green: #0f7a3d;
  position: relative; min-width: 0; border-radius: 18px; background: #fff; border: 1px solid var(--a-line);
  box-shadow: 0 24px 60px -28px rgba(20, 16, 12, .28); overflow: hidden; color: var(--a-ink);
  font-size: 13px; line-height: 1.35; text-align: left;
}
.cfa *, .cff * { box-sizing: border-box; }
.cfa-tag, .cff-tag {
  position: absolute; right: 10px; bottom: 8px; z-index: 3; font-size: 10.5px; color: var(--a-muted);
  background: rgba(255, 255, 255, .9); padding: 1px 6px; border-radius: 5px;
}

/* ------------------------------------------------------------ Auto-apply page */
.cfa-head { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--a-line); }
.cfa-tabs { display: flex; gap: 2px; flex: none; }
.cfa-tabs span { padding: 5px 10px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--a-muted); }
.cfa-tabs span.on { background: var(--a-ink); color: #fff; }
.cfa-stats { display: flex; gap: 14px; margin-left: auto; }
.cfa-stat b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; transition: color .3s; }
.cfa-stat span { display: block; font-size: 10.5px; color: var(--a-muted); white-space: nowrap; }
.cfa-stat.sky b { color: var(--a-sky); }
.cfa-stat.amber b { color: var(--a-amber); }

.cfa-table { width: 100%; border-collapse: collapse; }
.cfa-table th { padding: 7px 0; font-size: 11px; font-weight: 500; color: var(--a-muted); text-align: left; border-bottom: 1px solid var(--a-line); }
.cfa-table td { padding: 9px 0; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.cfa-table th:first-child, .cfa-table td:first-child { width: 38px; padding-left: 14px; }
.cfa-table th:last-child, .cfa-table td:last-child { padding-right: 14px; text-align: right; width: 150px; }
.cfa-table tr { transition: background .25s; }
.cfa-table tr.on { background: #fff6f2; }
.cfa-box {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid #c9c5c0; background: #fff; transition: background .15s, border-color .15s, transform .15s;
}
.cfa-table tr.on .cfa-box { background: var(--a-accent); border-color: var(--a-accent); }
.cfa-table tr.on .cfa-box::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.cfa-box.press { transform: scale(.82); }
.cfa-job { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cfa-logo {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.cfa-job p { margin: 0; min-width: 0; }
.cfa-job b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfa-job small { display: block; font-size: 11.5px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfa-ago { font-size: 11.5px; color: var(--a-muted); white-space: nowrap; padding-right: 10px; }
.cfa-ago.fresh { color: var(--a-green); font-weight: 600; }
.cfa-st { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cfa-st i { font-style: normal; font-weight: 400; color: var(--a-muted); margin-left: 5px; font-variant-numeric: tabular-nums; }
.cfa-st.run { color: var(--a-accent); }
.cfa-st.wait { color: var(--a-muted); font-weight: 400; }
.cfa-st.ready { color: var(--a-sky); }
.cfa-st.needs { color: var(--a-amber); }

.cfa-foot { padding: 12px 14px 14px; }
.cfa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px;
  background: var(--a-ink); color: #fff; font-weight: 600; font-size: 14px; transition: opacity .2s, transform .15s, background .2s;
}
.cfa-btn.off { opacity: .35; }
.cfa-btn.press { transform: scale(.97); background: #2a2a2e; }
.cfa-btn svg { width: 15px; height: 15px; }
.cfa-btn-note { margin-top: 6px; text-align: center; font-size: 11px; color: var(--a-muted); }

.cfa-prog { border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; }
.cfa-prog-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--a-line); }
.cfa-prog-head div { flex: 1; min-width: 0; }
.cfa-prog-head b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.cfa-prog-head small { display: block; font-size: 11px; color: var(--a-muted); min-height: 14px; }
.cfa-stop { flex: none; padding: 4px 10px; border: 1px solid var(--a-line); border-radius: 8px; font-size: 11.5px; font-weight: 600; }
.cfa-prog ul { list-style: none; margin: 0; padding: 4px 0; }
.cfa-prog li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 12px; transition: background .3s; }
.cfa-prog li.live { background: #fff6f2; }
.cfa-ico { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 1.5px solid #cfcbc6; position: relative; }
.cfa-ico.run { border-color: var(--a-accent); border-right-color: transparent; animation: cfa-spin .8s linear infinite; }
.cfa-ico.ready { border: 0; background: var(--a-sky); }
.cfa-ico.needs { border: 0; background: var(--a-amber); }
.cfa-ico.ready::after { content: ""; position: absolute; left: 4px; top: 3.5px; width: 6px; height: 3px; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.cfa-ico.needs::after { content: "!"; position: absolute; inset: 0; color: #fff; font-size: 10px; font-weight: 700; text-align: center; line-height: 14px; }
@keyframes cfa-spin { to { transform: rotate(360deg); } }
.cfa-prog li div { flex: 1; min-width: 0; }
.cfa-prog li b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfa-prog li b span { font-weight: 400; color: var(--a-muted); }
.cfa-prog li small { display: block; font-size: 11.5px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cfa-prog li small.needs { color: var(--a-amber); }
.cfa-prog li small.ready { color: var(--a-sky); }
.cfa-pill { flex: none; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--a-muted); }
.cfa-pill.go { background: var(--a-ink); color: #fff; }

/* Fixed heights so nothing on the page moves while it plays. */
.cfa-foot-in { position: relative; height: 226px; }
.cfa-foot-in > * { position: absolute; inset: 0 0 auto; transition: opacity .35s, transform .35s; }
.cfa-foot-in > .hide { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* ------------------------------------------------------------ The extension filling a form */
.cff-chrome { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; background: #ece9e6; }
.cff-dots { display: flex; gap: 5px; padding-bottom: 8px; }
.cff-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3cfca; }
.cff-tabs { display: flex; gap: 4px; min-width: 0; }
.cff-tab {
  display: flex; align-items: center; gap: 6px; max-width: 190px; padding: 6px 10px; border-radius: 8px 8px 0 0;
  font-size: 11px; color: var(--a-muted); white-space: nowrap; overflow: hidden;
}
.cff-tab.on { background: #fff; color: var(--a-ink); }
.cff-tab span { overflow: hidden; text-overflow: ellipsis; }
.cff-fav { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.cff-url { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border-bottom: 1px solid var(--a-line); }
.cff-url div { flex: 1; min-width: 0; padding: 4px 10px; border-radius: 999px; background: var(--a-soft); font-size: 11px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cff-ext { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--a-accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.cff-page { position: relative; height: 470px; overflow: hidden; background: #fff; }
.cff-scroll { padding: 18px 22px 30px; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.cff-co { display: flex; align-items: center; gap: 10px; }
.cff-co .cfa-logo { width: 34px; height: 34px; }
.cff-co b { display: block; font-size: 16px; }
.cff-co small { display: block; font-size: 11.5px; color: var(--a-muted); }
.cff-h { margin: 16px 0 8px; font-size: 13px; font-weight: 700; }
.cff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cff-f label { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; }
.cff-f label em { font-style: normal; color: #c0352b; }
.cff-in {
  height: 32px; padding: 7px 9px; border: 1px solid #d6d2cd; border-radius: 7px; font-size: 12.5px; white-space: nowrap; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.cff-in.hot { border-color: var(--a-accent); box-shadow: 0 0 0 3px rgba(255, 83, 31, .15); }
.cff-in.done { background: #fcfbfa; }
.cff-in .caret { display: inline-block; width: 1px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--a-ink); animation: cff-blink .9s steps(1) infinite; }
@keyframes cff-blink { 50% { opacity: 0; } }
.cff-file { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px dashed #cfcbc6; border-radius: 8px; font-size: 12px; color: var(--a-muted); transition: all .3s; }
.cff-file.done { border-style: solid; border-color: #b9e3c8; background: #f2fbf5; color: var(--a-ink); }
.cff-file svg { flex: none; width: 16px; height: 16px; }
.cff-file small { margin-left: auto; color: var(--a-green); font-weight: 600; font-size: 11px; }
.cff-q { margin-top: 10px; }
.cff-q > div { font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.cff-radios { display: flex; gap: 8px; }
.cff-radio { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #d6d2cd; border-radius: 7px; font-size: 12px; transition: all .25s; }
.cff-radio::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #bdb8b2; transition: all .2s; }
.cff-radio.on { border-color: var(--a-accent); background: #fff6f2; }
.cff-radio.on::before { border: 3.5px solid var(--a-accent); }
.cff-why { margin-top: 3px; font-size: 10.5px; color: var(--a-green); min-height: 13px; }
.cff-submit {
  margin-top: 18px; display: inline-flex; padding: 9px 22px; border-radius: 8px; background: #1f2937; color: #fff; font-weight: 600; font-size: 13px;
  transition: box-shadow .3s;
}
.cff-submit.ask { box-shadow: 0 0 0 4px rgba(3, 105, 161, .25); animation: cff-ring 1.6s ease-in-out infinite; }
@keyframes cff-ring { 50% { box-shadow: 0 0 0 8px rgba(3, 105, 161, .1); } }

/* The extension's panel, on the page. */
.cff-panel {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 252px; border-radius: 14px; background: #fff;
  border: 1px solid var(--a-line); box-shadow: 0 18px 40px -16px rgba(20, 16, 12, .35); overflow: hidden;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.cff-panel.hide { opacity: 0; transform: translateY(14px); }
.cff-p-head { display: flex; align-items: center; gap: 7px; padding: 8px 11px; background: var(--a-ink); color: #fff; font-size: 11.5px; font-weight: 600; }
.cff-p-head i { font-style: normal; margin-left: auto; font-weight: 400; opacity: .7; font-variant-numeric: tabular-nums; }
.cff-p-body { padding: 10px 11px 11px; }
.cff-p-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.cff-p-text { margin-top: 4px; font-size: 11.5px; color: var(--a-muted); min-height: 30px; }
.cff-p-res { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 8px; border-radius: 9px; background: var(--a-soft); transition: opacity .3s; }
.cff-p-res.hide { opacity: 0; }
.cff-p-res b { display: block; font-size: 11.5px; }
.cff-p-res small { display: block; font-size: 10.5px; color: var(--a-muted); }
.cff-p-doc { flex: none; width: 22px; height: 28px; border-radius: 3px; background: #fff; border: 1px solid #d6d2cd; position: relative; }
.cff-p-doc::before { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 12px; background: repeating-linear-gradient(#d6d2cd 0 1.5px, transparent 1.5px 4px); }
.cff-p-btns { display: flex; gap: 6px; margin-top: 9px; }
.cff-p-btns span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--a-line); }
.cff-p-btns span.go { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }
.cff-p-btns.hide { display: none; }

@media screen and (max-width: 767px) {
  .cfa-stats .cfa-stat:nth-child(-n+2) { display: none; }
  .cfa-stats { gap: 10px; }
  .cfa-table th:nth-child(3), .cfa-table td:nth-child(3) { display: none; }
  .cfa-table th:last-child, .cfa-table td:last-child { width: 118px; }
  .cff-grid { grid-template-columns: 1fr; }
  .cff-grid .cff-f:nth-child(n+5) { display: none; }
  .cff-panel { width: 220px; }
  .cff-page { height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfa-ico.run, .cff-submit.ask, .cff-in .caret { animation: none; }
}
.cfa .cfa-tag { position: static; display: block; padding: 0 14px 10px; background: none; text-align: right; }
.cff .cff-tag { left: 10px; right: auto; }
