.profit-structure-tool{--bg-primary:#faf9f5;--bg-card:#fff;--bg-soft:#fbfaf7;--text-primary:#141413;--text-secondary:#747168;--text-muted:#aaa79d;--accent-orange:#d97757;--accent-blue:#5c8fba;--accent-green:#788c5d;--accent-red:#b65f55;--accent-amber:#b98524;--border-light:#e8e6dc;--shadow-soft:0 10px 28px #14141312;--sidebar-width:304px;--font-sans:"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;--font-serif:"Songti SC", STSong, "Noto Serif CJK SC", Georgia, serif}.profit-structure-tool,.profit-structure-tool *{box-sizing:border-box}.profit-structure-tool *{margin:0;padding:0}.profit-structure-tool{background:var(--bg-primary);height:100dvh;min-height:100dvh;color:var(--text-primary);font-family:var(--font-serif);display:flex;overflow:hidden}.profit-structure-tool button,.profit-structure-tool input,.profit-structure-tool select{font:inherit}.profit-structure-tool button{border:0}.profit-structure-tool .sidebar,.profit-structure-tool .main-content{scrollbar-width:thin;scrollbar-color:#d9d6cb var(--bg-primary)}.profit-structure-tool .sidebar::-webkit-scrollbar{width:8px;height:8px}.profit-structure-tool .main-content::-webkit-scrollbar{width:8px;height:8px}.profit-structure-tool .sidebar::-webkit-scrollbar-thumb{background:#d9d6cb;border-radius:999px}.profit-structure-tool .main-content::-webkit-scrollbar-thumb{background:#d9d6cb;border-radius:999px}.profit-structure-tool .profit-structure-access-gate{flex:1;place-items:center;width:100%;min-height:100%;padding:1.5rem;display:grid}.profit-structure-tool .profit-structure-access-card{border:1px solid var(--border-light);width:min(520px,100%);box-shadow:var(--shadow-soft);font-family:var(--font-sans);background:#ffffffd1;border-radius:8px;padding:1.35rem}.profit-structure-tool .profit-structure-access-icon{width:42px;height:42px;color:var(--accent-orange);background:#d977571f;border-radius:8px;justify-content:center;align-items:center;margin-bottom:.95rem;display:inline-flex}.profit-structure-tool .profit-structure-access-icon svg,.profit-structure-tool .profit-structure-spin{width:20px;height:20px}.profit-structure-tool .profit-structure-access-card h1{color:var(--text-primary);margin-top:.28rem;font-size:1.36rem;font-weight:800;line-height:1.25}.profit-structure-tool .profit-structure-access-card p{color:var(--text-secondary);margin-top:.6rem;font-size:.9rem;line-height:1.7}.profit-structure-tool .profit-structure-access-form{grid-template-columns:minmax(0,1fr) auto;gap:.65rem;margin-top:1.25rem;display:grid}.profit-structure-tool .profit-structure-access-form input{border:1px solid var(--border-light);background:var(--bg-card);min-width:0;height:44px;color:var(--text-primary);font-family:var(--font-sans);border-radius:8px;outline:none;padding:0 .78rem;font-size:.86rem}.profit-structure-tool .profit-structure-access-form input:focus{border-color:#d977579e;box-shadow:0 0 0 3px #d977571f}.profit-structure-tool .profit-structure-access-form button{cursor:pointer;background:var(--text-primary);color:#fff;min-width:76px;height:44px;font-family:var(--font-sans);border-radius:8px;justify-content:center;align-items:center;font-size:.86rem;font-weight:800;display:inline-flex}.profit-structure-tool .profit-structure-access-form button:disabled{cursor:not-allowed;opacity:.45}.profit-structure-tool .profit-structure-access-error{color:var(--accent-red);font-size:.82rem;font-weight:700}.profit-structure-tool .profit-structure-spin{animation:1s linear infinite profitStructureSpin}@keyframes profitStructureSpin{to{transform:rotate(360deg)}}.profit-structure-tool .sidebar{z-index:30;width:var(--sidebar-width);min-width:var(--sidebar-width);border-right:1px solid var(--border-light);background:#fffffff2;height:100dvh;padding:1.15rem .95rem 1.35rem;transition:margin-left .25s,opacity .25s,transform .25s;position:sticky;top:0;overflow-y:auto}.profit-structure-tool .sidebar.collapsed{margin-left:calc(-1 * var(--sidebar-width));opacity:0;pointer-events:none}.profit-structure-tool .sidebar-backdrop{display:none}.profit-structure-tool .sidebar-toggle{left:calc(var(--sidebar-width) - 46px);z-index:80;cursor:pointer;border:1px solid var(--border-light);background:var(--bg-card);width:32px;height:32px;color:var(--accent-orange);font-family:var(--font-sans);border-radius:8px;justify-content:center;align-items:center;font-size:1.25rem;line-height:1;display:flex;position:fixed;top:14px;box-shadow:0 6px 18px #14141314}.profit-structure-tool .sidebar-expand{z-index:120;cursor:pointer;min-width:96px;height:40px;color:var(--text-primary);font-family:var(--font-sans);background:#fffffff5;border:1px solid #e8e6dcf2;border-radius:999px;justify-content:center;align-items:center;font-size:.82rem;font-weight:700;line-height:1;position:fixed;top:14px;left:16px;box-shadow:0 10px 30px #14141329}.profit-structure-tool .sidebar-block{border-bottom:1px solid var(--border-light);margin-bottom:.95rem;padding-bottom:.95rem}.profit-structure-tool .sidebar-block:last-child{border-bottom:0}.profit-structure-tool .sidebar-kicker{color:var(--accent-orange);font-family:var(--font-sans);letter-spacing:0;text-transform:uppercase;font-size:.72rem;font-weight:800}.profit-structure-tool .sidebar-heading{color:var(--text-primary);font-family:var(--font-sans);margin-top:.35rem;font-size:1.34rem;line-height:1.25}.profit-structure-tool .sidebar-copy{color:var(--text-secondary);font-family:var(--font-sans);margin-top:.55rem;font-size:.82rem;line-height:1.65}.profit-structure-tool .sidebar-title{border-left:3px solid var(--accent-orange);color:var(--text-primary);font-family:var(--font-sans);margin-bottom:.75rem;padding-left:.65rem;font-size:.95rem;font-weight:800}.profit-structure-tool .message-area{margin-top:.75rem}.profit-structure-tool .message{font-family:var(--font-sans);border-radius:8px;padding:.55rem .7rem;font-size:.78rem;line-height:1.45}.profit-structure-tool .message.success{color:#5f7544;background:#788c5d1a;border:1px solid #788c5d47}.profit-structure-tool .message.error{color:var(--accent-red);background:#b65f5517;border:1px solid #b65f5547}.profit-structure-tool .upload-zone{background:var(--bg-soft);border:1px dashed #dcd8cd;border-radius:8px;min-height:62px;transition:border-color .2s,background .2s;display:block}.profit-structure-tool .upload-zone:hover,.profit-structure-tool .upload-zone.drag-over{border-color:var(--accent-orange);background:#fff7f2}.profit-structure-tool .upload-label{cursor:pointer;text-align:left;flex-direction:column;justify-content:center;align-items:flex-start;gap:.16rem;min-height:60px;padding:.6rem .7rem;display:flex}.profit-structure-tool .upload-title{color:var(--text-primary);font-family:var(--font-sans);font-size:.8rem;font-weight:800}.profit-structure-tool .upload-hint,.profit-structure-tool .empty-note{color:var(--text-muted);font-family:var(--font-sans);font-size:.74rem;line-height:1.45}.profit-structure-tool .button-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.65rem;display:grid}.profit-structure-tool .full-row{grid-column:1/-1}.profit-structure-tool .btn{cursor:pointer;min-height:38px;font-family:var(--font-sans);overflow-wrap:anywhere;text-align:center;border-radius:8px;justify-content:center;align-items:center;padding:.45rem .72rem;font-size:.8rem;font-weight:800;line-height:1.15;transition:transform .2s,box-shadow .2s;display:inline-flex}.profit-structure-tool .btn:hover{transform:translateY(-1px)}.profit-structure-tool .btn-primary{background:var(--accent-orange);color:#fff;box-shadow:0 8px 18px #d9775738}.profit-structure-tool .btn-secondary{border:1px solid var(--border-light);background:var(--bg-card);color:var(--text-primary)}.profit-structure-tool .form-grid{gap:.65rem;display:grid}.profit-structure-tool .field{color:var(--text-secondary);font-family:var(--font-sans);gap:.32rem;font-size:.76rem;font-weight:700;display:grid}.profit-structure-tool .input{border:1px solid var(--border-light);background:var(--bg-card);width:100%;min-width:0;min-height:38px;color:var(--text-primary);font-family:var(--font-sans);border-radius:8px;outline:none;padding:.45rem .55rem;font-size:.8rem}.profit-structure-tool .input:focus{border-color:#d977579e;box-shadow:0 0 0 3px #d977571f}.profit-structure-tool .filter-grid{max-height:48vh;padding-right:.2rem;overflow-y:auto}.profit-structure-tool .main-content{flex:1;min-width:0;height:100dvh;padding:1.3rem 1.4rem 1.8rem;overflow-y:auto}.profit-structure-tool .model-header,.profit-structure-tool .metrics-grid,.profit-structure-tool .diagnostic-summary-grid,.profit-structure-tool .workspace-grid{max-width:1480px;margin-left:auto;margin-right:auto}.profit-structure-tool .model-header{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1rem;display:flex}.profit-structure-tool .eyebrow{color:var(--accent-orange);font-family:var(--font-sans);letter-spacing:0;text-transform:uppercase;font-size:.74rem;font-weight:800}.profit-structure-tool .model-header h1{background:linear-gradient(135deg, var(--accent-orange), var(--accent-blue));color:#0000;font-family:var(--font-sans);-webkit-background-clip:text;background-clip:text;margin-top:.25rem;font-size:clamp(1.55rem,2.1vw,2.15rem);font-weight:800;line-height:1.18}.profit-structure-tool .model-subtitle{max-width:820px;color:var(--text-secondary);font-family:var(--font-sans);margin-top:.65rem;font-size:.95rem;line-height:1.7}.profit-structure-tool .data-status{color:#426f96;font-family:var(--font-sans);white-space:nowrap;background:#5c8fba1a;border:1px solid #5c8fba40;border-radius:999px;padding:.4rem .65rem;font-size:.78rem;font-weight:800}.profit-structure-tool .metrics-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-bottom:.85rem;display:grid}.profit-structure-tool .diagnostic-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:.85rem;display:grid}.profit-structure-tool .metric-card,.profit-structure-tool .diagnostic-card,.profit-structure-tool .panel{border:1px solid var(--border-light);background:var(--bg-card);box-shadow:var(--shadow-soft);border-radius:8px}.profit-structure-tool .metric-card{min-height:104px;font-family:var(--font-sans);align-content:center;gap:.28rem;padding:.85rem;display:grid}.profit-structure-tool .diagnostic-card{min-height:122px;font-family:var(--font-sans);background:linear-gradient(#fff,#fffaf6);border-color:#d9775733;align-content:center;gap:.38rem;padding:.9rem;display:grid}.profit-structure-tool .metric-card span{color:var(--text-secondary);font-size:.76rem;font-weight:700}.profit-structure-tool .diagnostic-card span{color:var(--accent-orange);font-size:.76rem;font-weight:800}.profit-structure-tool .metric-card strong{color:var(--text-primary);overflow-wrap:anywhere;font-size:clamp(1.08rem,1.5vw,1.42rem);line-height:1.15}.profit-structure-tool .diagnostic-card strong{color:var(--text-primary);overflow-wrap:anywhere;font-size:clamp(1rem,1.35vw,1.24rem);line-height:1.2}.profit-structure-tool .metric-card small{color:var(--text-muted);font-size:.72rem;line-height:1.35}.profit-structure-tool .diagnostic-card small{color:var(--text-secondary);font-size:.75rem;line-height:1.45}.profit-structure-tool .workspace-grid{gap:.85rem;margin-bottom:.85rem;display:grid}.profit-structure-tool .featured-grid,.profit-structure-tool .single-grid{grid-template-columns:minmax(0,1fr)}.profit-structure-tool .structure-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profit-structure-tool .middle-grid{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)}.profit-structure-tool .panel{min-width:0;padding:.9rem}.profit-structure-tool .panel-header{justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.65rem;display:flex}.profit-structure-tool .panel-header h2{color:var(--text-primary);font-family:var(--font-sans);font-size:1rem;font-weight:800;line-height:1.25}.profit-structure-tool .panel-header p{color:var(--text-secondary);font-family:var(--font-sans);margin-top:.28rem;font-size:.78rem;line-height:1.55}.profit-structure-tool .chart{width:100%;min-height:320px}.profit-structure-tool .chart-medium{min-height:360px}.profit-structure-tool .chart-tall,.profit-structure-tool .drag-panel{min-height:440px}.profit-structure-tool .drag-list{font-family:var(--font-sans);gap:.62rem;display:grid}.profit-structure-tool .drag-row{border:1px solid var(--border-light);background:var(--bg-soft);border-radius:8px;grid-template-columns:30px minmax(0,1fr) minmax(112px,auto);align-items:center;gap:.65rem;padding:.58rem;display:grid}.profit-structure-tool .drag-rank{width:26px;height:26px;color:var(--accent-red);background:#b65f551a;border-radius:999px;place-items:center;font-size:.72rem;font-weight:800;display:grid}.profit-structure-tool .drag-main{gap:.35rem;min-width:0;display:grid}.profit-structure-tool .drag-name{color:var(--text-primary);overflow-wrap:anywhere;font-size:.8rem;font-weight:800;line-height:1.32}.profit-structure-tool .drag-bar-track{background:#eee9df;border-radius:999px;height:7px;overflow:hidden}.profit-structure-tool .drag-bar-track span{border-radius:inherit;background:var(--accent-red);height:100%;display:block}.profit-structure-tool .drag-values{text-align:right;gap:.18rem;display:grid}.profit-structure-tool .drag-values strong{color:var(--accent-red);font-size:.88rem}.profit-structure-tool .drag-values small{color:var(--text-secondary);font-size:.7rem;line-height:1.35}.profit-structure-tool .chart-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.profit-structure-tool .chart-card{border:1px solid var(--border-light);background:var(--bg-card);border-radius:8px;min-width:0;padding:.75rem}.profit-structure-tool .chart-card-header{align-items:flex-start;gap:.65rem;margin-bottom:.45rem;display:flex}.profit-structure-tool .chart-card-header>span{background:var(--bg-soft);width:28px;height:28px;color:var(--accent-blue);border-radius:999px;flex:0 0 28px;place-items:center;font-size:.72rem;font-weight:800;display:inline-grid}.profit-structure-tool .chart-card h3{color:var(--text-primary);font-size:.86rem;font-weight:800;line-height:1.3}.profit-structure-tool .chart-card p{color:var(--text-secondary);margin-top:.24rem;font-size:.72rem;line-height:1.5}.profit-structure-tool .chart-compact{min-height:260px}.profit-structure-tool .empty-chart{background:var(--bg-soft);min-height:220px;color:var(--text-muted);font-family:var(--font-sans);border-radius:8px;place-items:center;font-size:.86rem;display:grid}.profit-structure-tool .insight-list{gap:.7rem;display:grid}.profit-structure-tool .insight-card{border:1px solid var(--border-light);background:var(--bg-soft);font-family:var(--font-sans);border-radius:8px;padding:.78rem}.profit-structure-tool .insight-card strong{color:var(--text-primary);font-size:.88rem}.profit-structure-tool .insight-card p{color:var(--text-secondary);margin-top:.35rem;font-size:.78rem;line-height:1.6}.profit-structure-tool .table-wrap{width:100%;overflow-x:auto}.profit-structure-tool .data-table{border-collapse:collapse;width:100%;min-width:980px;font-family:var(--font-sans);font-size:.78rem}.profit-structure-tool .data-table th,.profit-structure-tool .data-table td{border-bottom:1px solid var(--border-light);text-align:right;white-space:nowrap;padding:.62rem .55rem}.profit-structure-tool .data-table th:first-child,.profit-structure-tool .data-table td:first-child,.profit-structure-tool .data-table th:nth-child(2),.profit-structure-tool .data-table td:nth-child(2){text-align:left}.profit-structure-tool .data-table th{color:var(--text-secondary);font-weight:800}.profit-structure-tool .data-table td{color:var(--text-primary)}.profit-structure-tool .positive{color:#3f7d56;font-weight:800}.profit-structure-tool .negative{color:var(--accent-red);font-weight:800}.profit-structure-tool .layer-badge{border:1px solid color-mix(in srgb, var(--layer-color) 32%, white);background:color-mix(in srgb, var(--layer-color) 12%, white);min-height:24px;color:color-mix(in srgb, var(--layer-color) 82%, #141413);white-space:nowrap;border-radius:999px;align-items:center;padding:.2rem .55rem;font-size:.72rem;font-weight:800;display:inline-flex}@media (max-width:1180px){.profit-structure-tool .diagnostic-summary-grid,.profit-structure-tool .metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profit-structure-tool .chart-gallery{grid-template-columns:1fr}.profit-structure-tool .middle-grid,.profit-structure-tool .structure-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:900px){.profit-structure-tool{display:block}.profit-structure-tool .sidebar{z-index:90;position:fixed;top:0;left:0;transform:translate(0);box-shadow:18px 0 50px #1414132e}.profit-structure-tool .sidebar.collapsed{margin-left:0;transform:translate(-100%)}.profit-structure-tool .sidebar-backdrop{z-index:70;background:#14141333;display:none;position:fixed;inset:0}.profit-structure-tool .sidebar-backdrop.visible{display:block}.profit-structure-tool .main-content{height:100dvh;padding:4.35rem .85rem 1.2rem}.profit-structure-tool .model-header{gap:.75rem;display:grid}.profit-structure-tool .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-structure-tool .diagnostic-summary-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:620px){.profit-structure-tool{--sidebar-width:min(86vw, 304px)}.profit-structure-tool .model-header h1{font-size:1.38rem}.profit-structure-tool .model-subtitle{font-size:.86rem}.profit-structure-tool .metrics-grid{grid-template-columns:1fr}.profit-structure-tool .metric-card{min-height:86px}.profit-structure-tool .chart,.profit-structure-tool .chart-medium,.profit-structure-tool .chart-tall,.profit-structure-tool .drag-panel{min-height:300px}.profit-structure-tool .drag-row{grid-template-columns:26px minmax(0,1fr)}.profit-structure-tool .drag-values{text-align:left;grid-column:2}.profit-structure-tool .chart-compact{min-height:280px}.profit-structure-tool .panel{padding:.78rem}}
