diff --git a/CHANGELOG.md b/CHANGELOG.md
index 07bc4b7..96ae160 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,8 @@ All notable changes to this project are documented here. The project follows
- Attacks can now use Memcached amplification or an ACK flood. Flowspec catches the former; the latter need mitigation.
- Set the number of each optic model directly on land and subsea fiber links. Apply a whole change at once, with its total price shown before buying; removed optics return to the spares shelf.
- Order PNIs with one network or every network at all shared POPs from the NOC Traffic tab: choose a port size, review the total cost, and add missing connections or upgrade smaller ones in one go. Each network keeps its own smallest PNI size and delivery time.
+- Toggle auto-accept in Deals to check ready sales every five real seconds, including their requirements and available service capacity, with a countdown beside eligible Accept buttons.
+- Toggle auto-pay repairs in the NOC to pay for affordable rush repairs automatically while the game runs.
## [1.36.0] — 2026-10-28
diff --git a/site/i18n/de.js b/site/i18n/de.js
index a727eed..8c61828 100644
--- a/site/i18n/de.js
+++ b/site/i18n/de.js
@@ -14,6 +14,11 @@
"action_helpers.too_far_even_at_its_slowest":"Zu weit, selbst in der langsamsten Einstellung: Ein optischer Abschnitt ist hier {span} km lang, die Reichweite beträgt {max} km. Füge einen Regenerator-Standort hinzu (Line System).",
"action_helpers.unlocks_at_customer_level_n":"Wird ab Kundenlevel {n} freigeschaltet.",
"actions.your_router_can_t_take_a":"Dein Router kann keinen {port}-Port aufnehmen. Rüste ihn im Tab Infra auf.",
+"automation.auto_accept_sales":"Deals automatisch annehmen: {state}",
+"automation.auto_pay_repairs":"Reparaturen automatisch zahlen: {state}",
+"automation.next_auto_check":"Zeit bis zur nächsten automatischen Prüfung der Anforderungen.",
+"automation.repairs_when_affordable":"Zahlt während des Spiels automatisch Express-Reparaturen, wenn du sie dir leisten kannst.",
+"automation.sales_every_five_seconds":"Alle 5 Sekunden während des Spiels: Nur Angebote, deren Anforderungen und Kapazität bereit sind, werden angenommen.",
"badges.a_petabit_a_second":"Ein Petabit pro Sekunde",
"badges.a_secret_badge":"Ein geheimes Abzeichen",
"badges.attend_a_conference":"Besuche eine Konferenz.",
diff --git a/site/i18n/es.js b/site/i18n/es.js
index d43cc6e..771cf82 100644
--- a/site/i18n/es.js
+++ b/site/i18n/es.js
@@ -12,6 +12,11 @@
"action_helpers.too_far_even_at_its_slowest":"Demasiado lejos incluso en su ajuste más lento: aquí un tramo óptico mide {span} km y el alcance es de {max} km. Añade un sitio regenerador (Sistema de línea).",
"action_helpers.unlocks_at_customer_level_n":"Se desbloquea en el nivel de cliente {n}.",
"actions.your_router_can_t_take_a":"Tu router no admite un puerto de {port}. Mejóralo en la pestaña Infra.",
+"automation.auto_accept_sales":"Ventas automáticas: {state}",
+"automation.auto_pay_repairs":"Reparaciones pagadas auto: {state}",
+"automation.next_auto_check":"Tiempo hasta la próxima comprobación automática de requisitos.",
+"automation.repairs_when_affordable":"Mientras juegas, paga automáticamente las reparaciones urgentes disponibles si hay fondos suficientes.",
+"automation.sales_every_five_seconds":"Cada 5 segundos mientras juegas, acepta solo ofertas cuyos requisitos se cumplan y tengan capacidad de servicio disponible.",
"badges.a_petabit_a_second":"Un petabit por segundo",
"badges.a_secret_badge":"Una insignia secreta",
"badges.attend_a_conference":"Asiste a una conferencia.",
diff --git a/site/i18n/fr.js b/site/i18n/fr.js
index 723b3ef..ee4ffd8 100644
--- a/site/i18n/fr.js
+++ b/site/i18n/fr.js
@@ -12,6 +12,11 @@
"action_helpers.too_far_even_at_its_slowest":"Trop loin, même au débit le plus lent : ici une portée optique fait {span} km et l’optique va jusqu’à {max} km. Ajoute un site de régénération (Système de ligne).",
"action_helpers.unlocks_at_customer_level_n":"Se débloque au niveau client {n}.",
"actions.your_router_can_t_take_a":"Ton routeur ne supporte pas de port {port}. Mets-le à niveau dans l’onglet Infra.",
+"automation.auto_accept_sales":"Ventes automatiques : {state}",
+"automation.auto_pay_repairs":"Réparations payées auto : {state}",
+"automation.next_auto_check":"Temps avant la prochaine vérification automatique des conditions.",
+"automation.repairs_when_affordable":"Pendant le jeu, paie automatiquement les réparations urgentes disponibles si les fonds suffisent.",
+"automation.sales_every_five_seconds":"Toutes les 5 secondes pendant le jeu, accepte uniquement les offres dont les conditions sont remplies et la capacité de service disponible.",
"badges.a_petabit_a_second":"Un pétabit par seconde",
"badges.a_secret_badge":"Un badge secret",
"badges.attend_a_conference":"Participe à une conférence.",
diff --git a/site/i18n/it.js b/site/i18n/it.js
index 146f787..1e309aa 100644
--- a/site/i18n/it.js
+++ b/site/i18n/it.js
@@ -12,6 +12,11 @@
"action_helpers.too_far_even_at_its_slowest":"Troppo lontano anche alla velocità più bassa: qui una tratta ottica è di {span} km e l’ottica arriva a {max} km. Aggiungi un sito di rigenerazione (Sistema di linea).",
"action_helpers.unlocks_at_customer_level_n":"Si sblocca al livello cliente {n}.",
"actions.your_router_can_t_take_a":"Il tuo router non regge una porta {port}. Aggiornalo nella scheda Infra.",
+"automation.auto_accept_sales":"Vendite automatiche: {state}",
+"automation.auto_pay_repairs":"Riparazioni a pagamento auto: {state}",
+"automation.next_auto_check":"Tempo fino alla prossima verifica automatica dei requisiti.",
+"automation.repairs_when_affordable":"Durante il gioco, paga automaticamente le riparazioni urgenti disponibili se hai abbastanza fondi.",
+"automation.sales_every_five_seconds":"Ogni 5 secondi durante il gioco, accetta solo le offerte con requisiti soddisfatti e capacità di servizio disponibile.",
"badges.a_petabit_a_second":"Un petabit al secondo",
"badges.a_secret_badge":"Un badge segreto",
"badges.attend_a_conference":"Partecipa a una conferenza.",
diff --git a/site/i18n/pt.js b/site/i18n/pt.js
index 99225d6..78fb23c 100644
--- a/site/i18n/pt.js
+++ b/site/i18n/pt.js
@@ -12,6 +12,11 @@
"action_helpers.too_far_even_at_its_slowest":"Longe demais até na configuração mais lenta: um span óptico aqui tem {span} km e ela alcança {max} km. Adicione um site de regeneração (Line system).",
"action_helpers.unlocks_at_customer_level_n":"Desbloqueia no nível de cliente {n}.",
"actions.your_router_can_t_take_a":"Seu router não aguenta uma porta {port}. Faça upgrade na aba Infra.",
+"automation.auto_accept_sales":"Vendas automáticas: {state}",
+"automation.auto_pay_repairs":"Reparações pagas auto: {state}",
+"automation.next_auto_check":"Tempo até à próxima verificação automática dos requisitos.",
+"automation.repairs_when_affordable":"Durante o jogo, paga automaticamente as reparações urgentes disponíveis quando há fundos suficientes.",
+"automation.sales_every_five_seconds":"A cada 5 segundos durante o jogo, aceita apenas ofertas com os requisitos cumpridos e capacidade de serviço disponível.",
"badges.a_petabit_a_second":"Um petabit por segundo",
"badges.a_secret_badge":"Um badge secreto",
"badges.attend_a_conference":"Participe de uma conferência.",
diff --git a/src/game/60-features/80-new-game.js b/src/game/60-features/80-new-game.js
index d9b7b7b..18bc267 100644
--- a/src/game/60-features/80-new-game.js
+++ b/src/game/60-features/80-new-game.js
@@ -1,6 +1,6 @@
function newGame(name,home){
S={v:1,name,asn:200000+Math.floor(_rand()*15000),home,day:0,cash:START_CASH,
- ltv:2,t1v:3,auV:1,seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},pairMet:{},
+ ltv:2,t1v:3,auV:1,autoSales:false,autoRepair:false,seen:NETS.map(n=>n.id),spares:{},pops:{[home]:{day:0,bb:null,boost:0,down:0,routers:1,gen:false}},links:[],nni:[],transit:[],ixp:{},rs:{},peers:{},pni:[],caches:[],biz:[],offers:[],myIx:{},pairMet:{},
done:{},inc:[],ev:{ddosMore:[]},ddosStarts:[],priceMul:1,nextFail:45,nextEvent:40,usedNames:[],stats:{survived:0,incidents:0,peak:0},cnLic:{state:'none'},scrubs:[],scrubMode:'always',capDeal:null,won:false,lost:false,neg:0,loans:[],loanOffers:[],loanStrikes:0,inbox:{items:[],down:{},tiny:{},rep:0,bot:false,log:[],seq:0},hw:{}};
}
diff --git a/src/game/60-features/90-automation.js b/src/game/60-features/90-automation.js
new file mode 100644
index 0000000..8a2b0e8
--- /dev/null
+++ b/src/game/60-features/90-automation.js
@@ -0,0 +1,36 @@
+/* Optional operators use the same sales and repair actions as the player. */
+const AUTO_SALES_MS=5000;
+function autoSalesSeconds(now=performance.now()){if(!S||!S.autoSales)return null;
+ const left=UI.autoGame===S&&autoActive()?AUTO_SALES_MS-(now-UI.autoSalesAt):AUTO_SALES_MS;
+ return Math.max(1,Math.min(AUTO_SALES_MS/1000,Math.ceil(left/1000)));}
+function autoCountdownReady(o){if(!S||!S.autoSales||!o||!(o.exp>S.day)||!bCities(o).every(popUp)||!reqOk(o))return false;
+ const inc=S.inc.map(i=>i.id).join('|');let c=UI.autoReady;
+ // Share capacity trials between views and keep them until the next check, action or incident.
+ if(!c||c.s!==S||c.at!==UI.autoSalesAt||c.inc!==inc||c.event!==S.nextEvent)c=UI.autoReady={s:S,at:UI.autoSalesAt,inc,event:S.nextEvent,offers:new Map()};
+ if(!c.offers.has(o))c.offers.set(o,!!autoOffer(o));return c.offers.get(o);}
+function autoAcceptLabel(o){return tr('common.accept')+(S.autoSales?` ${autoCountdownReady(o)?`(${autoSalesSeconds()})`:''}`:'');}
+function renderAutoCountdown(now=performance.now()){const n=autoSalesSeconds(now);if(UI.autoCount===n&&UI.autoCountResult===R)return;UI.autoCount=n;UI.autoCountResult=R;
+ const offers=new Map((S?S.offers:[]).map(o=>[o.id,o]));
+ for(const el of document.querySelectorAll('[data-auto-sales]'))el.textContent=n!==null&&autoCountdownReady(offers.get(el.dataset.autoSales))?`(${n})`:'';}
+function offerCustomer(o){return {id:o.id,city:o.city,city2:o.city2||null,reqs:o.reqs||[],latMax:o.latMax||null,route:BIZ_T[o.type].scenic?'scenic':BIZ_T[o.type].lat?'fast':'normal',name:o.name,type:o.type,bw:o.bw,rate:o.rate,mood:100,since:S.day,sites:o.sites||null,start:o.start,dur:o.dur,fee:o.fee,link:o.link,slots:o.slots||0,what:o.what,prov:o.prov,due:BIZ_T[o.type].cap?S.day+o.win:undefined};}
+function autoOffer(o){if(!o||!own(BIZ_T,o.type)||!(o.exp>S.day)||!(o.bw>0)||o.rate<0||!bCities(o).length||!bCities(o).every(popUp)||!reqOk(o))return null;
+ const T=BIZ_T[o.type],b=offerCustomer(o);if(T.event&&(!(o.start>S.day)||!(o.dur>0)))return null;
+ if(o.type==='capfib'&&S.biz.some(x=>x.type==='capfib'&&capPend(x)&&!x.link&&((x.city===o.city&&x.city2===o.city2)||(x.city===o.city2&&x.city2===o.city))))return null;
+ if(T.fiber){const l=o.type==='capfib'?capFibLink(b):S.links.find(x=>x.id===o.link);if(!l)return null;b.link=l.id;
+ if(!fiberOk(b)||(o.type==='wwave'&&(!(o.slots>0)||freeCh(l)x.link===l.id&&['pairs','capfib','dfpair'].includes(x.type)))))return null;}
+ const state=S,result=R,hot=UI.hotMap,future=S.biz.some(x=>BIZ_T[x.type].event&&x.start>S.day);
+ // Trial the added demand before signing; failed trials leave the live game untouched.
+ try{S={...S,biz:S.biz};
+ // shortcut: future events reserve capacity together; use per-date trials if separate bookings must share capacity.
+ if(future){S.biz=S.biz.map(x=>BIZ_T[x.type].event&&x.start>S.day?{...x,start:S.day}:x);compute();}
+ const healthy=S.biz.filter(x=>!bizWhy(x).length);if(T.event)b.start=S.day;if(T.cap)b.live=true;S.biz=S.biz.concat(b);compute();
+ return !bizWhy(b).length&&healthy.every(x=>!bizWhy(x).length)?b:null;
+ }finally{S=state;R=result;UI.hotMap=hot;b.start=o.start;if(T.cap)delete b.live;}}
+function autoActive(){return !!(S&&UI.started&&!S.lost&&UI.speed&&$('modal').hidden&&document.visibilityState==='visible');}
+function automationTick(now){if(UI.autoGame!==S){UI.autoGame=S;UI.autoSalesAt=now;}
+ if(!autoActive()){UI.autoSalesAt=now;return;}
+ if(S.autoRepair&&S.inc.length){purgeInc();for(const i of S.inc.slice()){if(!autoActive())break;
+ if(i.type!=='ddos'&&i.until>S.day&&i.cost>0&&i.cost<=S.cash&&!(i.slow&&i.rushed))ACT.fixInc({id:i.id});}}
+ if(!S.autoSales||!autoActive()){UI.autoSalesAt=now;return;}if(now-UI.autoSalesAt{const list=T.names.filter(n=>!S.usedNames.includes(n)),n=list.length?pick(list):pick(T.names);useName(n);return n;};
// A capacity broker finds a buyer at once and keeps 10% of the monthly price.
const o=fiberOffer(t,l,nm,0.9);o.broker=true;S.offers.push(o);toast(tr('customers.listed_with_a_capacity_broker_name',{name:esc(o.name),what:esc(o.what)}),'good');sfx('click');after();},
- accept:({id})=>{const o=S.offers.find(x=>x.id===id);if(!o)return;if(!bHas(o)){toast(tr('customers.you_need_a_pop_in_every'),'bad');return;}
+ autoToggle:({k})=>{if(k!=='autoSales'&&k!=='autoRepair')return;S[k]=!S[k];if(k==='autoSales'){UI.autoGame=S;UI.autoSalesAt=performance.now();}sfx('click');after();},
+ accept:({id,auto=false})=>{const o=S.offers.find(x=>x.id===id);if(!o)return;const customer=auto?(S.autoSales&&autoOffer(o)):offerCustomer(o);if(!customer)return;if(!bHas(o)){toast(tr('customers.you_need_a_pop_in_every'),'bad');return;}
if(o.type==='wwave'){const l=S.links.find(x=>x.id===o.link);if(!l||chMax(l)-(l.ch||[]).length-soldSlots(l)=o.start){toast(tr('customers.too_late_the_event_has_already'),'bad');return;}
// A carrier renting more alien waves on a fiber it already rents grows its contract, like a real order for extra waves,
@@ -12,7 +13,7 @@ Object.assign(ACT,{
const more=o.type==='wwave'&&S.biz.find(b=>b.type==='wwave'&&b.link===o.link&&b.name===o.name);
if(more){const l=S.links.find(x=>x.id===o.link);S.offers=S.offers.filter(x=>x!==o);more.slots=(more.slots||0)+(o.slots||0);more.rate+=o.rate;if(l)more.what=wwWhat(l,more.slots);
floater(CITY[o.city].x,CITY[o.city].y-30,tr('common.signed'),'#16A866');sfx('coin');after();return;}
- S.offers=S.offers.filter(x=>x!==o);S.biz.push({id:o.id,city:o.city,city2:o.city2||null,reqs:o.reqs||[],latMax:o.latMax||null,route:BIZ_T[o.type].scenic?'scenic':BIZ_T[o.type].lat?'fast':'normal',name:o.name,type:o.type,bw:o.bw,rate:o.rate,mood:100,since:S.day,sites:o.sites||null,start:o.start,dur:o.dur,fee:o.fee,link:o.link,slots:o.slots||0,what:o.what,prov:o.prov,due:BIZ_T[o.type].cap?S.day+o.win:undefined});
+ S.offers=S.offers.filter(x=>x!==o);S.biz.push(customer);
floater(CITY[o.city].x,CITY[o.city].y-30,tr('common.signed'),'#16A866');sfx('coin');after();},
decline:({id})=>{S.offers=S.offers.filter(x=>x.id!==id);after();},
dropBiz:({id})=>{const b0=S.biz.find(x=>x.id===id);if(!b0)return;if(BIZ_T[b0.type].event&&S.day>=b0.start){toast(tr('customers.the_event_is_already_running_the'),'bad');sfx('err');return;}if(UI.confirm!==id){UI.confirm=id;renderPanel();return;}S.biz=S.biz.filter(b=>b.id!==id);UI.confirm=null;after();},
diff --git a/src/game/90-actions/90-action-helpers.js b/src/game/90-actions/90-action-helpers.js
index 0efe713..002cdaa 100644
--- a/src/game/90-actions/90-action-helpers.js
+++ b/src/game/90-actions/90-action-helpers.js
@@ -22,7 +22,7 @@ function chWhy(l,o){const O=OPT[o];if(O.lvl>lvl())return tr('action_helpers.unlo
if((l.ch||[]).length+soldSlots(l)>=chMax(l))return soldSlots(l)?tr('action_helpers.sys_is_full_max_channels_sold',{sys:DF_SYS[l.sys].n,max:chMax(l),sold:soldSlots(l)}):tr('action_helpers.sys_is_full_max_channels',{sys:DF_SYS[l.sys].n,max:chMax(l)});
for(const c of [l.a,l.b]){const p=S.pops[c];if(p&&RG[p.rgen||0].clsinnerWidth>760&&innerWidth<=1200;
function selectLink(id){UI.sel={type:'link',id};UI.confirm=null;if(isTablet()||isPhone())UI.leftOpen=false;$('panel').classList.remove('full');renderPanel();renderLeft();}
function selectCity(c){UI.sel={type:'city',id:c};UI.confirm=null;if(isTablet()||isPhone())UI.leftOpen=false;const P=$('panel');if(P)P.classList.remove('full');if(!S.pops[c])UI.tab='cust';renderPanel();}
diff --git a/src/game/93-ui/40-hud-and-panels.js b/src/game/93-ui/40-hud-and-panels.js
index 3659c8a..7fb230f 100644
--- a/src/game/93-ui/40-hud-and-panels.js
+++ b/src/game/93-ui/40-hud-and-panels.js
@@ -37,16 +37,18 @@ function renderLeft(){checkLayer();
h+=GOALS.map(g=>{const d=S.done[g.id]!==undefined,c=g===cur;return `
`;
// Incidents come first, the ones you can fix with one click at the top (#63): no scrolling past hot ports to replace an optic.
for(const i of S.inc.filter(i=>i.type!=='ddos').sort((a,b)=>(b.cost?1:0)-(a.cost?1:0)||(b.impact||0)-(a.impact||0))){h+=`