/* Единая утверждённая тема «Технический», включая встроенные инструменты. */
:root,html body{color-scheme:light;--bg:#dbe2e9!important;--panel:#f7f9fc!important;--text:#213143!important;--muted:#5d7186!important;--line:#90a2b5!important;--green:#316cbd!important;--mint:#316cbd!important;--gold:#316cbd!important;--soft:#e9eff5!important;--accent:#316cbd;--border:#90a2b5;--surface:#f7f9fc;--primary:#316cbd;--card:#f7f9fc;--input:#e9eff5;--dim:#5d7186}
html,body{background:var(--bg);color:var(--text);font-family:system-ui,sans-serif!important}h1,h2,h3,input,select,textarea,button,.pc-card,.pc-card *{font-family:system-ui,sans-serif!important}h1,h2{letter-spacing:-.6px}.theme-toggle,.theme-input,#light-theme,#light{display:none!important}
header,.site-header,.wrap,.tool-shell{max-width:1680px!important}header{border-bottom:1px solid var(--line)}.crest{background:var(--green)!important;color:#fff!important}.login,.button,.btn{border-color:var(--line)}
.hero{background:var(--panel)!important;border:2px solid var(--line)!important}.hero:after{background:linear-gradient(90deg,#f7f9fc 4%,#f7f9fcf5 34%,#f7f9fc55 74%,#f7f9fc00)!important}.hero-copy>p,.hero-note{color:var(--muted)!important}.hero .button:not(.primary){background:#f7f9fce6!important;color:var(--text)!important}.pitch-caption{color:#fff;text-shadow:0 1px 6px #000}.pitch-caption strong{color:#fff!important}
.button,.btn{background:var(--panel);color:var(--text)}.button.primary,.btn.primary,.auth-shell button{background:var(--green)!important;border-color:var(--green)!important;color:#fff!important}.button:hover,.btn:hover,.tool:hover{background:var(--soft)!important;color:var(--text)!important;border-color:var(--green)!important}.button.primary:hover,.btn.primary:hover,.auth-shell button:hover{background:#245799!important;color:#fff!important}.tool,.membership,.roster,.panel{border:2px solid var(--line)!important;background:var(--panel)!important}.membership .benefit{border-color:var(--line)}.position,.tag,.tag.pro{background:var(--soft)!important;border-color:var(--line)!important;color:var(--green)!important}.mobile-menu{background:var(--panel);box-shadow:0 12px 28px #21314322}.auth-shell input{background:var(--soft)}
html body .pc-card{color-scheme:light!important}.pc-topgrid{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(120px,.8fr)!important}.pc-metrics-block{grid-template-columns:1fr 1fr!important}.pc-top-ovr,.pc-top-cost{background:var(--soft)!important;color:var(--text)!important;box-shadow:none!important;border:1px solid var(--line)!important}.pc-top-ovr *,.pc-top-cost *{color:var(--text)!important;text-shadow:none!important}.pc-group{--pc-accent:#35752b;--pc-stripe:#35752b;--group-accent:#35752b!important}.pc-group:nth-child(2){--pc-accent:#b23849;--pc-stripe:#b23849;--group-accent:#b23849!important}.pc-group:nth-child(3){--pc-accent:#4c60b0;--pc-stripe:#4c60b0;--group-accent:#4c60b0!important}.pc-group h3{background:transparent!important;color:var(--group-accent)!important}.pc-actions .save{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important}
html body :is(.metric,.summary,.result,.stat,.exercise-row,.club-player,.club-toolbar,.club-summary,.dialog-body,.dialog-foot,.optimizer-summary,.notice,.toast){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}html body :is(.metric,.summary,.result,.stat) :is(strong,b,.v){color:var(--text)!important}html body :is(input,select,textarea){color-scheme:light;background:var(--soft)!important;color:var(--text)!important;border-color:var(--line)!important}html body :is(.tab.active,.btn.primary){background:var(--green)!important;color:#fff!important}html body dialog,html body .dialog-head{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}dialog::backdrop{background:#21314366}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green)!important;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}button,a{transition:background .15s,border-color .15s,color .15s}
@media(min-width:1100px){html body .skill-input label{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}html body :is(#manual,#goalkeeper)>.layout.pc-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}}
@media(max-width:700px){.hero:after{background:linear-gradient(180deg,#f7f9fc 0%,#f7f9fcf5 40%,#f7f9fc33 85%)!important}.pc-topgrid{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)!important}.pc-metrics-block{grid-column:1/-1;min-height:60px}.pc-top-ovr,.pc-top-cost{min-height:60px}.skill-input label{overflow-wrap:normal!important}header{gap:12px!important}}
html body :is(#manual,#goalkeeper,#accountPage,#trainability2) .calc-step-header{background:var(--panel)!important;border-color:var(--line)!important}html body .calc-step-header::before{display:none!important}html body :is(#manual,#goalkeeper,#accountPage,#trainability2) .calc-step-header .eyebrow{color:var(--muted)!important}
html body .reference-name{background:var(--panel)!important;color:var(--green)!important;border:1px solid var(--line)!important;box-shadow:none!important;text-shadow:none!important}html body .reference-name:hover{background:var(--soft)!important;border-color:var(--green)!important}
html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-group .skill-input,html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-colhead{grid-template-columns:minmax(0,1fr) 32px 32px!important;gap:3px!important}html body .pc-card .pc-group{padding:6px!important}html body .pc-card .pc-groups{background:var(--panel)!important}html body .pc-card .skill-input input{width:100%!important;min-width:0!important}html body .pc-card .pc-identity-block>.pc-param{grid-template-columns:54px minmax(0,1fr)!important}html body .pc-card .pc-conditioning-row{font-size:10px!important}
/* Высокая специфичность нужна для прежних встроенных правил карточек. */
html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-topgrid{background:var(--panel)!important;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(120px,.8fr)!important}
html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-metrics-block{grid-column:3!important;grid-row:1!important;grid-template-columns:1fr 1fr!important}
html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-param{color:var(--text)!important}
html body #countertactics :is(.counter-section,.counter-alt){background:var(--panel)!important;color:var(--text)!important;border:2px solid var(--line)!important}
html body #countertactics :is(.counter-rule,.counter-breakdown,.counter-code-grid>div,.counter-strength,.counter-formation-lines){background:var(--soft)!important;color:var(--text)!important;border-color:var(--line)!important}
html body #countertactics :is(h3,h4,.counter-alt summary,a,.counter-table .counter){color:var(--green)!important}
html body #countertactics .counter-table th{background:var(--green)!important;color:#fff!important}html body #countertactics .counter-table tr:nth-child(even){background:var(--soft)!important}
html body :is(.optimizer-dialog-head,.solution-head,.solution-body,.solution-metrics,.trainability-group,.mini-group,.club-mini-group){background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
@media(max-width:700px){html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-topgrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-metrics-block{grid-column:1/-1!important;grid-row:auto!important}}
html body :is(.card-head,.pc-card-header)::before{display:none!important}html body :is(.card-head,.pc-card-header){background:var(--panel)!important}html body .eyebrow{color:var(--muted)!important}html body .segmented{background:var(--soft)!important}html body .segmented button{background:var(--panel)!important;color:var(--text)!important;box-shadow:none!important}html body .segmented button.active{background:var(--green)!important;color:#fff!important}html body :is(#manual,#goalkeeper) .pc-plan-panel .plan-columns{background:var(--green)!important;color:#fff!important}html body .exercise-list:empty{background:var(--soft)!important}
@media(max-width:500px){html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card .pc-topgrid{grid-template-columns:minmax(0,1fr)!important}html body :is(#manual,#goalkeeper,#trainability2,#accountPage) .pc-card :is(.pc-identity-block,.pc-details-block){grid-column:1!important;grid-row:auto!important}html body .pc-card .pc-details-block{grid-template-columns:1fr!important}}
/* Утверждённые яркие акценты и единый компонент шапки блока. */
:root,html body{--green:#245bd6!important;--accent:#245bd6;--primary:#245bd6;--block-head:#c8d9f1;--block-head-text:#163b6c;--block-head-line:#7e9fc8}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer,#optimizerPlayerDialog#optimizerPlayerDialog) :is(.pc-card-header,.card-head,.calc-step-header,.optimizer-dialog-head),html body dialog .dialog-head{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;height:68px!important;min-height:68px!important;max-height:68px!important;flex:0 0 68px!important;flex-wrap:nowrap!important;padding:12px 18px!important;margin:0!important;background:var(--block-head)!important;border-bottom:1px solid var(--block-head-line)!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer,#optimizerPlayerDialog#optimizerPlayerDialog) :is(.pc-card-header,.card-head,.calc-step-header,.optimizer-dialog-head) :is(h2,h3),html body dialog .dialog-head :is(h2,h3){font:600 16px/1.2 system-ui,sans-serif!important;color:var(--block-head-text)!important;letter-spacing:normal!important;text-transform:none!important;margin:0!important;padding:0!important;white-space:normal!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer) :is(.pc-card-header,.card-head,.calc-step-header) .eyebrow{display:block!important;font:500 10px/1.2 system-ui,sans-serif!important;color:#365d8b!important;letter-spacing:1px!important;margin:0 0 5px!important;padding:0!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer) .pc-card :is(.pc-actions,.card-head-actions){background:transparent!important;padding:0!important}
html body #countertactics .counter-section>h3{display:flex;align-items:center;box-sizing:border-box;height:68px;min-height:68px;margin:-22px -22px 16px;padding:12px 18px;background:var(--block-head);border-bottom:1px solid var(--block-head-line);border-radius:7px 7px 0 0;font:600 16px/1.2 system-ui,sans-serif!important;color:var(--block-head-text)!important;letter-spacing:normal}
html body .btn.primary,html body .button.primary,html body .auth-shell button,html body .pc-actions button.save,html body .pc-actions button[data-account-action=save],html body .pc-actions button[data-roster-action=save]{background:#245bd6!important;border-color:#245bd6!important;color:#fff!important}
html body .btn.primary:hover,html body .button.primary:hover,html body .auth-shell button:hover{background:#1948ae!important;border-color:#1948ae!important;color:#fff!important}
html body .pc-actions button:not(.save){background:#e7efff!important;border-color:#a0b9ed!important;color:#245bd6!important}html body .pc-actions :is(button.clear,button.danger,button[data-account-action=delete],button[data-account-action=clear]),html body .btn.danger{background:#fff0f0!important;border-color:#e6aab3!important;color:#b32e43!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-top-ovr{background:#e7efff!important;border:1px solid #87a9e5!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-top-ovr *{color:#194da8!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-top-cost{background:#fff0d5!important;border:1px solid #dda44b!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-top-cost *{color:#90500c!important}
/* Смысловые цвета не зависят от общей палитры сайта. */
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-group{--pc-accent:#07a50d!important;--pc-stripe:#80cc58!important;--group-accent:#07a50d!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-group.pc-attack{--pc-accent:#ce3a46!important;--pc-stripe:#db4756!important;--group-accent:#ce3a46!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-group.pc-psycho{--pc-accent:#4f6dd1!important;--pc-stripe:#777fd4!important;--group-accent:#4f6dd1!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-group.pc-goalkeeping{--pc-accent:#1682ad!important;--pc-stripe:#4dc8ff!important;--group-accent:#1682ad!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-group h3{background:var(--pc-accent)!important;color:#fff!important;font:600 13px/1.3 system-ui,sans-serif!important;padding:7px 8px!important;margin-bottom:8px!important;border-radius:4px!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .skill-input.white{border-left:4px solid var(--pc-stripe)!important;background:#fff!important;color:#213143!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .skill-input.grey{background:#e2e7ed!important;color:#5d7186!important}
html body .reference-name.exercise-red{background:#cb3948!important;border-color:#cb3948!important;color:#fff!important}html body .reference-name.exercise-green{background:#65b542!important;border-color:#65b542!important;color:#142e0b!important}html body .reference-name.exercise-yellow{background:#e6a907!important;border-color:#e6a907!important;color:#342600!important}html body .reference-name.exercise-purple{background:#6570c4!important;border-color:#6570c4!important;color:#fff!important}
html body .reference-name{border-radius:6px!important;font:600 12px/1.35 system-ui,sans-serif!important;padding:7px 12px!important}html body .reference-name:hover{filter:brightness(.93)}html body .reference-name[aria-pressed=true]{outline:2px solid #245bd6;outline-offset:3px}html body .reference-table tr:has(.reference-name[aria-pressed=true]) td{background:#e5edff!important}
@media(max-width:500px){html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-group h3{font-size:11px!important;padding:6px 3px!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card-header{padding:12px 10px!important;gap:6px!important}html body .pc-card-header .pc-actions{gap:3px!important}html body .pc-card-header .pc-actions button{width:27px!important;height:29px!important;min-width:27px!important}}
html body #optimizerPlayerDialog .mini-skill-group h3{background:var(--accent);color:#fff!important;border-radius:4px;padding:7px 8px;font:600 13px/1.3 system-ui,sans-serif!important}html body .club-mini-group h4{background:var(--pc-accent)!important;color:#fff!important;font:600 13px/1.3 system-ui,sans-serif!important;letter-spacing:normal!important}
html body #accountPage .account-heading h2{font:600 16px/1.2 system-ui,sans-serif!important;letter-spacing:normal!important;color:var(--block-head-text)!important}html body #accountPage .account-toolbar{background:var(--block-head)!important;border-color:var(--block-head-line)!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer) .pc-actions button{background:#e7efff!important;border-color:#a0b9ed!important;color:#245bd6!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer) .pc-actions :is(button.save,button[title*="Сохранить"],button[aria-label*="Сохранить"]){background:#245bd6!important;border-color:#245bd6!important;color:#fff!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage,#optimizer#optimizer) .pc-actions :is(button.clear,button[title*="Очистить"],button[aria-label*="Очистить"],button[title*="Удалить"],button[aria-label*="Удалить"]){background:#fff0f0!important;border-color:#e6aab3!important;color:#b32e43!important}
html body #countertactics .content-hero{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;height:68px;min-height:68px;box-sizing:border-box;padding:12px 18px;background:var(--block-head)!important;border-bottom:1px solid var(--block-head-line);border-radius:7px 7px 0 0}html body #countertactics .content-hero h2{font:600 16px/1.2 system-ui,sans-serif!important;color:var(--block-head-text)!important;letter-spacing:normal;margin:0!important}html body #countertactics .content-hero .eyebrow{font:500 10px/1.2 system-ui,sans-serif!important;color:#365d8b!important;letter-spacing:1px;margin:0!important}html body #countertactics .content-intro{margin:0;padding:16px 18px;color:var(--muted);font-size:13px}
html body #countertactics .solution-head{height:68px;min-height:68px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:5px;align-items:flex-start;padding:12px 18px!important;background:var(--block-head)!important;border-bottom:1px solid var(--block-head-line)}html body #countertactics .solution-head :is(h2,h3,strong){font:600 16px/1.2 system-ui,sans-serif!important;color:var(--block-head-text)!important;letter-spacing:normal;margin:0!important}
/* Исходные пропорции параметров: ширина зависит от карточки, не экрана. */
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card .pc-topgrid{--identity-label-width:50px;--identity-gap:6px;--identity-block-width:calc((100cqi - 16px)*.314814815);--compact-control-width:max(32px,calc((var(--identity-block-width) - var(--identity-label-width) - var(--identity-gap) - 8px)/3));grid-template-columns:var(--identity-block-width) max-content minmax(0,1fr)!important;font-size:12px!important;gap:8px!important}
html body .pc-card .pc-identity-block>.pc-param{grid-template-columns:var(--identity-label-width) minmax(0,1fr)!important;gap:var(--identity-gap)!important}
html body .pc-card .pc-param{font-size:inherit!important;gap:6px}
html body .pc-card .pc-conditioning-row{font-size:inherit!important}
html body .pc-card .pc-age-talent{grid-template-columns:max-content max-content!important;gap:8px!important;justify-content:space-between!important}
html body .pc-card .pc-age-talent .pc-param{gap:4px!important}
html body .pc-card .pc-identity-block .positions select,html body .pc-card .pc-age-talent select{flex:0 0 var(--compact-control-width)!important;width:var(--compact-control-width)!important;min-width:var(--compact-control-width)!important;max-width:var(--compact-control-width)!important;font-size:inherit!important;padding:0 1px 0 3px!important}
html body .pc-card .pc-conditioning-row select{font-size:inherit!important;flex:1 1 0!important;width:0!important;padding-left:3px!important;padding-right:0!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card :is(.pc-identity-block,.pc-details-block){grid-column:auto!important;grid-row:auto!important}
html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card .pc-metrics-block{grid-column:3!important;grid-row:1!important}
html body .reference-name{box-sizing:border-box!important;height:31px!important;min-height:31px!important;display:inline-flex!important;align-items:center!important;padding:7px 8px!important;font:600 13px/1.3 system-ui,sans-serif!important;border:0!important}
@container(max-width:540px){html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card .pc-topgrid{--identity-block-width:calc((100cqi - 8px)/2);grid-template-columns:var(--identity-block-width) minmax(0,1fr)!important}html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card .pc-metrics-block{grid-column:1/-1!important;grid-row:auto!important}}
@container(max-width:390px){html body :is(#manual#manual,#goalkeeper#goalkeeper,#trainability2#trainability2,#accountPage#accountPage) .pc-card .pc-topgrid{--identity-block-width:100cqi;--identity-label-width:64px;--compact-control-width:44px;grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:500px){html body .reference-name{height:26.3px!important;min-height:26.3px!important;font-size:11px!important;padding:6px 3px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
