/* Version 2: the original decision tree is the interaction surface. */
.eg-tree{--route:var(--teal);--route-bg:var(--pale)}
.eg-tree [hidden]{display:none!important}.eg-tree>.eg-heading{justify-content:flex-end;margin-bottom:12px}.eg-tree #eg-steps,.eg-tree #eg-controls{display:none}
.eg-tree .eg-screen{padding:0;border:0;background:transparent;box-shadow:none;min-height:0}
.tr-intro{margin-bottom:26px}.tr-intro h1{font-size:clamp(28px,3.8vw,42px);line-height:1.15;margin:22px 0 10px}.tr-intro>p{margin:0;color:var(--soft)}
.tr-version{display:flex;justify-content:space-between;align-items:center;gap:14px;color:var(--soft);font-size:12px}.tr-version>span{font-size:11px;font-weight:700;letter-spacing:.06em}.tr-version nav{display:flex;gap:20px}
.tr-identity{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:36px}.tr-type{display:flex;flex-wrap:wrap;gap:8px}
.eg-tree button{cursor:pointer}.tr-type button,.tr-modes button{min-height:44px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:9px 16px;font-weight:600}
.tr-type button[aria-pressed=true],.tr-modes button[aria-pressed=true]{border:2px solid var(--route);padding:8px 15px;background:var(--route-bg)}
#tr-registry{max-width:440px;font-size:14px}#tr-registry summary{padding:10px 0;cursor:pointer;font-weight:600}#tr-registry p{font-size:14px}.tr-search{display:flex;gap:8px}.tr-search input{min-width:0;width:100%;padding:10px;border:1px solid var(--line);background:var(--pale)}.tr-search button{padding:10px;border:1px solid var(--line);background:white;color:var(--ink)}#tr-registry small{display:block;color:var(--soft);margin-top:8px}#tr-registry ul{padding-left:20px}#tr-registry-results button{text-align:left;background:white;border:1px solid var(--line);padding:10px;color:var(--ink)}
.tr-chart{--branch:var(--line);position:relative;padding:0 2px 20px}.tr-node{border:2px solid var(--line);background:#fff;border-radius:8px;padding:20px;position:relative;min-width:0}
.eg .tr-node h2{font-size:20px;line-height:1.35;margin:0;text-wrap:balance}.tr-question{text-align:center;border-radius:20px;border-color:var(--route);background:var(--route-bg)}
.tr-root{max-width:500px;margin:auto}.tr-root:after{content:'';position:absolute;left:50%;bottom:-32px;height:30px;border-left:2px solid var(--route)}
.tr-unknown{margin-top:12px}.tr-unknown .tr-answer{font-size:13px;border:0;padding:5px 12px;min-height:32px;text-decoration:underline;background:transparent}
#tr-own-help{font-size:14px;line-height:1.5;margin:12px 0 0;text-align:left}#tr-own-help p{margin:0 0 6px}
.eg .tr-primary{display:grid;grid-template-columns:1fr 3fr;gap:30px;list-style:none;padding:0;margin:30px 0 0}
.eg .tr-primary>li{position:relative;margin:0;padding:0;min-width:0;--branch:var(--line)}
.tr-primary>li:before{content:'';position:absolute;top:0;left:-15px;right:-15px;border-top:2px solid var(--branch)}
.tr-primary>li:first-child:before{left:50%}.tr-primary>li:last-child:before{right:50%}
.tr-primary>li:after{content:'';position:absolute;left:50%;top:0;height:25px;border-left:2px solid var(--branch)}
.tr-primary>li.is-chosen{--branch:var(--route)}
.tr-branch-answer{position:relative;display:flex;justify-content:center;padding:24px 0;min-height:92px}
.tr-branch-answer:after{content:'';position:absolute;left:50%;bottom:0;height:25px;border-left:2px solid var(--branch)}
.tr-answer{min-height:44px;padding:9px 19px;border:2px solid var(--line);border-radius:30px;background:white;color:var(--ink);font-weight:750;line-height:1.3}
.tr-answer[aria-pressed=true]{border-color:var(--route);background:var(--route);color:white;box-shadow:0 0 0 4px var(--route-bg)}
.tr-node.is-live{border-color:var(--route)}
.tr-scope{font-size:14px;line-height:1.5;color:var(--soft);margin:7px 0 18px}
#tr-inputs{border:0;padding:0;margin:0;min-width:0}#tr-inputs:disabled{opacity:.55}
.tr-modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tr-modes button{font-size:14px}
.tr-year-setting{display:flex;gap:12px;align-items:center;margin-bottom:12px;font-size:13px;color:var(--soft)}.tr-year-setting select{min-height:38px;padding:6px 30px 6px 10px;color:var(--ink);background:var(--pale);border:1px solid var(--line)}
.tr-years{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tr-years label{display:flex;flex-direction:column;gap:5px;position:relative;font-size:13px;font-weight:650;min-width:0}
.tr-years input,.tr-number-wrap input{min-width:0;width:100%;font-size:20px;line-height:1.4;min-height:48px;padding:9px 50px 9px 12px;background:var(--pale);border:1px solid var(--line);color:var(--ink)}
.tr-unit{position:absolute;right:9px;bottom:15px;font-size:12px;color:var(--soft)}.tr-average-label{font-size:14px;display:block}.tr-number-wrap{display:block;position:relative;margin-top:8px}.tr-number-wrap>span{position:absolute;right:12px;top:14px;font-size:14px;color:var(--soft)}
.eg .tr-note{font-size:12px;line-height:1.5;color:var(--soft);margin:9px 0 0}.eg .tr-error{font-size:13px;color:#a73822;margin:10px 0 0}.tr-help{margin:15px 0 0;padding-top:12px;border-top:1px solid var(--line)}.tr-help>summary{cursor:pointer;font-size:14px;font-weight:600}.tr-secondary{display:inline-block;font-size:13px;margin-top:12px}
.tr-connector{height:28px;position:relative}.tr-connector:after{content:'';position:absolute;top:0;bottom:0;left:50%;border-left:2px solid var(--line)}.tr-connector.is-chosen:after{border-color:var(--route)}
.tr-sum-question{max-width:340px;margin:0 auto;border-color:var(--line);background:white;padding:13px}.tr-sum-question>span{font-size:14px;font-weight:650}.tr-sum-question strong{display:block;font-size:28px;line-height:1.2;margin:5px 0}.tr-sum-question small{font-size:11px;color:var(--soft);line-height:1.3;display:block}.tr-sum-question.is-chosen{border-color:var(--route);background:var(--route-bg)}.tr-sum-question:after{content:'';position:absolute;left:50%;bottom:-27px;height:25px;border-left:2px solid var(--line)}.tr-sum-question.is-chosen:after{border-color:var(--route)}
.eg .tr-outcomes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:25px 0 0;padding:0;align-items:stretch}.eg .tr-outcomes.is-public{grid-template-columns:repeat(4,minmax(0,1fr))}
.eg .tr-outcomes>li{position:relative;margin:0;padding-top:22px;display:flex;flex-direction:column;--branch:var(--line);min-width:0}.tr-outcomes>li:before{content:'';position:absolute;top:0;left:-6px;right:-6px;border-top:2px solid var(--branch)}.tr-outcomes>li:first-child:before{left:50%}.tr-outcomes>li:last-child:before{right:50%}.tr-outcomes>li:after{content:'';position:absolute;top:0;left:50%;height:22px;border-left:2px solid var(--branch)}.tr-outcomes>li.is-chosen{--branch:var(--route)}
.tr-edge-label{display:block;text-align:center;font-size:11px;line-height:1.4;margin-bottom:9px;color:var(--soft);font-weight:600;white-space:nowrap}.is-chosen>.tr-edge-label{color:var(--route);font-weight:800}
.tr-terminal{background:white;border:2px solid var(--line);border-radius:6px;padding:16px;text-align:center;min-height:120px;display:flex;flex-direction:column;justify-content:center;flex:1;position:relative}.eg .tr-terminal h3{font-size:16px;line-height:1.4;margin:0;text-wrap:balance}.eg .tr-terminal p{font-size:13px;line-height:1.4;margin:7px 0 0;color:var(--soft)}
.tr-terminal.is-chosen{background:var(--route);color:white;border-color:var(--route);box-shadow:0 0 0 4px var(--route-bg)}.eg .tr-terminal.is-chosen p{color:white}.tr-end-state{display:block;font-size:9px;font-weight:800;letter-spacing:.08em;margin-bottom:7px}.tr-end-state:empty{display:none}
.tr-public-root>.tr-total-node{max-width:720px;margin:auto}
.tr-status{min-height:24px;margin:24px 0 12px;font-size:14px;font-weight:650;color:var(--route);text-align:center}.tr-next{border-top:1px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:16px;font-size:14px}.tr-next p{margin:0;flex-basis:100%;font-size:13px;color:var(--soft)}
.tr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:850px){.tr-edge-label{font-size:10px}.tr-terminal{padding:12px}.eg .tr-terminal h3{font-size:15px}.eg .tr-primary{grid-template-columns:1fr 2.7fr;gap:22px}.tr-primary>li:before{left:-11px;right:-11px}.tr-node{padding:16px}.tr-years{gap:7px}.tr-years input{font-size:17px;padding-left:9px;padding-right:40px}.tr-unit{font-size:10px}}
@media(max-width:650px){
 .tr-version{align-items:flex-start}.tr-version>span{max-width:130px}.tr-version nav{gap:9px;flex-direction:column;text-align:right}.tr-identity{display:block;margin-bottom:25px;padding-bottom:15px}.tr-type{gap:7px}.tr-type button{font-size:13px;padding:9px 10px}.tr-type button[aria-pressed=true]{padding:8px 9px}#tr-registry{margin-top:7px;max-width:none}
 .tr-root{margin-left:18px}.tr-root:after{left:17px;bottom:-24px;height:22px}.eg .tr-node h2{font-size:17px}.tr-question{border-radius:13px}
 .eg .tr-primary{display:block;margin:22px 0 0 36px;padding:0 0 0 18px;border-left:2px solid var(--line)}
 .eg .tr-primary>li{padding:0 0 24px}.tr-primary>li:before,.tr-primary>li:first-child:before,.tr-primary>li:last-child:before{left:-20px;right:auto;top:23px;width:18px;border-color:var(--branch)}.tr-primary>li:after{display:none}
 .tr-branch-answer{justify-content:flex-start;padding:0 0 18px;min-height:62px}.tr-branch-answer:after{left:24px;height:18px}.tr-answer{font-size:13px;padding:10px 14px}
 .tr-terminal{min-height:96px}.tr-scope{font-size:13px}.tr-node{padding:14px}.tr-modes{gap:6px}.tr-modes button{font-size:12px;padding:9px 10px}.tr-modes button[aria-pressed=true]{padding:8px 9px}
 .tr-years{grid-template-columns:1fr;gap:8px}.tr-years label{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:7px}.tr-years input{font-size:18px;padding-right:45px}.tr-unit{font-size:11px;bottom:16px}
 .tr-year-setting{font-size:12px;gap:8px;flex-wrap:wrap}.tr-sum-question strong{font-size:25px}
 .eg .tr-outcomes,.eg .tr-outcomes.is-public{display:block;margin:25px 0 0 10px;padding-left:18px;border-left:2px solid var(--line)}.eg .tr-outcomes>li{padding:0 0 22px}.tr-outcomes>li:before,.tr-outcomes>li:first-child:before,.tr-outcomes>li:last-child:before{top:12px;left:-20px;right:auto;width:18px;border-color:var(--branch)}.tr-outcomes>li:after{display:none}.tr-edge-label{text-align:left;font-size:11px;white-space:normal;margin-bottom:7px}.tr-sum-question:after{left:9px}.tr-sum-question{margin:0}
 .tr-public-root .tr-outcomes{margin-left:10px}.tr-next{gap:14px}.tr-next .eg-btn{font-size:14px}.tr-status{text-align:left;font-size:13px}.tr-unknown .tr-answer{min-height:44px}
}
/* Exact routed connectors follow the rendered nodes at every viewport. */
.tr-root:after,.tr-primary>li:before,.tr-primary>li:after,.tr-branch-answer:after,.tr-connector:after,.tr-sum-question:after,.tr-outcomes>li:before,.tr-outcomes>li:after{display:none!important}
.eg .tr-primary,.eg .tr-outcomes{border-left-color:transparent}
.tr-lines{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:0}
.tr-lines polyline{fill:none;stroke:var(--line);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tr-lines polyline.is-chosen{stroke:var(--route);stroke-width:3}
.tr-chart>.tr-root,.tr-chart>.tr-primary,.tr-chart>.tr-public-root{position:relative;z-index:1}
.tr-edge-label{background:var(--pale);position:relative;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;padding:3px 4px;border-radius:4px}
@media(max-width:650px){.tr-edge-label{margin-left:0}}
/* Calculation comes before the first decision; participating subjects have
   separate editable consumption and feed the same sum. */
.tr-consumption{max-width:740px;margin:0 auto;z-index:1}.tr-kicker{display:block;color:var(--soft);font-size:11px;font-weight:750;letter-spacing:.07em;margin-bottom:8px}
.eg .tr-consumption h2{text-wrap:initial}.tr-consumption+.tr-connector{height:30px}.tr-root{max-width:540px}.tr-root .tr-note{font-size:13px}
.tr-answer{display:inline-flex;align-items:center}.tr-answer.is-chosen{border-color:var(--route);background:var(--route);color:white;box-shadow:0 0 0 4px var(--route-bg)}
.tr-unit-setting,.tr-add-energy,.tr-gas-basis{font-size:13px;display:flex;align-items:center;gap:10px;margin-bottom:12px}.eg-tree select{background:var(--pale);color:var(--ink);border:1px solid var(--line);min-height:40px;padding:7px;max-width:100%;font-size:13px}
.tr-person-result{font-size:14px;font-weight:650;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.tr-energy{border:1px solid var(--line);border-radius:5px;padding:12px;margin:10px 0}.tr-energy-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}.tr-energy-head strong{font-size:14px;margin-right:auto}.tr-remove{flex-shrink:0;min-width:40px;min-height:40px;border:0;background:transparent;color:var(--soft);font-size:24px}
.tr-energy-head select{width:auto}.tr-add-energy{margin-top:16px}.tr-add-energy select{flex:1}.tr-gas-basis{flex-wrap:wrap}
#tr-participant-inputs{border:0;padding:0;margin:16px 0 0;min-width:0}#tr-participant-inputs:disabled{opacity:.55}
.tr-group-actions{display:flex;flex-wrap:wrap;gap:8px}.tr-group-actions button,.tr-suggestions button{font-size:13px;min-height:44px;background:white;border:1px solid var(--line);color:var(--ink);border-radius:5px;padding:8px 12px}.tr-group-actions button[aria-pressed=true]{border:2px solid var(--route);background:var(--pale);padding:7px 11px}
.tr-group-actions [data-tr-unknown]{border:0;background:transparent;text-decoration:underline}.tr-people{display:flex;flex-direction:column;gap:20px;margin-top:20px}.tr-person{border:1px solid var(--line);border-left:3px solid var(--route);border-radius:5px;padding:14px}.tr-person-head{display:flex;gap:10px;margin-bottom:15px;align-items:center}.tr-person-head label{font-size:12px;flex:1;min-width:0;font-weight:650}.tr-person-head input{display:block;width:100%;min-width:0;padding:10px;margin-top:5px;border:1px solid var(--line);color:var(--ink);background:var(--pale);font-size:15px}
.tr-suggestions{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);margin-top:14px;padding-top:14px;font-size:12px}.tr-suggestions button{text-align:left}.tr-suggestions small{color:var(--soft)}.tr-suggestions button:disabled{opacity:.55}
#tr-sum-breakdown{font-size:12px;padding-top:10px;line-height:1.6}.tr-sum-question{max-width:450px}.tr-exception-caption{text-align:center}.tr-help p{font-size:14px;line-height:1.6}.tr-next small{font-size:11px;color:var(--soft)}
.tr-help .eg-business-help>details{border:0}.tr-participants .tr-help{margin-top:12px}
@media(max-width:650px){.tr-consumption{margin-left:0}.eg .tr-primary{margin-left:10px;padding-left:14px}.tr-root{margin-left:0}.tr-person{padding:9px}.tr-energy{padding:9px}.tr-energy-head{gap:7px}.tr-energy-head strong{font-size:13px}.tr-participants .tr-modes{flex-direction:column}.tr-gas-basis select{width:100%}.tr-group-actions{flex-direction:column}.tr-consumption .tr-years{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tr-consumption .tr-years label{display:flex;align-items:stretch}.tr-consumption .tr-years input{padding:10px 6px;font-size:17px}.tr-consumption .tr-unit{position:static;font-size:11px;font-weight:400}.tr-consumption .tr-energy .tr-years{grid-template-columns:1fr}.tr-consumption .tr-energy .tr-years label{display:grid;grid-template-columns:38px minmax(0,1fr) 30px;align-items:center}.tr-consumption .tr-energy .tr-unit{position:static}.tr-year-setting>span{display:none}}
.tr-restore{font-size:13px;border:0;background:transparent;color:var(--route);text-decoration:underline;padding:12px 0;min-height:44px}
/* One shared work column; only genuine alternatives leave its axis. */
.eg-focus-tree{--tf-text:16px;--tf-help:14px;--tf-heading:20px;--tf-verdict:28px}
.eg-focus-tree .tr-intro{margin-bottom:32px}
.eg-focus-tree .tr-intro h1{font-size:var(--tf-verdict);line-height:1.2}
.eg-focus-tree .tr-intro>p,.eg-focus-tree .tr-version,.eg-focus-tree .tr-version>span{font-size:var(--tf-help)}
.tf-chart{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:32px 24px;align-items:start;padding:0 0 24px;max-width:1120px;margin:auto}
#tf-type{grid-column:1;grid-row:1}#tf-annual{grid-column:1;grid-row:2}#tf-public{grid-column:2;grid-row:2}#tf-exception{grid-column:2;grid-row:3}
.tf-chart #tf-annual.is-future{align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.tf-long-lane{grid-column:1;grid-row:3;min-width:0;display:grid;gap:32px}
.tf-people{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;min-width:0}
.tf-people:empty{display:none}
.tf-chart.has-exception #tf-exception{grid-column:1}
.tf-chart.has-exception .tf-long-lane{grid-column:2}
.tf-chart.has-exception .tf-people,.tf-chart.has-exception #tf-result{display:none}
.eg-focus-tree .tf-node{position:relative;z-index:1;min-width:0;padding:24px;border-radius:10px;scroll-margin-top:24px;background:#fff;transition:background-color .3s,border-color .3s,box-shadow .3s}
.eg-focus-tree .tf-node-heading{display:flex;align-items:baseline;gap:16px;justify-content:space-between}
.eg-focus-tree .tf-node h2{font-size:var(--tf-text);line-height:1.45;text-wrap:initial;margin:0;min-width:0}
.eg-focus-tree .tf-node-heading .eg-link{flex-shrink:0;padding:0;min-height:24px}
.eg-focus-tree .tf-node h2:focus{outline:none}
.eg-focus-tree .tf-type-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.eg-focus-tree .tf-type-choice{display:flex;align-items:flex-start;gap:12px;padding:16px;text-align:left;background:var(--pale);border:1px solid var(--line);border-radius:6px;min-width:0}

.eg-focus-tree .tf-type-choice:focus-visible{outline:2px solid var(--action-accent);outline-offset:3px}
.tf-type-choice svg{width:32px;height:32px;flex-shrink:0;color:var(--route)}
.tf-type-choice>span{display:flex;flex-direction:column;gap:8px;min-width:0}
.tf-type-choice strong{font-size:var(--tf-text);line-height:1.5;font-weight:700}
.tf-type-choice small{font-weight:400;color:var(--soft)}
.eg-focus-tree .tf-node.is-active{border-color:var(--route);box-shadow:0 7px 25px color-mix(in srgb,var(--route) 12%,transparent)}
.eg-focus-tree .tf-node.is-active>.tf-node-heading h2{font-size:var(--tf-heading);line-height:1.4}
.eg-focus-tree .tf-node.is-future,.eg-focus-tree .tf-node.is-skipped{background:color-mix(in srgb,#fff 38%,var(--pale));border-color:color-mix(in srgb,var(--line) 75%,var(--pale));box-shadow:none;padding:16px 24px}
.eg-focus-tree .tf-node.is-future h2,.eg-focus-tree .tf-node.is-skipped h2{color:var(--soft);font-weight:550}
.eg-focus-tree .tf-node.is-skipped{opacity:.55}
.eg-focus-tree .tf-node.is-done{padding:16px 24px;border-color:var(--route);background:var(--route-bg)}
.eg-focus-tree .tf-summary{font-size:var(--tf-text);line-height:1.5;margin-top:8px;font-weight:550}
.eg-focus-tree .tf-body{padding-top:16px;font-size:var(--tf-text);line-height:1.5}
.eg-focus-tree .tf-body>p{font-size:var(--tf-text);line-height:1.5;margin:0 0 16px}
.eg-focus-tree .tf-body>.tr-scope{font-size:var(--tf-help);margin:0 0 8px}
.eg-focus-tree .tf-body h3{font-size:var(--tf-heading);line-height:1.4;margin:16px 0}
.eg-focus-tree .tf-node .tr-note,.eg-focus-tree .tf-node small{font-size:var(--tf-help);line-height:1.5}
.eg-focus-tree .tf-node .tr-note{margin:8px 0 0}
.eg-focus-tree .tf-node button,.eg-focus-tree .tf-node select,.eg-focus-tree .tf-node input:not([data-tr-number]),.eg-focus-tree .tf-node details summary,.eg-focus-tree .tf-node .eg-link{font-size:var(--tf-text)!important;font-family:inherit;line-height:1.5}
.eg-focus-tree .tf-node .eg-link{font-weight:600;min-height:44px}
.eg-focus-tree .tf-node-heading .eg-link{font-size:var(--tf-help)!important;min-height:24px;font-weight:500}
.eg-focus-tree .tf-node select{min-height:44px}
.eg-focus-tree .tf-node .tr-modes{margin:8px 0 16px;gap:8px}
.eg-focus-tree .tf-node .tr-year-setting{margin:16px 0;font-size:var(--tf-text)}
.eg-focus-tree .tf-actions{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center;margin-top:24px}
.eg-focus-tree .tf-actions .eg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;line-height:1.5;padding:11px 18px;font-size:var(--tf-text);text-decoration:none}
.eg-focus-tree .tf-actions .eg-btn.primary{font-weight:750;color:var(--logo-jmeno,#fff)}
.eg-focus-tree .tf-actions .eg-btn.primary:disabled{opacity:.5;cursor:default}
.eg-focus-tree .tf-actions .eg-btn.primary span{padding-left:12px}
.eg-focus-tree .tf-actions .eg-link{padding:0}
.eg-focus-tree .tf-node #tr-registry{max-width:none;margin:16px 0 0;border-top:1px solid var(--line);padding-top:0}
.eg-focus-tree .tf-node #tr-registry p{font-size:var(--tf-text);line-height:1.5}
.eg-focus-tree .tf-node #tr-registry small{margin-top:8px}
.eg-focus-tree .tf-node .tr-help{margin:8px 0 16px}
.tf-names{margin-top:16px}
.eg-focus-tree .tr-person-head label{font-size:var(--tf-help)}
.eg-focus-tree .tr-person-head{margin-bottom:16px;align-items:end}
.eg-focus-tree .tr-person-head input{margin-top:8px;min-height:48px}
.eg-focus-tree .tr-group-actions{gap:8px}
.eg-focus-tree .tf-foreign{margin:16px 0;padding:16px;background:var(--pale);border-left:3px solid var(--route);font-size:var(--tf-text);line-height:1.5}
.eg-focus-tree .tf-foreign>div{display:grid;gap:4px;margin-bottom:12px}
.eg-focus-tree .tf-foreign span{font-size:var(--tf-help);color:var(--soft)}
.eg-focus-tree .tf-foreign p{margin:0}
.eg-focus-tree .tf-foreign .eg-link{padding:0;text-align:left}
.eg-focus-tree .tf-summary-note{font-size:var(--tf-help);color:var(--soft);font-weight:400;margin:8px 0 0}
.eg-focus-tree #eg-example-4{scroll-margin-top:24px}
/* Consistent input anatomy: number, separate unit, quiet conversion. */
.eg-focus-tree .tf-node [data-tr-number]{font-size:var(--tf-heading);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.4}
.eg-focus-tree .tf-known-values label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}
.eg-focus-tree .tf-known-values label>span:first-child{grid-column:1/-1}
.eg-focus-tree .tf-known-values input{padding:9px 12px;min-height:48px}
.eg-focus-tree .tf-known-values .tr-unit{position:static;font-size:var(--tf-text)}
.eg-focus-tree .tr-years.tf-single-year{max-width:320px;grid-template-columns:1fr}
.eg-focus-tree .tr-years.tf-single-year label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.eg-focus-tree .tf-node .tr-person-result{font-size:var(--tf-text);color:var(--route);margin-top:16px;padding-top:16px}
.eg-focus-tree .tf-node .tr-person-result:empty{display:none}
.tf-energy-meaning{display:flex;flex-wrap:wrap;gap:8px 14px;padding:12px 16px;background:var(--pale);border-radius:6px;margin-bottom:16px;font-size:var(--tf-help);line-height:1.5}
.tf-energy-meaning b{color:var(--route);margin-right:5px}.tf-energy-meaning strong{color:var(--ink)}
.tf-energy-options,.tf-transport-options{border:0;padding:0;margin:16px 0;min-width:0}
.eg-focus-tree .tf-energy-options legend,.eg-focus-tree .tf-transport-options legend{font-size:var(--tf-text);font-weight:650;margin-bottom:16px}
.tf-energy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tf-energy-choice{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:7px;background:var(--pale);cursor:pointer;min-width:0}
.tf-energy-choice:has(input:checked){border-color:var(--route);box-shadow:inset 0 0 0 1px var(--route);background:var(--route-bg)}
.tf-energy-choice:has(input:focus-visible){outline:2px solid var(--route);outline-offset:3px}
.tf-energy-choice input,.tf-transport-options input{width:18px;height:18px;flex-shrink:0;margin:2px 0 0;accent-color:var(--route)}
.tf-energy-choice svg{width:24px;height:24px;flex-shrink:0;color:var(--route)}
.tf-energy-choice>span{min-width:0}
.tf-energy-choice strong{display:block;font-size:var(--tf-text);line-height:1.5}
.tf-energy-choice small{display:block;line-height:1.5;color:var(--soft);margin-top:4px}
.tf-transport-options label{display:inline-flex;align-items:center;gap:8px;font-size:var(--tf-text);margin:0 16px 8px 0}
.tf-inline-cards{display:grid;grid-template-columns:1fr;gap:8px}
.tf-energy-card{border:1px solid var(--line);border-radius:7px;overflow:hidden;background:var(--pale)}
.tf-energy-card.is-selected{border-color:var(--route);box-shadow:inset 0 0 0 1px var(--route);background:#fff}
.tf-energy-card .tf-energy-choice{border:0;border-radius:0;box-shadow:none;background:transparent;align-items:center;padding:16px}
.tf-energy-card .tf-energy-choice:has(input:checked){box-shadow:none;background:var(--route-bg)}
.tf-energy-card .tf-energy-choice>span{display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap}
.tf-energy-card .tf-energy-choice small{margin:0}
.tf-energy-card-body{padding:0 16px 16px 60px}.tf-energy-card-body[hidden]{display:none}
.tf-energy-row{padding:16px 0 8px}.tf-energy-row+.tf-energy-row{border-top:1px solid var(--line);margin-top:8px}
.tf-quantity-line{display:grid;grid-template-columns:minmax(140px,1fr) 92px minmax(110px,.65fr);align-items:center;gap:12px}
.tf-quantity-line input{width:100%;min-width:0;min-height:48px;background:var(--pale);border:1px solid var(--line);border-radius:4px;padding:9px 12px;color:var(--ink);font-family:inherit}
.tf-quantity-line select{min-height:48px;width:100%}
.tf-converted{font-size:var(--tf-help);color:var(--soft);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tf-row-title{display:flex;align-items:center;gap:12px;margin-bottom:8px;min-height:32px}.tf-row-title>select{flex:1}.tf-row-title>strong{font-size:var(--tf-text);flex:1}.tf-row-title .tr-remove{margin-left:auto;min-height:32px;height:32px}
.eg-focus-tree .tf-conversion-help,.eg-focus-tree .tf-local-add{border:0;padding:0;margin:8px 0 0;font-size:var(--tf-help)}
.eg-focus-tree .tf-conversion-help summary,.eg-focus-tree .tf-local-add summary{font-size:var(--tf-help)!important;color:var(--route);cursor:pointer;font-weight:600}
.tf-conversion-help[hidden]{display:none}.tf-conversion-help a{font-size:var(--tf-help);line-height:1.5;color:var(--route)}.tf-conversion-help .tr-gas-basis{margin-top:8px}
.tf-energy-row>[data-conversion]:empty{display:none}
.tf-energy-card-body .tf-transport-options{margin:16px 0 0}
.tf-energy-card-body .tf-transport-options label{min-height:28px}
.tf-energy-card-body .tf-transport-options .tr-note{margin:0 0 8px}
.eg-focus-tree .tf-local-add-button{font-size:var(--tf-help)!important;font-weight:600;margin-top:8px;min-height:32px;padding:0!important}
.tf-local-add summary{min-height:32px}.tf-local-add>div{display:flex;flex-wrap:wrap;gap:8px}.tf-local-add button{border:1px solid var(--line);background:var(--pale);padding:8px 12px;color:var(--ink);border-radius:4px}
/* Keep the existing three-year energy editor's local add control usable. */
.tf-add-item{margin:16px 0;font-size:var(--tf-text)}
.tf-add-item summary{cursor:pointer;color:var(--route);font-weight:600}
.tf-add-item>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.tf-add-item button{border:1px solid var(--line);border-radius:5px;padding:8px 12px;background:var(--pale);color:var(--ink)}
/* The answer is the headline; its figures remain supporting evidence. */
.eg-focus-tree .tf-result-caption{font-size:var(--tf-help);line-height:1.5;color:var(--soft);margin:0 0 8px}
.eg-focus-tree #tf-result.is-active h2,.eg-focus-tree #tf-exception.is-active h2{font-size:var(--tf-verdict);line-height:1.2;font-weight:750;color:var(--ink);text-wrap:balance}
.eg-focus-tree .tf-result-context{margin:0;font-size:var(--tf-text)}
.eg-focus-tree .tf-body>.tf-contact-note{font-size:var(--tf-help);line-height:1.5;color:var(--soft);margin:8px 0 0}
.tf-result-evidence{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}
.tf-result-total,.tf-breakdown>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:8px 24px;align-items:baseline;font-size:var(--tf-text);line-height:1.5}
.tf-result-total>strong{font-size:var(--tf-heading);color:var(--ink);font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.tf-breakdown{display:flex;flex-direction:column;gap:8px;margin-top:16px;color:var(--soft)}
.tf-breakdown>div{font-size:var(--tf-help)}
.tf-breakdown strong{font-weight:550;font-variant-numeric:tabular-nums}
.eg-focus-tree .tf-body>.tf-caution{font-size:var(--tf-text);line-height:1.5;margin:0;padding:16px;background:var(--pale);border-left:3px solid var(--route)}
.tf-opening .tf-body{animation:tf-unveil .4s ease-out both}.tf-flow-in{stroke-dasharray:1;stroke-dashoffset:1;animation:tf-travel .45s ease-out forwards}
@keyframes tf-unveil{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes tf-travel{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.tf-node{transition:none}.tf-opening .tf-body,.tf-flow-in{animation:none;stroke-dashoffset:0}}

/* Public scope uses the same cards and text roles as the business path. */
.eg-focus-tree .tf-public-scope{padding:12px 16px;background:var(--pale);border-left:3px solid var(--route);font-size:var(--tf-text);line-height:1.5}
.tf-monitor-list{padding:16px;background:var(--pale);border-radius:5px;font-size:var(--tf-help)}
.tf-monitor-list ul{margin:8px 0 0;padding-left:22px;display:grid;gap:4px}
.tf-monitor-list p{margin:0}
.tf-monitor-list.is-error{border-left:3px solid var(--route)}
/* Zdroj podle podmínek užití dat MONITORu: MF ČR a odkaz na podmínky. */
.tf-monitor-source{display:block;margin-top:10px;color:var(--soft);line-height:1.45}
.tf-monitor-source a{color:inherit}
.tf-public-example{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin:20px 0}
.tf-public-example>div{border:1px solid var(--route);border-radius:6px;padding:16px;display:grid;gap:4px;background:var(--pale)}
.tf-public-example small{font-size:var(--tf-help);color:var(--soft)}
.tf-example-plus{font-size:var(--tf-heading);font-weight:700;color:var(--route)}
.eg-focus-tree .tf-public-duty{margin:0 0 16px;font-size:var(--tf-text)}
.tf-public-duty>p{margin:0}.tf-public-duty .tr-help{margin:12px 0 0}

/* Keep the applicable threshold beside the verdict, with a clear exact-boundary state. */
.eg-focus-tree .tf-result-threshold{margin:0 0 16px;font-size:var(--tf-text);line-height:1.5}
.tf-result-threshold>p{margin:0}.tf-result-threshold>p+p{margin-top:8px}
.eg-focus-tree .tf-result-duty{margin:0 0 16px;font-size:var(--tf-text);line-height:1.5}
.tf-result-duty>p{margin:0}.tf-result-duty>p+p{margin-top:8px}
.tf-result-threshold.is-boundary{padding:16px;background:var(--pale);border-left:3px solid var(--route)}

/* A complete static map is visible only while choosing the organisation type. */
.tf-overview{grid-column:1/-1;grid-row:2;margin:0;min-width:0}
.tf-overview img{display:block;width:100%;height:auto}

/* The initial choice and its overview share both edges; working steps keep their lane. */
.tf-chart.is-choosing #tf-type{grid-column:1/-1}
.tf-chart.is-choosing .tf-type-choices{column-gap:52px}

/* Only controls respond. Static nodes and the overview image stay still. */
.eg-tree :is(.tf-type-choice,.tr-type button,.tr-modes button,.tr-group-actions button,.tr-suggestions button,.tr-answer):not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){background:var(--action-tint);border-color:var(--action-accent);color:var(--ink)}
.eg-tree .tf-type-choice:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){box-shadow:inset 0 0 0 1px var(--action-accent)}
.eg-tree .tf-type-choice:not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible) svg{color:var(--action-accent)}
.eg-tree .tf-energy-choice{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.eg-tree .tf-energy-choice:has(input:not(:disabled)):is(:hover,:has(input:focus-visible)){background:var(--action-tint);box-shadow:inset 0 0 0 2px var(--action-accent)}
.eg-tree .tf-energy-choice:has(input:focus-visible){outline-color:var(--action-accent);outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.eg-tree .tf-energy-choice{transition:none}}

/* ---------- Vzhled v2 sladěný s webem: zapojeno 3. 12. 2026 se souhlasem uživatele (ROZHODNUTI.md) ----------
   Platí jen pro .eg-focus-tree (verze 2); původní kalkulačka a view=diagram ho nemají.
   Barvy jen z tokenů palety. Výchozí hodnoty jsou webová paleta (stránka bez data-varianta),
   paletu len přepisuje html[data-varianta*="_len-"], stejně jako výběr přehledu v tree-view.js.
   Barvy kategorií výsledku odpovídají generátoru přehledu (scripts/prehled-algoritmu.mjs, palettes);
   shodu hlídá test evidence/wizard-tests/vzhled-v2.test.cjs.
   Kategorii výsledku (data-outcome: none, audit, enms, unknown) a neúplnost (data-partial) nastavuje tree-view.js
   z výsledku výpočtu, nikdy z textu nadpisu. Bez atributů má výsledek bílý pás.
   Výplň hlavního tlačítka (--action-fill) a rámeček fokusu jsou společné s webem (guide.css, preview.css, src/styles.css).
   Oranžová (akcent palety): reakce na najetí, vaše cesta stromem, kategorie audit, ikony a šipky voleb,
   značka rozbalovače a čárka štítku verze. Tmavší oranžová (--action-fill): hlavní tlačítko a v paletě len linka odkazů.
   Upozornění a poznámky mají tmavý proužek.
   Pořadí: tokeny, úvod, uzly, ovladače, výsledek, poznámky, zvolená volba a neaktivní tlačítko. */

/* ---------- 0. Tokeny ---------- */
.eg-tree.eg-focus-tree{
  /* stupnice písma: 13 štítek, 14 pomocný, 16 běžný, 18 důraz, 22 nadpis kroku, 32 verdikt, hlavní nadpis plynule 34 až 46 */
  --tf-label:13px;--tf-lead:18px;--tf-heading:22px;--tf-verdict:32px;--tf-title:clamp(34px,3.6vw,46px);
  --tf-on-dark:var(--logo-jmeno,#fff);
  --tf-rule:var(--line);                                              /* vlasová linka ploch */
  --tf-card-line:color-mix(in srgb,var(--ink) 22%,#fff);            /* obrys kontejneru karty energie (ovládacím prvkem je zaškrtávací pole) */
  --tf-control:color-mix(in srgb,var(--ink) 60%,#fff);              /* obrys ovládacích prvků, >= 3 : 1 na bílé i na podbarvení polí */
  --tf-quiet:color-mix(in srgb,var(--pale) 60%,#fff);               /* tichá plocha v tónu palety */
  --tf-r-control:4px;--tf-r-surface:8px;                            /* dvě zaoblení: tlačítka a pole / plochy a velké volby */
  /* webová paleta (src/styles.css a přehled algoritmu); linka odkazů stejná jako .text-link na webu, >= 3 : 1 */
  --tf-cat-audit:#fff0df;--tf-cat-dark:#1d3840;--tf-cat-unknown:color-mix(in srgb,var(--ink) 6%,#fff);
  --tf-link-ink:#005c62;--tf-link-line:#5a8d90;--tf-label-line:#006168;
}
/* paleta len (src/varianty/len.css a přehled algoritmu); linka odkazů v tmavší oranžové hlavního tlačítka */
html[data-varianta*="_len-"] .eg-tree.eg-focus-tree{--tf-cat-audit:#f7dfcd;--tf-cat-dark:#3a2a22;--tf-link-ink:var(--ink);--tf-link-line:var(--action-fill);--tf-label-line:var(--action-accent)}

/* ---------- 1. Úvod (A1): světlý, větší nadpis, štítek verze s čárkou jako na webu ---------- */
.eg-focus-tree .tr-intro h1{color:var(--ink);font-size:var(--tf-title);line-height:1.08;letter-spacing:-.035em;font-weight:700;margin:16px 0 10px}
.eg-focus-tree .tr-intro>p{color:var(--soft);font-size:var(--tf-lead);line-height:1.5;margin:0}
.eg-focus-tree .tr-version>span{font-size:var(--tf-label);font-weight:700;letter-spacing:.12em;display:inline-flex;align-items:center;gap:12px;color:var(--soft)}
.eg-focus-tree .tr-version>span::before{content:'';width:32px;border-top:1px solid var(--tf-label-line)}
.eg-focus-tree .tr-version a{color:var(--tf-link-ink);font-size:var(--tf-help);font-weight:600;text-decoration:underline;text-decoration-color:var(--tf-link-line);text-decoration-thickness:1px;text-underline-offset:5px;padding:4px 0}
.eg-focus-tree .tr-version a:is(:hover,:focus-visible){color:var(--ink);text-decoration-color:var(--action-accent);text-decoration-thickness:2px}

/* ---------- 2. Uzly: hotové / aktivní / budoucí ---------- */
/* text všech uzlů na jedné ose 29 px (obrys + odsazení); silná hrana vždy na rovné straně */
.eg-focus-tree .tf-node{border:1px solid var(--tf-rule);border-radius:var(--tf-r-surface)}
.eg-focus-tree .tf-node.is-active{background:#fff;border:1px solid var(--tf-rule);border-top:4px solid var(--ink);border-radius:0 0 var(--tf-r-surface) var(--tf-r-surface);padding:28px;
  box-shadow:0 18px 44px color-mix(in srgb,var(--ink) 14%,transparent),0 2px 6px color-mix(in srgb,var(--ink) 8%,transparent)}
.eg-focus-tree .tf-node.is-active>.tf-node-heading h2{font-size:var(--tf-heading);font-weight:700;letter-spacing:-.02em;line-height:1.3}
.eg-focus-tree .tf-node.is-done{background:color-mix(in srgb,#fff 55%,transparent);border:1px solid var(--tf-rule);border-left:4px solid var(--ink);border-radius:0 var(--tf-r-surface) var(--tf-r-surface) 0;padding:14px 28px 14px 25px}
.eg-focus-tree .tf-node.is-done>.tf-node-heading{align-items:center}
.eg-focus-tree .tf-node.is-done h2{font-size:var(--tf-help);line-height:1.4;font-weight:600;color:var(--soft)}
.eg-focus-tree .tf-node.is-done .tf-summary{font-size:var(--tf-lead);font-weight:700;color:var(--ink);margin-top:2px;letter-spacing:-.01em}
/* budoucí a přeskočené: mléčná plocha a ztlumení zůstávají z pravidel výše, obrys jen čárkovaně naznačený */
.eg-focus-tree .tf-node.is-future,.eg-focus-tree .tf-node.is-skipped{border:1px dashed color-mix(in srgb,var(--ink) 30%,transparent);padding:16px 28px}
.eg-focus-tree .tf-node.is-future h2,.eg-focus-tree .tf-node.is-skipped h2{font-weight:600}
.eg-focus-tree .tf-node.is-skipped h2{font-size:var(--tf-help)}
/* spojnice: vaše cesta oranžově, ostatní vlasově */
.eg-focus-tree svg polyline{stroke:color-mix(in srgb,var(--ink) 22%,transparent)}
.eg-focus-tree svg polyline.is-chosen{stroke:var(--action-accent);stroke-width:3}

/* ---------- 3. Ovladače ---------- */
/* 3a volby jedna z více (přepínač metody, skupinové volby): stejný tvar pro všechny, obrys a barvy pro nevybrané.
   Vodorovné odsazení vyhrazuje místo pro fajfku zvolené volby (sekce 6), takže se po výběru nic neposune. */
.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button){min-height:48px;border-radius:var(--tf-r-control);font-weight:600;text-decoration:none}
.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button):not([aria-pressed=true]){padding:11px 22px;border:1px solid var(--tf-control);background:#fff;color:var(--ink)}
@media(max-width:650px){.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button):not([aria-pressed=true]){padding:9px 14px}}
/* nevybraná volba při najetí a fokusu: oranžový obrys a podbarvení (rozhodnutí 3. 12.) */
.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button):not([aria-pressed=true],:disabled,[aria-disabled=true]):is(:hover,:focus-visible){background:var(--action-tint);border-color:var(--action-accent);color:var(--ink)}
/* 3b volby typu organizace: velké volby, proto zaoblení plochy; obrys ovládacího prvku; ikona a šipka oranžově */
.eg-tree.eg-focus-tree .tf-type-choice{background:#fff;border:1px solid var(--tf-control);border-radius:var(--tf-r-surface);padding:20px 22px;align-items:center}
.eg-focus-tree .tf-type-choice strong{font-size:var(--tf-lead);letter-spacing:-.01em}
.eg-focus-tree .tf-type-choice svg{color:var(--action-accent);width:36px;height:36px}
.eg-focus-tree .tf-type-choice::after{content:'→';margin-left:auto;align-self:center;font-size:var(--tf-heading);font-weight:600;color:var(--action-accent)}
/* šipka se posouvá jen bez omezení pohybu */
@media(prefers-reduced-motion:no-preference){.eg-focus-tree .tf-type-choice::after{transition:transform .18s ease}.eg-tree.eg-focus-tree .tf-type-choice:not(:disabled):is(:hover,:focus-visible)::after{transform:translateX(4px)}}
/* 3c karty energií: bílý kontejner, vybraná s tmavým obrysem; ovládacím prvkem je zaškrtávací pole */
.eg-focus-tree .tf-energy-card{background:#fff;border:1px solid var(--tf-card-line);border-radius:var(--tf-r-surface)}
.eg-focus-tree .tf-energy-card.is-selected{border-color:var(--ink);box-shadow:none}
.eg-focus-tree .tf-energy-card .tf-energy-choice:has(input:checked){background:var(--tf-quiet)}
.eg-focus-tree .tf-energy-choice svg{color:var(--action-accent)}
.eg-focus-tree .tf-energy-choice input,.eg-focus-tree .tf-transport-options input{accent-color:var(--ink)}
/* 3d pole a výběry: výška 48 px, zaoblení ovládání, čitelný obrys (podbarvení palety zůstává) */
.eg-tree.eg-focus-tree .tf-node :is(.tf-quantity-line input,.tr-years input,.tr-person-head input,.tr-search input,select){border:1px solid var(--tf-control);border-radius:var(--tf-r-control)!important;min-height:48px;color:var(--ink)}
/* !important jen kvůli sdílenému .eg input/select {border-radius:3px !important} z preview.css (a z něj generovaného len-preview.css);
   původní pohled a view=diagram si 3 px ponechají */
.eg-tree.eg-focus-tree .tf-node [data-tr-number]{line-height:1.2}
.eg-focus-tree .tf-node select{padding:8px 10px}
.eg-focus-tree .tf-node .tr-unit{font-weight:400;color:var(--soft)}
/* 3e tlačítka výsledku: tvar jako na webu; vedlejší s obrysem ovládacího prvku (najetí z guide.css zůstává silnější) */
.eg-focus-tree .tf-actions .eg-btn{border-radius:var(--tf-r-control)}
.eg-focus-tree .tf-actions .eg-btn:not(.primary){border-color:var(--tf-control)}
/* 3f odkazová tlačítka jako odkazy webu: v klidu linka 1 px (>= 3 : 1), najetí a fokus oranžově 2 px (guide.css) */
.eg-tree.eg-focus-tree .eg-link{color:var(--tf-link-ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--tf-link-line);text-decoration-thickness:1px;text-underline-offset:4px}
/* 3g rozbalovače a „+ Další …“ */
.eg-focus-tree .tf-node details>summary{color:var(--ink);font-weight:600}
.eg-focus-tree .tf-node details>summary::marker{color:var(--action-accent)}
.eg-tree.eg-focus-tree :is(.tf-local-add,.tf-add-item)>summary{list-style:none;display:inline-block;color:var(--tf-link-ink);text-decoration:underline;text-decoration-color:var(--tf-link-line);text-decoration-thickness:1px;text-underline-offset:4px}
.eg-tree.eg-focus-tree :is(.tf-local-add,.tf-add-item)>summary:is(:hover,:focus-visible){color:var(--ink);text-decoration-color:var(--action-accent);text-decoration-thickness:2px}
.eg-focus-tree :is(.tf-local-add,.tf-add-item)>summary::-webkit-details-marker{display:none}
.eg-focus-tree :is(.tf-local-add,.tf-add-item,.tr-search) button{border:1px solid var(--tf-control);border-radius:var(--tf-r-control);background:#fff;font-weight:600;min-height:48px}
.eg-focus-tree #tr-registry-results button{border-color:var(--tf-control);border-radius:var(--tf-r-control);min-height:48px}
/* 3h skutečná tlačítka bez vlastní reakce ve sdílených stylech: stejná reakce na najetí i fokus */
.eg-tree.eg-focus-tree :is(.tf-local-add button,.tf-add-item button,.tr-search button,#tr-registry-results button,.tr-remove):not(:disabled,[aria-disabled=true]):is(:hover,:focus-visible){background:var(--action-tint);border-color:var(--action-accent);color:var(--ink)}
.eg-focus-tree .tr-remove{min-width:44px;min-height:44px;border-radius:var(--tf-r-control);color:var(--ink)}
/* 3i fokus z klávesnice: společná barva --action-focus z guide.css, stejná jako na webu (aspoň 3 : 1 i mimo bílé plochy), i u karet energií */
.eg-tree.eg-focus-tree :is(button,a,input,select,textarea,summary):focus-visible{outline-color:var(--action-focus)}
.eg-tree.eg-focus-tree .tf-energy-choice:has(input:focus-visible){outline-color:var(--action-focus)}
/* 3j méně časté stavy (návrhy z ARES, tři roky, MONITOR, příklad obce): stejná zaoblení a stupnice */
.eg-focus-tree .tr-suggestions{font-size:var(--tf-label)}
.eg-focus-tree .tr-suggestions button{border-radius:var(--tf-r-control)}
.eg-focus-tree :is(.tr-energy,.tf-monitor-list,.tf-public-example>div,.tf-energy-grid .tf-energy-choice){border-radius:var(--tf-r-surface)}
.eg-focus-tree .tr-energy .tr-unit{font-size:var(--tf-label)}

/* ---------- 4. Výsledek (C): barva podle kategorie z přehledu, nejistota tvarem ---------- */
/* none = výjimka a bez povinnosti (bílá jako v přehledu), audit = meruňková z přehledu, enms = tmavá z přehledu,
   unknown = povinnost zatím nelze určit (neutrální šedá). data-partial = neúplné údaje: šedá čárkovaná horní hrana
   na každém pásu (stejný znak jako u budoucích kroků). */
.eg-focus-tree .tf-result-caption{font-size:var(--tf-help);font-weight:600}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active h2{font-size:var(--tf-verdict);letter-spacing:-.025em;line-height:1.15}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active{--band:#fff;--band-ink:var(--ink);--band-soft:var(--soft);--cat:var(--ink);overflow:hidden;border-top-color:var(--cat)}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active[data-outcome=audit]{--band:var(--tf-cat-audit);--cat:var(--action-accent)}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active[data-outcome=enms]{--band:var(--tf-cat-dark);--band-ink:var(--tf-on-dark);--band-soft:color-mix(in srgb,var(--tf-on-dark) 78%,var(--tf-cat-dark));--cat:var(--tf-cat-dark)}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active[data-outcome=unknown]{--band:var(--tf-cat-unknown);--cat:var(--soft)}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active[data-partial]{border-top-style:dashed;border-top-color:var(--soft)}
/* čárkovaná hrana oddělená od pásu bílou mezerou, aby na tmavém pásu nevypadala jako vada vykreslení */
.eg-focus-tree :is(#tf-result,#tf-exception).is-active[data-partial]>.tf-result-caption{margin-top:-24px}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-result-caption{margin:-28px -28px 0;padding:22px 28px 0;background:var(--band);color:var(--band-soft)}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-node-heading{margin:0 -28px;padding:4px 28px 22px;background:var(--band);box-shadow:0 -2px 0 var(--band)} /* stín zakryje švy z desetinných pixelů */
/* bílý pás: linka pod nadpisem stejně dlouhá a stejné barvy jako linka nad součtem (.tf-result-evidence) */
.eg-focus-tree :is(#tf-result,#tf-exception).is-active:is([data-outcome=none],:not([data-outcome]))>.tf-node-heading{margin-left:0;margin-right:0;padding-left:0;padding-right:0;border-bottom:1px solid var(--line)}
.eg-focus-tree #tf-exception.is-active>.tf-node-heading{margin-top:-28px;padding-top:26px}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-node-heading h2{color:var(--band-ink)}
.eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-body{padding-top:24px}
/* Číslo spotřeby zůstává podřízené verdiktu (22 px proti 32 px přes --tf-heading a --tf-verdict). */

/* ---------- 5. Poznámky a drobnosti: tichá plocha v tónu palety, tmavý proužek ---------- */
.eg-focus-tree .tf-energy-meaning{background:var(--tf-quiet);border-radius:var(--tf-r-surface)}
.eg-focus-tree .tf-energy-meaning b{color:var(--ink)}
.eg-focus-tree :is(.tf-body>.tf-caution,.tf-public-scope,.tf-result-threshold.is-boundary,.tf-foreign){background:var(--tf-quiet);border-left:3px solid var(--ink);border-radius:0 var(--tf-r-surface) var(--tf-r-surface) 0}
.eg-focus-tree .tf-node .tr-person-result{font-size:var(--tf-lead);font-weight:700;color:var(--ink);letter-spacing:-.01em}
.eg-focus-tree :is(.tf-energy-options,.tf-transport-options) legend{font-weight:600}
.eg-focus-tree .tr-years label{font-weight:600}

/* ---------- 6. Zvolená volba a neaktivní hlavní tlačítko (D) ---------- */
/* zvolená volba: tmavá výplň s fajfkou nakreslenou čarou (nepřidá se do názvu pro čtečky), najetí ji nepřebarví.
   Fajfka zabere 17 px (7 px tvar a 10 px mezera) z odsazení, které mají všechny volby (3a): 13 + 17 + 14 = 22 + 22,
   šířka volby se po výběru nemění. */
.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button)[aria-pressed=true]{padding:11px 14px 11px 13px;background:var(--ink);border:1px solid var(--ink);color:var(--tf-on-dark)}
.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button)[aria-pressed=true]::before{content:'';display:inline-block;box-sizing:content-box;width:5px;height:10px;margin:0 10px 3px 0;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);vertical-align:middle}
@media(max-width:650px){.eg-tree.eg-focus-tree .tf-node :is(.tr-modes button,.tr-group-actions button)[aria-pressed=true]{padding:9px 6px 9px 5px}}
/* neaktivní hlavní tlačítko: neutrálně šedé místo vybledlé oranžové */
.eg-focus-tree .tf-actions .eg-btn.primary:disabled{opacity:1;background:color-mix(in srgb,var(--ink) 9%,#fff);border-color:transparent;color:var(--soft);box-shadow:none;transform:none}

/* ---------- 7. Přeskočená větev a telefon (3. 12. 2026, NAVRH.md oddíl 6) ---------- */
/* Přeskočená větev: místo průsvitnosti celého uzlu plná barva textu a obrys ovládacího prvku (text >= 4,5 : 1, obrys >= 3 : 1) */
.eg-focus-tree .tf-node.is-skipped{opacity:1;border:1px dashed var(--tf-control)}
.eg-focus-tree .tf-node.is-skipped h2{color:var(--soft)}
.tf-overview-link{display:none}
/* Do 650 px jeden sloupec: hlavní cesta (roční údaj, podnikatelé, výsledek) pod sebou, boční větve (druhý typ organizace, výjimka) pod ní; zvolená výjimka hned pod roční kartou */
@media(max-width:650px){
 .tf-chart{grid-template-columns:minmax(0,1fr);gap:24px 0}
 .tf-chart :is(#tf-type,#tf-annual,#tf-public,#tf-exception,.tf-long-lane,.tf-overview),.tf-chart.has-exception :is(#tf-exception,.tf-long-lane){grid-column:1;grid-row:auto}
 .tf-long-lane{gap:24px;order:1}
 .tf-chart #tf-public,.tf-chart #tf-exception{order:2}
 .tf-chart.has-exception #tf-exception{order:0}
 .eg-focus-tree .tf-type-choices,.tf-chart.is-choosing .tf-type-choices{grid-template-columns:minmax(0,1fr);gap:12px}
 .eg-tree.eg-focus-tree .tf-type-choice{padding:16px;gap:12px}
 .eg-focus-tree .tf-type-choice::after{display:none}
 .eg-tree.eg-focus-tree .tf-node.is-active{padding:20px}
 .eg-tree.eg-focus-tree .tf-node.is-done{padding:14px 16px 14px 13px}
 .eg-focus-tree .tf-node.is-future,.eg-focus-tree .tf-node.is-skipped{padding:14px 16px}
 .eg-focus-tree .tf-node-heading{gap:12px}
 .eg-focus-tree .tf-node-heading .eg-link{min-height:44px;display:inline-flex;align-items:center}
 .tf-energy-card-body{padding:0 16px 16px}
 /* pole spotřeby: číslo přes celou šířku, pod ním jednotka a tlumený přepočet */
 .tf-quantity-line{grid-template-columns:minmax(96px,160px) minmax(0,1fr);gap:8px 12px}
 .tf-quantity-line input{grid-column:1/-1}
 .eg-focus-tree .tr-years.tf-single-year{max-width:none}
 /* výsledek: pás nadpisu sleduje menší odsazení uzlu (20 px místo 28 px) a nadpis se může zalomit */
 .eg-focus-tree{--tf-verdict:26px}
 .tf-result-total{grid-template-columns:minmax(0,1fr);gap:4px}
 .eg-focus-tree :is(#tf-result,#tf-exception).is-active h2{overflow-wrap:anywhere}
 .eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-result-caption{margin:-20px -20px 0;padding:18px 20px 0}
 .eg-focus-tree :is(#tf-result,#tf-exception).is-active[data-partial]>.tf-result-caption{margin-top:-16px}
 .eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-node-heading{margin:0 -20px;padding:4px 20px 18px}
 .eg-focus-tree :is(#tf-result,#tf-exception).is-active:is([data-outcome=none],:not([data-outcome]))>.tf-node-heading{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
 .eg-focus-tree #tf-exception.is-active>.tf-node-heading{margin-top:-20px;padding-top:22px}
 .eg-focus-tree :is(#tf-result,#tf-exception).is-active>.tf-body{padding-top:20px}
 /* schéma algoritmu je na telefonu drobné: odkaz na samostatné SVG */
 .tf-overview-link{display:flex;align-items:center;min-height:44px;margin-top:8px;font-size:var(--tf-help);font-weight:600;color:var(--tf-link-ink);text-decoration:underline;text-decoration-color:var(--tf-link-line);text-underline-offset:5px}
 .tf-overview-link:is(:hover,:focus-visible){color:var(--ink);text-decoration-color:var(--action-accent);text-decoration-thickness:2px}
 /* hlavička kalkulačky: cíl dotyku aspoň 44 px */
 .eg-tree>.eg-heading .eg-link{min-height:44px}
}
