:root{
--ink:#14211d;
--muted:#718079;
--line:#e4e9e6;
--canvas:#f4f6f3;
--panel:#fff;
--forest:#183b32;
--sage:#b8cfbb;
--mint:#e6f1e8;
--green:#23815e;
--red:#c44f52;
--amber:#b67a25;
--violet:#7457a5;
--blue:#427aa1;
--shadow:0 12px 34px rgba(24,59,50,.07)}
[hidden]{display:none!important}

*{
box-sizing:border-box}
html{
scroll-behavior:smooth}
body{
margin:0;
background:var(--canvas);
color:var(--ink);
font-family:"DM Sans",sans-serif;
font-size:14px}
.sidebar{
position:fixed;
inset:0 auto 0 0;
width:244px;
background:var(--forest);
color:#fff;
padding:30px 22px 24px;
display:flex;
flex-direction:column;
z-index:10}
.brand{
display:flex;
align-items:center;
gap:12px;
color:#fff;
text-decoration:none;
font:700 19px Manrope}
.brand-mark{
width:35px;
height:35px;
display:grid;
place-items:center;
border-radius:11px;
background:#d7e5d6;
color:var(--forest);
font-weight:800}
.sidebar nav{
margin-top:52px;
display:grid;
gap:8px}
.nav-item{
border:0;
background:transparent;
color:#aebdb8;
padding:13px 14px;
border-radius:11px;
text-align:left;
font:500 14px "DM Sans";
cursor:pointer;
display:flex;
gap:13px;
align-items:center}
.nav-item span{
font-size:20px;
width:20px;
text-align:center}
.nav-item:hover,.nav-item.active{
color:#fff;
background:rgba(255,255,255,.1)}
.side-foot{
margin-top:auto;
border-top:1px solid rgba(255,255,255,.13);
padding-top:20px}
.side-foot>p{
font-size:11px;
letter-spacing:.08em;
color:#95a8a1;
text-transform:uppercase}
.side-foot>div{
display:flex;
align-items:center;
gap:10px}
.avatar{
width:35px;
height:35px;
border-radius:50%;
background:#d7e5d6;
color:var(--forest);
display:grid;
place-items:center;
font-weight:700}
.side-foot strong,.side-foot small{
display:block}
.side-foot small{
color:#95a8a1;
font-size:11px;
margin-top:2px}
main{
margin-left:244px;
min-height:100vh}
.topbar{
height:106px;
padding:24px 44px;
display:flex;
align-items:center;
justify-content:space-between;
background:rgba(244,246,243,.92);
backdrop-filter:blur(10px);
position:sticky;
top:0;
z-index:8}
.eyebrow{
margin:0 0 5px;
color:#829087;
font-weight:700;
font-size:10px;
letter-spacing:.13em}
.topbar h1{
font:700 25px Manrope;
margin:0}
.top-actions{
display:flex;
align-items:center;
gap:10px}
.last-update{
color:var(--muted);
font-size:12px;
margin-right:8px}
.last-update strong{
color:var(--green)}
.btn{
border:0;
border-radius:10px;
padding:11px 15px;
font:600 13px "DM Sans";
cursor:pointer}
.btn.primary{
background:var(--forest);
color:#fff}
.btn.primary:hover{
background:#244d42}
.btn.secondary{
background:#fff;
color:var(--ink);
border:1px solid var(--line)}
.mobile-menu{
display:none}
.page{
display:none;
padding:10px 44px 50px}
.page.active{
display:block}
.hero-card{
position:relative;
overflow:hidden;
background:linear-gradient(130deg,#1d453a,#143129);
color:white;
border-radius:20px;
padding:28px 30px 20px;
height:295px;
box-shadow:var(--shadow)}
.hero-card .label{
color:#b9cbc5;
margin:0 0 6px}
.hero-value{
font:700 38px Manrope;
letter-spacing:-.03em}
.performance{
margin:7px 0 0;
font-weight:600;
font-size:12px}
.positive{
color:#73d0a8}
.negative{
color:#f49a9c}
.periods{
position:absolute;
right:25px;
top:24px;
background:rgba(0,0,0,.13);
padding:4px;
border-radius:9px}
.periods button{
color:#aec3bc;
background:transparent;
border:0;
padding:6px 10px;
border-radius:7px;
font-size:11px;
cursor:pointer}
.periods button.active{
background:rgba(255,255,255,.15);
color:white}
.hero-card canvas{
width:100%;
height:165px;
margin-top:5px}
.metric-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:16px;
margin:18px 0}
.metric,.panel{
background:var(--panel);
border:1px solid var(--line);
box-shadow:0 5px 20px rgba(30,60,50,.035);
border-radius:16px}
.metric{
padding:20px;
position:relative}
.metric-icon{
position:absolute;
right:18px;
top:18px;
width:34px;
height:34px;
border-radius:10px;
display:grid;
place-items:center;
font-weight:700}
.metric-icon.green{
color:var(--green);
background:#e7f3ed}
.metric-icon.amber{
color:var(--amber);
background:#faf0df}
.metric-icon.violet{
color:var(--violet);
background:#f0eafa}
.metric-icon.blue{
color:var(--blue);
background:#e8f0f6}
.metric p{
color:var(--muted);
margin:0 0 11px}
.metric strong{
font:700 21px Manrope;
display:block}
.metric small{
color:#9ba5a0;
display:block;
margin-top:7px;
font-size:11px}
.dashboard-grid{
display:grid;
grid-template-columns:1.08fr .92fr;
gap:18px}
.panel{
padding:22px}
.panel-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
margin-bottom:18px}
.panel h2,.section-intro h2,.dialog-head h2{
font:700 16px Manrope;
margin:0}
.panel-head p,.section-intro p{
color:var(--muted);
font-size:12px;
margin:5px 0 0}
.text-btn{
border:0;
background:transparent;
color:var(--green);
font:600 11px "DM Sans";
cursor:pointer}
.allocation{
display:flex;
align-items:center;
gap:24px;
min-height:210px}
.allocation canvas{
width:190px;
height:190px}
.legend{
display:grid;
gap:12px;
flex:1}
.legend-row{
display:grid;
grid-template-columns:10px 1fr auto;
gap:9px;
align-items:center;
font-size:12px}
.legend-row i{
width:9px;
height:9px;
border-radius:50%}
.legend-row span{
color:var(--muted)}
.holding-list{
display:grid;
gap:15px}
.holding{
display:grid;
grid-template-columns:36px 1fr auto;
gap:10px;
align-items:center}
.asset-icon{
width:36px;
height:36px;
border-radius:10px;
background:#eef2ef;
display:grid;
place-items:center;
font-size:11px;
font-weight:700;
color:var(--forest)}
.asset-name strong,.asset-name small{
display:block}
.asset-name strong{
font-size:12px}
.asset-name small{
color:var(--muted);
font-size:10px;
margin-top:3px}
.holding-value{
text-align:right}
.holding-value strong,.holding-value small{
display:block}
.holding-value strong{
font-size:12px}
.holding-value small{
color:var(--green);
font-size:10px;
margin-top:3px}
.recent-panel{
margin-top:18px}
.table-wrap{
overflow-x:auto}
.pagination{
display:flex;
align-items:center;
justify-content:center;
gap:14px;
padding:16px;
border-top:1px solid var(--line)}
.pagination span{
color:var(--muted);
font-size:12px}
table{
border-collapse:collapse;
width:100%}
th{
text-align:left;
color:#89958f;
font-size:10px;
text-transform:uppercase;
letter-spacing:.06em;
font-weight:700;
padding:10px 12px;
border-bottom:1px solid var(--line)}
td{
padding:13px 12px;
border-bottom:1px solid #edf0ee;
font-size:12px}
tbody tr:last-child td{
border-bottom:0}
tbody tr:hover{
background:#f8faf8}
.numeric{
text-align:right}
.asset-cell{
display:flex;
align-items:center;
gap:9px;
min-width:150px}
.asset-cell strong,.asset-cell small{
display:block}
.asset-cell small{
color:var(--muted);
font-size:10px;
margin-top:2px}
.tag{
display:inline-flex;
padding:4px 8px;
border-radius:99px;
font-weight:600;
font-size:10px}
.tag.buy{
background:#e5f2eb;
color:#267657}
.tag.sell{
background:#f7e7e7;
color:#a34346}
.tag.dividend{
background:#f5eedf;
color:#976c26}
.section-intro{
display:flex;
justify-content:space-between;
align-items:end;
margin:6px 0 22px}
.section-intro h2{
font-size:20px}
.summary-pill,.as-of{
background:#e4ece6;
color:#53675f;
padding:7px 11px;
border-radius:99px;
font-size:11px;
font-weight:600}
.filters{
display:grid;
grid-template-columns:1fr 180px 190px;
gap:10px;
margin-bottom:14px}
.search{
position:relative}
.search span{
position:absolute;
left:14px;
top:10px;
color:var(--muted);
font-size:18px}
.search input{
padding-left:42px}
input,select,textarea{
width:100%;
border:1px solid var(--line);
background:#fff;
border-radius:10px;
padding:11px 12px;
font:400 12px "DM Sans";
color:var(--ink);
outline:none}
input:focus,select:focus,textarea:focus{
border-color:#7fa497;
box-shadow:0 0 0 3px rgba(68,121,101,.1)}
.table-panel{
padding:0;
overflow:hidden}
.full-table th,.full-table td{
padding:15px 16px}
.empty-state{
text-align:center;
color:var(--muted);
padding:50px}
.portfolio-cards{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:15px;
margin-bottom:17px}
.portfolio-card{
padding:19px;
background:white;
border:1px solid var(--line);
border-radius:15px}
.portfolio-card p{
color:var(--muted);
font-size:11px;
margin:0 0 7px}
.portfolio-card strong{
font:700 20px Manrope}
dialog{
width:min(690px,calc(100vw - 30px));
padding:0;
border:0;
border-radius:18px;
box-shadow:0 28px 80px rgba(16,39,32,.25)}
dialog::backdrop{
background:rgba(12,29,24,.55);
backdrop-filter:blur(3px)}
.username-availability{
display:block;
min-height:15px;
margin-top:5px;
font-size:10px;
font-weight:600}
.username-availability.available{color:var(--green)}
.username-availability.unavailable{color:var(--red);font-style:normal}
dialog form{
padding:25px}
.dialog-head{
display:flex;
justify-content:space-between;
margin-bottom:22px}
.dialog-head h2{
font-size:20px}
.close-btn{
border:0;
background:#f0f3f1;
width:32px;
height:32px;
border-radius:50%;
font-size:20px;
cursor:pointer}
.form-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px}
.form-grid label{
font-size:11px;
font-weight:600;
color:#52615b}
.form-grid input,.form-grid select,.form-grid textarea{
margin-top:6px}
.form-grid .wide{
grid-column:1/-1}
.dialog-actions{
display:flex;
justify-content:flex-end;
gap:9px;
margin-top:24px;
padding-top:18px;
border-top:1px solid var(--line)}
#toast{
position:fixed;
right:24px;
bottom:24px;
background:var(--forest);
color:white;
padding:12px 18px;
border-radius:10px;
box-shadow:var(--shadow);
transform:translateY(80px);
opacity:0;
transition:.25s;
z-index:20}
#toast.show{
transform:translateY(0);
opacity:1}
.return-positive{
color:var(--green);
font-weight:600}
.return-negative{
color:var(--red);
font-weight:600}
