:root{--ink:#0e0e0e;--muted:#777770;--line:#e3e2dc;--green:#1a9e6e;--mint:#e8f7f2;--bg:#f7f6f3;--white:#fff;--dark:#0e0e0e;--amber:#a66500;--accent:#ff2d55}
.layout{min-height:100vh}
body{background:var(--bg);color:var(--ink)}
.sidebar{width:230px;top:0;background:#fff;color:var(--ink);border-right:1px solid var(--line);padding-top:0}
.brand{padding:1.2rem 1.3rem;border-bottom:1px solid var(--line);font:700 14px Syne,sans-serif;letter-spacing:-.2px;color:var(--ink)}
.brand-mark{background:var(--ink);color:#fff;border-radius:7px;box-shadow:none}
.nav-item{font-size:13px;color:#6b6a65;border-left-color:transparent;border-radius:0;padding:10px 1.3rem}
.nav-item:hover{background:#f7f6f3;color:#0e0e0e}
.nav-item.selected{background:#f7f6f3;color:#0e0e0e;border-left:2px solid var(--accent);box-shadow:none;font-weight:600}
.side-label{color:#96958f;padding:1rem 1.3rem .35rem;letter-spacing:1px}
.sidebar-wallet{margin:.8rem;background:#f7f6f3;border:1px solid var(--line);border-radius:8px;padding:.9rem 1rem}
.wallet-label{color:#8e8d86;font-size:11px}.wallet-balance{font:600 21px "DM Sans",sans-serif;font-variant-numeric:tabular-nums}
.wallet-actions{margin-top:10px}.wallet-btn{font-size:11px;border-color:#deddd7;border-radius:6px}.wallet-btn:hover{background:#0e0e0e;color:white}
.status-card{background:#f7f6f3;border-color:#e3e2dc;color:#30302d}.status-card .pulse{background:#1a9e6e;box-shadow:0 0 0 3px #1a9e6e20}.status-card small,.profile-mini small{color:#8a8982}.profile-mini{color:#0e0e0e;border-top:1px solid var(--line)}
.main{margin-left:230px;width:calc(100% - 230px);min-height:100vh}.topbar{height:56px;padding:0 2rem}.content{padding:2rem;max-width:1600px}.crumb{font-size:12px}.live{font-size:9px;color:#76766f}
.primary{background:#0e0e0e;border-color:#0e0e0e;border-radius:7px;color:#fff;box-shadow:none}.primary:hover{background:#30302d}.secondary{border-color:#d9d8d2;border-radius:7px;color:#0e0e0e}.secondary:hover{background:#f7f6f3}
.page-heading h1,.auth-card h1{font-family:Syne,sans-serif;letter-spacing:-.8px}.page-heading h1 span{color:var(--accent)}.eyebrow{color:#777770;letter-spacing:.8px}
.stat-card,.panel{border-radius:9px;box-shadow:none;border-color:#e3e2dc}.stat-label{color:#777770}.stat-value{font-family:"DM Sans",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.5px}.stat-icon{border-radius:6px;color:#3d3d39}.notice{background:#fff8f0;border-color:#f0ddc4;color:#805721}.notice p{color:#9b7d55}
.auth-shell{min-height:100vh;background:#f7f6f3}.auth-brand{font-size:17px;color:#0e0e0e}.auth-brand .brand-mark{background:#0e0e0e;color:#fff}.auth-card{border-radius:9px;box-shadow:none}.auth-card .primary{background:#0e0e0e}.auth-disclaimer{color:#88877f}
.wallet-hero{background:#0e0e0e;color:#fff;border-radius:11px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;min-height:155px}.wallet-hero span,.wallet-hero small{display:block;color:#bebdb6;font-size:12px}.wallet-hero strong{display:block;font:600 32px "DM Sans",sans-serif;font-variant-numeric:tabular-nums;margin:6px 0}.wallet-hero-icon{font-size:37px;color:#ff2d55;padding:14px 16px;border:1px solid #ffffff23;border-radius:12px}.wallet-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:16px}.wallet-action{display:grid;grid-template-columns:38px 1fr;column-gap:12px;text-align:left;cursor:pointer;color:var(--ink)}.wallet-action b,.wallet-action small{grid-column:2}.wallet-action small{font-size:10px;color:#88877f}.action-icon{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;background:#f1f0eb;border-radius:8px;font-size:18px}.small-adjust{padding:6px 9px;font-size:9px}.action-pair{display:flex;gap:8px}
.chat-shell{min-height:540px;display:grid;grid-template-columns:240px 1fr;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.chat-threads{background:#fbfbf9;border-right:1px solid var(--line);padding:14px 0}.chat-threads h3{font:700 12px Syne;padding:0 14px 12px}.chat-thread{width:100%;border:0;background:none;text-align:left;padding:12px 14px;cursor:pointer;border-left:2px solid transparent}.chat-thread.active{background:#f2f1ed;border-left-color:#ff2d55}.chat-thread b,.chat-thread small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-thread b{font-size:11px;color:#242421}.chat-thread small{font-size:9px;color:#8b8a83;margin-top:5px}.chat-pane{display:flex;flex-direction:column;min-width:0}.chat-head{height:60px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 17px}.chat-head b,.chat-head small{display:block}.chat-head b{font-size:11px}.chat-head small{font-size:9px;color:#88877f;margin-top:3px}.online-dot{width:7px;height:7px;background:#1a9e6e;border-radius:50%;margin-left:auto}.chat-messages{flex:1;min-height:390px;max-height:500px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:#fdfdfc}.chat-message{max-width:min(78%,460px);padding:10px 12px;border-radius:9px}.chat-message p{font-size:11px;line-height:1.55;margin:0}.chat-message small{display:block;text-align:right;font-size:8px;color:#88877f;margin-top:5px}.chat-message.sent{align-self:flex-end;background:#0e0e0e;color:#fff;border-bottom-right-radius:3px}.chat-message.received{align-self:flex-start;background:#f0efe9;color:#252522;border-bottom-left-radius:3px}.chat-message.sent small{color:#aaa9a2}.chat-compose{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.chat-compose input{flex:1;min-width:0;border:1px solid var(--line);border-radius:7px;padding:10px;font:11px "DM Sans";outline:none}.chat-compose input:focus{border-color:#0e0e0e}
.ref-rates input:focus,.tier-edit input:focus,.settings-cycle-panel input:focus{border-color:#ff2d55;box-shadow:0 0 0 2px #ff2d5515}
@media(max-width:1050px){.sidebar{top:0}.topbar{padding:0 22px}.content{padding:24px 22px}}
@media(max-width:680px){.sidebar{width:61px;padding-top:0}.main{margin-left:61px;width:calc(100% - 61px)}.brand{padding:1rem .45rem 1rem;justify-content:center}.sidebar-wallet{padding:8px 5px;margin:6px 4px;text-align:center}.wallet-label{font-size:8px}.wallet-balance{font-size:13px}.wallet-actions{display:none}.status-card{border:0;background:transparent}.status-card .pulse{margin:auto}.topbar{padding:0 14px 0 72px}.content{padding:20px 12px}.wallet-actions-grid{grid-template-columns:1fr}.chat-shell{grid-template-columns:1fr}.chat-threads{border-right:0;border-bottom:1px solid var(--line);max-height:148px;overflow:auto}.chat-thread{padding:9px 14px}.chat-messages{min-height:300px}.chat-head{height:54px}}
:root{--black:#0e0e0e;--white:#fafaf8;--gray-50:#f7f6f3;--gray-100:#f0efe9;--gray-200:#e3e2dc;--gray-400:#aeada6;--gray-500:#8b8a83;--gray-600:#6b6a65;--green:#1a9e6e;--amber:#e07b00;--blue:#1a6fb5}
.candle-chart-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:4px 0 12px}.candle-timeframes{display:flex;gap:3px;padding:3px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:8px}.tpgp-tf-btn,.tpgp-proj-btn{border:1px solid var(--gray-200);background:#fff;color:var(--gray-600);font:600 12px "DM Sans",sans-serif;padding:6px 12px;border-radius:6px;cursor:pointer}.tpgp-proj-btn{border-radius:8px}.tpgp-tf-btn:hover,.tpgp-proj-btn:hover{border-color:#aaa9a2}.tpgp-ctlbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0 0 8px}.tpgp-ctlbar .tpgp-ctl:nth-child(5){margin-left:auto}.tpgp-ctl{min-width:32px;height:30px;padding:0 8px;border:1px solid var(--gray-200);background:#fff;color:var(--gray-600);border-radius:7px;cursor:pointer;font:600 10px "DM Sans",sans-serif}.tpgp-ctl:hover{border-color:var(--gray-400);color:var(--black)}.tpgp-ctl.on{background:var(--black);border-color:var(--black);color:#fff}.tpgp-ctl:focus-visible,.tpgp-tf-btn:focus-visible,.tpgp-proj-btn:focus-visible{outline:2px solid var(--black);outline-offset:2px}.tpgp-canvas{background:#fff;border-radius:8px;touch-action:none}.tpgp-canvas:focus-visible{outline:2px solid var(--black);outline-offset:2px}.candle-chart-header{margin:8px 0 10px}.candle-chart-disclaimer{font-size:11px;color:var(--gray-400);margin:8px 0 0;line-height:1.5}
.wallet-hero{background:var(--black);border-radius:12px;padding:2rem;color:var(--white);margin-bottom:1.2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.wallet-hero-bal{font:600 36px "DM Sans",sans-serif;letter-spacing:-.03em;margin:.3rem 0;font-variant-numeric:tabular-nums lining-nums}.wallet-hero-label{font-size:13px;color:rgba(255,255,255,.55)}.wallet-partner-id{font-size:12px;color:rgba(255,255,255,.45);margin-top:4px}.wallet-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.wallet-action-btn{font:500 13px "DM Sans",sans-serif;padding:9px 18px;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .15s}.wab-deposit{background:var(--white);color:var(--black);border:0}.wab-withdraw{background:rgba(255,255,255,.12);color:var(--white);border:1px solid rgba(255,255,255,.2)}.wab-deposit:hover{opacity:.88}.wab-withdraw:hover{background:rgba(255,255,255,.2)}.wallet-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.wallet-card{background:var(--white);border:1px solid var(--gray-200);border-radius:12px;padding:1.1rem;min-width:0}.wallet-card-label{font-size:11.5px;color:var(--gray-400);margin-bottom:5px}.wallet-card-value{font:600 20px "DM Sans",sans-serif;letter-spacing:-.02em;font-variant-numeric:tabular-nums lining-nums;overflow-wrap:anywhere}.wallet-card-sub{font-size:10.5px;color:var(--gray-400);margin-top:4px;line-height:1.45}.wallet-history-head{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:1.5rem}.wallet-history-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.wallet-history-tools .form-select{width:auto;min-width:130px;font-size:12px}.btn-outline{font:500 13px "DM Sans",sans-serif;background:none;color:var(--black);border:1px solid var(--gray-200);border-radius:8px;padding:8px 14px;cursor:pointer}.btn-outline:hover{background:var(--gray-50)}.wallet-txn-list{padding:0 1.2rem;max-height:480px;overflow-y:auto}.txn-item{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--gray-200)}.txn-item:last-child{border-bottom:0}.txn-icon{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.txn-icon-in{background:#e8f7f2;color:var(--green)}.txn-icon-out{background:#fff0f2;color:var(--accent)}.txn-icon-pending{background:#fff4e0;color:var(--amber)}.txn-label{font-size:13px;font-weight:500}.txn-sub{font-size:12px;color:var(--gray-400)}.txn-amount{margin-left:auto;font-size:14px;font-weight:600;white-space:nowrap}.txn-amount.in{color:var(--green)}.txn-amount.out{color:var(--accent)}
@media(max-width:1050px){.wallet-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.wallet-hero{padding:1.25rem;align-items:flex-start;flex-direction:column}.wallet-hero-bal{font-size:30px}.wallet-hero-actions{width:100%}.wallet-action-btn{flex:1;justify-content:center;min-height:44px}.wallet-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.wallet-card{padding:.8rem}.wallet-card-label{font-size:11px;line-height:1.3}.wallet-card-value{font-size:18px}.wallet-card-sub{font-size:10px}.wallet-history-tools{justify-content:flex-start;width:100%}.wallet-history-tools .form-select{flex:1;min-width:110px}.wallet-history-tools .btn-outline{width:100%}.candle-chart-controls{align-items:stretch}.candle-timeframes{flex:1;justify-content:space-between}.tpgp-tf-btn{flex:1;padding:6px}.tpgp-proj-btn{min-height:34px}#tpgpChartDash{height:240px!important}.tpgp-ctl{min-height:34px}}
.investment-hero{background:linear-gradient(135deg,#1b1b1b,#0e0e0e);color:#fff;border-radius:14px;padding:1.5rem 1.7rem;margin-bottom:1.2rem;display:flex;align-items:flex-end;justify-content:space-between;gap:1.2rem;flex-wrap:wrap}.investment-hero .eyebrow{color:rgba(255,255,255,.55);margin-bottom:.8rem}.investment-hero-label{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:rgba(255,255,255,.45)}.investment-hero-value{font:700 32px "DM Sans",sans-serif;letter-spacing:-.5px;line-height:1.1;font-variant-numeric:tabular-nums lining-nums}.investment-hero-gain{font-size:12px;color:#5fd0a6;margin-top:4px}.investment-hero-metrics{display:flex;gap:1.4rem;flex-wrap:wrap}.investment-hero-metrics small,.investment-hero-metrics b{display:block}.investment-hero-metrics small{font-size:11px;color:rgba(255,255,255,.45)}.investment-hero-metrics b{font:600 20px "DM Sans",sans-serif;margin-top:3px;font-variant-numeric:tabular-nums lining-nums}.source-page-heading{margin:1.1rem 0 1.2rem}.tier-band{margin:.5rem 0 1rem}.tier-band-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}.tier-band-head b,.tier-band-head small{display:block}.tier-band-head b{font:700 15px Syne,sans-serif}.tier-band-head small{font-size:11.5px;color:var(--gray-500);margin-top:3px}.tier-band-head>span{font-size:11px;color:var(--gray-600);background:var(--gray-100);padding:6px 10px;border-radius:100px}.tier-band-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.tier-band-item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--gray-200);border-radius:9px;padding:.7rem .8rem;min-width:0}.tier-band-item>i{width:7px;height:7px;border-radius:50%;background:#c4c3bc;flex:none}.tier-band-item.active{border-color:#a9d9c2;background:#f2faf5}.tier-band-item.active>i{background:var(--green)}.tier-band-item>span{flex:1;min-width:0}.tier-band-item b,.tier-band-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tier-band-item b{font-size:11.5px}.tier-band-item small{font-size:10px;color:var(--gray-500);margin-top:3px}.tier-band-item strong{font-size:13px}.source-chart-panel,.source-allocate-panel,.source-positions-panel{margin-bottom:1rem;border-radius:14px;padding:1.1rem 1.2rem}.source-chart-panel .panel-head h2,.source-allocate-panel .panel-head h2,.source-positions-panel .panel-head h2{font:700 15px Syne,sans-serif}.source-chart-panel .panel-head p,.source-allocate-panel .panel-head p,.source-positions-panel .panel-head p{font-size:11.5px}.allocation-form{display:flex;align-items:flex-end;gap:.8rem;flex-wrap:wrap}.allocation-form label{flex:1;min-width:200px;font-size:12px;color:var(--gray-600)}.allocation-form input{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid var(--gray-200);border-radius:8px;background:#fff;color:var(--black);font:13px "DM Sans",sans-serif}.allocation-form input:focus{outline:2px solid #0e0e0e;outline-offset:1px}.allocation-form .primary{padding:11px 24px}.allocation-hint{font-size:12px;color:var(--gray-500);margin-top:10px}.source-positions-panel .table-wrap{border:0}.source-positions-panel th{font-size:11px;text-transform:uppercase;letter-spacing:.4px}.source-positions-panel td{font-size:12px}
@media(max-width:680px){.investment-hero{align-items:flex-start;flex-direction:column;padding:1.2rem}.investment-hero-metrics{gap:.8rem 1.2rem}.investment-hero-metrics>div{min-width:90px}.investment-hero-metrics b{font-size:17px}.tier-band-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.tier-band-item{padding:.6rem}.source-chart-panel,.source-allocate-panel,.source-positions-panel{padding:.9rem}.source-page-heading{align-items:flex-start}}

