.md-tabs { gap: .4rem; flex-wrap: wrap; }
.md-tabs .nav-link { border-radius: 999px; border: 1px solid rgba(0,0,0,.08); background: var(--bs-body-bg, #fff); }
.md-h { font-weight: 700; font-size: 1.05rem; margin-bottom: .8rem; }
.md-tile { border: 1px solid rgba(0,0,0,.06); transition: transform .12s, box-shadow .12s; }
.md-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(0,0,0,.35); }
.md-tl { font-size: .85rem; color: #6b6255; } .md-tv { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: .2rem 0; }
.md-ti { font-size: 1.5rem; } .md-ti.in { color: #3d8b2f; } .md-ti.out { color: #c4452f; } .md-ti.buy { color: #b07a10; }
.md-alerts { display: flex; flex-direction: column; gap: .45rem; }
.md-alert { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; font-size: .92rem; }
.md-alert > span { flex: 1; } .md-alert .mdi { font-size: 1.2rem; }
.md-alert--danger { background: #fde8e4; } .md-alert--danger .mdi { color: #c4452f; }
.md-alert--warning { background: #fff4d9; } .md-alert--warning .mdi { color: #b07a10; }
.md-alert--info { background: #eef4fb; } .md-alert--info .mdi { color: #3b6aa0; }
.md-m { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.md-m.ok { background: #e3f2d9; color: #2f7124; } .md-m.low { background: #fff1cc; color: #8a5a00; } .md-m.bad { background: #fde1dc; color: #a12f1d; }
.md-owe { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.md-list { display: flex; flex-direction: column; gap: .45rem; }
.md-row { display: grid; grid-template-columns: auto 46px minmax(160px, 1.4fr) minmax(130px, 1fr) 90px 100px 80px 80px 70px; gap: .7rem; align-items: center; padding: .55rem .75rem; border-radius: 14px; background: var(--bs-body-bg, #fff); border: 1px solid rgba(0,0,0,.07); }
.md-row.on { border-color: #9fd17c; background: #f6fbf1; }
.md-row:not(.on) .md-pic, .md-row:not(.on) .md-nm { opacity: .55; }
.md-tick input { display: none; } .md-tick span { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #b9b0a0; display: grid; place-items: center; cursor: pointer; }
.md-tick input:checked + span { background: #3d8b2f; border-color: #3d8b2f; } .md-tick input:checked + span::after { content: '\2713'; color: #fff; font-weight: 700; }
.md-tick input:disabled + span { opacity: .5; cursor: not-allowed; }
.md-pic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #f1ead6; color: #1f4d18; font-size: 1.5rem; overflow: hidden; }
.md-pic img { max-width: 100%; max-height: 100%; object-fit: contain; } .md-pic.sm { width: 36px; height: 36px; font-size: 1.2rem; }
.md-nm b { display: block; } .md-nm small { color: #6b6255; }
.md-f label, .md-k label { display: block; font-size: .7rem; color: #8a8170; margin-bottom: .1rem; text-transform: uppercase; letter-spacing: .03em; }
.md-k b { font-size: .95rem; }
.md-bought { max-width: 270px; } .md-bought input[data-bu] { max-width: 64px; }
.md-line { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; margin-bottom: .6rem; }
.md-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #f0ebde; overflow: hidden; } .md-bar i { display: block; height: 100%; }
.md-bar.in i { background: #7cc243; } .md-bar.out i { background: #e0956b; }
.md-profit { display: flex; align-items: baseline; gap: .6rem; padding: .8rem 1rem; border-radius: 14px; background: #e3f2d9; margin: 1rem 0 .6rem; }
.md-profit span { flex: 1; font-weight: 600; } .md-profit b { font-size: 1.5rem; } .md-profit.bad { background: #fde1dc; }
.md-chat { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .3rem 0; }
.md-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 16px; line-height: 1.45; }
.md-msg.me { align-self: flex-end; background: #1f4d18; color: #fff; border-bottom-right-radius: 4px; }
.md-msg.ai { align-self: flex-start; background: #f4efe2; border-bottom-left-radius: 4px; }
@media (max-width: 1199px) { .md-row { grid-template-columns: auto 46px 1fr 1fr; } .md-row .md-f, .md-row .md-k { grid-column: span 1; } }
@media (max-width: 575px) { .md-row { grid-template-columns: auto 40px 1fr; } .md-row .md-f, .md-row .md-k { grid-column: 2 / -1; } }
.md-note { background: #fbf7ec; color: #3b342a; border: 1px solid #e7dfca; border-radius: 12px; padding: .65rem .85rem; font-size: .88rem; }
.md-f input::placeholder { color: #b5ad9d; font-style: italic; }
.md-progress { background: #ece5d2 !important; }
