.chart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px;flex-wrap:wrap}.chart-search-form{display:flex;align-items:center;gap:10px;flex:1;flex-wrap:wrap}.chart-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--border);border-radius:7px;padding:0 13px;min-width:220px;max-width:380px;flex:1}.chart-search svg{width:17px;height:17px;color:#8b9e95;flex-shrink:0}.chart-search input{border:0;outline:none;background:none;padding:12px 0;width:100%;font-size:11px;color:var(--ink)}.chart-search:focus-within{border-color:#469579;box-shadow:0 0 0 3px #16755f10}.chart-search-form select{padding:11px 10px;background:#fff;border:1px solid var(--border);border-radius:7px;color:#62776d;font-size:11px;max-width:175px}.chart-actions{display:flex;align-items:center;gap:9px}.chart-actions .subtle-button{padding:12px}.chart-reset{font-size:10px;color:var(--muted)}.chart-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:20px;align-items:start}.chart-tree-panel{min-height:520px;display:flex;flex-direction:column}.chart-panel-heading{display:flex;justify-content:space-between;align-items:center;padding:24px}.chart-panel-heading .eyebrow{display:block;font-size:8px;margin-bottom:8px}.tree-tools{display:flex;gap:6px}.tree-tools button{border:1px solid #e2e9e5;background:white;color:#728c7e;border-radius:5px;font-size:20px;line-height:1;padding:5px 7px}.tree-tools button:hover{background:#edf5ef;color:#16755f}.tree-column-head{display:flex;justify-content:space-between;background:#fafcfb;border-block:1px solid var(--border);padding:12px 25px;font-size:9px;color:#9ba8a1;letter-spacing:.3px}.account-tree{padding:12px 12px 22px;flex:1;max-height:calc(100vh - 355px);min-height:340px;overflow:auto;scrollbar-width:thin;scrollbar-color:#d1ded6 transparent}.account-branch>summary{list-style:none}.account-branch>summary::-webkit-details-marker{display:none}.group-row{display:flex;align-items:center;gap:9px;padding:0 10px 0 5px;border-radius:6px;min-height:45px;color:#3f5d50;cursor:pointer;margin-block:2px}.group-row:hover{background:#f1f6f2}.branch-chevron{font-size:23px;color:#9aac9e;width:14px;text-align:center;line-height:1;transition:transform .12s;flex-shrink:0}.account-branch[open]>.group-row>.branch-chevron{transform:rotate(90deg)}.folder-icon{height:19px;width:19px;color:#8ba18b;flex-shrink:0}.tree-node-link{display:flex;align-items:center;gap:12px;min-width:0;flex:1;padding-block:12px;font-size:11px}.tree-code{font-variant-numeric:tabular-nums;font-weight:800;min-width:38px;flex-shrink:0;font-size:11px;color:#3b6853}.tree-name{line-height:1.65;font-size:11px;overflow-wrap:anywhere}.group-row .tree-name{font-weight:700}.tree-count{font-size:9px;color:#a3afa6;background:#f0f4f1;min-width:21px;text-align:center;padding:3px 5px;border-radius:4px;flex-shrink:0}.branch-children{margin-left:19px;padding-left:10px;border-left:1px solid #e6ede7}.account-leaf{display:flex;align-items:center;gap:12px;min-height:42px;padding:9px 11px;border-radius:5px;margin-block:2px;color:#667b6e}.account-leaf:hover{background:#f2f7f3;color:#275b43}.account-leaf-mark{font-size:17px;line-height:1;color:#a0b4a5;width:17px;text-align:center;flex-shrink:0}.balance-side{font-size:9px;margin-left:auto;flex-shrink:0;color:#91a697;border:1px solid #e3eae4;border-radius:4px;min-width:20px;text-align:center;padding:2px 4px}.account-leaf .tree-name{flex:1}.account-leaf.is-selected,.group-row.is-selected{background:#e8f3ed;box-shadow:inset 3px 0 #2d8a66;color:#23563f}.is-selected .tree-code,.is-selected .tree-name{color:#196e4e}.account-leaf.is-inactive{opacity:.6}.inactive-dot{width:5px;height:5px;border-radius:50%;background:#bfac8a}.tree-empty-group{font-size:10px;color:#adb8b0;padding:12px 13px 17px;font-style:italic}.ungrouped-heading{display:flex;justify-content:space-between;padding:18px 12px 9px;font-size:9px;color:#98a89e;text-transform:uppercase;letter-spacing:1px}.ungrouped-heading span{letter-spacing:0}.chart-tree-footer{border-top:1px solid var(--border);padding:14px 24px;display:flex;justify-content:space-between;font-size:9px;color:#98a99d}.chart-empty{border-top:0;padding-top:80px}.chart-empty h3{font-size:14px}.chart-empty p{font-size:11px}.account-inspector{position:sticky;top:20px}.inspector-header{padding:24px 23px 0;display:flex;align-items:center;gap:10px;justify-content:space-between}.inspector-header .eyebrow{margin:0;font-size:8px;letter-spacing:1.2px}.inspector-identity{padding:23px 24px}.large-account-code{font-size:31px;color:#267754;font-weight:800;letter-spacing:-1px}.inspector-identity h2{font-size:15px;line-height:1.7;margin-top:9px}.account-properties{margin:0;padding:0 24px 20px}.account-properties>div{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-top:1px solid #eef2ee;align-items:baseline}.account-properties dt{font-size:10px;color:#93a297;font-weight:400;max-width:45%}.account-properties dd{font-size:11px;text-align:right;color:#516f5b;margin:0;max-width:60%;overflow-wrap:anywhere}.inspector-section{padding:22px 24px;border-top:1px solid #edf2ee}.inspector-section h3{font-size:11px;font-weight:800;margin-bottom:13px}.inspector-section p{font-size:11px;color:#91a093;line-height:1.9}.mapping-item{padding:12px;background:#f5f8f5;border-radius:5px;margin-top:9px}.mapping-item span{font-size:9px;color:#91a093;display:block;margin-bottom:7px}.mapping-item strong{font-size:10px;font-weight:600;line-height:1.7;color:#52715d;display:block}.inspector-actions{border-top:1px solid #edf2ee;padding:20px 24px;display:flex;flex-direction:column;align-items:stretch;gap:18px}.inspector-actions .row-link{margin:0;text-align:center}.group-badge{font-size:9px;background:#edf3ed;color:#819980;padding:5px 8px;border-radius:4px}.inspector-placeholder{text-align:center;padding:54px 28px 35px}.inspector-placeholder-art{position:relative;width:78px;height:84px;margin:0 auto 34px;background:#f0f5f0;border:1px solid #e4ece3;border-radius:11px;display:grid;place-items:center;transform:rotate(-6deg);box-shadow:8px 8px 0 #f7f9f7}.inspector-placeholder-art>span{font-size:36px;color:#a9c1ac}.inspector-placeholder-art i{position:absolute;right:-12px;bottom:-10px;background:#dcebdc;color:#689773;border:4px solid white;border-radius:50%;font-size:20px;font-style:normal;height:37px;width:37px;display:grid;place-items:center}.inspector-placeholder h2{font-size:16px;line-height:1.6}.inspector-placeholder p{font-size:11px;color:#99a69a;line-height:1.9;margin-top:13px}.inspector-tip{padding:20px 24px;display:flex;gap:13px;border-top:1px solid #eef2ed;color:#95a892}.inspector-tip>span{font-size:24px}.inspector-tip p{font-size:10px;line-height:1.9}
@media(max-width:1200px){.chart-layout{grid-template-columns:minmax(0,1fr) 270px;gap:15px}.tree-node-link,.account-leaf{gap:8px}.branch-children{margin-left:12px;padding-left:6px}.tree-code{min-width:29px}.group-row{gap:5px}.inspector-header{padding:20px 18px 0}.inspector-identity,.inspector-section,.inspector-actions{padding-inline:18px}.account-properties{padding-inline:18px}.chart-search{min-width:180px}.chart-search-form{flex-basis:100%}.chart-actions{margin-left:auto}}
@media(max-width:950px){.chart-layout{grid-template-columns:1fr}.account-inspector{position:static}.account-tree{max-height:65vh}.inspector-placeholder{padding:30px}.inspector-placeholder-art{display:none}.inspector-tip{padding:15px 24px}.chart-search-form{flex-basis:100%}.chart-search{max-width:none}.chart-tree-panel{min-height:420px}.chart-actions{margin-left:0}}
@media(max-width:650px){.chart-toolbar{gap:12px}.chart-search-form{gap:8px}.chart-search{min-width:100%;padding-inline:10px}.chart-search-form select{flex:1;max-width:none;font-size:10px}.chart-actions{width:100%;justify-content:flex-end}.chart-panel-heading{padding:20px 16px}.tree-column-head{padding:12px 18px}.account-tree{padding:8px 6px 18px}.group-row{min-height:43px;gap:4px}.tree-node-link{gap:7px}.tree-name,.tree-code{font-size:10px}.tree-code{min-width:25px}.folder-icon{height:16px;width:16px}.branch-children{margin-left:9px;padding-left:5px}.account-leaf{gap:7px;padding:9px 7px}.account-leaf-mark{font-size:14px;width:13px}.tree-count{min-width:17px;font-size:8px}.chart-tree-footer{padding:13px 16px}.inspector-header .eyebrow{font-size:8px}.chart-actions a{font-size:10px}.tree-tools button{font-size:19px}}

.template-banner{background:#eaf2ec;border:1px solid #dbe7dd;border-radius:9px;padding:20px 23px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:24px}.template-banner h2{font-size:13px;font-weight:800}.template-banner p{font-size:11px;line-height:1.8;color:#728978;margin-top:8px}.template-banner a{display:inline-block;font-size:9px;color:#71907a;margin-top:8px}.template-banner form{flex-shrink:0}.template-banner button{white-space:normal;max-width:260px;text-align:left;line-height:1.6}.kontio-message{border:1px solid #d5e7d9;background:#eef7f0;color:#3e7750;padding:15px 20px;border-radius:7px;font-size:12px;margin-bottom:20px;line-height:1.7}@media(max-width:950px){.template-banner{align-items:flex-start;flex-direction:column;gap:15px}}

.tree-account-row { display: flex; align-items: center; }
.tree-account-row .account-leaf { flex: 1; min-width: 0; }
.tree-edit-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 36px;
  padding-inline: 7px;
  color: #23563f;
  font-size: 11px;
  text-decoration: underline;
}
