.profit-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}.profit-workspace section{min-width:0}.profit-panel{background:white;border:1px solid #cbd8df;border-radius:8px;padding:26px}.profit-panel h2{margin-top:0}.profit-panel label{display:block;font-weight:650;margin:15px 0}.profit-panel input,.profit-panel select{display:block;width:100%;box-sizing:border-box;min-height:45px;margin-top:6px;padding:10px;border:1px solid #8199a6;border-radius:4px;font:inherit;color:#163c4f;background:white}.profit-panel button,.profit-actions button{padding:11px 16px;min-height:44px;border:1px solid #086678;border-radius:4px;background:#086678;color:white;font:600 15px/1.4 system-ui;cursor:pointer}.profit-panel button.secondary,.profit-actions button.secondary{background:white;color:#086678}.profit-panel button:disabled{opacity:.6;cursor:wait}.profit-panel small,.profit-panel .hint{font-size:14px;font-weight:400;line-height:1.5;color:#3c5665;display:block}.profit-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.profit-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.profit-panel fieldset{border:0;padding:0;margin:0}.profit-panel legend{font-weight:700;font-size:18px;margin:12px 0}.profit-panel [hidden],.profit-chart[hidden]{display:none!important}#coin-results{padding:0;list-style:none;max-height:230px;overflow:auto}#coin-results button{background:#eef5f5;color:#164653;width:100%;text-align:left;margin:3px 0}#quote-status,#profit-status,#export-status{font-size:14px;line-height:1.5;overflow-wrap:anywhere}#quote-status{border-left:3px solid #087184;padding-left:10px}.purchase-row{border:1px solid #cbd8df;border-radius:5px;padding:12px;margin:14px 0}.purchase-row h3{margin:0;font-size:16px}.profit-total{font-size:clamp(28px,4vw,44px);line-height:1.2;margin:10px 0;color:#086678;overflow-wrap:anywhere}.profit-total.loss{color:#a82b32}.profit-summary{padding:15px;background:#eaf4f3;border-left:4px solid #087184;line-height:1.7}.profit-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profit-metrics div{border-bottom:1px solid #d6e1e5;padding:10px 0;min-width:0}.profit-metrics dt{font-size:13px;color:#405d6b}.profit-metrics dd{font-size:18px;font-weight:650;margin:5px 0;overflow-wrap:anywhere}.profit-chart{margin-top:28px}.profit-chart svg{display:block;width:100%;height:auto;max-height:400px;background:#fff;border:1px solid #cbd8df;border-radius:7px}.scenario-wrap{overflow-x:auto}.scenario-wrap table{width:100%;border-collapse:collapse;margin-top:18px;font-size:14px}.scenario-wrap th,.scenario-wrap td{padding:10px 8px;text-align:right;border-bottom:1px solid #d5e0e5;white-space:nowrap}.scenario-wrap th:first-child,.scenario-wrap td:first-child{text-align:left}.profit-panel:focus{outline:3px solid #c17b13;outline-offset:4px}.profit-panel input:focus-visible,.profit-panel select:focus-visible,.profit-panel button:focus-visible,.profit-actions button:focus-visible{outline:3px solid #c17b13;outline-offset:3px}.profit-explanation{max-width:920px;line-height:1.75;margin:38px 0}.profit-explanation h2{margin-top:30px}.profit-kicker{font:700 13px system-ui;letter-spacing:.08em;color:#087184}.profit-notice{background:#fff5db;padding:14px;border-radius:4px;font-size:14px;line-height:1.6}.profit-intro{max-width:830px;margin-bottom:28px}.profit-intro .lead{max-width:780px}.profit-panel hr{border:0;border-top:1px solid #d5e0e5;margin:24px 0}@media(max-width:850px){.profit-workspace{grid-template-columns:1fr}.profit-panel{padding:20px}}@media(max-width:430px){.profit-pair{grid-template-columns:1fr;gap:0}.profit-metrics{gap:10px}.profit-metrics dd{font-size:16px}.profit-panel{padding:17px}}@media print{header,footer,.profit-input,.profit-actions,.breadcrumb{display:none!important}.profit-workspace{display:block}.profit-panel{border:0}.profit-chart svg{max-height:280px}.scenario-wrap{overflow:visible}}

.profit-panel p,.profit-summary,.profit-explanation{overflow-wrap:anywhere}.target-panel{margin-top:28px}.inline-check{display:flex!important;gap:12px;align-items:center}.inline-check input{width:20px!important;min-height:20px!important;flex-shrink:0}#target-result[hidden]{display:none!important}#target-result{scroll-margin-top:24px}#target-result:focus{outline:3px solid #c17b13;outline-offset:5px}

.profit-panel form{display:block}.profit-panel textarea{width:100%;box-sizing:border-box;font:inherit;padding:12px}.allocation-track{height:10px;border-radius:4px;background:#edf2f3;margin:5px 0;overflow:hidden}.allocation-track span{display:block;height:100%}.before-bar{background:#7c8c93}.after-bar{background:#087184}#allocation-bars p{font-size:13px;margin:17px 0 5px}

.crypto-row{border-left:3px solid #087184;padding-left:12px}.profit-panel input[readonly]{background:#edf3f5;color:#405d6b}#crypto-tools{background:#eef6f6;padding:14px;border-radius:5px}#crypto-tools button{margin:5px 4px 5px 0}#threshold-help{max-width:65ch}

.history-wide{margin-top:30px}.weight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.history-chart svg{width:100%;height:auto;display:block}.legend{display:flex;gap:22px;flex-wrap:wrap}.legend span:nth-child(1){color:#34495e}.legend span:nth-child(2){color:#087184}.legend span:nth-child(3){color:#bb5728}.daily-scroll{max-height:390px;overflow:auto}.daily-scroll thead{position:sticky;top:0;background:#fff}#inspect{padding:0;min-height:36px}#day-detail{font-variant-numeric:tabular-nums;min-height:48px}@media(max-width:600px){.weight-grid{grid-template-columns:1fr}.history-wide{padding:14px}.legend{gap:12px;font-size:14px}}
