.tree-page{padding-top:18px}.tree-hero{display:grid;grid-template-columns:1.08fr .92fr;gap:42px;align-items:center;padding:58px;border:1px solid #dce2ec;border-radius:24px;background:linear-gradient(135deg,#e9f8f3,#fff 56%,#eeedff)}.tree-hero h1{max-width:760px;margin:0 0 18px;font-size:clamp(48px,5vw,70px);line-height:1.04;letter-spacing:-3px}.tree-hero .lead{max-width:760px;color:#59657b;font-size:20px}.tree-hero-diagram{position:relative;padding:28px 28px 22px;border:1px solid #dbe1ec;border-radius:18px;background:#fff;box-shadow:0 16px 40px rgba(32,40,70,.08)}.hero-node,.hero-children>div{display:grid;place-items:center;min-height:66px;padding:12px;border:3px solid #5b4ee8;border-radius:12px;background:#f0efff;text-align:center;font-weight:850}.hero-node{max-width:210px;margin:auto}.hero-branches{display:grid;grid-template-columns:1fr 1fr;margin:8px auto -3px;max-width:390px;color:#68738a;font:750 13px 'DM Mono';text-align:center}.hero-children{display:grid;grid-template-columns:1fr 1fr;gap:32px}.hero-children>div{border-color:#df5278;background:#fff1f5}.hero-children .leaf.yes{border-color:#10a287;background:#e8f8f4}.hero-caption{margin-top:15px;color:#647087;text-align:center;font-size:15px}.tree-section,.tree-lab,.tree-code-section{margin-top:76px}.tree-heading{max-width:1000px;margin-bottom:28px}.tree-heading h2,.tree-code-section h2{margin:0 0 11px;font-size:clamp(36px,4vw,54px);line-height:1.1;letter-spacing:-2px}.tree-heading>p:last-child,.tree-code-section>p{color:#5d687e;font-size:19px!important}.mixed-type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mixed-type-grid article{padding:25px;border:1px solid var(--line);border-top:5px solid #5b4ee8;border-radius:13px;background:#fff}.mixed-type-grid article:nth-child(2){border-top-color:#e47c42}.mixed-type-grid article:nth-child(3){border-top-color:#0fa287}.mixed-type-grid h3{margin:13px 0 8px;font-size:25px}.mixed-type-grid p{color:#5d687e;font-size:17px!important}.mixed-type-grid code{display:block;margin-top:13px;padding:13px;border-radius:8px;background:#252d46;color:#fff;font:650 16px/1.6 'DM Mono'}.type{display:inline-block;padding:6px 9px;border-radius:6px;background:#e9e7ff;color:#4b42c1;font-size:13px;font-weight:900}.type.discrete{background:#fff0e4;color:#a75624}.type.category{background:#e5f8f3;color:#087c66}.tree-example-table{margin-top:18px}.tree-example-table table,.candidate-table,.editable-data-table{width:100%;border-collapse:collapse;font-size:16px}.tree-example-table th,.tree-example-table td,.candidate-table th,.candidate-table td,.editable-data-table th,.editable-data-table td{padding:14px;border-right:1px solid #dfe4ef;border-bottom:1px solid #dfe4ef;text-align:left}.tree-example-table th,.candidate-table th,.editable-data-table th{background:#293049;color:#fff}.tree-example-table tbody tr:nth-child(even),.candidate-table tbody tr:nth-child(even){background:#f7f8fb}.tree-note{margin-top:18px;padding:20px;border-left:5px solid #5b4ee8;border-radius:0 11px 11px 0;background:#efefff;color:#46506a;font-size:17px;line-height:1.7}.tree-note strong{color:#342baa}.gini-flow{display:grid;grid-template-columns:1fr 54px 1fr 54px 1fr;gap:12px;align-items:stretch}.gini-flow article{padding:24px;border:1px solid var(--line);border-radius:13px;background:#fff}.gini-flow b{display:block;color:#4e46cf;font-size:20px}.gini-flow code{display:block;margin:13px 0;padding:15px;border-radius:8px;background:#252d46;color:#fff;font:650 16px/1.75 'DM Mono'}.gini-flow p{color:#5d687e;font-size:17px!important}.gini-flow>i{display:grid;place-items:center;color:#5b4ee8;font-size:28px;font-style:normal}.tree-lab{padding-top:5px}.tree-lab-layout{display:grid;grid-template-columns:310px 1fr;gap:18px}.tree-controls{position:sticky;top:94px;align-self:start;display:grid;gap:13px;padding:25px;border:1px solid var(--line);border-radius:15px;background:#fff}.tree-controls h3{margin:0 0 5px;font-size:27px}.tree-controls label{display:grid;gap:7px;color:#525e75;font-size:13px;font-weight:850}.tree-controls select{width:100%;padding:12px;border:1px solid #cbd2e1;border-radius:8px;background:#fff;color:#202940;font:700 16px Manrope}.tree-controls .button{width:100%}.tree-control-reading{margin-top:4px;padding:15px;border-left:4px solid #5b4ee8;border-radius:0 9px 9px 0;background:#f0efff;color:#4b5570;font-size:15px;line-height:1.65}.tree-lab-main{min-width:0}.tree-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.tree-metrics article{padding:17px;border:1px solid var(--line);border-top:4px solid #5b4ee8;border-radius:11px;background:#fff}.tree-metrics article:nth-child(2){border-top-color:#df5278}.tree-metrics article:nth-child(3){border-top-color:#e47c42}.tree-metrics article:nth-child(4){border-top-color:#0fa287}.tree-metrics span,.tree-metrics strong{display:block}.tree-metrics span{color:#667087;font-size:13px;font-weight:850}.tree-metrics strong{margin-top:6px;font:800 24px 'DM Mono'}.tree-card{margin-top:16px;padding:25px;border:1px solid var(--line);border-radius:14px;background:#fff}.tree-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.tree-card h3{margin:0;font-size:27px}.tree-card-top p{margin:5px 0 0;color:#606b82;font-size:17px!important}.tree-card-top .button{white-space:nowrap}.editable-data-table input,.editable-data-table select{min-width:120px;width:100%;padding:10px;border:1px solid #ccd3e2;border-radius:7px;background:#fff;color:#202940;font:650 16px Manrope}.editable-data-table th small{color:#cfd5e8;font-size:11px}.editable-data-table td:last-child{width:58px}.tree-remove-row{display:grid;place-items:center;width:38px;height:38px;border:1px solid #efb4bf;border-radius:8px;background:#fff4f6;color:#b8324d;font-size:19px;font-weight:900;cursor:pointer}.tree-validation{margin-top:12px;color:#5f6a80;font-size:15px}.tree-validation.error{padding:12px;border-radius:8px;background:#fff0f3;color:#b2344d;font-weight:750}.tree-status{padding:8px 12px;border-radius:999px;background:#efefff;color:#4e46cf;font-size:13px;font-weight:850;white-space:nowrap}.tree-status.success{background:#e5f8f3;color:#087c66}.tree-canvas-scroll{overflow:auto;border:1px solid #e1e5ef;border-radius:10px;background:#fbfcff}.tree-canvas-scroll canvas{display:block;width:100%;min-width:930px;height:auto;background:#fbfcff}.tree-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:13px;color:#5f6a80;font-size:15px;font-weight:750}.tree-legend i{display:inline-block;width:25px;height:13px;margin-right:7px;border-radius:4px;background:#5b4ee8;vertical-align:middle}.tree-legend .yes{background:#0fa287}.tree-legend .no{background:#df5278}.tree-legend .waiting{border:2px dashed #9ca5b8;background:transparent}.gini-calculation{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.gini-calculation article{padding:19px;border-left:5px solid #5b4ee8;border-radius:0 10px 10px 0;background:#f5f6fb}.gini-calculation article:nth-child(2n){border-color:#0fa287}.gini-calculation article.wide{grid-column:1/-1}.gini-calculation b{display:block;color:#433ac0;font-size:18px}.gini-calculation p{color:#59657c;font-size:16px!important}.gini-calculation code{display:block;margin-top:11px;padding:14px;border-radius:8px;background:#252d46;color:#fff;font:650 16px/1.75 'DM Mono';overflow:auto}.gini-calculation code strong{color:#6ee7cf}.candidate-table{white-space:nowrap}.candidate-table tr.best{background:#e8f8f4!important;box-shadow:inset 5px 0 0 #0fa287}.candidate-table tr.best td:first-child{font-weight:900;color:#087c66}.prediction-form{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:11px;align-items:end}.prediction-form label{display:grid;gap:7px;color:#566178;font-size:13px;font-weight:850}.prediction-form input{width:100%;padding:11px;border:1px solid #cbd2e1;border-radius:8px;font:650 16px Manrope}.prediction-result{margin-top:16px;padding:18px;border-left:5px solid #5b4ee8;border-radius:0 10px 10px 0;background:#f0efff;color:#404b64;font-size:17px;line-height:1.7}.prediction-result strong{color:#3329b5}.prediction-result .path{display:block;margin-top:8px;font:650 15px/1.75 'DM Mono'}.tree-code-section{padding:35px;border:1px solid var(--line);border-radius:17px;background:#fff}.code-function-list{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.code-function-list span{padding:9px 12px;border-radius:7px;background:#e9e7ff;color:#463dbd;font:750 14px 'DM Mono'}.tree-code-section pre{max-height:720px;margin:0;padding:24px;border-radius:12px;background:#172036;color:#eef2ff;overflow:auto;font:600 16px/1.8 'DM Mono'}.tree-code-section pre code{font:inherit}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.tree-history{display:block;width:100%;height:auto;border:1px solid #e1e5ef;border-radius:10px;background:#fbfcff}.tree-chart-legend{display:flex;gap:20px;margin-top:12px;color:#5f6a80;font-size:15px;font-weight:750}.tree-chart-legend i{display:inline-block;width:28px;margin-right:7px;border-top:4px solid;vertical-align:middle}.tree-chart-legend .error{border-color:#df5278}.tree-chart-legend .accuracy{border-color:#0fa287}
@media(max-width:1100px){.tree-lab-layout{grid-template-columns:1fr}.tree-controls{position:static;grid-template-columns:repeat(2,1fr)}.tree-controls h3,.tree-control-reading{grid-column:1/-1}.tree-metrics{grid-template-columns:1fr 1fr}.prediction-form{grid-template-columns:1fr 1fr}.prediction-form .button{grid-column:1/-1}.mixed-type-grid{grid-template-columns:1fr 1fr}.mixed-type-grid article:last-child{grid-column:1/-1}}
@media(max-width:800px){.tree-hero{grid-template-columns:1fr;padding:38px 24px}.tree-hero h1{font-size:44px;letter-spacing:-2px}.mixed-type-grid,.gini-flow,.gini-calculation{grid-template-columns:1fr}.mixed-type-grid article:last-child,.gini-calculation article.wide{grid-column:auto}.gini-flow>i{transform:rotate(90deg)}.tree-controls,.tree-metrics,.prediction-form{grid-template-columns:1fr}.tree-controls h3,.tree-control-reading,.prediction-form .button{grid-column:auto}.tree-card,.tree-code-section{padding:20px 17px}.tree-card-top{display:block}.tree-card-top .button,.tree-card-top .tree-status{display:inline-flex;margin-top:12px}.tree-code-section pre{font-size:14px}.hero-children{gap:12px}}
