/* Approved client design (saudi_portfolio_benchmark_comparison_v3.html) – stylesheet extracted verbatim, in original order. Do not edit; Laravel integration rules live in portal.css. */
/* ==== block 0  ==== */

:root{--primary:#00B4BD;--primary-dark:#008e96;--primary-soft:#e8f8f9;--ink:#172033;--muted:#68758a;--line:#e4eaf0;--surface:#fff;--canvas:#f6f8fb;--gain:#09845f;--gain-bg:#eaf8f2;--loss:#cc3d4a;--loss-bg:#fff0f1;--warning:#a86b00;--shadow:0 8px 28px rgba(23,32,51,.06);--radius:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Tahoma,"Segoe UI",Arial,sans-serif;background:var(--canvas);color:var(--ink);font-size:14px}.app{min-height:100vh}.topbar{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.topbar-inner{max-width:1440px;margin:auto;height:70px;padding:0 28px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:11px;min-width:max-content}.brand-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,var(--primary),var(--primary-dark));display:grid;place-items:center;color:#fff;box-shadow:0 7px 18px rgba(0,180,189,.24)}.brand-mark svg{width:21px;height:21px}.brand-text strong{display:block;font-size:17px}.brand-text span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.main-nav{display:flex;align-items:center;gap:5px;flex:1}.nav-btn{border:0;background:transparent;color:#5b687b;font:inherit;font-weight:700;padding:11px 14px;border-radius:10px;cursor:pointer;transition:.18s;white-space:nowrap}.nav-btn:hover{background:#f4f7f9;color:var(--ink)}.nav-btn.active{color:var(--primary-dark);background:var(--primary-soft)}.top-actions{display:flex;align-items:center;gap:10px}.lang-link,.icon-btn{height:38px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#4f5d70;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:700}.lang-link{padding:0 12px}.icon-btn{width:38px;cursor:pointer}.profile{display:flex;align-items:center;gap:9px;padding-inline-start:11px;border-inline-start:1px solid var(--line)}.avatar{width:38px;height:38px;border-radius:50%;background:#edf2f6;display:grid;place-items:center;font-weight:800;color:#5e6b7d}.profile small{display:block;color:var(--muted);font-size:10px}.profile strong{font-size:13px}.mobile-menu{display:none}.workspace{max-width:1440px;margin:auto;padding:28px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}.page-head h1{font-size:26px;margin:0 0 5px}.page-head p{margin:0;color:var(--muted);line-height:1.7}.market-chip{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 12px;box-shadow:0 2px 8px rgba(0,0,0,.02);white-space:nowrap}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--gain);box-shadow:0 0 0 4px var(--gain-bg)}.market-chip span{font-size:11px;color:var(--muted)}.market-chip strong{font-size:12px}.section{display:none}.section.active{display:block}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat{padding:20px;position:relative;overflow:hidden}.stat::after{content:"";position:absolute;inset-inline-end:-28px;top:-28px;width:90px;height:90px;border-radius:50%;background:var(--primary-soft)}.stat-label{color:var(--muted);font-size:12px;font-weight:700;position:relative;z-index:1}.stat-value{font-size:24px;font-weight:800;margin-top:10px;position:relative;z-index:1}.stat-foot{margin-top:9px;font-size:11px;color:var(--muted);position:relative;z-index:1}.gain{color:var(--gain)}.loss{color:var(--loss)}.primary{color:var(--primary-dark)}.overview-grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}.panel{padding:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-head h2{font-size:15px;margin:0}.panel-head span{font-size:11px;color:var(--muted)}.segmented{display:flex;gap:3px;background:#f2f5f7;border-radius:9px;padding:3px}.segmented button{border:0;background:transparent;border-radius:7px;padding:6px 9px;font:inherit;font-size:11px;font-weight:700;color:#6a778a;cursor:pointer}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.08)}.chart-placeholder{height:255px;border-radius:12px;background:linear-gradient(180deg,#fbfdfd,#f7fafb);border:1px dashed #d5dfe6;position:relative;overflow:hidden}.chart-placeholder svg{position:absolute;inset:20px;width:calc(100% - 40px);height:calc(100% - 40px)}.chart-legend{position:absolute;top:14px;inset-inline-start:14px;display:flex;gap:14px;font-size:11px;color:var(--muted)}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-inline-end:5px}.split-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini-list{border:1px solid var(--line);border-radius:12px;padding:13px}.mini-list h3{font-size:12px;margin:0 0 10px}.stock-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eef2f5}.stock-row:last-child{border-bottom:0}.stock-name{display:flex;align-items:center;gap:8px}.ticker{font-size:10px;font-weight:800;background:#f0f4f7;padding:4px 6px;border-radius:6px;color:#526175}.company{font-weight:700;font-size:12px}.badge{font-size:10px;font-weight:800;border-radius:999px;padding:4px 8px}.badge.gain{background:var(--gain-bg)}.badge.loss{background:var(--loss-bg)}.allocation-list{display:grid;gap:12px}.alloc-row{display:grid;grid-template-columns:120px 1fr 48px;align-items:center;gap:10px}.alloc-row span{font-size:11px}.bar{height:8px;background:#edf2f5;border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;border-radius:inherit;background:var(--primary)}.quick-area{margin-top:16px;grid-template-columns:1fr 1fr}.notice{display:flex;align-items:flex-start;gap:11px;padding:16px}.notice-icon{width:36px;height:36px;border-radius:10px;background:var(--primary-soft);display:grid;place-items:center;color:var(--primary-dark);font-weight:900}.notice h3{margin:0 0 4px;font-size:13px}.notice p{margin:0;color:var(--muted);line-height:1.65;font-size:11px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.filter-group{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 11px;font:inherit;font-size:11px;font-weight:700;color:#5d6b7e;cursor:pointer}.chip.active{border-color:#9ddddf;background:var(--primary-soft);color:var(--primary-dark)}.action-btn{border:0;background:var(--ink);color:#fff;border-radius:10px;padding:9px 13px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:1040px}.data-table th{font-size:10px;color:#718096;text-align:start;padding:12px 14px;background:#f8fafb;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:14px;border-bottom:1px solid #edf1f4;font-size:12px;white-space:nowrap}.data-table tbody tr:hover{background:#fbfdfd}.symbol-cell strong{display:block}.symbol-cell small{display:block;color:var(--muted);margin-top:4px}.weight{display:flex;align-items:center;gap:7px}.weight .bar{width:64px;height:6px}.section-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-intro h2{margin:0;font-size:18px}.section-intro p{margin:4px 0 0;color:var(--muted);font-size:11px}.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{text-align:center;padding:20px}.metric span{display:block;color:var(--muted);font-size:11px}.metric strong{display:block;font-size:22px;margin-top:8px}.empty-chart{height:230px;border:1px dashed #d7e0e7;border-radius:12px;background:linear-gradient(180deg,#fbfcfd,#f8fafb);display:grid;place-items:center;color:#8491a2;text-align:center;padding:18px}.empty-chart strong{display:block;color:#586678;margin-bottom:5px}.phase-note{margin-top:18px;background:#172033;color:#fff;border-radius:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.phase-note span{color:#bac5d2;font-size:11px}.phase-note strong{font-size:12px}.footer{max-width:1440px;margin:0 auto;padding:0 28px 28px;color:#97a2b0;font-size:10px;text-align:center}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.overview-grid,.analytics-grid{grid-template-columns:1fr}.main-nav{display:none}.mobile-menu{display:flex}.profile .profile-copy{display:none}}@media(max-width:700px){.topbar-inner{padding:0 14px;height:62px}.brand-text span{display:none}.brand-text strong{font-size:14px}.workspace{padding:18px 14px}.page-head{align-items:flex-start;flex-direction:column}.stats,.quick-area,.metric-grid{grid-template-columns:1fr}.split-list{grid-template-columns:1fr}.top-actions .lang-link{padding:0 9px}.profile{display:none}.market-chip{width:100%;justify-content:center}.toolbar{align-items:flex-start;flex-direction:column}.phase-note{align-items:flex-start;flex-direction:column}}


.stat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;position:relative;z-index:1}.stat-icon{width:34px;height:34px;border-radius:10px;background:var(--primary-soft);color:var(--primary-dark);display:grid;place-items:center;font-weight:900}.stat-detail{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px;position:relative;z-index:1}.stat-detail b{font-size:11px}.stat-detail span{font-size:10px;color:var(--muted)}
.performance-card{min-height:390px}.chart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}.range-tabs{display:flex;gap:4px;flex-wrap:wrap}.range-btn{border:1px solid transparent;background:transparent;border-radius:8px;padding:6px 9px;color:#718096;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.range-btn:hover{background:#f3f6f8}.range-btn.active{background:var(--primary-soft);color:var(--primary-dark);border-color:#c8ecee}.chart-summary{display:flex;align-items:baseline;gap:8px}.chart-summary strong{font-size:20px}.chart-summary span{font-size:10px;color:var(--muted)}
.live-chart{height:285px;border-radius:12px;background:linear-gradient(180deg,#fbfefe 0%,#fff 100%);border:1px solid #e6edf1;position:relative;overflow:hidden}.live-chart .grid-lines{position:absolute;inset:18px 18px 30px 46px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#eef2f5 50px),repeating-linear-gradient(to right,transparent 0,transparent 106px,#f3f6f8 107px)}.live-chart svg{position:absolute;inset:18px 18px 30px 46px;width:calc(100% - 64px);height:calc(100% - 48px);overflow:visible}.area-fill{opacity:.11}.axis-y{position:absolute;inset-inline-start:8px;top:17px;bottom:30px;display:flex;flex-direction:column;justify-content:space-between;color:#9aa5b3;font-size:9px;text-align:end}.axis-x{position:absolute;left:48px;right:18px;bottom:8px;display:flex;justify-content:space-between;color:#9aa5b3;font-size:9px}.hover-dot{filter:drop-shadow(0 2px 3px rgba(0,0,0,.12))}
.allocation-shell{display:grid;grid-template-columns:145px 1fr;gap:18px;align-items:center}.donut{width:140px;height:140px;border-radius:50%;background:conic-gradient(#00B4BD 0 38%,#3f6ec6 38% 67%,#7a64c7 67% 88%,#cbd5df 88% 100%);position:relative;margin:auto}.donut::after{content:"";position:absolute;inset:28px;background:#fff;border-radius:50%}.donut-center{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center}.donut-center strong{font-size:17px}.donut-center span{font-size:9px;color:var(--muted);margin-top:2px}.alloc-row{grid-template-columns:108px 1fr 42px}.alloc-swatch{width:8px;height:8px;border-radius:3px;display:inline-block;margin-inline-end:5px}
.overview-lower{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);margin-top:16px}.event-stack{display:grid;gap:12px}.event-card{border:1px solid var(--line);border-radius:13px;padding:14px;display:flex;align-items:center;gap:12px}.event-date{min-width:54px;text-align:center;background:#f7fafb;border-radius:10px;padding:8px 6px}.event-date strong{display:block;font-size:18px}.event-date span{font-size:9px;color:var(--muted)}.event-copy{flex:1}.event-copy strong{font-size:12px;display:block}.event-copy span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.event-amount{text-align:end}.event-amount strong{display:block;color:var(--gain);font-size:13px}.event-amount span{font-size:9px;color:var(--muted)}
.dividend-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:13px}.dividend-summary div{background:#f8fafb;border:1px solid #edf1f4;border-radius:10px;padding:10px}.dividend-summary span{display:block;color:var(--muted);font-size:9px}.dividend-summary strong{display:block;margin-top:5px;font-size:14px}.compact-table{width:100%;border-collapse:collapse}.compact-table th{font-size:9px;color:#7a8798;text-align:start;padding:9px 8px;border-bottom:1px solid var(--line);background:#fafcfd}.compact-table td{font-size:10px;padding:10px 8px;border-bottom:1px solid #eef2f5}.compact-table tr:last-child td{border-bottom:0}.stock-logo{width:28px;height:28px;border-radius:8px;background:#edf5f6;display:grid;place-items:center;font-size:9px;font-weight:900;color:var(--primary-dark)}.stock-with-logo{display:flex;align-items:center;gap:8px}.muted{color:var(--muted)}
.mover-value{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.mover-value small{font-size:9px}.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.summary-strip>div{border-top:1px solid #eef2f5;padding-top:10px}.summary-strip span{display:block;font-size:9px;color:var(--muted)}.summary-strip strong{display:block;font-size:11px;margin-top:3px}.market-context{margin-top:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.context-item{padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.context-item span{font-size:9px;color:var(--muted);display:block}.context-item strong{font-size:13px;display:block;margin-top:5px}.context-item small{font-size:9px;display:block;margin-top:4px}
@media(max-width:1050px){.overview-lower{grid-template-columns:1fr}.allocation-shell{grid-template-columns:130px 1fr}}@media(max-width:700px){.allocation-shell{grid-template-columns:1fr}.dividend-summary,.summary-strip,.market-context{grid-template-columns:1fr}.live-chart{height:250px}.chart-toolbar{align-items:flex-start;flex-direction:column}.event-card{align-items:flex-start}.event-amount{margin-inline-start:auto}}



.holdings-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.holding-summary-card{padding:16px 18px}
.holding-summary-card span{display:block;color:var(--muted);font-size:10px}
.holding-summary-card strong{display:block;font-size:18px;margin-top:5px}
.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 11px;height:36px;min-width:220px}
.search-box input{border:0;outline:0;background:transparent;width:100%;font:inherit;font-size:11px;color:var(--ink)}
.table-actions{display:flex;align-items:center;gap:7px}
.row-action{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px;font:inherit;font-size:10px;font-weight:800;color:#5c697c;cursor:pointer}
.row-action:hover{background:var(--primary-soft);color:var(--primary-dark);border-color:#b9e8ea}
.expand-row{display:none;background:#fbfdfd}
.expand-row.open{display:table-row}
.position-detail{padding:18px!important}
.detail-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}
.detail-box{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff}
.detail-box h4{font-size:11px;margin:0 0 12px}
.detail-pairs{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px}
.detail-pairs div span{display:block;font-size:9px;color:var(--muted)}
.detail-pairs div strong{display:block;font-size:11px;margin-top:3px}
.range-52{margin-top:7px}
.range-track{height:7px;border-radius:999px;background:#edf2f5;position:relative}
.range-track i{position:absolute;top:-3px;width:12px;height:12px;border-radius:50%;background:var(--primary);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:5px}
.tx-mini{width:100%;border-collapse:collapse}
.tx-mini th,.tx-mini td{font-size:9px;padding:7px;border-bottom:1px solid #eef2f5;text-align:start}
.tx-mini th{color:var(--muted)}
.tx-mini tr:last-child td{border-bottom:0}
.toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tx-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.tx-summary .card{padding:15px 17px}
.tx-summary span{font-size:9px;color:var(--muted);display:block}
.tx-summary strong{font-size:17px;display:block;margin-top:5px}
.type-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:800}
.type-buy{background:#eaf2ff;color:#3568b8}
.type-sell{background:var(--loss-bg);color:var(--loss)}
.type-dividend{background:var(--gain-bg);color:var(--gain)}
.type-cash{background:#f2efff;color:#6e59b5}
.tx-table tbody tr{cursor:pointer}
.tx-detail-row{display:none;background:#fbfcfd}
.tx-detail-row.open{display:table-row}
.tx-detail-cell{padding:14px 16px!important}
.tx-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tx-detail-grid div{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px}
.tx-detail-grid span{display:block;font-size:9px;color:var(--muted)}
.tx-detail-grid strong{display:block;font-size:11px;margin-top:4px}
.pagination{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.pagination-controls{display:flex;gap:5px}
.pagination-controls button{width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#667386;cursor:pointer}
.pagination-controls button.active{background:var(--primary-soft);color:var(--primary-dark);border-color:#b7e7e9}
@media(max-width:1050px){.holdings-summary,.tx-summary{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.tx-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.holdings-summary,.tx-summary,.tx-detail-grid{grid-template-columns:1fr}.search-box{min-width:100%}.toolbar-right{width:100%}.table-actions{flex-wrap:wrap}}



.analytics-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.analytics-card{padding:18px}
.analytics-card h3{font-size:13px;margin:0 0 4px}
.analytics-card p.sub{font-size:9px;color:var(--muted);margin:0 0 14px}
.span-8{grid-column:span 8}.span-4{grid-column:span 4}.span-6{grid-column:span 6}.span-12{grid-column:span 12}
.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.metric-tile{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
.metric-tile span{font-size:9px;color:var(--muted);display:block}
.metric-tile strong{font-size:17px;display:block;margin-top:4px}
.chart-shell{height:260px;position:relative;border-radius:12px;background:linear-gradient(180deg,#fbfefe 0%,#fff 100%);overflow:hidden;border:1px solid #eef2f4}
.chart-shell svg{width:100%;height:100%;display:block}
.legend-inline{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:10px;font-size:9px;color:var(--muted)}
.legend-inline span{display:inline-flex;align-items:center;gap:5px}.legend-inline i{width:18px;height:3px;border-radius:3px;background:currentColor}
.risk-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.risk-item{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
.risk-item .top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.risk-item strong{font-size:18px}.risk-item small{display:block;color:var(--muted);font-size:9px;margin-top:4px;line-height:1.5}
.risk-scale{height:6px;border-radius:999px;background:#edf1f4;margin-top:10px;position:relative}
.risk-scale i{position:absolute;top:-3px;width:12px;height:12px;border-radius:50%;background:var(--primary);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.performance-list{display:flex;flex-direction:column;gap:10px}
.performance-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 70px;gap:10px;align-items:center}
.performance-row .name strong{display:block;font-size:10px}.performance-row .name small{color:var(--muted);font-size:8px}
.performance-bar{height:8px;border-radius:999px;background:#eef2f5;overflow:hidden}
.performance-bar i{height:100%;display:block;border-radius:999px;background:var(--primary)}
.performance-row.loss .performance-bar i{background:#dc5b67}.performance-row.loss .value{color:var(--loss)}
.performance-row .value{font-weight:800;font-size:10px;color:var(--gain)}
.heat-table{width:100%;border-collapse:separate;border-spacing:4px}
.heat-table th{font-size:8px;color:var(--muted);font-weight:700;padding:4px}
.heat-table td{font-size:9px;text-align:center;padding:8px 5px;border-radius:8px;background:#f6f8fa}
.heat-pos{background:#eaf8f1!important;color:#16835f}.heat-neg{background:#fff0f2!important;color:#c84b5b}.heat-neutral{background:#f4f6f8!important;color:#667386}
.insight-list{display:flex;flex-direction:column;gap:10px}
.insight{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px}
.insight b{font-size:10px;display:block;margin-bottom:3px}.insight span{font-size:9px;color:var(--muted);line-height:1.5}
.insight .dot{width:9px;height:9px;border-radius:50%;background:var(--primary);margin-top:3px;flex:0 0 auto}
.final-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.final-toolbar .group{display:flex;gap:6px;flex-wrap:wrap}
.polish-note{border:1px dashed #b8dfe1;background:#f8ffff;color:#4f6c70;border-radius:12px;padding:12px 14px;font-size:9px;line-height:1.6}
@media(max-width:1050px){.span-8,.span-4,.span-6{grid-column:span 12}.metric-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.metric-strip,.risk-list{grid-template-columns:1fr}.performance-row{grid-template-columns:1fr}.performance-row .value{text-align:start}.chart-shell{height:220px}}



.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.metric-tile{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
.metric-tile span{font-size:9px;color:var(--muted);display:block}
.metric-tile strong{font-size:17px;display:block;margin-top:4px}
.analytics-grid-advanced{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.analytics-card{padding:18px}
.span-8{grid-column:span 8}.span-4{grid-column:span 4}.span-6{grid-column:span 6}
.chart-shell{height:260px;position:relative;border-radius:12px;background:linear-gradient(180deg,#fbfefe 0%,#fff 100%);overflow:hidden;border:1px solid #eef2f4}
.chart-shell svg{width:100%;height:100%;display:block}
.legend-inline{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:10px;font-size:9px;color:var(--muted)}
.legend-inline span{display:inline-flex;align-items:center;gap:5px}.legend-inline i{width:18px;height:3px;border-radius:3px;background:currentColor}
.risk-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.risk-item{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
.risk-item .top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.risk-item strong{font-size:18px}.risk-item small{display:block;color:var(--muted);font-size:9px;margin-top:4px;line-height:1.5}
.risk-scale{height:6px;border-radius:999px;background:#edf1f4;margin-top:10px;position:relative}
.risk-scale i{position:absolute;top:-3px;width:12px;height:12px;border-radius:50%;background:var(--primary);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.performance-list{display:flex;flex-direction:column;gap:10px}
.performance-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 70px;gap:10px;align-items:center}
.performance-row .name strong{display:block;font-size:10px}.performance-row .name small{color:var(--muted);font-size:8px}
.performance-bar{height:8px;border-radius:999px;background:#eef2f5;overflow:hidden}
.performance-bar i{height:100%;display:block;border-radius:999px;background:var(--primary)}
.performance-row.loss .performance-bar i{background:#dc5b67}.performance-row.loss .value{color:var(--loss)}
.performance-row .value{font-weight:800;font-size:10px;color:var(--gain)}
.heat-table{width:100%;border-collapse:separate;border-spacing:4px}
.heat-table th{font-size:8px;color:var(--muted);font-weight:700;padding:4px}
.heat-table td{font-size:9px;text-align:center;padding:8px 5px;border-radius:8px;background:#f6f8fa}
.heat-pos{background:#eaf8f1!important;color:#16835f}.heat-neg{background:#fff0f2!important;color:#c84b5b}.heat-neutral{background:#f4f6f8!important;color:#667386}
@media(max-width:1050px){.analytics-grid-advanced{grid-template-columns:1fr}.span-8,.span-4,.span-6{grid-column:span 1}.metric-strip{grid-template-columns:repeat(2,1fr)}.risk-list{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.metric-strip,.risk-list{grid-template-columns:1fr}.performance-row{grid-template-columns:1fr}.performance-row .value{text-align:start}.chart-shell{height:220px}}



.tx-add-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px}
.tx-add-modal.open{display:flex}
.tx-add-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.tx-add-dialog{position:relative;width:min(610px,100%);background:#fff;border-radius:20px;box-shadow:0 28px 80px rgba(15,23,42,.24);padding:26px;z-index:1}
.tx-add-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.tx-add-head h2{margin:0;font-size:20px}
.tx-close{width:36px;height:36px;border:0;background:transparent;color:#93a1b2;font-size:27px;line-height:1;cursor:pointer;border-radius:9px}
.tx-close:hover{background:#f4f7f9;color:var(--ink)}
.tx-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tx-field{display:flex;flex-direction:column;gap:7px}
.tx-field.full{grid-column:1/-1}
.tx-field label{font-size:11px;font-weight:800;color:#64748b}
.tx-input,.tx-select{height:44px;border:1px solid #d9e2ea;border-radius:10px;background:#fff;padding:0 12px;font:inherit;font-size:12px;color:var(--ink);outline:0;width:100%}
.tx-input:focus,.tx-select:focus{border-color:#75cfd3;box-shadow:0 0 0 3px rgba(0,180,189,.10)}
.tx-input:disabled{background:#f6f8fa;color:#a3adba}
.tx-modal-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.tx-save{border:0;background:var(--primary);color:#fff;border-radius:10px;height:46px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(0,180,189,.20)}
.tx-save:hover{background:var(--primary-dark)}
.tx-cancel{border:1px solid #d9e2ea;background:#fff;color:#4f5d70;border-radius:10px;height:46px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.tx-toast{position:fixed;z-index:110;inset-inline-end:24px;bottom:24px;background:#172033;color:#fff;border-radius:12px;padding:12px 16px;font-size:11px;box-shadow:0 12px 35px rgba(15,23,42,.18);display:none}
.tx-toast.show{display:block}
@media(max-width:650px){.tx-form{grid-template-columns:1fr}.tx-field.full,.tx-modal-actions{grid-column:1}.tx-add-dialog{padding:20px}.tx-modal-actions{grid-template-columns:1fr}}



.holdings-tabs{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:4px 0 14px;border-bottom:1px solid var(--line);padding-bottom:8px}
.holdings-tab{border:0;background:transparent;color:#657286;font:inherit;font-size:11px;font-weight:800;padding:8px 11px;border-radius:9px;cursor:pointer}
.holdings-tab:hover{background:#f4f7f9;color:var(--ink)}
.holdings-tab.active{background:var(--primary-soft);color:var(--primary-dark)}
.holding-view{display:none}.holding-view.active{display:block}
.analytics-table{width:100%;border-collapse:collapse;min-width:1040px}
.analytics-table th{font-size:10px;color:#718096;text-align:start;padding:12px 14px;background:#f8fafb;border-bottom:1px solid var(--line);white-space:nowrap}
.analytics-table td{padding:13px 14px;border-bottom:1px solid #edf1f4;font-size:11px;white-space:nowrap}
.analytics-table tbody tr:hover{background:#fbfdfd}
.rating{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800}
.rating.buy{color:#07896c}.rating.sell{color:#d24c5a}.rating.neutral{color:#7c8796}
.mini-positive{color:#07896c}.mini-negative{color:#d24c5a}
.holding-view-note{font-size:10px;color:var(--muted);margin:0 0 10px}



.overview-action-row{display:flex;justify-content:flex-end;align-items:center;margin:0 0 16px;position:relative;z-index:5}
.tx-launcher{position:relative;display:inline-flex;flex-direction:column;align-items:stretch}
.tx-launch-btn{min-width:148px;height:42px;border:0;border-radius:11px;background:var(--ink);color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 20px rgba(23,32,51,.13)}
.tx-launch-btn:hover{background:#253149}.tx-launch-btn .chev{font-size:10px;opacity:.72;transition:.18s}.tx-launcher.open .chev{transform:rotate(180deg)}
.tx-launch-menu{position:absolute;top:49px;inset-inline-end:0;width:260px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px rgba(23,32,51,.16);padding:7px;display:none;z-index:60}
.tx-launcher.open .tx-launch-menu{display:grid;gap:4px}
.tx-launch-item{width:100%;border:0;background:#fff;border-radius:10px;padding:10px 11px;display:flex;align-items:center;gap:10px;text-align:start;cursor:pointer;font:inherit;color:var(--ink)}
.tx-launch-item:hover{background:#f5f8fa}.tx-launch-item strong{font-size:11px;display:block}.tx-launch-item small{font-size:9px;color:var(--muted);display:block;margin-top:2px}
.tx-launch-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary-dark);font-size:13px;font-weight:900;flex:0 0 auto}
.tx-launch-item[data-type="sell"] .tx-launch-icon,.tx-launch-item[data-type="withdrawal"] .tx-launch-icon{background:var(--loss-bg);color:var(--loss)}
.tx-launch-item[data-type="dividend"] .tx-launch-icon{background:var(--gain-bg);color:var(--gain)}
.tx-launch-item[data-type="deposit"] .tx-launch-icon{background:#eaf2ff;color:#3568b8}
.tx-launch-item[data-type="fees"] .tx-launch-icon{background:#fff6df;color:#a86b00}
.type-fee{background:#fff6df;color:#9a6500}
.tx-type-hint{font-size:9px;color:var(--muted);margin:-2px 0 2px;grid-column:1/-1}
@media(max-width:700px){.overview-action-row{justify-content:stretch}.tx-launcher{width:100%}.tx-launch-btn{width:100%}.tx-launch-menu{width:100%;inset-inline-end:auto;inset-inline-start:0}}


/* ==== block 1  ==== */


.tx-add-dialog{max-height:min(88vh,760px);overflow:auto;overscroll-behavior:contain}
.tx-field.stock-picker-field{position:relative;z-index:8}
.stock-picker-shell{position:relative}
.stock-picker-shell .tx-input{padding-inline-end:38px}
.stock-picker-trigger{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;background:transparent;border-radius:8px;color:#748196;cursor:pointer;font-size:12px;display:grid;place-items:center}
.stock-picker-trigger:hover{background:#f2f6f8;color:var(--ink)}
.stock-picker-results{position:absolute;top:calc(100% + 6px);inset-inline:0;background:#fff;border:1px solid #d9e2ea;border-radius:12px;box-shadow:0 16px 40px rgba(15,23,42,.16);padding:6px;max-height:260px;overflow:auto;display:none;z-index:150}
.stock-picker-shell.open .stock-picker-results{display:block}
.stock-option{width:100%;border:0;background:transparent;border-radius:9px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:start;cursor:pointer;font:inherit;color:var(--ink)}
.stock-option:hover,.stock-option.active{background:var(--primary-soft)}
.stock-option-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.stock-option-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-option-copy small{font-size:9px;color:var(--muted)}
.stock-option-symbol{flex:0 0 auto;font-size:10px;font-weight:900;background:#f0f4f7;border-radius:7px;padding:5px 7px;color:#526175}
.stock-picker-empty{padding:14px 10px;text-align:center;color:var(--muted);font-size:10px}
.stock-picker-hint{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45}
.tx-add-dialog{scrollbar-width:thin;scrollbar-color:#cfd8df transparent}
.tx-add-head{position:sticky;top:-26px;background:#fff;z-index:12;padding-top:26px;margin-top:-26px;border-radius:20px 20px 0 0}
@media(max-width:700px){
  .tx-add-modal{padding:0;align-items:flex-end}
  .tx-add-dialog{width:100%;max-height:92dvh;border-radius:20px 20px 0 0;padding:20px 16px 18px}
  .tx-add-head{top:-20px;padding-top:20px;margin-top:-20px;border-radius:20px 20px 0 0}
  .tx-add-head h2{font-size:17px}
  .tx-form{grid-template-columns:1fr;gap:13px}
  .tx-field.full,.tx-modal-actions{grid-column:1}
  .tx-modal-actions{position:sticky;bottom:-18px;background:#fff;padding:10px 0 0;margin-top:2px;z-index:10}
  .stock-picker-results{max-height:220px}
  .tx-launch-menu{position:absolute;top:50px;max-height:58vh;overflow:auto}
}

/* ==== block 2  ==== */


:where(button,a,input,select):focus-visible{outline:3px solid rgba(0,180,189,.22);outline-offset:2px}
.overview-action-row{justify-content:space-between;gap:14px;padding:13px 14px;background:linear-gradient(135deg,#fff,#f8fcfc);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 16px rgba(23,32,51,.04)}
.overview-action-copy{display:flex;align-items:center;gap:10px;min-width:0}
.overview-action-copy .quick-icon{width:38px;height:38px;flex:0 0 auto;border-radius:11px;background:var(--primary-soft);color:var(--primary-dark);display:grid;place-items:center;font-size:18px;font-weight:900}
.overview-action-copy strong{display:block;font-size:12px}.overview-action-copy span{display:block;font-size:10px;color:var(--muted);margin-top:3px;line-height:1.45}
.tx-launch-btn{background:var(--primary-dark);box-shadow:0 8px 20px rgba(0,142,150,.18)}
.tx-launch-btn:hover{background:#007b82}.tx-launch-btn:active{transform:translateY(1px)}
.tx-launch-menu{transform-origin:top right;animation:txMenuIn .14s ease-out}
html[dir="ltr"] .tx-launch-menu{transform-origin:top left}
@keyframes txMenuIn{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}
.tx-launch-item:focus-visible{outline:2px solid rgba(0,180,189,.25);outline-offset:-2px;background:var(--primary-soft)}
.tx-add-dialog{border:1px solid rgba(216,226,234,.9)}
.tx-add-head{border-bottom:1px solid #f0f3f5;padding-bottom:13px}
.tx-modal-actions .tx-save:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.tx-toast.show{display:block;animation:toastIn .2s ease-out}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:700px){
  .overview-action-row{align-items:stretch;flex-direction:column;padding:12px}
  .overview-action-copy{padding:2px 1px}
  .tx-launcher,.tx-launch-btn{width:100%}
  .tx-launch-menu{position:fixed;inset-inline:14px;bottom:14px;top:auto;width:auto;max-height:70dvh;border-radius:18px;padding:9px;z-index:90;box-shadow:0 22px 70px rgba(15,23,42,.25)}
  .tx-launch-item{padding:11px 12px}
}


.auth-locked{display:none!important}
.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px;background:linear-gradient(135deg,#f8fafc 0%,#eef8f9 50%,#f7f9fc 100%);color:var(--ink)}
.auth-shell{width:min(1080px,100%);display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.82fr);gap:24px;align-items:stretch}
.auth-showcase{position:relative;overflow:hidden;min-height:620px;border-radius:26px;background:linear-gradient(145deg,#172033 0%,#23344b 58%,#0c6870 130%);color:#fff;padding:42px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 24px 70px rgba(23,32,51,.14)}
.auth-showcase::before,.auth-showcase::after{content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}
.auth-showcase::before{width:280px;height:280px;inset-inline-end:-110px;top:-90px;background:rgba(0,180,189,.13)}
.auth-showcase::after{width:330px;height:330px;inset-inline-start:-150px;bottom:-170px;background:rgba(255,255,255,.05)}
.auth-brand,.auth-showcase-content,.auth-security-note{position:relative;z-index:1}
.auth-brand{display:flex;align-items:center;gap:13px}.auth-brand .brand-mark{width:46px;height:46px;border-radius:14px}.auth-brand strong{display:block;font-size:20px}.auth-brand span{display:block;color:#c8d3df;font-size:11px;margin-top:3px}
.auth-showcase-content{display:grid;gap:15px;margin:34px 0}.auth-feature{border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.055);border-radius:16px;padding:17px;backdrop-filter:blur(8px)}
.auth-feature-top{display:flex;align-items:center;gap:11px;margin-bottom:7px}.auth-feature-icon{width:38px;height:38px;border-radius:11px;background:rgba(0,180,189,.16);display:grid;place-items:center;color:#7ee0e5;font-size:17px}.auth-feature strong{font-size:13px}.auth-feature p,.auth-security-note{margin:0;color:#c5d0dc;font-size:11px;line-height:1.8}.auth-security-note{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);border-radius:14px;padding:14px 16px}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 22px 65px rgba(23,32,51,.10);padding:34px;min-height:620px;display:flex;flex-direction:column;justify-content:center}
.auth-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:25px}.auth-card-head p{margin:0 0 5px;color:var(--muted);font-size:12px}.auth-card-head h1{margin:0;font-size:27px}.auth-lock{width:48px;height:48px;border-radius:14px;background:var(--primary-soft);color:var(--primary-dark);display:grid;place-items:center;font-size:20px}.auth-lang{align-self:flex-start;border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 10px;font:inherit;font-size:11px;font-weight:800;color:#556277;cursor:pointer;margin-bottom:18px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f1f5f7;border-radius:12px;padding:4px;margin-bottom:24px}.auth-tab{border:0;background:transparent;border-radius:9px;padding:10px 8px;font:inherit;font-size:11px;font-weight:800;color:#718096;cursor:pointer}.auth-tab.active{background:#fff;color:var(--primary-dark);box-shadow:0 1px 5px rgba(0,0,0,.07)}
.auth-panel{display:none}.auth-panel.active{display:block}.auth-panel h2{font-size:17px;margin:0 0 5px}.auth-panel>p{color:var(--muted);font-size:11px;line-height:1.7;margin:0 0 20px}.auth-field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.auth-field label{font-size:11px;font-weight:800;color:#5e6b7d}.auth-input-wrap{position:relative}.auth-input{width:100%;height:45px;border:1px solid #d9e2ea;border-radius:11px;background:#fff;padding:0 42px 0 12px;font:inherit;font-size:12px;color:var(--ink);outline:0;transition:.18s}.auth-input:focus{border-color:#75cfd3;box-shadow:0 0 0 3px rgba(0,180,189,.10)}html[dir="ltr"] .auth-input{padding:0 12px 0 42px}.auth-input-icon{position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:14px;pointer-events:none}.auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:2px 0 18px}.auth-check{display:inline-flex;align-items:center;gap:7px;color:#68758a;font-size:11px;cursor:pointer}.auth-check input{accent-color:var(--primary)}.auth-link{border:0;background:transparent;color:var(--primary-dark);font:inherit;font-size:11px;font-weight:800;cursor:pointer;padding:0}.auth-link:hover{text-decoration:underline}.auth-primary,.auth-secondary{height:44px;border-radius:11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.auth-primary{width:100%;border:0;background:var(--primary);color:#fff;box-shadow:0 8px 20px rgba(0,180,189,.18)}.auth-primary:hover{background:var(--primary-dark)}.auth-secondary{border:1px solid var(--line);background:#fff;color:#556277;padding:0 17px}.auth-reset-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:5px}.auth-info-note{margin-top:18px;border:1px dashed #b8dfe1;background:#f8ffff;color:#5c7276;border-radius:10px;padding:10px 12px;font-size:10px;line-height:1.65}.auth-error{display:none;margin:-4px 0 13px;color:var(--loss);font-size:10px}.auth-error.show{display:block}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;max-width:560px}.auth-showcase{display:none}.auth-card{min-height:auto}}
@media(max-width:560px){.auth-screen{padding:14px}.auth-card{padding:23px;border-radius:20px}.auth-card-head h1{font-size:23px}.auth-reset-actions{grid-template-columns:1fr}.auth-card-head{align-items:center}}


/* ==== block 3  ==== */


@media(max-width:1320px){
  .topbar-inner{gap:16px;padding-inline:20px}
  .main-nav{gap:2px}.nav-btn{padding:10px 9px;font-size:12px}
  .brand-text strong{font-size:15px}.brand-text span{font-size:10px}
  .profile{padding-inline-start:8px}.top-actions{gap:7px}
}
.profile{position:relative;cursor:pointer;user-select:none;border-radius:11px;padding-block:5px;padding-inline-end:5px}
.profile:hover{background:#f6f9fa}
.profile-menu{position:absolute;top:calc(100% + 10px);inset-inline-end:0;width:205px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 48px rgba(23,32,51,.13);padding:7px;display:none;z-index:80}
.profile-menu.open{display:block}
.profile-menu-head{padding:9px 10px 10px;border-bottom:1px solid #eef2f5;margin-bottom:5px}
.profile-menu-head strong{display:block;font-size:12px}.profile-menu-head span{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.profile-menu button{width:100%;border:0;background:transparent;border-radius:9px;padding:9px 10px;text-align:start;font:inherit;font-size:11px;font-weight:800;color:#536174;cursor:pointer}
.profile-menu button:hover{background:#f4f8f9;color:var(--primary-dark)}
.app-toast{position:fixed;z-index:140;inset-inline-end:24px;bottom:24px;max-width:340px;background:#172033;color:#fff;border-radius:12px;padding:12px 15px;font-size:11px;line-height:1.55;box-shadow:0 14px 38px rgba(15,23,42,.2);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}
.app-toast.show{opacity:1;transform:none}
@media(max-width:700px){.profile-menu{position:fixed;top:68px;inset-inline:14px;width:auto}.app-toast{inset-inline:14px;bottom:14px;max-width:none}}

/* ==== block 4  ==== */


#section-transactions [data-open-transaction]{display:none!important}
.profile{cursor:pointer}
.profile:focus-visible,.tx-launch-btn:focus-visible,.lang-link:focus-visible{outline:3px solid rgba(0,180,189,.18);outline-offset:2px}
@media(max-width:1180px){.topbar-inner{gap:14px}.nav-btn{padding-inline:10px}.brand-text span{display:none}}
@media(max-width:860px){.main-nav{display:none}.mobile-menu{display:flex}.top-actions{margin-inline-start:auto}}

/* ==== block 5  ==== */


:root{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--ink:#e7edf5;--muted:#9aa8ba;--line:#2b394b;--surface:#151f2c;--canvas:#0e1621;--primary-soft:#12353a;--gain-bg:#113127;--loss-bg:#351d25;--shadow:0 8px 28px rgba(0,0,0,.22)}
body,.topbar,.card,.panel,.holding-summary-card,.metric-tile,.risk-item,.detail-box,.context-item,.event-card,.mini-list,.market-chip,.search-box,.tx-add-dialog,.tx-launch-menu,.profile-menu,.auth-card,.auth-input,.auth-secondary,.auth-tab.active,.lang-link,.icon-btn,.chip,.row-action{transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease}
.theme-toggle,.auth-theme{font-size:17px;line-height:1}
.auth-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.auth-tools .auth-lang{margin-bottom:0}.auth-theme{width:38px;height:34px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;font:inherit;font-size:16px;font-weight:800;cursor:pointer}


.auth-showcase{background:linear-gradient(145deg,var(--surface) 0%,#f1fafb 58%,#e7f6f7 130%);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow)}
.auth-showcase::before{background:rgba(0,180,189,.10)}
.auth-showcase::after{background:rgba(0,142,150,.06)}
.auth-brand span{color:var(--muted)}
.auth-feature{border:1px solid var(--line);background:rgba(255,255,255,.60);box-shadow:0 6px 20px rgba(23,32,51,.035)}
.auth-feature-icon{background:var(--primary-soft);color:var(--primary-dark)}
.auth-feature p{color:var(--muted)}
.auth-card{background:var(--surface)}
.auth-lang{background:var(--surface);color:var(--ink)}
.auth-tabs{background:#eef3f6}.auth-tab.active{background:var(--surface)}
.auth-input{background:var(--surface);border-color:var(--line);color:var(--ink)}
.auth-field label{color:var(--muted)}.auth-check{color:var(--muted)}
.auth-secondary{background:var(--surface);color:var(--ink)}
.auth-info-note{background:var(--primary-soft);border-color:#9bdfe2;color:var(--muted)}


html[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] .topbar{background:rgba(14,22,33,.94);border-color:var(--line)}
html[data-theme="dark"] .card,html[data-theme="dark"] .market-chip,html[data-theme="dark"] .search-box,html[data-theme="dark"] .context-item,html[data-theme="dark"] .detail-box,html[data-theme="dark"] .event-card,html[data-theme="dark"] .mini-list,html[data-theme="dark"] .risk-item,html[data-theme="dark"] .metric-tile,html[data-theme="dark"] .tx-add-dialog,html[data-theme="dark"] .tx-launch-menu,html[data-theme="dark"] .profile-menu{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .lang-link,html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .chip,html[data-theme="dark"] .row-action,html[data-theme="dark"] .auth-lang,html[data-theme="dark"] .auth-theme{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .nav-btn{color:#aeb9c8}html[data-theme="dark"] .nav-btn:hover,html[data-theme="dark"] .profile:hover{background:#172433;color:var(--ink)}
html[data-theme="dark"] .nav-btn.active{background:var(--primary-soft);color:#69d5da}
html[data-theme="dark"] .segmented,html[data-theme="dark"] .auth-tabs{background:#101a26}
html[data-theme="dark"] .segmented button.active,html[data-theme="dark"] .auth-tab.active{background:#223043;color:var(--ink)}
html[data-theme="dark"] .live-chart,html[data-theme="dark"] .chart-shell,html[data-theme="dark"] .chart-placeholder,html[data-theme="dark"] .empty-chart{background:linear-gradient(180deg,#121d29,#151f2c);border-color:var(--line)}
html[data-theme="dark"] .live-chart .grid-lines{background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#263446 50px),repeating-linear-gradient(to right,transparent 0,transparent 106px,#202d3d 107px)}
html[data-theme="dark"] .data-table th,html[data-theme="dark"] .compact-table th{background:#101a26;color:#9aa8ba;border-color:var(--line)}
html[data-theme="dark"] .data-table td,html[data-theme="dark"] .compact-table td,html[data-theme="dark"] .stock-row,html[data-theme="dark"] .profile-menu-head{border-color:#243244}
html[data-theme="dark"] .data-table tbody tr:hover{background:#172433}
html[data-theme="dark"] .expand-row,html[data-theme="dark"] .tx-detail-row{background:#101a26}
html[data-theme="dark"] .bar,html[data-theme="dark"] .performance-bar,html[data-theme="dark"] .range-track{background:#263446}
html[data-theme="dark"] .ticker,html[data-theme="dark"] .stock-logo,html[data-theme="dark"] .avatar{background:#263446;color:#c8d4e2}
html[data-theme="dark"] .dividend-summary div{background:#101a26;border-color:#243244}
html[data-theme="dark"] .notice{border-color:#243244!important}
html[data-theme="dark"] .tx-input,html[data-theme="dark"] .tx-select,html[data-theme="dark"] .symbol-search-input{background:#101a26!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .symbol-picker-menu{background:#151f2c;border-color:var(--line)}
html[data-theme="dark"] .symbol-option:hover,html[data-theme="dark"] .symbol-option.active{background:#172f35}
html[data-theme="dark"] .profile-menu button{color:#b7c3d2}html[data-theme="dark"] .profile-menu button:hover{background:#172433;color:#69d5da}
html[data-theme="dark"] .phase-note,html[data-theme="dark"] .app-toast{background:#071019}
html[data-theme="dark"] .donut::after{background:var(--surface)}


html[data-theme="dark"] .auth-screen{background:linear-gradient(135deg,#0e1621 0%,#101c28 50%,#0d1722 100%)}
html[data-theme="dark"] .auth-showcase{background:linear-gradient(145deg,#151f2c 0%,#172936 58%,#12353a 130%);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .auth-feature{background:rgba(20,32,45,.78);border-color:#314154}
html[data-theme="dark"] .auth-feature p,html[data-theme="dark"] .auth-brand span{color:var(--muted)}
html[data-theme="dark"] .auth-card{background:var(--surface);border-color:var(--line);box-shadow:0 22px 65px rgba(0,0,0,.28)}
html[data-theme="dark"] .auth-input{background:#101a26;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .auth-info-note{background:#102c31;border-color:#285960;color:#a9bac2}
html[data-theme="dark"] .auth-secondary{background:#101a26;border-color:var(--line);color:var(--ink)}
@media(max-width:700px){.theme-toggle{display:flex}}

/* ==== block 6  ==== */


html[data-theme="dark"] .portfolio-action-bar,
html[data-theme="dark"] .tx-launch-item,
html[data-theme="dark"] .tx-detail-grid>div,
html[data-theme="dark"] .pagination-controls button,
html[data-theme="dark"] .insight,
html[data-theme="dark"] .stock-picker-results,
html[data-theme="dark"] .tx-add-head,
html[data-theme="dark"] .tx-modal-actions,
html[data-theme="dark"] .holding-summary-card,
html[data-theme="dark"] .analytics-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .holding-view,
html[data-theme="dark"] .overview-lower,
html[data-theme="dark"] .quick-area{
  background-color:var(--surface);
  border-color:var(--line);
  color:var(--ink);
}
html[data-theme="dark"] .tx-launch-item:hover,
html[data-theme="dark"] .pagination-controls button:hover,
html[data-theme="dark"] .row-action:hover,
html[data-theme="dark"] .chip:hover{background:#1b2939;color:var(--ink)}
html[data-theme="dark"] .pagination-controls button.active{background:var(--primary-soft);color:#69d5da;border-color:#285960}
html[data-theme="dark"] .analytics-table th{background:#101a26;color:#9aa8ba;border-color:var(--line)}
html[data-theme="dark"] .analytics-table td{border-color:#243244}
html[data-theme="dark"] .analytics-table tbody tr:hover{background:#172433}
html[data-theme="dark"] .polish-note{background:#102c31;border-color:#285960;color:#a9bac2}
html[data-theme="dark"] .heat-pos{background:#113127!important;color:#58c49a!important}
html[data-theme="dark"] .heat-neg{background:#351d25!important;color:#ec7e8a!important}
html[data-theme="dark"] .heat-neutral{background:#263446!important;color:#b5c0cf!important}
html[data-theme="dark"] .tx-launch-item[data-type="fees"] .tx-launch-icon,
html[data-theme="dark"] .type-fee{background:#3b2f12;color:#e8bb58}
html[data-theme="dark"] .auth-feature{background:rgba(21,31,44,.86)!important}
html[data-theme="dark"] .auth-showcase-content,
html[data-theme="dark"] .auth-card-head,
html[data-theme="dark"] .auth-panel{color:var(--ink)}
html[data-theme="dark"] .notice[style*="border-top"]{border-top-color:#243244!important}

html[data-theme="dark"] .card [style*="background:#fff"],
html[data-theme="dark"] .card [style*="background: #fff"]{background:var(--surface)!important}

/* ==== block 7  ==== */


.top-actions > .icon-btn[data-i18n-attr="1"]{display:none!important} 
.mobile-menu{display:none!important}
.topbar-inner{position:relative}
.mobile-nav-popover{
  position:absolute;top:calc(100% + 10px);inset-inline-end:28px;width:240px;
  padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 48px rgba(23,32,51,.16);z-index:120;display:none;
}
.mobile-nav-popover.open{display:grid;gap:4px}
.mobile-nav-item{
  width:100%;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:700;
  text-align:start;padding:11px 12px;border-radius:10px;cursor:pointer;
}
.mobile-nav-item:hover,.mobile-nav-item.active{background:var(--primary-soft);color:var(--primary-dark)}
html[data-theme="dark"] .mobile-nav-popover{background:var(--surface);border-color:var(--line);box-shadow:0 20px 55px rgba(0,0,0,.34)}
html[data-theme="dark"] .mobile-nav-item:hover,html[data-theme="dark"] .mobile-nav-item.active{background:#173038;color:#69d5da}
@media(max-width:860px){
  .mobile-menu{display:flex!important}
  .mobile-nav-popover{inset-inline-end:14px}
}
@media(min-width:861px){.mobile-nav-popover{display:none!important}}

/* ==== block 8 id="multiPortfolioPass1Css" ==== */

.portfolio-context{margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 16px rgba(23,32,51,.04);position:relative;z-index:20}
.portfolio-current{display:flex;align-items:center;gap:11px;min-width:0}.portfolio-current-icon{width:40px;height:40px;border-radius:11px;background:var(--primary-soft);color:var(--primary-dark);display:grid;place-items:center;font-size:18px;font-weight:900;flex:0 0 auto}.portfolio-current-copy{min-width:0}.portfolio-current-copy span{display:block;color:var(--muted);font-size:9px;font-weight:700}.portfolio-current-copy strong{display:block;font-size:13px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portfolio-current-copy small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.portfolio-context-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.portfolio-switch{position:relative}.portfolio-switch-btn,.portfolio-manage-btn{height:38px;border-radius:10px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.portfolio-switch-btn{min-width:150px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.portfolio-manage-btn{border:0;background:var(--primary-dark);color:#fff;padding:0 13px}.portfolio-switch-menu{position:absolute;top:45px;inset-inline-end:0;width:320px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px rgba(23,32,51,.16);padding:7px;display:none;z-index:90}.portfolio-switch.open .portfolio-switch-menu{display:block;animation:portfolioMenuIn .14s ease-out}@keyframes portfolioMenuIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}.portfolio-option{width:100%;border:0;background:transparent;color:var(--ink);border-radius:10px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;text-align:start;cursor:pointer;font:inherit}.portfolio-option:hover{background:var(--primary-soft)}.portfolio-option.active{background:var(--primary-soft);box-shadow:inset 0 0 0 1px rgba(0,180,189,.18)}.portfolio-option strong{font-size:10px;display:block}.portfolio-option small{font-size:8px;color:var(--muted);display:block;margin-top:3px}.portfolio-option-value{text-align:end}.portfolio-option-value b{font-size:10px;display:block}.portfolio-option-value span{font-size:8px;font-weight:800;display:block;margin-top:3px}.portfolio-switch-foot{border-top:1px solid var(--line);margin-top:5px;padding-top:5px}.portfolio-switch-foot button{width:100%;border:0;background:transparent;color:var(--primary-dark);font:inherit;font-size:9px;font-weight:900;text-align:start;padding:9px 10px;border-radius:9px;cursor:pointer}.portfolio-switch-foot button:hover{background:var(--primary-soft)}
.portfolios-modal{position:fixed;inset:0;z-index:230;display:none;align-items:center;justify-content:center;padding:22px}.portfolios-modal.open{display:flex}.portfolios-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}.portfolios-dialog{position:relative;z-index:1;width:min(1120px,100%);max-height:min(92vh,900px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 28px 80px rgba(15,23,42,.26)}.portfolios-head{position:sticky;top:0;z-index:4;background:var(--surface);border-bottom:1px solid var(--line);padding:20px 22px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.portfolios-head h2{margin:0;font-size:20px}.portfolios-head p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.portfolios-head-actions{display:flex;gap:8px}.portfolio-add-btn{height:38px;border:0;border-radius:10px;background:var(--primary-dark);color:#fff;padding:0 13px;font:inherit;font-size:10px;font-weight:900;cursor:pointer}.portfolio-close{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:20px;cursor:pointer}.portfolios-body{padding:20px 22px 24px}.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.portfolio-card{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:18px;position:relative;transition:.16s;min-height:245px}.portfolio-card:hover{border-color:#b6e5e8;box-shadow:0 9px 26px rgba(23,32,51,.07);transform:translateY(-1px)}.portfolio-card.active{border-color:#7bd3d7;box-shadow:0 0 0 2px rgba(0,180,189,.08)}.portfolio-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.portfolio-card-heading{min-width:0}.portfolio-card h3{margin:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portfolio-card-updated{display:block;margin-top:5px;color:var(--muted);font-size:8px}.portfolio-kebab{position:relative}.portfolio-more{width:34px;height:34px;border:0;background:transparent;color:var(--ink);border-radius:9px;font:inherit;font-size:18px;line-height:1;cursor:pointer}.portfolio-more:hover{background:var(--primary-soft)}.portfolio-card-menu{position:absolute;top:38px;inset-inline-end:0;width:180px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 42px rgba(23,32,51,.16);display:none;z-index:20}.portfolio-kebab.open .portfolio-card-menu{display:grid;gap:3px}.portfolio-card-menu button{border:0;background:transparent;color:var(--ink);text-align:start;border-radius:8px;padding:9px 10px;font:inherit;font-size:9px;font-weight:800;cursor:pointer}.portfolio-card-menu button:hover{background:var(--primary-soft);color:var(--primary-dark)}.portfolio-card-menu .danger:hover{background:var(--loss-bg);color:var(--loss)}.portfolio-card-value{font-size:24px;font-weight:900;margin-top:18px}.portfolio-card-value small{font-size:9px;color:var(--muted);font-weight:700}.portfolio-card-change{font-size:10px;font-weight:900;margin-inline-start:6px}.portfolio-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:17px}.portfolio-card-metrics span{display:block;font-size:8px;color:var(--muted)}.portfolio-card-metrics strong{display:block;font-size:11px;margin-top:4px}.portfolio-active-badge{display:none;margin-top:13px;width:max-content;border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);padding:5px 8px;font-size:8px;font-weight:900}.portfolio-card.active .portfolio-active-badge{display:inline-flex}.portfolio-empty-add{min-height:245px;border:1px dashed #addfe2;background:linear-gradient(145deg,var(--surface),var(--primary-soft));border-radius:18px;display:grid;place-items:center;text-align:center;padding:18px;cursor:pointer;color:var(--ink)}.portfolio-empty-add:hover{border-color:var(--primary)}.portfolio-empty-add b{display:block;font-size:30px;color:var(--primary-dark);font-weight:400}.portfolio-empty-add strong{display:block;font-size:11px;margin-top:7px}.portfolio-empty-add span{display:block;font-size:9px;color:var(--muted);margin-top:4px;line-height:1.5}
.portfolio-form-panel{display:none;margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.portfolio-form-panel.open{display:block}.portfolio-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}.portfolio-form-head h3{font-size:14px;margin:0}.portfolio-form-head p{font-size:9px;color:var(--muted);margin:4px 0 0}.portfolio-form{display:grid;grid-template-columns:1fr;gap:12px;max-width:680px}.portfolio-field{display:flex;flex-direction:column;gap:6px}.portfolio-field label{font-size:9px;color:var(--muted);font-weight:800}.portfolio-field input,.portfolio-field textarea{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:0 11px;font:inherit;font-size:10px;outline:0}.portfolio-field input{height:42px}.portfolio-field textarea{min-height:78px;padding-block:10px;resize:vertical}.portfolio-form-actions{display:flex;justify-content:flex-end;gap:8px}.portfolio-form-actions button,.portfolio-editor-actions button{height:38px;border-radius:9px;padding:0 14px;font:inherit;font-size:9px;font-weight:900;cursor:pointer}.portfolio-save{border:0;background:var(--primary-dark);color:#fff}.portfolio-cancel{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.portfolio-duplicate-editor{display:none;margin-top:18px;border-top:1px solid var(--line);padding-top:18px}.portfolio-duplicate-editor.open{display:block}.portfolio-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.portfolio-editor-head h3{margin:0;font-size:14px}.portfolio-editor-head p{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.55}.portfolio-editor-note{padding:10px 12px;border-radius:10px;background:var(--primary-soft);color:var(--muted);font-size:9px;line-height:1.6;margin-bottom:12px}.portfolio-editor-note b{color:var(--primary-dark)}.portfolio-holdings-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.portfolio-holdings-table{width:100%;min-width:790px;border-collapse:collapse}.portfolio-holdings-table th{padding:10px;background:#f8fafb;color:var(--muted);font-size:8px;text-align:start;border-bottom:1px solid var(--line)}.portfolio-holdings-table td{padding:10px;border-bottom:1px solid var(--line);font-size:9px}.portfolio-holdings-table tr:last-child td{border-bottom:0}.portfolio-holding-name strong{display:block;font-size:10px}.portfolio-holding-name span{display:block;color:var(--muted);font-size:8px;margin-top:2px}.portfolio-mini-input{width:112px;height:35px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:0 8px;font:inherit;font-size:9px}.portfolio-mini-input.date{width:132px}.portfolio-market-price{font-weight:800}.portfolio-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}
html[data-theme="dark"] .portfolio-card-menu{background:var(--surface);border-color:var(--line)}html[data-theme="dark"] .portfolio-holdings-table th{background:#101a26;color:#9aa8ba}
@media(max-width:980px){.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-context{align-items:stretch;flex-direction:column}.portfolio-context-actions{width:100%}.portfolio-switch{flex:1}.portfolio-switch-btn{width:100%}}
@media(max-width:650px){.portfolio-context-actions{display:grid;grid-template-columns:1fr}.portfolio-switch-menu{position:fixed;inset-inline:12px;top:74px;width:auto}.portfolio-manage-btn{width:100%}.portfolios-modal{padding:0;align-items:flex-end}.portfolios-dialog{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.portfolios-head{padding:16px}.portfolios-body{padding:16px}.portfolio-grid{grid-template-columns:1fr}.portfolios-head-actions{align-items:center}.portfolio-add-btn{padding-inline:10px}.portfolio-form-actions,.portfolio-editor-actions{display:grid;grid-template-columns:1fr 1fr}.portfolio-form-actions button,.portfolio-editor-actions button{width:100%}}

/* ==== block 9 id="finalQualityPass27" ==== */

/* Final presentation QA: defensive responsive, bidi and accessibility guards. */
html{overflow-x:hidden}
body{min-width:0;overflow-x:hidden}
img,svg,canvas{max-width:100%}
button,input,select,textarea{font:inherit}
[dir="ltr"] .data-table th,[dir="ltr"] .data-table td,[dir="ltr"] .compact-table th,[dir="ltr"] .compact-table td,[dir="ltr"] .analytics-table th,[dir="ltr"] .analytics-table td{text-align:left}
[dir="rtl"] .data-table th,[dir="rtl"] .data-table td,[dir="rtl"] .compact-table th,[dir="rtl"] .compact-table td,[dir="rtl"] .analytics-table th,[dir="rtl"] .analytics-table td{text-align:right}
.table-wrap{-webkit-overflow-scrolling:touch;max-width:100%}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid rgba(0,180,189,.28);outline-offset:2px}
@media(max-width:860px){
  .workspace{padding-inline:18px}
  .topbar-inner{padding-inline:18px}
  .page-head{gap:12px}
}
@media(max-width:700px){
  .workspace{padding:18px 12px}
  .footer{padding-inline:12px}
  .page-head{align-items:flex-start}
  .card,.panel{min-width:0}
  .toolbar>*{max-width:100%}
  .search-box{width:100%;min-width:0}
  .tx-add-dialog{max-height:94dvh;overflow:auto}
  .portfolio-board-grid>*{min-width:0}
}
@media(max-width:520px){
  .workspace{padding-inline:10px}
  .topbar-inner{padding-inline:10px}
  .top-actions{gap:6px}
  .lang-link{padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ==== block 10 id="pass32ModernAccentRefinement" ==== */

/* Accent color refinement.
   Functional markup/behaviour remains untouched. */
:root{
  --rx-gold:#6366F1!important;
  --rx-gold-wash:#EEF0FF!important;
}
html[data-theme="dark"]{
  --rx-gold:#818CF8!important;
  --rx-gold-wash:#242A4A!important;
}

/* Hero CTA: same visual language as the rest of the product — rounded rectangle, not capsule. */
html[dir] .advisor-hero-action{
  border-radius:11px!important;
  background:var(--rx-gold)!important;
  border-color:var(--rx-gold)!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(99,102,241,.22)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
}
html[dir] .advisor-hero-action:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.04)!important;
  box-shadow:0 11px 28px rgba(99,102,241,.28)!important;
}
html[dir] .advisor-hero-action:active{transform:translateY(0)!important}

/* Bring every old gold-dependent surface into the new accent family. */
html[dir] .avatar{
  background:linear-gradient(145deg,#8B93FF,var(--rx-gold))!important;
  color:#fff!important;
}
html[dir] .event-date{
  background:var(--rx-gold-wash)!important;
  color:#4F46E5!important;
}
html[data-theme="dark"][dir] .event-date{color:#A5B4FC!important}
html[dir] .portfolio-top-card.active::before{background:var(--rx-gold)!important}
html[dir] .main-nav .nav-btn::after{background:var(--rx-gold)!important}

/* Active-dot/glow inherited an old gold-tinted shadow; neutralize it for the new accent. */
html[dir] .advisor-hero-dot.active{background:var(--rx-gold)!important}
html[dir] .portfolio-top-card.active .portfolio-live-dot,
html[dir] .portfolio-top-card.active .live-dot{
  background:var(--rx-gold)!important;
  box-shadow:0 0 0 4px rgba(99,102,241,.15)!important;
}

@media(max-width:700px){
  html[dir] .advisor-hero-action{
    min-height:40px!important;
    padding-inline:17px!important;
    border-radius:10px!important;
  }
}

/* ==== block 11 id="pass33SlideshowButtonAvatarRefinement" ==== */

/* Slideshow CTA and account avatar refinement */
html[dir] .advisor-hero-slider .advisor-hero-action,
html[dir] .advisor-hero-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:0 18px!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#C93F5B 0%,#B93552 100%)!important;
  border:1px solid rgba(185,53,82,.96)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:700!important;
  box-shadow:0 12px 26px rgba(185,53,82,.24)!important;
  white-space:nowrap!important;
}
html[dir] .advisor-hero-slider .advisor-hero-action:hover,
html[dir] .advisor-hero-action:hover{
  background:linear-gradient(135deg,#D64B68 0%,#C13C59 100%)!important;
  border-color:#C13C59!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 14px 28px rgba(193,60,89,.28)!important;
}
html[dir] .advisor-hero-slider .advisor-hero-action:focus-visible,
html[dir] .advisor-hero-action:focus-visible{
  outline:3px solid rgba(201,63,91,.22)!important;
  outline-offset:3px!important;
}
html[dir] .advisor-hero-slider .advisor-hero-action:active,
html[dir] .advisor-hero-action:active{
  transform:translateY(0)!important;
  box-shadow:0 9px 20px rgba(185,53,82,.22)!important;
}

html[dir] .avatar{
  background:linear-gradient(135deg,#C93F5B 0%,#B93552 100%)!important;
  color:#fff!important;
  font-weight:800!important;
  text-shadow:none!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.16), 0 10px 24px rgba(185,53,82,.24)!important;
}
html[data-theme="dark"] .avatar{
  background:linear-gradient(135deg,#D14C68 0%,#BA3954 100%)!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.10), 0 12px 28px rgba(0,0,0,.28)!important;
}

@media(max-width:700px){
  html[dir] .advisor-hero-slider .advisor-hero-action,
  html[dir] .advisor-hero-action{
    min-height:40px!important;
    padding:0 16px!important;
    border-radius:11px!important;
  }
}

/* ==== block 12 id="pass34RemovePurpleRemnants" ==== */

/* Accent consistency refinement */
html[dir]{
  --rx-gold:#C93F5B!important;
  --rx-gold-wash:#FCE8ED!important;
  --sand:#C93F5B!important;
  --sand-soft:#FCE8ED!important;
}
html[data-theme="dark"][dir]{
  --rx-gold:#D14C68!important;
  --rx-gold-wash:#341823!important;
  --sand:#D14C68!important;
  --sand-soft:#341823!important;
}

html[dir] .advisor-hero-dot.active{
  background:#C93F5B!important;
  box-shadow:0 0 0 4px rgba(201,63,91,.14)!important;
}
html[data-theme="dark"][dir] .advisor-hero-dot.active{
  background:#D14C68!important;
  box-shadow:0 0 0 4px rgba(209,76,104,.18)!important;
}

html[dir] .portfolio-top-card.active::before,
html[dir] .main-nav .nav-btn::after,
html[dir] .portfolio-card.active::before,
html[dir] .portfolio-option.active::before{
  background:#C93F5B!important;
}
html[data-theme="dark"][dir] :is(.portfolio-top-card.active::before,.main-nav .nav-btn::after,.portfolio-card.active::before,.portfolio-option.active::before){
  background:#D14C68!important;
}

html[dir] .event-date{
  background:#FCE8ED!important;
  color:#A6324A!important;
}
html[data-theme="dark"][dir] .event-date{
  background:#341823!important;
  color:#F08AA0!important;
}

html[dir] .avatar{
  background:linear-gradient(135deg,#C93F5B 0%,#B93552 100%)!important;
  color:#fff!important;
}
html[data-theme="dark"][dir] .avatar{
  background:linear-gradient(135deg,#D14C68 0%,#BA3954 100%)!important;
  color:#fff!important;
}

/* ==== block 13 id="pass35WhiteActiveIndicators" ==== */

/* High-contrast active indicators on dark surfaces */
html[dir] .main-nav .nav-btn.active,
html[data-theme="dark"][dir] .main-nav .nav-btn.active{
  color:#fff!important;
}
html[dir] .main-nav .nav-btn.active svg,
html[dir] .main-nav .nav-btn.active i,
html[data-theme="dark"][dir] .main-nav .nav-btn.active svg,
html[data-theme="dark"][dir] .main-nav .nav-btn.active i{
  color:#fff!important;
  stroke:#fff!important;
}
html[dir] .main-nav .nav-btn.active::after,
html[data-theme="dark"][dir] .main-nav .nav-btn.active::after{
  background:#fff!important;
}

html[dir] .advisor-hero-dot.active,
html[data-theme="dark"][dir] .advisor-hero-dot.active{
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.16)!important;
}

html[dir] .portfolio-top-card.active::before,
html[data-theme="dark"][dir] .portfolio-top-card.active::before{
  background:#fff!important;
}
html[dir] .portfolio-top-card.active .more-btn,
html[dir] .portfolio-top-card.active .card-menu-btn,
html[dir] .portfolio-top-card.active [aria-label*="menu"],
html[dir] .portfolio-top-card.active [aria-label*="القائمة"]{
  color:#fff!important;
}
html[dir] .portfolio-top-card.active .status-dot,
html[dir] .portfolio-top-card.active .active-dot,
html[dir] .portfolio-top-card.active .portfolio-dot,
html[dir] .portfolio-top-card.active::after{
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.12)!important;
}

/* keep active card headings/crucial tiny controls crisp on dark card */
html[dir] .portfolio-top-card.active :is(.card-kebab,.pc-kebab,.pc-head button,.portfolio-card-actions button, .portfolio-top-card-menu button){
  color:#fff!important;
}

/* ==== block 14 id="finalTableEdgeHotfix" ==== */

/* Client-ready table edge hotfix: keep first/last cells and row actions fully visible. */
html[dir] #section-holdings .table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
  scrollbar-gutter:stable;
}
html[dir] #section-holdings .data-table{
  border-collapse:separate!important;
  border-spacing:0!important;
}
html[dir] #section-holdings .data-table th:last-child,
html[dir] #section-holdings .data-table td:last-child{
  min-width:96px!important;
  width:96px!important;
  padding-inline:16px 18px!important;
  white-space:nowrap!important;
}
html[dir] #section-holdings .data-table th:first-child,
html[dir] #section-holdings .data-table td:first-child{
  padding-inline:18px 16px!important;
}
html[dir] #section-holdings .data-table td:last-child .row-action,
html[dir] #section-holdings .data-table td:last-child .hux-row-actions{
  max-width:100%!important;
  margin-inline:auto!important;
}
html[dir] #section-holdings .data-table td:last-child .row-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:64px!important;
}
@media(max-width:700px){
  html[dir] #section-holdings .data-table th:last-child,
  html[dir] #section-holdings .data-table td:last-child{
    min-width:90px!important;
    width:90px!important;
    padding-inline:12px 16px!important;
  }
}

/* ==== block 15  ==== */


html[data-theme="dark"] .overview-action-row{
  background:linear-gradient(135deg,var(--surface),#142334) !important;
  border-color:var(--line) !important;
  box-shadow:0 6px 20px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .overview-action-copy strong{color:var(--ink) !important}
html[data-theme="dark"] .overview-action-copy > span:last-child > span{color:var(--muted) !important}
html[data-theme="dark"] .overview-action-row .quick-icon{
  background:#103842 !important;
  color:#22c1ca !important;
  border-color:#1d4d58 !important;
}
html[data-theme="dark"] .overview-action-row .tx-launch-btn{
  background:#008e96 !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(0,142,150,.20) !important;
}
html[data-theme="dark"] .overview-action-row .tx-launch-btn:hover{background:#00a1aa !important}


#section-overview .stat-icon{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:clip;
  line-height:1;
  font-size:18px;
  flex:0 0 34px;
}
#section-overview .stat-top>div:first-child{min-width:0;position:relative;z-index:2}
#section-overview .stat-label,#section-overview .stat-value{overflow-wrap:anywhere}


#section-overview .allocation-list .alloc-row{grid-template-columns:minmax(92px,1.25fr) minmax(70px,1fr) 42px}
#section-overview .allocation-list .alloc-row>span{min-width:0;white-space:normal}
#section-overview .donut-center strong,#section-overview .donut-center span{white-space:nowrap}
html[dir="ltr"] #section-overview .allocation-list .alloc-row{text-align:left}
html[dir="rtl"] #section-overview .allocation-list .alloc-row{text-align:right}

@media(max-width:700px){
  html[data-theme="dark"] .overview-action-row{background:var(--surface) !important}
}

/* ==== block 16  ==== */


#section-analytics .metric-tile strong{font-size:17px;line-height:1.25}
#section-analytics .analytics-card .panel-head h2{font-size:15px;line-height:1.3}
#section-analytics .analytics-card .panel-head span{font-size:10px;line-height:1.45}
#section-analytics .risk-item{min-width:0}
#section-analytics .risk-item .top{align-items:baseline}
#section-analytics .risk-item .top span{font-size:10px;color:var(--muted);font-weight:700}
#section-analytics .risk-item .top strong{font-size:17px;line-height:1.1;white-space:nowrap}
#section-analytics .risk-item small{font-size:10px;line-height:1.55;font-weight:400;color:var(--muted);margin-top:6px}
#section-analytics .legend-inline{font-size:10px}
#section-analytics .performance-row .name strong{font-size:11px}
#section-analytics .performance-row .name small{font-size:9px}
#section-analytics .performance-row .value{font-size:11px}
html[lang="en"] #section-analytics .risk-item small{font-size:10px}
@media(max-width:1050px){#section-analytics .risk-item .top strong{font-size:16px}}

/* ==== block 17 id="portfolioTopCardsPass3Css" ==== */

#portfolioContext{display:none!important}
.portfolio-board{margin:0 0 20px}.portfolio-board-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:11px}.portfolio-board-head h2{margin:0;font-size:16px}.portfolio-board-head p{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.5}.portfolio-board-grid{display:grid;grid-template-columns:repeat(3,minmax(225px,1fr));gap:12px;align-items:stretch}.portfolio-top-card{position:relative;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:15px;padding:14px 15px;cursor:pointer;text-align:start;color:var(--ink);box-shadow:0 3px 12px rgba(23,32,51,.025);transition:.16s}.portfolio-top-card:hover{border-color:#a7dfe2;box-shadow:0 8px 22px rgba(23,32,51,.06);transform:translateY(-1px)}.portfolio-top-card.active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(0,180,189,.09),0 8px 22px rgba(23,32,51,.05);background:linear-gradient(145deg,var(--surface),var(--primary-soft))}.portfolio-top-card .pc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.portfolio-top-card .pc-name{min-width:0}.portfolio-top-card h3{font-size:12px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portfolio-top-card .pc-updated{display:block;color:var(--muted);font-size:8px;margin-top:4px}.portfolio-top-card .pc-kebab{position:relative;z-index:3}.portfolio-top-card .pc-more{width:29px;height:29px;border:0;border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;font-size:17px;line-height:1}.portfolio-top-card .pc-more:hover{background:rgba(0,180,189,.09)}.portfolio-top-card .pc-menu{position:absolute;top:31px;inset-inline-end:0;width:165px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 38px rgba(23,32,51,.16);display:none;z-index:45}.portfolio-top-card .pc-kebab.open .pc-menu{display:grid;gap:2px}.portfolio-top-card .pc-menu button{border:0;background:transparent;color:var(--ink);font:inherit;font-size:8px;font-weight:800;text-align:start;padding:8px 9px;border-radius:8px;cursor:pointer}.portfolio-top-card .pc-menu button:hover{background:var(--primary-soft);color:var(--primary-dark)}.portfolio-top-card .pc-menu button.danger:hover{background:var(--loss-bg);color:var(--loss)}.portfolio-top-card .pc-value{font-size:20px;font-weight:900;margin-top:13px}.portfolio-top-card .pc-value small{font-size:8px;color:var(--muted)}.portfolio-top-card .pc-change{font-size:9px;font-weight:900;margin-inline-start:5px}.portfolio-top-card .pc-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.portfolio-top-card .pc-metrics span{display:block;font-size:8px;color:var(--muted)}.portfolio-top-card .pc-metrics strong{display:block;font-size:10px;margin-top:3px}.portfolio-top-card .pc-active{display:none;margin-top:10px;font-size:8px;font-weight:900;color:var(--primary-dark)}.portfolio-top-card.active .pc-active{display:block}.portfolio-top-add{min-height:142px;border:1px dashed #9fdcdf;background:linear-gradient(145deg,var(--surface),rgba(0,180,189,.055));border-radius:15px;color:var(--ink);cursor:pointer;display:grid;place-items:center;text-align:center;padding:14px}.portfolio-top-add:hover{border-color:var(--primary);background:var(--primary-soft)}.portfolio-top-add b{display:block;font-size:26px;font-weight:400;color:var(--primary-dark);line-height:1}.portfolio-top-add strong{display:block;font-size:10px;margin-top:6px}.portfolio-screen-caption{display:flex;align-items:center;gap:7px;margin:-6px 0 14px;color:var(--muted);font-size:9px}.portfolio-screen-caption b{color:var(--primary-dark)}
#portfoliosModal .portfolio-grid{display:none}
@media(max-width:1050px){.portfolio-board-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}
@media(max-width:650px){.portfolio-board-head{align-items:flex-start;flex-direction:column}.portfolio-board-grid{grid-template-columns:1fr}.portfolio-top-card,.portfolio-top-add{min-height:0}.portfolio-top-card .pc-value{font-size:18px}}

/* Compact portfolio editor modal. */
#portfoliosModal .portfolios-dialog{width:min(720px,calc(100% - 28px));max-height:min(88vh,760px)}
#portfoliosModal .portfolios-head{padding:16px 18px 13px}
#portfoliosModal .portfolios-head h2{font-size:17px}
#portfoliosModal .portfolios-head p{font-size:9px;margin-top:3px}
#portfoliosModal .portfolios-body{padding:14px 18px 18px}
#portfoliosModal .portfolio-form-panel{margin-top:0;padding-top:0;border-top:0}
#portfoliosModal .portfolio-form{max-width:none;gap:10px}
#portfoliosModal .portfolio-field textarea{min-height:72px}
#portfoliosModal .portfolio-form-actions{margin-top:2px}
#portfoliosModal .portfolio-duplicate-editor{margin-top:0;padding-top:0;border-top:0}
#portfoliosModal .portfolio-add-btn{display:none}
@media(max-width:650px){#portfoliosModal .portfolios-dialog{width:100%;max-height:92dvh}#portfoliosModal .portfolios-head{padding:14px 15px 12px}#portfoliosModal .portfolios-body{padding:13px 15px 16px}}


/* ==== block 18 id="visualRefresh" ==== */

/* ==========================================================
   Visual refresh — styling only. No markup or behaviour changes.
   ========================================================== */
:root{
  --primary:#00A8B0;--primary-dark:#00737A;--primary-soft:#E4F4F5;
  --ink:#0F2536;--muted:#5F7182;--line:#DDE5E9;--surface:#FFFFFF;--canvas:#EEF2F3;
  --gain:#0A8560;--gain-bg:#E5F5EE;--loss:#C73646;--loss-bg:#FCECEE;
  --sand:#C29B5E;--sand-soft:#F6EFE3;
  --night:#0B2A36;--night-2:#0F3A45;
  --shadow:0 1px 2px rgba(15,37,54,.04),0 8px 24px -6px rgba(15,37,54,.08);
  --shadow-lift:0 2px 4px rgba(15,37,54,.05),0 18px 40px -12px rgba(15,37,54,.18);
  --radius:14px;
  --font-body:"IBM Plex Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
  --font-display:"Noto Kufi Arabic","IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
  --sky:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1600 260%27 preserveAspectRatio=%27xMidYMax slice%27%3E%3Cpath d=%27M0,170 L120,160 L220,172 L330,140 L430,150 L540,118 L650,128 L760,96 L880,108 L990,72 L1100,84 L1220,52 L1340,62 L1460,34 L1600,40%27 fill=%27none%27 stroke=%27%235fe0e6%27 stroke-opacity=%27.22%27 stroke-width=%272%27/%3E%3Cpath d=%27M0,170 L120,160 L220,172 L330,140 L430,150 L540,118 L650,128 L760,96 L880,108 L990,72 L1100,84 L1220,52 L1340,62 L1460,34 L1600,40 L1600,260 L0,260Z%27 fill=%27%235fe0e6%27 fill-opacity=%27.05%27/%3E%3Cpath d=%27M0,260V201H28V260ZM28,260V152H48V260ZM52,260V156H71V260ZM71,260V167H102V260ZM102,260V166H137V260ZM141,260V192L152,186L162,192V260ZM166,260V170H202V260ZM203,260V203H222V260ZM223,260V205H258V260ZM262,260V197H306V260ZM310,260V196H348V260ZM352,260V212H392V260ZM396,260V157L408,145L420,157V260ZM422,260V162H454V260ZM455,260V197L476,188L498,197V260ZM498,260V182H534V260ZM536,260V163H577V260ZM577,260V155H598V260ZM600,260V158H622V260ZM627,260V180H647V260ZM649,260V157H686V260ZM689,260V209H695V195H703V209H709V260ZM712,260V212H752V260ZM757,260V163H784V260ZM787,260V176H833V260ZM836,260V199L850,186L865,199V260ZM865,260V184H889V260ZM890,260V170H899V156H911V170H920V260ZM923,260V199H943V260ZM947,260V203L960,189L973,203V260ZM975,260V167H987V153H1003V167H1015V260ZM1020,260V172H1034V158H1052V172H1066V260ZM1067,260V198H1087V260ZM1092,260V219H1117V260ZM1121,260V187H1144V260ZM1145,260V152H1176V260ZM1180,260V204L1194,190L1208,204V260ZM1212,260V214H1250V260ZM1255,260V170H1298V260ZM1301,260V159L1312,153L1322,159V260ZM1323,260V194H1343V260ZM1343,260V214H1371V260ZM1375,260V152H1397V260ZM1399,260V217H1436V260ZM1437,260V172H1474V260ZM1476,260V174H1505V260ZM1505,260V158H1518V144H1536V158H1550V260ZM1553,260V159H1586V260ZM1587,260V177L1598,164L1608,177V260Z%27 fill=%27%23ffffff%27 fill-opacity=%270.05%27/%3E%3Cpath d=%27M1150,260L1163,22Q1182.0,222 1201,22L1214,260ZM1164,52h36v6h-36ZM1300,260L1333.0,87L1341.0,87L1374,260ZM1347.0,79a10,10 0 1,0 -20,0a10,10 0 1,0 20,0ZM1336.0,27h2v44h-2Z%27 fill=%27%23ffffff%27 fill-opacity=%270.13%27 fill-rule=%27evenodd%27/%3E%3Cpath d=%27M0,260V207H36V260ZM40,260V231L64,225L89,231V260ZM93,260V199H106V185H124V199H138V260ZM143,260V207H185V260ZM186,260V191H234V260ZM238,260V219L267,210L296,219V260ZM297,260V193L322,184L348,193V260ZM352,260V218L380,212L409,218V260ZM411,260V224H467V260ZM471,260V212L495,201L519,212V260ZM521,260V226H552V260ZM555,260V219H593V260ZM597,260V210H605V196H615V210H623V260ZM625,260V198H656V260ZM659,260V210H670V196H686V210H697V260ZM700,260V235L724,223L747,235V260ZM750,260V193H765V179H786V193H801V260ZM806,260V230H817V216H831V230H842V260ZM842,260V203H852V189H866V203H877V260ZM882,260V201L900,188L917,201V260ZM922,260V231H970V260ZM971,260V240L984,233L998,240V260ZM1002,260V213H1012V199H1026V213H1036V260ZM1037,260V239H1076V260ZM1078,260V225L1107,214L1136,225V260ZM1138,260V214L1168,208L1198,214V260ZM1203,260V211L1227,197L1251,211V260ZM1254,260V232H1312V260ZM1316,260V239H1333V225H1357V239H1374V260ZM1375,260V191L1388,183L1401,191V260ZM1402,260V201L1430,187L1458,201V260ZM1458,260V197H1504V260ZM1508,260V190L1536,176L1564,190V260ZM1564,260V228H1605V260Z%27 fill=%27%23ffffff%27 fill-opacity=%270.08%27/%3E%3C/svg%3E");
  --sky-auth:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 720 260%27 preserveAspectRatio=%27xMidYMax slice%27%3E%3Cpath d=%27M0,200 L90,186 L170,196 L260,160 L350,170 L440,128 L530,138 L620,96 L720,84%27 fill=%27none%27 stroke=%27%235fe0e6%27 stroke-opacity=%27.4%27 stroke-width=%272%27/%3E%3Cpath d=%27M0,200 L90,186 L170,196 L260,160 L350,170 L440,128 L530,138 L620,96 L720,84 L720,260 L0,260Z%27 fill=%27%235fe0e6%27 fill-opacity=%27.05%27/%3E%3Cpath d=%27M0,260V139H10V125H22V139H32V260ZM35,260V145H45V131H57V145H67V260ZM68,260V145H91V260ZM95,260V187H138V260ZM140,260V199H162V260ZM167,260V205H205V260ZM208,260V132L224,126L240,132V260ZM244,260V203H264V260ZM265,260V207L284,196L302,207V260ZM305,260V185H341V260ZM346,260V147H373V260ZM373,260V175H405V260ZM409,260V200L431,189L453,200V260ZM454,260V174H488V260ZM492,260V197H534V260ZM536,260V202H545V188H557V202H566V260ZM571,260V183H589V260ZM589,260V162H599V148H612V162H622V260ZM625,260V201H656V260ZM657,260V176H699V260ZM701,260V209H709V195H721V209H729V260Z%27 fill=%27%23ffffff%27 fill-opacity=%27.06%27/%3E%3Cpath d=%27M250,260L264,10Q285.0,220 306,10L320,260ZM265,42h40v6h-40ZM420,260L455.0,82L463.0,82L498,260ZM470.0,73a11,11 0 1,0 -22,0a11,11 0 1,0 22,0ZM458.0,18h2v46h-2Z%27 fill=%27%23ffffff%27 fill-opacity=%27.16%27 fill-rule=%27evenodd%27/%3E%3Cpath d=%27M0,260V221L17,215L34,221V260ZM34,260V185H89V260ZM94,260V208H132V260ZM137,260V210L154,203L171,210V260ZM174,260V223H226V260ZM230,260V180H275V260ZM276,260V182L302,175L327,182V260ZM327,260V223H362V260ZM362,260V183H409V260ZM409,260V231H439V260ZM444,260V236L464,225L485,236V260ZM489,260V228H506V214H528V228H544V260ZM547,260V181H581V260ZM586,260V217H596V203H610V217H621V260ZM625,260V190H666V260ZM671,260V193H682V179H698V193H709V260ZM712,260V210H743V260Z%27 fill=%27%23ffffff%27 fill-opacity=%27.09%27/%3E%3C/svg%3E");
  --lattice-dark:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2764%27 height=%2764%27 viewBox=%270 0 64 64%27%3E%3Cg fill=%27none%27 stroke=%27%23ffffff%27 stroke-opacity=%270.035%27 stroke-width=%271%27%3E%3Crect x=%2720%27 y=%2720%27 width=%2724%27 height=%2724%27/%3E%3Crect x=%2720%27 y=%2720%27 width=%2724%27 height=%2724%27 transform=%27rotate(45 32 32)%27/%3E%3Cpath d=%27M0 32h15M49 32h15M32 0v15M32 49v15%27/%3E%3C/g%3E%3C/svg%3E");
  --lattice-light:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2764%27 height=%2764%27 viewBox=%270 0 64 64%27%3E%3Cg fill=%27none%27 stroke=%27%230f2536%27 stroke-opacity=%270.028%27 stroke-width=%271%27%3E%3Crect x=%2720%27 y=%2720%27 width=%2724%27 height=%2724%27/%3E%3Crect x=%2720%27 y=%2720%27 width=%2724%27 height=%2724%27 transform=%27rotate(45 32 32)%27/%3E%3Cpath d=%27M0 32h15M49 32h15M32 0v15M32 49v15%27/%3E%3C/g%3E%3C/svg%3E");
}
html[data-theme="dark"]{
  --ink:#E6EDF3;--muted:#93A4B5;--line:#243646;--surface:#132230;--canvas:#0A151E;
  --primary-soft:#0F3439;--gain-bg:#0F3026;--loss-bg:#361C24;--sand-soft:#2E2618;
  --night:#07202A;--night-2:#0A2D38;
  --shadow:0 1px 2px rgba(0,0,0,.25),0 10px 28px -8px rgba(0,0,0,.45);
  --shadow-lift:0 18px 44px -12px rgba(0,0,0,.6);
}

/* ---------- Base type ---------- */
body{font-family:var(--font-body);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-variant-numeric:tabular-nums;background:var(--canvas)}
button,input,select,textarea{font-family:inherit}
.app{overflow-x:clip}
::selection{background:rgba(0,168,176,.22)}
:where(button,a,input,select,[tabindex]):focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ---------- Top bar: deep night, part of the hero ---------- */
.topbar{background:rgba(11,42,54,.96);backdrop-filter:saturate(160%) blur(18px);-webkit-backdrop-filter:saturate(160%) blur(18px);border-bottom:1px solid rgba(255,255,255,.07);transition:background-color .25s ease,box-shadow .25s ease,border-color .25s ease}
html.is-scrolled .topbar{background:rgba(11,42,54,.58);border-bottom-color:rgba(255,255,255,.12);box-shadow:0 10px 30px -12px rgba(7,26,34,.45)}
.topbar-inner{height:68px}
.brand-mark{background:linear-gradient(150deg,#12C4CC,#00737A);box-shadow:0 0 0 1px rgba(255,255,255,.14) inset,0 6px 16px rgba(0,0,0,.25);border-radius:12px}
.brand-text strong{font-family:var(--font-display);font-weight:700;color:#fff;letter-spacing:0}
.brand-text span{color:rgba(255,255,255,.58)}
.nav-btn{position:relative;color:rgba(255,255,255,.68);font-weight:600;font-size:13.5px;padding:10px 15px;border-radius:9px}
.nav-btn:hover{background:rgba(255,255,255,.07);color:#fff}
.nav-btn.active{background:rgba(255,255,255,.1);color:#fff}
.nav-btn.active::after{content:"";position:absolute;inset-inline:14px;bottom:-15px;height:2px;border-radius:2px;background:var(--sand)}
.lang-link,.icon-btn{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:rgba(255,255,255,.9);border-radius:10px;font-weight:600}
.lang-link:hover,.icon-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.profile{border-inline-start-color:rgba(255,255,255,.12)}
.profile:hover{background:rgba(255,255,255,.07)}
.profile strong{color:#fff;font-weight:600}
.profile small{color:rgba(255,255,255,.55)}
.avatar{background:linear-gradient(150deg,#E4C592,var(--sand));color:#3A2A10;font-weight:700;box-shadow:0 0 0 2px rgba(255,255,255,.14)}
.mobile-nav-popover{border-radius:14px;box-shadow:var(--shadow-lift)}
html[data-theme="dark"] .topbar{background:rgba(7,28,37,.96);border-color:rgba(255,255,255,.06)}
html[data-theme="dark"].is-scrolled .topbar{background:rgba(7,28,37,.55);border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .nav-btn{color:rgba(255,255,255,.66)}
html[data-theme="dark"] .nav-btn:hover,html[data-theme="dark"] .profile:hover{background:rgba(255,255,255,.07);color:#fff}
html[data-theme="dark"] .nav-btn.active{background:rgba(255,255,255,.1);color:#fff}
html[data-theme="dark"] .top-actions .lang-link,html[data-theme="dark"] .top-actions .icon-btn{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:rgba(255,255,255,.9)}

/* ---------- Hero band behind the portfolio switcher ---------- */
.workspace{padding-top:30px}
#portfolioBoardPass3{position:relative;z-index:25;padding-top:26px;margin-bottom:22px}
#portfolioBoardPass3::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  left:calc(50% - 50vw);right:calc(50% - 50vw);top:-120px;bottom:46%;
  background:
    var(--sky) left bottom/auto 210px no-repeat,
    var(--lattice-dark) center/64px 64px,
    radial-gradient(120% 140% at 85% 0%,rgba(0,168,176,.28),transparent 55%),
    linear-gradient(180deg,var(--night) 0%,var(--night-2) 100%);
}
html[dir="rtl"] #portfolioBoardPass3::before{transform:scaleX(-1)}
#portfolioBoardPass3 .portfolio-board-head{margin-bottom:16px}
#portfolioBoardPass3 .portfolio-board-head h2{font-family:var(--font-display);font-size:20px;font-weight:700;color:#fff}
#portfolioBoardPass3 .portfolio-board-head p{color:rgba(255,255,255,.66);font-size:12px;margin-top:6px}
.portfolio-board-grid{gap:14px}
.portfolio-top-card{border-radius:16px;padding:16px 18px;border-color:var(--line);box-shadow:var(--shadow)}
.portfolio-top-card:hover{border-color:rgba(0,168,176,.45);box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.portfolio-top-card.active{background:var(--surface);border-color:var(--primary);box-shadow:0 0 0 3px rgba(0,168,176,.14),var(--shadow-lift)}
.portfolio-top-card.active::before{content:"";position:absolute;inset-inline:18px;top:-1px;height:3px;border-radius:0 0 3px 3px;background:var(--sand)}
.portfolio-top-card h3{font-size:14px;font-weight:700}
.portfolio-top-card .pc-updated{font-size:11px}
.portfolio-top-card .pc-value{font-size:24px;font-weight:700;margin-top:14px;letter-spacing:-.01em}
.portfolio-top-card .pc-value small{font-size:11px}
.portfolio-top-card .pc-change{font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--gain-bg)}
.portfolio-top-card .pc-change.loss{background:var(--loss-bg)}
.portfolio-top-card .pc-metrics{border-top:1px solid var(--line);padding-top:11px;margin-top:14px}
.portfolio-top-card .pc-metrics span{font-size:11px}
.portfolio-top-card .pc-metrics strong{font-size:13px;font-weight:600}
.portfolio-top-card .pc-active{font-size:11px;font-weight:700}
.portfolio-top-card .pc-menu{border-radius:12px;box-shadow:var(--shadow-lift)}
.portfolio-top-card .pc-menu button{font-size:12px;font-weight:600}
.portfolio-top-add,html[data-theme="dark"] .portfolio-top-add{
  min-height:100%;align-self:stretch;border-radius:16px;padding:16px 18px;
  border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);
  color:var(--ink);transition:border-color .16s,box-shadow .16s,transform .16s}
.portfolio-top-add:hover,html[data-theme="dark"] .portfolio-top-add:hover{background:var(--surface);border-color:rgba(0,168,176,.45);box-shadow:var(--shadow-lift);transform:translateY(-2px)}
.portfolio-top-add b{display:grid;place-items:center;width:48px;height:48px;margin:0 auto;border-radius:14px;background:var(--primary-soft);color:var(--primary-dark);font-size:26px;font-weight:400;line-height:1;transition:background-color .16s,color .16s}
.portfolio-top-add:hover b{background:var(--primary);color:#fff}
.portfolio-top-add strong{font-size:13.5px;font-weight:600;margin-top:12px}
html[data-theme="dark"] .portfolio-top-add b{color:#7FE0E5}
.portfolio-screen-caption{font-size:12px;margin:-8px 0 18px}

/* ---------- Page head ---------- */
.page-head{margin-bottom:24px}
.page-head h1{font-family:var(--font-display);font-size:28px;font-weight:700;line-height:1.35;margin-bottom:4px}
.page-head p{font-size:14px}
.market-chip{border-radius:999px;padding:9px 16px;box-shadow:var(--shadow);background:var(--surface)}
.market-chip span{font-size:12px}.market-chip strong{font-size:12.5px;font-weight:600}
.status-dot{animation:livePulse 2.4s ease-in-out infinite}
@keyframes livePulse{0%,100%{box-shadow:0 0 0 3px var(--gain-bg)}50%{box-shadow:0 0 0 6px var(--gain-bg)}}

/* ---------- Surfaces ---------- */
.grid{gap:18px}
.stats{margin-bottom:18px}
.card{border-radius:var(--radius);border-color:var(--line);box-shadow:var(--shadow)}
.panel{padding:22px}
.panel-head{margin-bottom:18px}
.panel-head h2{font-size:16px;font-weight:700}
.panel-head span{font-size:12px}
.section-intro{margin-bottom:18px}
.section-intro h2{font-family:var(--font-display);font-size:20px;font-weight:700}
.section-intro p{font-size:13px}

/* Stat cards */
.stat{padding:20px 22px}
.stat::after{display:none}
.stat-label{font-size:13px;font-weight:600}
.stat-value{font-size:27px;font-weight:700;margin-top:8px;letter-spacing:-.01em}
.stat-icon{width:38px;height:38px;border-radius:11px;background:var(--primary-soft);color:var(--primary-dark)}
.stat-detail{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}
.stat-detail span{font-size:12px}.stat-detail b{font-size:12.5px}

/* Quick action row */
.overview-action-row{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:14px 16px;margin-bottom:18px}
.overview-action-copy strong{font-size:14px}
.overview-action-copy span{font-size:12px}
.overview-action-copy .quick-icon{border-radius:12px}
.tx-launch-btn{height:42px;border-radius:11px;background:linear-gradient(180deg,#00939B,var(--primary-dark));font-size:13px;font-weight:700;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 8px 18px -6px rgba(0,115,122,.55)}
.tx-launch-btn:hover{background:linear-gradient(180deg,#00A4AC,#006A70)}
.tx-launch-menu{border-radius:14px;box-shadow:var(--shadow-lift)}
.tx-launch-item strong{font-size:13px;font-weight:600}.tx-launch-item small{font-size:11px}

/* Controls */
.segmented{background:var(--canvas);border-radius:10px;padding:3px}
.segmented button{font-size:12px;font-weight:600;padding:7px 12px;border-radius:8px}
.segmented button.active{box-shadow:0 1px 3px rgba(15,37,54,.12)}
.range-btn{font-size:12px;font-weight:600;padding:6px 10px}
.chart-summary strong{font-size:22px;font-weight:700}
.chart-summary span{font-size:12px}
.chip{height:34px;padding:0 13px;border-radius:9px;font-size:12.5px;font-weight:600;color:var(--muted);background:var(--surface);transition:background-color .15s,border-color .15s,color .15s}
.chip:hover{border-color:rgba(0,168,176,.4);color:var(--ink)}
.chip.active{background:var(--ink);border-color:var(--ink);color:#fff}
html[data-theme="dark"] .chip.active{background:var(--primary-soft);border-color:#1E6168;color:#7FE0E5}
.action-btn{background:var(--primary-dark);border-radius:10px;font-size:12.5px;padding:10px 15px}
.search-box{height:38px;border-radius:10px;background:var(--surface);color:var(--muted)}
.search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(0,168,176,.14)}
.search-box input{font-size:13px}
.row-action{font-size:12px;font-weight:600;padding:6px 11px;border-radius:8px}

/* Charts */
.live-chart,.chart-shell{border-radius:12px;border-color:var(--line);background:linear-gradient(180deg,rgba(0,168,176,.035),transparent 70%),var(--surface)}
.axis-y,.axis-x{font-size:10.5px}
.summary-strip span,.dividend-summary span,.context-item span,.metric-tile span,.tx-summary span,.holding-summary-card span{font-size:12px}
.summary-strip strong{font-size:13px}
.context-item{border-radius:12px;background:var(--canvas);border-color:transparent}
.context-item strong{font-size:14px}.context-item small{font-size:11px}
.dividend-summary div{border-radius:11px;background:var(--canvas);border-color:transparent}
.dividend-summary strong{font-size:16px}
.donut{box-shadow:0 10px 24px -10px rgba(15,37,54,.25)}
.donut-center strong{font-size:18px}.donut-center span{font-size:11px}
.alloc-row span{font-size:12.5px}
.bar{background:var(--canvas)}
html[data-theme="dark"] .context-item,html[data-theme="dark"] .dividend-summary div{background:#0E1B26;border-color:transparent}

/* Lists */
.mini-list{border-radius:12px}
.mini-list h3{font-size:13px}
.company{font-size:13px}
.ticker,.stock-logo{font-size:11px;border-radius:7px}
.stock-logo{width:32px;height:32px;border-radius:9px}
.badge{font-size:11px;padding:4px 9px}
.event-card{border-radius:12px}
.event-date{background:var(--sand-soft);border-radius:10px;min-width:58px}
.event-date strong{color:#8A6424;font-size:19px}
html[data-theme="dark"] .event-date strong{color:#E1BE83}
.event-date span{font-size:11px}
.event-copy strong{font-size:13.5px}.event-copy span{font-size:12px}
.event-amount strong{font-size:14px}.event-amount span{font-size:11px}

/* ---------- Tables ---------- */
.card.table-wrap{overflow:auto}
.data-table th,.analytics-table th,.compact-table th{font-size:11.5px;font-weight:600;color:var(--muted);background:#F5F8F9;padding-block:12px}
.data-table td,.analytics-table td{font-size:13px;padding-block:14px}
.compact-table td{font-size:12.5px;padding:11px 8px}
.data-table tbody tr,.analytics-table tbody tr{transition:background-color .12s}
.data-table tbody tr:hover,.analytics-table tbody tr:hover{background:rgba(0,168,176,.045)}
.symbol-cell strong{font-size:13.5px;font-weight:700}
.symbol-cell small{font-size:11.5px}
.weight .bar{height:6px}
.bar i,.performance-bar i{background:linear-gradient(90deg,var(--primary),#2CC6CD)}
.expand-row,.tx-detail-row{background:#F7FAFB}
.detail-box{border-radius:12px}
.detail-box h4{font-size:13px}
.detail-pairs div span,.tx-detail-grid span{font-size:11px}
.detail-pairs div strong,.tx-detail-grid strong{font-size:13px}
.tx-mini th,.tx-mini td{font-size:11.5px}
.type-badge{font-size:11.5px;font-weight:600;padding:4px 10px}
.pagination{font-size:12px}
.pagination-controls button{width:32px;height:32px;border-radius:9px}
.holdings-tabs{gap:4px;border-bottom:1px solid var(--line);padding-bottom:0;margin-bottom:18px}
.holdings-tab{position:relative;font-size:13px;font-weight:600;padding:10px 14px 12px;border-radius:0;background:transparent;color:var(--muted)}
.holdings-tab:hover{background:transparent;color:var(--ink)}
.holdings-tab.active{background:transparent;color:var(--primary-dark)}
.holdings-tab.active::after{content:"";position:absolute;inset-inline:10px;bottom:-1px;height:2px;border-radius:2px;background:var(--primary)}
html[data-theme="dark"] .holdings-tab.active{color:#7FE0E5}
.holding-view-note{font-size:12px}
.holding-summary-card{padding:18px 20px}
.holding-summary-card strong{font-size:21px;font-weight:700;margin-top:6px}
.tx-summary .card{padding:18px 20px}
.tx-summary strong{font-size:20px;font-weight:700}
html[data-theme="dark"] .data-table th,html[data-theme="dark"] .analytics-table th,html[data-theme="dark"] .compact-table th{background:#0E1B26}
html[data-theme="dark"] .expand-row,html[data-theme="dark"] .tx-detail-row{background:#0E1B26}

/* ---------- Analytics ---------- */
.metric-strip{gap:14px;margin-bottom:18px}
.metric-tile{border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow)}
#section-analytics .metric-tile strong{font-size:22px;font-weight:700}
.analytics-card{padding:22px}
.analytics-grid-advanced{gap:18px}
.risk-item{border-radius:12px;background:var(--canvas);border-color:transparent}
html[data-theme="dark"] .risk-item{background:#0E1B26;border-color:transparent}
.legend-inline i{height:4px}
.heat-table th{font-size:11px}
.heat-table td{font-size:12px;border-radius:7px;padding:9px 5px}

/* ---------- Modals, menus, toasts ---------- */
.tx-add-backdrop,.portfolios-backdrop{background:rgba(7,26,34,.62);backdrop-filter:blur(4px)}
.tx-add-dialog,.portfolios-dialog{border-radius:20px;box-shadow:0 30px 90px -20px rgba(7,26,34,.5)}
.tx-add-head h2{font-family:var(--font-display);font-size:19px;font-weight:700}
.tx-field label{font-size:12.5px;font-weight:600;color:var(--muted)}
.tx-input,.tx-select{height:46px;border-radius:11px;font-size:13.5px}
.tx-input:focus,.tx-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(0,168,176,.15)}
.tx-save{background:linear-gradient(180deg,#00939B,var(--primary-dark));font-size:13.5px;font-weight:700}
.tx-save:hover{background:linear-gradient(180deg,#00A4AC,#006A70)}
.tx-cancel{font-size:13.5px;font-weight:600}
.portfolios-head h2{font-family:var(--font-display);font-weight:700}
.portfolio-manage-btn,.portfolio-add-btn{background:var(--primary-dark)}
.profile-menu{border-radius:14px;box-shadow:var(--shadow-lift)}
.profile-menu button{font-size:12.5px;font-weight:600}
.profile-menu-head strong{font-size:13.5px}.profile-menu-head span{font-size:11px}
.stock-option-copy strong{font-size:13px}.stock-option-copy small{font-size:11px}
.app-toast,.tx-toast{background:var(--night);border:1px solid rgba(255,255,255,.08);border-radius:12px;font-size:12.5px;box-shadow:0 18px 40px -10px rgba(7,26,34,.5)}
.footer{font-size:11.5px}

/* ---------- Sign-in screen ---------- */
.auth-screen{background:var(--lattice-light) center/64px 64px,radial-gradient(90% 70% at 100% 0%,rgba(0,168,176,.10),transparent 60%),var(--canvas)}
.auth-shell{gap:0;width:min(1100px,100%);border-radius:28px;overflow:hidden;box-shadow:0 40px 100px -30px rgba(11,42,54,.45);border:1px solid var(--line);background:var(--surface)}
.auth-showcase,html[data-theme="dark"] .auth-showcase{
  border:0;border-radius:0;box-shadow:none;color:#fff;padding:44px;
  background:
    var(--sky-auth) center bottom/100% auto no-repeat,
    var(--lattice-dark) center/64px 64px,
    radial-gradient(90% 60% at 80% 10%,rgba(0,168,176,.32),transparent 60%),
    linear-gradient(165deg,#0B2A36 0%,#0E3A46 60%,#0A2F3A 100%);
}
.auth-showcase::before,.auth-showcase::after{display:none}
.auth-brand strong{font-family:var(--font-display);font-size:24px;font-weight:700;color:#fff}
.auth-brand span,html[data-theme="dark"] .auth-brand span{color:rgba(255,255,255,.66);font-size:12.5px}
.auth-brand .brand-mark{width:52px;height:52px;border-radius:15px}
.auth-feature,html[data-theme="dark"] .auth-feature{background:rgba(8,32,42,.55)!important;border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:none;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.auth-feature strong{font-size:14.5px;color:#fff}
.auth-feature p,html[data-theme="dark"] .auth-feature p{color:rgba(255,255,255,.72);font-size:12.5px}
.auth-feature-icon{background:rgba(194,155,94,.18);color:#E8C992;border-radius:11px}
.auth-security-note{color:rgba(255,255,255,.72)}
.auth-card,html[data-theme="dark"] .auth-card{border:0;border-radius:0;box-shadow:none;padding:44px 46px}
.auth-card-head h1{font-family:var(--font-display);font-size:30px;font-weight:700;line-height:1.35}
.auth-card-head p{font-size:13.5px}
.auth-lock{border-radius:14px}
.auth-lang,.auth-theme{border-radius:10px;font-size:12.5px;font-weight:600}
.auth-tabs{background:var(--canvas);border-radius:12px}
.auth-tab{font-size:13px;font-weight:600;padding:11px 8px}
.auth-tab.active{box-shadow:0 1px 3px rgba(15,37,54,.12)}
.auth-panel h2{font-size:19px;font-weight:700}
.auth-panel>p{font-size:13px}
.auth-field label{font-size:12.5px;font-weight:600}
.auth-input{height:48px;border-radius:12px;font-size:14px}
.auth-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(0,168,176,.15)}
.auth-check,.auth-link{font-size:12.5px}
.auth-error{font-size:12px}
.auth-primary{height:48px;border-radius:12px;font-size:14.5px;font-weight:700;background:linear-gradient(180deg,#00939B,var(--primary-dark));box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 10px 22px -8px rgba(0,115,122,.6)}
.auth-primary:hover{background:linear-gradient(180deg,#00A4AC,#006A70)}
.auth-secondary{height:48px;border-radius:12px;font-size:13.5px;font-weight:600}
html[data-theme="dark"] .auth-screen{background:radial-gradient(90% 70% at 100% 0%,rgba(0,168,176,.10),transparent 60%),var(--canvas)}
html[data-theme="dark"] .auth-shell{border-color:var(--line);box-shadow:0 40px 100px -30px rgba(0,0,0,.7)}
html[data-theme="dark"] .auth-tabs{background:#0E1B26}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  .auth-shell{grid-template-columns:1fr}
  .auth-showcase{min-height:300px}
  .auth-card{min-height:0}
}
@media(max-width:700px){
  .workspace{padding-top:20px}
  #portfolioBoardPass3::before{top:-80px;bottom:auto;height:170px}
  .page-head h1{font-size:23px}
  .stat-value{font-size:24px}
  .auth-screen{padding:14px}
  .auth-shell{border-radius:22px}
  .auth-showcase{padding:28px;min-height:250px}
  .auth-card{padding:28px 22px}
  .nav-btn.active::after{display:none}
}
.risk-scale{background:#D5DEE3}
html[data-theme="dark"] .risk-scale{background:#263849}

/* ---------- Back to top ---------- */
.to-top{
  --p:0;position:fixed;z-index:85;bottom:24px;inset-inline-start:24px;
  width:52px;height:52px;border:0;padding:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;color:#fff;
  background:conic-gradient(var(--sand) calc(var(--p)*1%),rgba(255,255,255,.16) 0);
  box-shadow:0 14px 30px -10px rgba(7,26,34,.55);
  opacity:0;visibility:hidden;transform:translateY(14px) scale(.9);
  transition:opacity .25s ease,transform .25s ease,visibility .25s,box-shadow .2s ease}
.to-top::before{content:"";position:absolute;inset:3px;border-radius:50%;background:linear-gradient(160deg,#124654,var(--night))}
.to-top svg{position:relative;width:20px;height:20px;transition:transform .2s ease}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{box-shadow:0 18px 36px -10px rgba(0,115,122,.6)}
.to-top:hover svg{transform:translateY(-2px)}
.to-top:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
html[data-theme="dark"] .to-top::before{background:linear-gradient(160deg,#0F3A45,#061820)}
@media(max-width:700px){.to-top{bottom:16px;inset-inline-start:16px;width:46px;height:46px}}
@media(max-width:700px){body:has(.app-toast.show) .to-top,body:has(.tx-toast.show) .to-top{bottom:88px}}


/* ==== block 19 id="heroFullBleedPass5" ==== */

/* Full-width portfolio hero. */
#portfolioBoardPass3::before{
  left:50% !important;
  right:auto !important;
  width:100vw !important;
  transform:translateX(-50%) !important;
  transform-origin:center center !important;
}
html[dir="rtl"] #portfolioBoardPass3::before{
  transform:translateX(-50%) scaleX(-1) !important;
}
@media(max-width:700px){
  #portfolioBoardPass3::before{
    left:50% !important;
    right:auto !important;
    width:100vw !important;
  }
}

/* ==== block 20 id="heroAndPortfolioCardsPass6" ==== */

/* Full-width skyline artwork. */
#portfolioBoardPass3::before{
  left:50% !important;
  right:auto !important;
  width:100vw !important;
  transform:translateX(-50%) !important;
  background:
    var(--sky) center bottom/100% auto no-repeat,
    var(--lattice-dark) center/64px 64px,
    radial-gradient(120% 140% at 85% 0%,rgba(0,168,176,.28),transparent 55%),
    linear-gradient(180deg,var(--night) 0%,var(--night-2) 100%) !important;
}
html[dir="rtl"] #portfolioBoardPass3::before{
  transform:translateX(-50%) scaleX(-1) !important;
}

/* Keep all three example portfolios plus Add Portfolio on one equal card row on wide screens. */
.portfolio-board-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-auto-rows:1fr;
  align-items:stretch;
}
.portfolio-top-card,
.portfolio-top-add{
  min-height:205px !important;
  height:100%;
}
.portfolio-top-add{
  display:flex !important;
  align-items:center;
  justify-content:center;
  border-style:solid !important;
}
.portfolio-top-add > span{width:100%}

@media(max-width:1180px){
  .portfolio-board-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media(max-width:650px){
  .portfolio-board-grid{grid-template-columns:1fr !important}
  .portfolio-top-card,.portfolio-top-add{min-height:0 !important}
}

/* ==== block 21 id="holdingsUxPass7" ==== */

.hux-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hux-select,.hux-btn{height:36px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:0 11px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.hux-select{min-width:132px}.hux-btn{display:inline-flex;align-items:center;gap:7px}
.hux-btn:hover,.hux-select:hover{border-color:#8fdadd;background:var(--primary-soft)}
.hux-toggle{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:10px;font-weight:800;color:var(--ink);cursor:pointer;user-select:none}
.hux-toggle input{position:absolute;opacity:0;pointer-events:none}.hux-switch{width:30px;height:17px;border-radius:999px;background:#cbd5df;position:relative;transition:.18s}.hux-switch::after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:#fff;top:2px;inset-inline-start:2px;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.18s}.hux-toggle input:checked+.hux-switch{background:var(--primary)}.hux-toggle input:checked+.hux-switch::after{transform:translateX(13px)}html[dir="rtl"] .hux-toggle input:checked+.hux-switch::after{transform:translateX(-13px)}
.hux-group-row td{padding:9px 14px!important;background:var(--primary-soft)!important;color:var(--primary-dark);font-size:10px!important;font-weight:900;border-bottom:1px solid var(--line)!important}
.hux-closed{opacity:.72}.hux-closed .symbol-cell small::after{content:" • Closed";color:var(--loss);font-weight:800}html[lang="ar"] .hux-closed .symbol-cell small::after{content:" • مركز مغلق"}
.hux-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;position:relative}.hux-more{width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:17px;line-height:1;cursor:pointer}.hux-more:hover,.hux-more[aria-expanded="true"]{background:var(--primary-soft);color:var(--primary-dark)}
.hux-menu{position:absolute;top:34px;inset-inline-end:0;width:205px;display:none;z-index:70;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 44px rgba(15,23,42,.16);padding:6px}.hux-menu.open{display:grid;gap:3px}.hux-menu button{border:0;background:transparent;color:var(--ink);border-radius:8px;padding:8px 9px;text-align:start;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.hux-menu button:hover{background:var(--primary-soft);color:var(--primary-dark)}
.hux-popover{position:fixed;z-index:240;display:none;inset:0}.hux-popover.open{display:block}.hux-popover-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38);backdrop-filter:blur(2px)}.hux-popover-card{position:relative;margin:9vh auto 0;width:min(480px,calc(100% - 28px));max-height:78vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.22)}.hux-popover-head{position:sticky;top:0;background:var(--surface);z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line)}.hux-popover-head h3{margin:0;font-size:15px}.hux-close{width:32px;height:32px;border:1px solid var(--line);background:var(--surface);border-radius:9px;color:var(--muted);font-size:18px;cursor:pointer}.hux-columns{padding:12px 18px 17px;display:grid;grid-template-columns:1fr 1fr;gap:4px 14px}.hux-column{display:flex;align-items:center;gap:9px;padding:9px 6px;border-bottom:1px solid rgba(148,163,184,.12);font-size:11px;cursor:pointer}.hux-column input{accent-color:var(--primary)}.hux-popover-foot{padding:12px 18px 16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px}.hux-reset{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;padding:8px 11px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.hux-done{border:0;background:var(--primary-dark);color:#fff;border-radius:9px;padding:8px 14px;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
html[data-theme="dark"] .hux-group-row td{background:#12353a!important;color:#69d5da!important}html[data-theme="dark"] .hux-menu{box-shadow:0 16px 44px rgba(0,0,0,.35)}
@media(max-width:900px){#section-holdings .toolbar{align-items:stretch;flex-direction:column}.hux-tools{width:100%}.hux-select,.hux-btn,.hux-toggle{flex:1}.hux-columns{grid-template-columns:1fr}}

/* ==== block 22 id="transactionSplitsPass8Css" ==== */

/* Transaction categories + stock split support */
.type-split{background:#eaf7f8;color:#007d84}
html[data-theme="dark"] .type-split{background:#12353a;color:#70d6da}
.split-modal{position:fixed;inset:0;z-index:180;display:none;align-items:center;justify-content:center;padding:20px}
.split-modal.open{display:flex}
.split-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.split-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:88vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 28px 80px rgba(15,23,42,.24)}
.split-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 22px 15px;border-bottom:1px solid var(--line)}
.split-head h2{margin:0;font-size:18px}.split-head p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.split-close{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font:inherit;font-size:20px;cursor:pointer}
.split-body{padding:20px 22px 22px}
.split-form{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.split-field{display:flex;flex-direction:column;gap:6px}.split-field.full{grid-column:1/-1}
.split-field label{font-size:10px;font-weight:800;color:var(--muted)}
.split-input{height:42px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:11px;padding:0 11px;outline:0}
.split-input:focus{border-color:#75cfd3;box-shadow:0 0 0 3px rgba(0,180,189,.10)}
.split-ratio{grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:end}
.split-arrow{padding-bottom:11px;color:var(--primary-dark);font-size:18px;font-weight:900}
.split-preview{grid-column:1/-1;border:1px solid #bde8ea;background:var(--primary-soft);border-radius:11px;padding:11px 13px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.split-preview span{font-size:9px;color:var(--muted)}.split-preview strong{font-size:13px;color:var(--primary-dark)}
.split-note{grid-column:1/-1;color:var(--muted);font-size:9px;line-height:1.65}
.split-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;padding-top:12px;border-top:1px solid var(--line)}
.split-primary,.split-secondary{height:40px;border-radius:10px;padding:0 15px;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
.split-primary{border:0;background:var(--primary-dark);color:#fff}.split-secondary{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.tx-category-hint{font-size:9px;color:var(--muted);margin-top:-6px;margin-bottom:10px}
@media(max-width:650px){
  .split-modal{padding:0;align-items:flex-end}.split-dialog{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}
  .split-body{padding:16px}.split-head{padding:17px 16px 14px}.split-form{grid-template-columns:1fr}
  .split-field.full,.split-ratio,.split-preview,.split-note,.split-actions{grid-column:1}
  .split-ratio{grid-template-columns:1fr auto 1fr}.split-actions{display:grid;grid-template-columns:1fr 1fr}
}

/* ==== block 23 id="transactionImportExportPass9Css" ==== */

/* Transactions import / export workflow */
.tx-io-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tx-io-btn{height:36px;border-radius:10px;padding:0 11px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:10px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.tx-io-btn.primary{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}
.tx-io-btn:hover{border-color:#9edfe2}.tx-io-btn.primary:hover{background:#007c84}
.tx-import-modal{position:fixed;inset:0;z-index:190;display:none;align-items:center;justify-content:center;padding:20px}
.tx-import-modal.open{display:flex}
.tx-import-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.tx-import-dialog{position:relative;z-index:1;width:min(820px,100%);max-height:90vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 28px 80px rgba(15,23,42,.24)}
.tx-import-head{position:sticky;top:0;z-index:3;background:var(--surface);display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 22px 15px;border-bottom:1px solid var(--line)}
.tx-import-head h2{margin:0;font-size:18px}.tx-import-head p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.tx-import-close{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font:inherit;font-size:20px;cursor:pointer}
.tx-import-body{padding:20px 22px 22px}
.tx-import-steps{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
.tx-import-step{padding:6px 9px;border-radius:999px;background:#f2f5f7;color:var(--muted);font-size:9px;font-weight:800}
.tx-import-step.active{background:var(--primary-soft);color:var(--primary-dark)}
.tx-dropzone{border:1.5px dashed #9ddde0;background:linear-gradient(180deg,var(--surface),rgba(0,180,189,.035));border-radius:14px;padding:24px;text-align:center}
.tx-dropzone.drag{border-color:var(--primary-dark);background:var(--primary-soft)}
.tx-dropzone strong{display:block;font-size:13px}.tx-dropzone p{margin:6px 0 12px;color:var(--muted);font-size:10px;line-height:1.55}
.tx-file-input{display:none}.tx-browse-btn{border:0;background:var(--primary-dark);color:#fff;border-radius:10px;height:38px;padding:0 13px;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
.tx-template-btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;height:38px;padding:0 13px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;margin-inline-start:7px}
.tx-import-note{margin-top:12px;color:var(--muted);font-size:9px;line-height:1.65}
.tx-preview-wrap{margin-top:16px;display:none}.tx-preview-wrap.show{display:block}
.tx-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;flex-wrap:wrap}
.tx-preview-head strong{font-size:12px}.tx-preview-head span{font-size:9px;color:var(--muted)}
.tx-preview-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.tx-preview-table{width:100%;border-collapse:collapse;min-width:760px}
.tx-preview-table th{background:#f8fafb;color:var(--muted);font-size:9px;text-align:start;padding:10px;border-bottom:1px solid var(--line)}
.tx-preview-table td{font-size:9px;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}
.tx-preview-table tr:last-child td{border-bottom:0}
.tx-preview-error{display:none;margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--loss-bg);color:var(--loss);font-size:9px;line-height:1.55}.tx-preview-error.show{display:block}
.tx-import-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.tx-import-actions button{height:40px;border-radius:10px;padding:0 15px;font:inherit;font-size:10px;font-weight:900;cursor:pointer}
.tx-import-cancel{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.tx-import-confirm{border:0;background:var(--primary-dark);color:#fff}.tx-import-confirm:disabled{opacity:.5;cursor:not-allowed}
.tx-export-menu{position:relative}
.tx-export-pop{position:absolute;top:43px;inset-inline-end:0;width:220px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 42px rgba(15,23,42,.15);padding:6px;display:none;z-index:70}
.tx-export-menu.open .tx-export-pop{display:grid;gap:3px}
.tx-export-pop button{border:0;background:transparent;color:var(--ink);text-align:start;padding:9px 10px;border-radius:8px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.tx-export-pop button:hover{background:var(--primary-soft);color:var(--primary-dark)}
html[data-theme="dark"] .tx-import-step{background:#101a26}
html[data-theme="dark"] .tx-preview-table th{background:#101a26;color:#9aa8ba}
@media(max-width:650px){
  .tx-import-modal{padding:0;align-items:flex-end}.tx-import-dialog{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}
  .tx-import-head{padding:17px 16px 14px}.tx-import-body{padding:16px}
  .tx-io-actions{width:100%}.tx-io-btn{flex:1;justify-content:center}
  .tx-import-actions{display:grid;grid-template-columns:1fr 1fr}.tx-import-actions button{width:100%}
}

/* ==== block 24 id="transactionCategoriesPass10Css" ==== */

/* Transaction category navigation */
.tx-category-shell{
  margin:0 0 14px;
  padding:8px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:14px;
  box-shadow:0 4px 16px rgba(23,32,51,.04);
}
.tx-category-tabs{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
}
.tx-category-tab{
  min-width:0;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  border-radius:10px;
  padding:10px 8px;
  font:inherit;
  cursor:pointer;
  text-align:center;
  transition:.16s ease;
}
.tx-category-tab:hover{background:#f5f8fa;color:var(--ink)}
.tx-category-tab.active{
  background:var(--primary-soft);
  border-color:#b9e8ea;
  color:var(--primary-dark);
}
.tx-category-tab strong{
  display:block;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tx-category-tab span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:18px;
  margin-top:5px;
  padding:0 6px;
  border-radius:999px;
  background:#eef3f6;
  color:#6f7d90;
  font-size:8px;
  font-weight:900;
}
.tx-category-tab.active span{
  background:#fff;
  color:var(--primary-dark);
}
.tx-category-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
  padding:7px 9px 0;
  color:var(--muted);
  font-size:9px;
  border-top:1px solid #eef2f5;
}
.tx-category-summary strong{color:var(--ink)}
html[data-theme="dark"] .tx-category-shell{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .tx-category-tab:hover{background:#172433;color:var(--ink)}
html[data-theme="dark"] .tx-category-tab span{background:#263446;color:#b8c4d2}
html[data-theme="dark"] .tx-category-tab.active span{background:#10252a;color:#6ed5da}
html[data-theme="dark"] .tx-category-summary{border-top-color:#243244}
@media(max-width:900px){
  .tx-category-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
  .tx-category-tabs{display:flex;overflow:auto;scroll-snap-type:x proximity;padding-bottom:2px}
  .tx-category-tab{flex:0 0 132px;scroll-snap-align:start}
  .tx-category-summary{align-items:flex-start;flex-direction:column}
}

/* ==== block 25 id="analyticsProfitabilityPass11Css" ==== */

/* Analytics profitability */
.profitability-card{padding:18px}
.profitability-card .panel-head{margin-bottom:12px}
.profitability-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.profitability-item{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:12px;
  padding:12px;
  min-width:0;
}
.profitability-item span{display:block;color:var(--muted);font-size:9px}
.profitability-item strong{display:block;font-size:15px;margin-top:5px}
.profitability-item small{display:block;color:var(--muted);font-size:8px;margin-top:3px}
.profitability-bars{margin-top:14px;display:grid;gap:10px}
.profitability-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 72px;
  gap:10px;
  align-items:center;
}
.profitability-row>span{font-size:9px;color:var(--muted);font-weight:800}
.profitability-track{
  height:11px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(204,61,74,.08) 0 50%,rgba(9,132,95,.08) 50% 100%);
  position:relative;
  overflow:hidden;
}
.profitability-track::after{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:1px;
  background:var(--line);
}
.profitability-bar{
  position:absolute;
  top:2px;
  bottom:2px;
  border-radius:999px;
  min-width:2px;
}
.profitability-bar.positive{left:50%;background:var(--gain)}
.profitability-bar.negative{right:50%;background:var(--loss)}
.profitability-row b{font-size:10px;text-align:end}
.profitability-row b.positive{color:var(--gain)}.profitability-row b.negative{color:var(--loss)}
.analytics-range-switch{display:flex;gap:4px;flex-wrap:wrap}
.analytics-range-switch button{
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  border-radius:8px;
  padding:5px 8px;
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}
.analytics-range-switch button.active{
  background:var(--primary-soft);
  border-color:#b9e8ea;
  color:var(--primary-dark);
}
.analytics-compare-note{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:9px;
}
.analytics-compare-note strong{color:var(--ink)}
html[data-theme="dark"] .profitability-item{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .profitability-track{background:linear-gradient(90deg,rgba(204,61,74,.10) 0 50%,rgba(9,132,95,.10) 50% 100%)}
@media(max-width:1050px){.profitability-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){
  .profitability-grid{grid-template-columns:repeat(2,1fr)}
  .profitability-row{grid-template-columns:50px minmax(0,1fr) 58px}
  .analytics-compare-note{align-items:flex-start;flex-direction:column}
}

/* ==== block 26 id="portfolioIntegrationPass12Css" ==== */

/* Selected portfolio data integration */
.portfolio-context-badge{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 9px;border-radius:999px;
  background:var(--primary-soft);color:var(--primary-dark);
  font-size:9px;font-weight:900;border:1px solid #b9e8ea;
}
.portfolio-context-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-theme="dark"] .portfolio-context-badge{background:#12353a;border-color:#285960;color:#70d6da}

/* ==== block 27 id="clientPresentationFinalCss" ==== */

.phase-note,.polish-note{display:none!important}

/* ==== block 28 id="typographyPolishPass15Css" ==== */

/* Consistent section-title hierarchy */
:root{
  --title-page-size:28px;
  --title-section-size:22px;
  --title-card-size:15px;
  --subtitle-size:11px;
}

/* Top portfolio area */
#portfolioBoardPass3 .portfolio-board-title,
#portfolioBoardPass3 h1,
#portfolioBoardPass3 h2,
#portfolioBoardPass3 > div:first-child > strong{
  font-size:var(--title-section-size)!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:-.01em;
}

/* Main page heading */
.page-head h1,
#pageTitle{
  font-size:var(--title-page-size)!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:-.015em;
  margin-bottom:6px!important;
}

/* Section intros */
.section-intro h2,
#section-holdings .section-intro h2,
#section-transactions .section-intro h2,
#section-analytics .section-intro h2{
  font-size:var(--title-section-size)!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:-.01em;
}

/* Panel/card headings */
.panel-head h2,
.analytics-card h3,
.mini-list h3,
.detail-box h4{
  font-size:var(--title-card-size)!important;
  line-height:1.35!important;
  font-weight:800!important;
}

/* Descriptions */
.page-head p,
.section-intro p,
#portfolioBoardPass3 .portfolio-board-subtitle,
#portfolioBoardPass3 p,
.panel-head span{
  font-size:var(--subtitle-size)!important;
  line-height:1.65!important;
}

/* Keep portfolio-card names subordinate to section titles */
.portfolio-top-card h3,
.portfolio-card-pass3 h3,
.portfolio-top-card .portfolio-name,
.portfolio-card-pass3 .portfolio-name{
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:800!important;
}

/* Better vertical rhythm between hero title, description and cards */
#portfolioBoardPass3{
  --portfolio-heading-gap:6px;
}
#portfolioBoardPass3 .portfolio-board-title,
#portfolioBoardPass3 h1,
#portfolioBoardPass3 h2{
  margin-bottom:var(--portfolio-heading-gap)!important;
}
#portfolioBoardPass3 .portfolio-board-subtitle,
#portfolioBoardPass3 > p{
  margin-top:0!important;
  margin-bottom:16px!important;
}

/* Main heading spacing */
.page-head{
  margin-top:4px!important;
  margin-bottom:20px!important;
}
.page-head h1{margin-top:0!important}

/* Arabic/English optical balance */
html[dir="rtl"] .page-head h1,
html[dir="rtl"] .section-intro h2,
html[dir="rtl"] #portfolioBoardPass3 h2{
  letter-spacing:0!important;
}

@media(max-width:700px){
  :root{
    --title-page-size:24px;
    --title-section-size:20px;
    --title-card-size:14px;
    --subtitle-size:10px;
  }
  .page-head{margin-bottom:16px!important}
}

/* ==== block 29 id="headingScaleFixPass16Css" ==== */

/* Final heading scale: portfolio selector and active page title share one visual level. */
:root{
  --heading-section:24px;
  --heading-card:15px;
  --heading-description:11px;
}

/* The two headings shown one after another must feel like the same hierarchy. */
#portfolioBoardPass3 .portfolio-board-head h2,
#pageTitle,
.page-head h1,
#section-holdings .section-intro h2,
#section-transactions .section-intro h2,
#section-analytics .section-intro h2{
  font-size:var(--heading-section)!important;
  line-height:1.22!important;
  font-weight:750!important;
  letter-spacing:-.012em!important;
  margin:0!important;
}

/* Matching descriptions beneath those headings. */
#portfolioBoardPass3 .portfolio-board-head p,
#pageSubtitle,
.page-head p,
#section-holdings .section-intro p,
#section-transactions .section-intro p,
#section-analytics .section-intro p{
  font-size:var(--heading-description)!important;
  line-height:1.55!important;
  margin-top:6px!important;
  margin-bottom:0!important;
  color:var(--muted)!important;
}

/* Consistent spacing around the two title areas. */
#portfolioBoardPass3 .portfolio-board-head{
  margin-bottom:16px!important;
  align-items:flex-start!important;
}
#portfolioBoardPass3{
  margin-bottom:18px!important;
}
.page-head{
  margin-top:0!important;
  margin-bottom:20px!important;
  align-items:flex-end!important;
}

/* Keep the small "Now viewing" line visually subordinate. */
#portfolioScreenCaption{
  margin-top:0!important;
  margin-bottom:14px!important;
  font-size:9px!important;
  line-height:1.4!important;
}

/* Card/panel headings form the next lower level. */
.panel-head h2,
.analytics-card h3,
.mini-list h3,
.detail-box h4,
.portfolio-action-copy strong{
  font-size:var(--heading-card)!important;
  line-height:1.3!important;
  font-weight:750!important;
}

/* Portfolio names are lower than the page headings, but still prominent. */
.portfolio-top-card h3{
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:750!important;
}

/* Arabic does not benefit from negative tracking. */
html[dir="rtl"] #portfolioBoardPass3 .portfolio-board-head h2,
html[dir="rtl"] #pageTitle,
html[dir="rtl"] .page-head h1,
html[dir="rtl"] .section-intro h2{
  letter-spacing:0!important;
}

@media(max-width:700px){
  :root{
    --heading-section:21px;
    --heading-card:14px;
    --heading-description:10px;
  }
  #portfolioBoardPass3 .portfolio-board-head{margin-bottom:12px!important}
  .page-head{margin-bottom:16px!important;align-items:flex-start!important}
}

/* ==== block 30 id="heroSubtitleContrastPass17Css" ==== */

/* Improve subtitle readability on the dark portfolio hero. */
#portfolioBoardPass3 .portfolio-board-head p,
#portfolioBoardPass3 .portfolio-board-subtitle,
#portfolioBoardPass3 > p{
  color:rgba(255,255,255,.86)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.18);
}

/* Keep secondary metadata on cards unchanged; only the hero subtitle is brightened. */
html[data-theme="dark"] #portfolioBoardPass3 .portfolio-board-head p,
html[data-theme="dark"] #portfolioBoardPass3 .portfolio-board-subtitle,
html[data-theme="dark"] #portfolioBoardPass3 > p{
  color:rgba(255,255,255,.88)!important;
}

/* ==== block 31 id="heroSkylineMotionPass18Css" ==== */

/* Animated skyline hero.
   The skyline moves out of the ::before background into a real inline SVG so its layers can move.
   The ::before keeps the night gradient, glow and lattice. If the script does not run,
   .has-live-sky is never added and the original static background stays as it was. */
#portfolioBoardPass3.has-live-sky::before{
  background:
    var(--lattice-dark) center/64px 64px,
    radial-gradient(120% 140% at 85% 0%,rgba(0,168,176,.28),transparent 55%),
    linear-gradient(180deg,var(--night) 0%,var(--night-2) 100%) !important;
}

/* Same box as the ::before band, so the artwork lands exactly where it was. */
.hero-sky{
  position:absolute;z-index:-1;pointer-events:none;overflow:hidden;
  top:-120px;bottom:46%;left:50%;width:100vw;
  transform:translateX(-50%);
}
/* Mirror in Arabic, like the original background: the chart line then draws right-to-left. */
html[dir="rtl"] .hero-sky{transform:translateX(-50%) scaleX(-1)}
@media(max-width:700px){.hero-sky{top:-80px;bottom:auto;height:170px}}

.hero-sky svg{position:absolute;left:0;bottom:0;width:100%;height:auto;display:block;overflow:visible}
.hero-sky svg *{transform-box:fill-box}

/* Slow, barely-there drift of the teal light over the city. */
.hero-sky-glow{
  position:absolute;inset:-25%;
  background:radial-gradient(38% 55% at 78% 18%,rgba(0,180,189,.16),transparent 70%);
  animation:hsGlow 22s ease-in-out infinite alternate;
  will-change:transform,opacity;
}
@keyframes hsGlow{
  from{transform:translate3d(0,0,0);opacity:.55}
  to{transform:translate3d(-7%,4%,0);opacity:1}
}

/* One page-load moment: the city settles in, then the market line draws across it. */
.hs-layer{animation:hsRise 1.5s cubic-bezier(.22,.8,.3,1) both}
.hs-back{animation-delay:.05s}
.hs-front{animation-delay:.2s}
.hs-marks{animation-delay:.35s;animation-duration:1.8s}
@keyframes hsRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

.hs-line{animation:hsDraw 2.4s cubic-bezier(.65,0,.3,1) .55s backwards}
@keyframes hsDraw{
  from{stroke-dasharray:1;stroke-dashoffset:1;stroke-opacity:.55}
  to{stroke-dasharray:1;stroke-dashoffset:0;stroke-opacity:.3}
}
.hs-area{animation:hsFade 1.4s ease-out 1.9s backwards}
@keyframes hsFade{from{opacity:0}to{opacity:1}}

/* Every few seconds a soft highlight runs along the market line, like a live tick. */
.hs-pulse{opacity:0;stroke-dasharray:.07 1.2;stroke-dashoffset:.07;animation:hsPulse 11s cubic-bezier(.45,0,.25,1) 3.4s infinite}
@keyframes hsPulse{
  0%{stroke-dashoffset:.07;opacity:0}
  4%{opacity:.55}
  34%{opacity:.55}
  38%,100%{stroke-dashoffset:-1;opacity:0}
}

/* Aviation lights on the two towers: slow, out of sync, like the real ones. */
.hs-beacon{opacity:.6;transform-origin:center;animation:hsBeacon 3.6s ease-in-out calc(2.6s + var(--d,0s)) infinite backwards}
@keyframes hsBeacon{
  0%,100%{opacity:.18}
  12%{opacity:1}
  40%{opacity:.35}
}

/* Buildings, looping.
   Window lights switch on and off at random, unrelated rhythms so the city never looks like it repeats. */
.hs-win{opacity:var(--o,0);animation:hsWin var(--t,14s) ease-in-out var(--d,0s) infinite}
@keyframes hsWin{
  0%,100%{opacity:0}
  6%{opacity:.7}
  44%{opacity:.7}
  50%{opacity:0}
}
/* The far row of buildings slowly fades in and out of the haze, adding depth. */
.hs-haze{animation:hsHaze 13s ease-in-out infinite alternate}
@keyframes hsHaze{from{opacity:1}to{opacity:.55}}
/* A soft band of light passes across the skyline now and then, clipped to the buildings. */
.hs-sheen{animation:hsSheen 17s cubic-bezier(.45,0,.3,1) 4.2s infinite}
@keyframes hsSheen{
  0%{transform:translateX(0)}
  42%,100%{transform:translateX(2260px)}
}

/* Stop spending frames when the hero is off screen. */
.hero-sky.is-paused,.hero-sky.is-paused *{animation-play-state:paused!important}

/* Reduced motion: no movement at all, the final composed skyline is shown. */
@media (prefers-reduced-motion:reduce){
  .hero-sky,.hero-sky *{animation:none!important}
  .hero-sky-glow{opacity:.8}
}

/* ==== block 32 id="advisorHeroSlideshowPass20Css" ==== */

/* Advisor-controlled client slideshow.
   Desktop: occupies the quiet area opposite the "My Portfolios" heading.
   Mobile/tablet: becomes a normal full-width banner above the portfolio cards. */
#portfolioBoardPass3{isolation:isolate}
#portfolioBoardPass3 .portfolio-board-head{
  min-height:112px;
  padding-inline-end:min(58%,760px);
  display:flex;
  align-items:center!important;
  margin-bottom:14px!important;
}
.advisor-hero-slider{
  position:absolute;
  z-index:5;
  top:14px;
  inset-inline-end:0;
  width:min(58%,760px);
  height:112px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 45px rgba(4,28,38,.22);
  background:#0b3542;
  color:#fff;
}
.advisor-hero-track{position:relative;width:100%;height:100%}
.advisor-hero-slide{
  position:absolute;inset:0;
  opacity:0;visibility:hidden;
  transition:opacity .65s ease,visibility .65s ease;
  background-position:center;
  background-size:cover;
}
.advisor-hero-slide.active{opacity:1;visibility:visible;z-index:1}
.advisor-hero-slide::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgba(5,31,41,.96) 0%,rgba(5,31,41,.82) 38%,rgba(5,31,41,.28) 68%,rgba(5,31,41,.10) 100%);
}
html[dir="rtl"] .advisor-hero-slide::after{
  background:
    linear-gradient(270deg,rgba(5,31,41,.96) 0%,rgba(5,31,41,.82) 38%,rgba(5,31,41,.28) 68%,rgba(5,31,41,.10) 100%);
}
.advisor-hero-content{
  position:relative;z-index:2;
  width:min(66%,500px);
  height:100%;
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:14px 52px 16px 22px;
  text-align:start;
}
html[dir="rtl"] .advisor-hero-content{padding:14px 22px 16px 52px}
.advisor-hero-title{
  margin:0;
  color:#fff;
  font-family:var(--font-display,var(--font-body));
  font-size:17px;
  line-height:1.35;
  font-weight:700;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}
.advisor-hero-text{
  margin:5px 0 0;
  color:rgba(255,255,255,.84);
  font-size:10.5px;
  line-height:1.55;
  max-width:48ch;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.advisor-hero-action{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;
  margin-top:8px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:9px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  color:#fff;text-decoration:none;
  font-size:9.5px;font-weight:700;
  transition:background .16s,border-color .16s,transform .16s;
}
.advisor-hero-action:hover{background:rgba(255,255,255,.20);border-color:rgba(255,255,255,.48);transform:translateY(-1px)}
.advisor-hero-controls{
  position:absolute;z-index:6;
  inset-inline-end:10px;top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;gap:6px;
}
.advisor-hero-arrow{
  width:28px;height:28px;border-radius:9px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(4,30,40,.42);backdrop-filter:blur(5px);
  color:#fff;cursor:pointer;font:inherit;font-size:15px;line-height:1;
  display:grid;place-items:center;
  transition:background .16s,border-color .16s;
}
.advisor-hero-arrow:hover{background:rgba(4,30,40,.72);border-color:rgba(255,255,255,.35)}
.advisor-hero-dots{
  position:absolute;z-index:6;
  inset-inline-start:22px;bottom:7px;
  display:flex;gap:5px;align-items:center;
}
.advisor-hero-dot{
  width:17px;height:3px;padding:0;border:0;border-radius:999px;
  background:rgba(255,255,255,.32);cursor:pointer;
  transition:width .22s,background .22s;
}
.advisor-hero-dot.active{width:28px;background:var(--sand,#dfb969)}
.advisor-hero-slider.is-paused .advisor-hero-dot.active{background:#fff}
.advisor-hero-slide.active .advisor-hero-content{
  animation:advisorSlideContentIn .55s cubic-bezier(.22,.8,.3,1) both;
}
@keyframes advisorSlideContentIn{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:none}
}
@media(max-width:1050px){
  #portfolioBoardPass3 .portfolio-board-head{
    min-height:0;padding-inline-end:0;display:block;margin-bottom:14px!important;
  }
  .advisor-hero-slider{
    position:relative;top:auto;inset-inline-end:auto;
    width:100%;height:126px;margin:0 0 14px;
  }
  .advisor-hero-content{width:min(72%,560px)}
}
@media(max-width:650px){
  .advisor-hero-slider{height:150px;border-radius:15px}
  .advisor-hero-content{width:82%;padding:16px 46px 18px 16px}
  html[dir="rtl"] .advisor-hero-content{padding:16px 16px 18px 46px}
  .advisor-hero-title{font-size:15px}
  .advisor-hero-text{font-size:10px;-webkit-line-clamp:3}
  .advisor-hero-controls{inset-inline-end:8px}
  .advisor-hero-dots{inset-inline-start:16px;bottom:9px}
}
@media(prefers-reduced-motion:reduce){
  .advisor-hero-slide,.advisor-hero-slide.active .advisor-hero-content{transition:none;animation:none}
}

/* ==== block 33 id="advisorHeroSlideshowPass21Css" ==== */

/* Large announcement slideshow integrated into the hero area */

#portfolioBoardPass3{
  position:relative!important;
  padding-top:24px!important;
  padding-bottom:26px!important;
  margin-bottom:24px!important;
}

/* Restore heading as a normal block at the top of the hero. */
#portfolioBoardPass3 .portfolio-board-head{
  min-height:0!important;
  padding-inline-end:0!important;
  display:block!important;
  margin-bottom:18px!important;
}

/* Make the slideshow a large, full-width hero banner. */
.advisor-hero-slider{
  position:relative!important;
  top:auto!important;
  inset-inline:auto!important;
  width:100%!important;
  height:250px!important;
  margin:0 0 20px!important;
  border-radius:20px!important;
  border:1px solid rgba(255,255,255,.20)!important;
  box-shadow:0 20px 55px rgba(3,26,36,.28)!important;
  overflow:hidden!important;
  background:#0b3542!important;
}

/* Give slides a stronger cinematic presentation. */
.advisor-hero-slide{
  overflow:hidden!important;
  background-image:none!important;
}
.advisor-hero-slide::before{
  content:"";
  position:absolute;
  inset:-5%;
  background-image:var(--slide-bg);
  background-size:cover;
  background-position:center;
  transform:scale(1.06);
  will-change:transform;
  z-index:0;
}
.advisor-hero-slide.active::before{
  animation:advisorKenBurns 10s ease-in-out both;
}
.advisor-hero-slide:nth-child(even).active::before{
  animation-name:advisorKenBurnsAlt;
}
@keyframes advisorKenBurns{
  0%{transform:scale(1.06) translate3d(-1.2%,0,0)}
  100%{transform:scale(1.15) translate3d(1.3%,-1.1%,0)}
}
@keyframes advisorKenBurnsAlt{
  0%{transform:scale(1.07) translate3d(1%,.4%,0)}
  100%{transform:scale(1.16) translate3d(-1.5%,-1%,0)}
}

/* Overlay tuned for larger slides and better text contrast. */
.advisor-hero-slide::after{
  z-index:1!important;
  background:
    linear-gradient(90deg,rgba(4,28,38,.97) 0%,rgba(4,28,38,.89) 28%,rgba(4,28,38,.56) 50%,rgba(4,28,38,.18) 76%,rgba(4,28,38,.06) 100%)!important;
}
html[dir="rtl"] .advisor-hero-slide::after{
  background:
    linear-gradient(270deg,rgba(4,28,38,.97) 0%,rgba(4,28,38,.89) 28%,rgba(4,28,38,.56) 50%,rgba(4,28,38,.18) 76%,rgba(4,28,38,.06) 100%)!important;
}

/* Larger text block appropriate for the new banner size. */
.advisor-hero-content{
  width:min(55%,650px)!important;
  padding:28px 78px 34px 34px!important;
  justify-content:center!important;
}
html[dir="rtl"] .advisor-hero-content{
  padding:28px 34px 34px 78px!important;
}
.advisor-hero-title{
  font-size:25px!important;
  line-height:1.28!important;
  margin:0!important;
}
.advisor-hero-text{
  font-size:12.5px!important;
  line-height:1.65!important;
  margin-top:9px!important;
  max-width:54ch!important;
  -webkit-line-clamp:3!important;
}
.advisor-hero-action{
  min-height:36px!important;
  margin-top:14px!important;
  padding:0 14px!important;
  font-size:10.5px!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.14)!important;
}

/* Controls become more balanced at this larger size. */
.advisor-hero-controls{
  inset-inline-end:14px!important;
  gap:8px!important;
}
.advisor-hero-arrow{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  font-size:18px!important;
}
.advisor-hero-dots{
  inset-inline-start:28px!important;
  bottom:14px!important;
  gap:6px!important;
}
.advisor-hero-dot{
  width:22px!important;
  height:4px!important;
}
.advisor-hero-dot.active{
  width:36px!important;
}

/* Keep the portfolio cards inside the enlarged dark hero area. */
#portfolioBoardPass3 .portfolio-top-grid,
#portfolioBoardPass3 .portfolio-board-grid,
#portfolioBoardPass3 .portfolio-grid-pass3{
  position:relative!important;
  z-index:6!important;
  margin-top:0!important;
}

/* Ensure the dark full-width hero visually contains heading + slideshow + cards. */
#portfolioBoardPass3::before{
  min-height:100%!important;
}

@media(max-width:1050px){
  .advisor-hero-slider{
    height:220px!important;
  }
  .advisor-hero-content{
    width:min(65%,560px)!important;
    padding:24px 62px 30px 28px!important;
  }
  html[dir="rtl"] .advisor-hero-content{
    padding:24px 28px 30px 62px!important;
  }
  .advisor-hero-title{font-size:22px!important}
  .advisor-hero-text{font-size:11.5px!important}
}

@media(max-width:700px){
  #portfolioBoardPass3{
    padding-top:18px!important;
    padding-bottom:20px!important;
  }
  .advisor-hero-slider{
    height:210px!important;
    margin-bottom:16px!important;
    border-radius:16px!important;
  }
  .advisor-hero-content{
    width:82%!important;
    padding:22px 48px 28px 20px!important;
  }
  html[dir="rtl"] .advisor-hero-content{
    padding:22px 20px 28px 48px!important;
  }
  .advisor-hero-title{font-size:18px!important}
  .advisor-hero-text{
    font-size:10.5px!important;
    -webkit-line-clamp:4!important;
  }
  .advisor-hero-action{
    min-height:32px!important;
    margin-top:10px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .advisor-hero-slide.active::before{
    animation:none!important;
    transform:scale(1.06)!important;
  }
}

/* Pass 29: slideshow precedes the portfolio heading; keep a balanced gap into the heading. */
#portfolioBoardPass3 > .advisor-hero-slider{margin-bottom:18px!important}
#portfolioBoardPass3 > .portfolio-board-head{margin-top:0!important;margin-bottom:18px!important}

/* ==== block 34 id="heroSkylineBottomAlignmentPass22" ==== */

/* Keep the animated skyline anchored to the actual bottom edge of the enlarged hero. */
#portfolioBoardPass3.has-live-sky::before{
  top:-120px!important;
  bottom:0!important;
  min-height:0!important;
}

#portfolioBoardPass3 > .hero-sky{
  top:-120px!important;
  bottom:0!important;
  height:auto!important;
}

/* The skyline SVG itself is bottom-anchored, so buildings now meet the hero's lower edge. */
#portfolioBoardPass3 > .hero-sky > svg{
  top:auto!important;
  bottom:0!important;
  left:0!important;
  width:100%!important;
  height:auto!important;
}

/* Keep the ambient animated glow covering the newly taller hero. */
#portfolioBoardPass3 > .hero-sky > .hero-sky-glow{
  top:-25%!important;
  right:-25%!important;
  bottom:-25%!important;
  left:-25%!important;
}

@media(max-width:700px){
  #portfolioBoardPass3.has-live-sky::before{
    top:-80px!important;
    bottom:0!important;
    height:auto!important;
  }
  #portfolioBoardPass3 > .hero-sky{
    top:-80px!important;
    bottom:0!important;
    height:auto!important;
  }
}

/* ==== block 35 id="advisorHeroSlideshowPass23HeightIncrease" ==== */

/* Slideshow height and content balance */
.advisor-hero-slider{
  height:320px!important;
  margin-bottom:22px!important;
}

.advisor-hero-content{
  width:min(58%,680px)!important;
  padding:34px 84px 40px 38px!important;
}
html[dir="rtl"] .advisor-hero-content{
  padding:34px 38px 40px 84px!important;
}

.advisor-hero-title{
  font-size:28px!important;
  line-height:1.24!important;
}
.advisor-hero-text{
  font-size:13px!important;
  line-height:1.68!important;
  margin-top:10px!important;
  -webkit-line-clamp:4!important;
}
.advisor-hero-action{
  min-height:38px!important;
  margin-top:16px!important;
  padding:0 15px!important;
}

.advisor-hero-controls{
  inset-inline-end:16px!important;
}
.advisor-hero-dots{
  bottom:16px!important;
}

@media(max-width:1050px){
  .advisor-hero-slider{
    height:280px!important;
  }
  .advisor-hero-content{
    width:min(66%,600px)!important;
    padding:28px 68px 34px 30px!important;
  }
  html[dir="rtl"] .advisor-hero-content{
    padding:28px 30px 34px 68px!important;
  }
  .advisor-hero-title{
    font-size:24px!important;
  }
  .advisor-hero-text{
    font-size:12px!important;
  }
}

@media(max-width:700px){
  .advisor-hero-slider{
    height:235px!important;
    margin-bottom:18px!important;
  }
  .advisor-hero-content{
    width:84%!important;
    padding:24px 50px 30px 20px!important;
  }
  html[dir="rtl"] .advisor-hero-content{
    padding:24px 20px 30px 50px!important;
  }
  .advisor-hero-title{
    font-size:20px!important;
  }
  .advisor-hero-text{
    font-size:10.75px!important;
    -webkit-line-clamp:4!important;
  }
}

/* ==== block 36 id="advisorHeroSlideshowPass25Motion" ==== */

/* Interface refinement */

.advisor-hero-slider{--hero-ease:cubic-bezier(.16,1,.3,1);--hero-wipe:cubic-bezier(.5,.05,.2,1);--hero-cycle:7s}

/* Slide stacking: no opacity transitions, visibility is driven by classes. */
.advisor-hero-slider .advisor-hero-slide{
  opacity:0!important;visibility:hidden!important;transition:none!important;z-index:0!important;
}
.advisor-hero-slider .advisor-hero-slide.active{opacity:1!important;visibility:visible!important;z-index:3!important}
.advisor-hero-slider .advisor-hero-slide.is-leaving{opacity:1!important;visibility:visible!important;z-index:2!important;pointer-events:none}
.advisor-hero-slider .advisor-hero-content{animation:none!important}

/* Soft-edged wipe for the incoming slide. The mask is 3x the slide width:
   a solid part, a soft edge about 40% of the slide wide, and a clear part. */
.advisor-hero-slider .advisor-hero-slide.is-entering{
  -webkit-mask-size:300% 100%;mask-size:300% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  animation:advHeroWipe 1.4s var(--hero-wipe) both;
}
.advisor-hero-slider[data-enter="from-left"] .advisor-hero-slide.is-entering{
  -webkit-mask-image:linear-gradient(to right,#000 45%,transparent 58.33%);
  mask-image:linear-gradient(to right,#000 45%,transparent 58.33%);
  --wipe-from:100%;--wipe-to:0%;
}
.advisor-hero-slider[data-enter="from-right"] .advisor-hero-slide.is-entering{
  -webkit-mask-image:linear-gradient(to left,#000 45%,transparent 58.33%);
  mask-image:linear-gradient(to left,#000 45%,transparent 58.33%);
  --wipe-from:0%;--wipe-to:100%;
}
@keyframes advHeroWipe{
  from{-webkit-mask-position:var(--wipe-from) 0;mask-position:var(--wipe-from) 0}
  to{-webkit-mask-position:var(--wipe-to) 0;mask-position:var(--wipe-to) 0}
}

/* Image: settles from a slight zoom, then drifts slowly for the whole time it is shown.
   The drift is shared by .active and .is-leaving so the outgoing image never snaps back. */
.advisor-hero-slider .advisor-hero-slide::before{transform:none;scale:1.06}
.advisor-hero-slider .advisor-hero-slide:is(.active,.is-leaving)::before{
  animation:advHeroDrift 16s cubic-bezier(.35,0,.65,1) both,advHeroSettle 1.8s var(--hero-ease) both;
}
.advisor-hero-slider .advisor-hero-slide:nth-child(even):is(.active,.is-leaving)::before{
  animation-name:advHeroDriftAlt,advHeroSettle;
}
@keyframes advHeroSettle{from{scale:1.16}to{scale:1.06}}
@keyframes advHeroDrift{from{transform:translate3d(-1.2%,0,0)}to{transform:translate3d(1.2%,-1%,0) scale(1.06)}}
@keyframes advHeroDriftAlt{from{transform:translate3d(1.2%,.4%,0)}to{transform:translate3d(-1.2%,-.8%,0) scale(1.06)}}

/* Text entrance: words of the title rise and sharpen one after another, in reading order. */
.advisor-hero-title .ahw{display:inline-block;will-change:transform,opacity,filter}
.advisor-hero-slider .advisor-hero-slide.active .ahw{
  animation:advHeroTextIn .9s var(--hero-ease) calc(.5s + var(--i,0) * 55ms) both;
}
.advisor-hero-slider .advisor-hero-slide.active .advisor-hero-text{
  animation:advHeroTextIn .95s var(--hero-ease) calc(.7s + var(--n,3) * 40ms) both!important;
}
.advisor-hero-slider .advisor-hero-slide.active .advisor-hero-action{
  animation:advHeroTextIn .9s var(--hero-ease) calc(.85s + var(--n,3) * 40ms) both!important;
}
@keyframes advHeroTextIn{
  from{opacity:0;transform:translate3d(0,.6em,0);filter:blur(6px)}
  to{opacity:1;transform:none;filter:blur(0)}
}

/* Text exit: everything leaves together, quickly, so it never competes with the new slide. */
.advisor-hero-slider .advisor-hero-slide.is-leaving :is(.ahw,.advisor-hero-text,.advisor-hero-action){
  animation:advHeroTextOut .34s cubic-bezier(.4,0,1,1) both!important;
}
@keyframes advHeroTextOut{
  from{opacity:1;transform:none;filter:blur(0)}
  to{opacity:0;transform:translate3d(0,-.4em,0);filter:blur(4px)}
}

/* Reset slides to a clean resting state. */
.advisor-hero-slider .advisor-hero-slide :is(.advisor-hero-title,.advisor-hero-text,.advisor-hero-action){opacity:1;transform:none}

/* Button: calm fill on hover, clear focus ring. */
.advisor-hero-slider .advisor-hero-action{
  transition:background-color .35s var(--hero-ease),border-color .35s var(--hero-ease),color .35s var(--hero-ease),box-shadow .35s var(--hero-ease)!important;
}
.advisor-hero-slider .advisor-hero-action:hover{
  background:#fff!important;border-color:#fff!important;color:#0B2A36!important;transform:none!important;
  box-shadow:0 10px 26px -10px rgba(0,0,0,.45);
}
.advisor-hero-slider .advisor-hero-action:focus-visible{outline:2px solid var(--sand,#dfb969);outline-offset:3px}
.advisor-hero-arrow{transition:background-color .3s var(--hero-ease),border-color .3s var(--hero-ease)!important}

/* Dots double as a progress bar for the autoplay timer. */
.advisor-hero-slider .advisor-hero-dot{
  position:relative;overflow:hidden;
  transition:width .6s var(--hero-ease),background-color .4s var(--hero-ease)!important;
}
.advisor-hero-slider .advisor-hero-dot.active,
.advisor-hero-slider.is-paused .advisor-hero-dot.active{background:rgba(255,255,255,.3)!important}
.advisor-hero-slider .advisor-hero-dot::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:var(--sand,#dfb969);
  transform:scaleX(0);transform-origin:left center;
}
html[dir="rtl"] .advisor-hero-slider .advisor-hero-dot::after{transform-origin:right center}
.advisor-hero-slider .advisor-hero-dot.active::after{animation:advHeroProgress var(--hero-cycle) linear both}
.advisor-hero-slider.is-paused .advisor-hero-dot.active::after{animation-play-state:paused}
@keyframes advHeroProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media(prefers-reduced-motion:reduce){
  html .advisor-hero-slider .advisor-hero-slide,
  html .advisor-hero-slider .advisor-hero-slide::before,
  html .advisor-hero-slider .advisor-hero-slide:is(.active,.is-leaving,.is-entering)::before,
  html .advisor-hero-slider .advisor-hero-slide:is(.active,.is-leaving,.is-entering) *,
  html .advisor-hero-slider .advisor-hero-slide *,
  html .advisor-hero-slider .advisor-hero-slide:is(.active,.is-leaving) :is(.ahw,.advisor-hero-text,.advisor-hero-action){animation:none!important;opacity:1;-webkit-mask:none!important;mask:none!important}
  .advisor-hero-slider .advisor-hero-slide.is-leaving{visibility:hidden!important}
  .advisor-hero-slider .advisor-hero-dot.active::after{animation:none!important;transform:scaleX(1)}
}

/* Pass 28: robust persistent navigation */
.topbar{
  position:fixed!important;
  top:0;left:0;right:0;
  width:100%;
  z-index:1000;
}
.app{padding-top:68px}
@media(max-width:700px){.app{padding-top:62px}}

/* ==== block 37 id="studioRedesign" ==== */

/* =====================================================================
   Studio redesign — one consolidated visual layer.
   Markup and behaviour untouched; this layer sits last and wins.
   ===================================================================== */
:root{
  --rx-night:#0B2E36; --rx-night-2:#0F3B45; --rx-night-3:#134652;
  --rx-teal:#0E8C92; --rx-teal-ink:#0A6D72; --rx-teal-wash:#E3F2F2;
  --rx-gold:#D2A55A; --rx-gold-wash:#F7EEDC;
  --rx-canvas:#F1F4F3; --rx-surface:#FFFFFF; --rx-sunken:#F6F8F7;
  --rx-ink:#10252C; --rx-ink-2:#34494F; --rx-muted:#617379; --rx-line:#E1E7E6; --rx-line-2:#EDF1F0;
  --rx-gain:#0A7F57; --rx-gain-wash:#E4F4EC; --rx-loss:#C13545; --rx-loss-wash:#FBEAEC;
  --rx-side:256px;
  --rx-r-lg:18px; --rx-r:14px; --rx-r-sm:10px;
  --rx-shadow:0 1px 0 rgba(16,37,44,.03),0 1px 3px rgba(16,37,44,.04);
  --rx-shadow-pop:0 24px 60px -18px rgba(8,34,40,.35),0 2px 6px rgba(8,34,40,.08);
  --rx-font:"IBM Plex Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
  --rx-display:"Alexandria","IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
  /* feed the legacy tokens so every older component follows along */
  --primary:var(--rx-teal); --primary-dark:var(--rx-teal-ink); --primary-soft:var(--rx-teal-wash);
  --ink:var(--rx-ink); --muted:var(--rx-muted); --line:var(--rx-line); --surface:var(--rx-surface); --canvas:var(--rx-canvas);
  --gain:var(--rx-gain); --gain-bg:var(--rx-gain-wash); --loss:var(--rx-loss); --loss-bg:var(--rx-loss-wash);
  --sand:var(--rx-gold); --sand-soft:var(--rx-gold-wash); --night:var(--rx-night); --night-2:var(--rx-night-2);
  --shadow:var(--rx-shadow); --shadow-lift:var(--rx-shadow-pop); --radius:var(--rx-r);
  --font-body:var(--rx-font); --font-display:var(--rx-display);
  --rx-ic-overview:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='8.5' rx='1.6'/%3E%3Crect x='13.5' y='3.5' width='7' height='5' rx='1.6'/%3E%3Crect x='13.5' y='11.5' width='7' height='9' rx='1.6'/%3E%3Crect x='3.5' y='15.5' width='7' height='5' rx='1.6'/%3E%3C/svg%3E");
--rx-ic-holdings:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 13.5A8.5 8.5 0 1 1 10.5 3.6V13.5z'/%3E%3Cpath d='M14 3.3a8.5 8.5 0 0 1 6.7 6.7H14z'/%3E%3C/svg%3E");
--rx-ic-transactions:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 4 4 7.5 7.5 11'/%3E%3Cpath d='M4 7.5h13'/%3E%3Cpath d='M16.5 13l3.5 3.5-3.5 3.5'/%3E%3Cpath d='M20 16.5H7'/%3E%3C/svg%3E");
--rx-ic-analytics:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16h16'/%3E%3Cpath d='m7.5 14.5 3.5-4 3 2.5 5-6'/%3E%3C/svg%3E");
--rx-skyline:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 160' fill='none'%3E%3Cg fill='%235fe0e6' fill-opacity='.07' stroke='%235fe0e6' stroke-opacity='.28' stroke-width='1'%3E%0A%3Crect x='4' y='118' width='18' height='42'/%3E%3Crect x='24' y='100' width='14' height='60'/%3E%3Crect x='40' y='126' width='22' height='34'/%3E%3Crect x='64' y='108' width='16' height='52'/%3E%0A%3Cpath d='M84 160 L101 38 L118 160 Z'/%3E%3Crect x='120' y='120' width='16' height='40'/%3E%0A%3Cpath fill-rule='evenodd' d='M141 160 L148 34 Q158 6 168 34 L175 160 Z M152 46 Q158 26 164 46 L164 60 L152 60 Z'/%3E%0A%3Crect x='180' y='96' width='14' height='64'/%3E%3Crect x='196' y='122' width='20' height='38'/%3E%3Crect x='218' y='110' width='12' height='50'/%3E%3Crect x='232' y='128' width='22' height='32'/%3E%3C/g%3E%0A%3Cpath d='M101 38 V20' stroke='%235fe0e6' stroke-opacity='.35'/%3E%3Ccircle cx='101' cy='78' r='5' fill='%235fe0e6' fill-opacity='.12' stroke='%235fe0e6' stroke-opacity='.35'/%3E%0A%3Ccircle cx='101' cy='19' r='2' fill='%23d6ad62'/%3E%3Ccircle cx='158' cy='12' r='1.6' fill='%23d6ad62'/%3E%0A%3Cg fill='%23d6ad62' fill-opacity='.55'%3E%3Crect x='28' y='110' width='2' height='2'/%3E%3Crect x='33' y='122' width='2' height='2'/%3E%3Crect x='68' y='118' width='2' height='2'/%3E%3Crect x='185' y='106' width='2' height='2'/%3E%3Crect x='189' y='128' width='2' height='2'/%3E%3Crect x='222' y='120' width='2' height='2'/%3E%3C/g%3E%0A%3Cpath d='M0 159.5 H256' stroke='%235fe0e6' stroke-opacity='.3'/%3E%3C/svg%3E");
}
html[data-theme="dark"]{
  --rx-night:#081F26; --rx-night-2:#0B2830; --rx-night-3:#10343D;
  --rx-teal:#27B3B8; --rx-teal-ink:#5CCFD3; --rx-teal-wash:#0F3237;
  --rx-gold:#DDB46A; --rx-gold-wash:#2F2717;
  --rx-canvas:#0B171C; --rx-surface:#111F25; --rx-sunken:#0E1B20;
  --rx-ink:#E4ECEC; --rx-ink-2:#BBC9CA; --rx-muted:#8FA2A5; --rx-line:#20333A; --rx-line-2:#1A2B31;
  --rx-gain:#3CC48E; --rx-gain-wash:#10302A; --rx-loss:#F07684; --rx-loss-wash:#361B22;
  --rx-shadow:0 1px 0 rgba(0,0,0,.2);
  --rx-shadow-pop:0 28px 70px -20px rgba(0,0,0,.7),0 2px 8px rgba(0,0,0,.3);
  --primary:var(--rx-teal); --primary-dark:var(--rx-teal-ink); --primary-soft:var(--rx-teal-wash);
  --ink:var(--rx-ink); --muted:var(--rx-muted); --line:var(--rx-line); --surface:var(--rx-surface); --canvas:var(--rx-canvas);
  --gain:var(--rx-gain); --gain-bg:var(--rx-gain-wash); --loss:var(--rx-loss); --loss-bg:var(--rx-loss-wash);
  --sand-soft:var(--rx-gold-wash); --night:var(--rx-night); --night-2:var(--rx-night-2);
  --shadow:var(--rx-shadow); --shadow-lift:var(--rx-shadow-pop);
}

/* ---------- Base ---------- */
html[dir] body{font-family:var(--rx-font)!important;background:var(--rx-canvas)!important;color:var(--rx-ink);font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums lining-nums}
html[dir] body :is(h1,h2,h3,h4){font-family:var(--rx-display);letter-spacing:0}
html[dir] :where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--rx-teal)!important;outline-offset:2px}
html[dir] ::selection{background:color-mix(in srgb,var(--rx-teal) 22%,transparent)}
html[dir] .gain{color:var(--rx-gain)} html[dir] .loss{color:var(--rx-loss)}

/* =====================================================================
   App shell: night sidebar (≥1100px)
   ===================================================================== */
@media (min-width:1100px){
  html[dir] .app{padding-top:0!important;padding-inline-start:var(--rx-side)!important}
  html[dir] .topbar{
    position:fixed!important;top:0!important;bottom:0!important;width:var(--rx-side)!important;height:100vh!important;
    left:auto!important;right:0!important;
    background:linear-gradient(180deg,var(--rx-night) 0%,var(--rx-night-2) 100%)!important;
    border:0!important;border-inline-end:1px solid rgba(255,255,255,.06)!important;box-shadow:none!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible;
  }
  html[dir="ltr"] .topbar{left:0!important;right:auto!important}
  html[dir] .topbar::before{content:"";position:absolute;inset-inline:0;bottom:168px;height:150px;background:var(--rx-skyline) center bottom/100% auto no-repeat;pointer-events:none;opacity:.9}
  html[dir="ltr"] .topbar::before{transform:scaleX(-1)}
  html[dir] .topbar-inner{
    position:relative;z-index:1;height:100%!important;max-width:none!important;margin:0!important;
    padding:22px 16px 20px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
  }
  html[dir] .brand{padding:2px 8px 22px;margin-bottom:14px;border-bottom:1px solid rgba(255,255,255,.08)}
  html[dir] .main-nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important;flex:0 0 auto!important}
  html[dir] .main-nav .nav-btn{
    display:flex!important;align-items:center;gap:12px;width:100%;justify-content:flex-start;text-align:start;
    padding:11px 12px!important;border-radius:10px!important;font-size:14px!important;font-weight:500!important;
    color:rgba(232,244,244,.66)!important;background:transparent!important;
  }
  html[dir] .main-nav .nav-btn:hover{background:rgba(255,255,255,.05)!important;color:#fff!important}
  html[dir] .main-nav .nav-btn.active{background:rgba(255,255,255,.08)!important;color:#fff!important;font-weight:600!important}
  html[dir] .main-nav .nav-btn::after{
    content:""!important;position:absolute!important;inset-inline:auto!important;inset-inline-start:-16px!important;
    top:9px!important;bottom:9px!important;width:3px!important;height:auto!important;border-radius:0 3px 3px 0!important;
    background:var(--rx-gold)!important;opacity:0;transition:opacity .2s;
  }
  html[dir="rtl"] .main-nav .nav-btn::after{border-radius:3px 0 0 3px!important}
  html[dir] .main-nav .nav-btn.active::after{opacity:1}
  html[dir] .main-nav .nav-btn::before{
    content:"";flex:0 0 20px;width:20px;height:20px;background:currentColor;
    -webkit-mask:var(--rx-ic) center/20px no-repeat;mask:var(--rx-ic) center/20px no-repeat;opacity:.9;
  }
  html[dir] .top-actions{
    margin-top:auto!important;display:grid!important;grid-template-columns:1fr 44px;gap:8px!important;
    padding:14px 12px 12px;border-radius:14px;background:rgba(6,24,29,.55);border:1px solid rgba(255,255,255,.07);
    backdrop-filter:blur(6px);
  }
  html[dir] .top-actions .lang-link,html[dir] .top-actions .theme-toggle{height:38px!important;width:auto!important}
  html[dir] .top-actions .profile{
    grid-column:1/-1;order:-1;display:flex!important;align-items:center;gap:10px;flex-direction:row-reverse;justify-content:flex-end;
    padding:0 0 12px!important;margin:0 0 4px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;border-radius:0!important;
    background:transparent!important;position:relative;cursor:pointer;
  }
  html[dir] .top-actions .profile .profile-copy{display:block!important;text-align:start}
  html[dir] .top-actions .profile .profile-menu{top:auto!important;bottom:calc(100% + 10px)!important;inset-inline-start:0!important;inset-inline-end:auto!important;width:100%!important}
  html[dir] .workspace{max-width:1320px!important;padding:30px 40px 56px!important}
  html[dir] .to-top{inset-inline-end:28px!important}
}
html[dir] .main-nav .nav-btn[data-section="overview"]{--rx-ic:var(--rx-ic-overview)}
html[dir] .main-nav .nav-btn[data-section="holdings"]{--rx-ic:var(--rx-ic-holdings)}
html[dir] .main-nav .nav-btn[data-section="transactions"]{--rx-ic:var(--rx-ic-transactions)}
html[dir] .main-nav .nav-btn[data-section="analytics"]{--rx-ic:var(--rx-ic-analytics)}

/* Topbar below 1100px: compact night bar */
@media (max-width:1099.98px){
  html[dir] .topbar{background:var(--rx-night)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}
  html[dir] .main-nav .nav-btn::before{display:none}
  html[dir] .main-nav .nav-btn::after{background:var(--rx-gold)!important}
  html[dir] .workspace{padding:22px 20px 48px!important}
}
@media (min-width:861px) and (max-width:1099.98px){
  html[dir] .main-nav{display:flex!important}
  html[dir] .mobile-menu{display:none!important}
  html[dir] .profile .profile-copy{display:none!important}
}

/* Brand */
html[dir] .brand-mark{width:40px!important;height:40px!important;border-radius:12px!important;background:linear-gradient(155deg,#1FB8BE,#0A6D72)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 6px 16px -4px rgba(0,0,0,.4)!important}
html[dir] .brand-text strong{font-family:var(--rx-display)!important;font-size:18px!important;font-weight:700!important;color:#fff!important}
html[dir] .brand-text span{color:rgba(225,240,240,.55)!important;font-size:11.5px!important}

/* Sidebar controls */
html[dir] .top-actions .lang-link,html[dir] .top-actions .icon-btn{
  background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.12)!important;color:rgba(240,248,248,.92)!important;
  border-radius:10px!important;font-weight:600!important;font-size:13px!important;
}
html[dir] .top-actions .lang-link:hover,html[dir] .top-actions .icon-btn:hover{background:rgba(255,255,255,.12)!important;color:#fff!important}
html[dir] .profile strong{color:#fff!important;font-weight:600!important;font-size:13.5px!important}
html[dir] .profile small{color:rgba(225,240,240,.55)!important;font-size:11px!important}
html[dir] .avatar{width:38px!important;height:38px!important;background:linear-gradient(150deg,#E9CD95,var(--rx-gold))!important;color:#3A2A10!important;font-weight:700!important;box-shadow:0 0 0 2px rgba(255,255,255,.12)!important}
html[dir] .profile-menu{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:14px!important;box-shadow:var(--rx-shadow-pop)!important}
html[dir] .profile-menu-head{border-color:var(--rx-line-2)!important}
html[dir] .profile-menu-head strong{color:var(--rx-ink)!important}
html[dir] .profile-menu button{color:var(--rx-ink-2)!important;font-weight:600!important}
html[dir] .profile-menu button:hover{background:var(--rx-teal-wash)!important;color:var(--rx-teal-ink)!important}

/* =====================================================================
   Workspace flow: title → hero (overview) → portfolios → content
   ===================================================================== */
html[dir] .workspace{display:flex!important;flex-direction:column}
html[dir] #portfolioBoardPass3{display:contents!important}
html[dir] #portfolioBoardPass3::before,html[dir] #portfolioBoardPass3::after{content:none!important;display:none!important}
html[dir] #portfolioBoardPass3 > .hero-sky{display:none!important}
html[dir] #portfolioScreenCaption{order:1}
html[dir] .workspace > .page-head{order:2}
html[dir] #portfolioBoardPass3 > .advisor-hero-slider{order:3}
html[dir] #portfolioBoardPass3 > .portfolio-board-head{order:4}
html[dir] #portfolioBoardGrid{order:5}
html[dir] .workspace > .section{order:6}
html[dir] .workspace:not(:has(#section-overview.active)) .advisor-hero-slider{display:none!important}

/* Breadcrumb + page title */
html[dir] #portfolioScreenCaption{margin:0 0 6px!important;padding:0!important;font-size:12.5px!important;color:var(--rx-muted)!important;background:none!important;border:0!important;text-align:start}
html[dir] #portfolioScreenCaption *{font-size:inherit!important}
html[dir] #portfolioScreenCaption strong,html[dir] #portfolioScreenCaption b{color:var(--rx-teal-ink)!important;font-weight:600!important}
html[dir] .page-head{margin:0 0 24px!important;align-items:flex-end!important;gap:24px!important;padding:0!important;background:none!important;border:0!important}
html[dir] .page-head h1{font-family:var(--rx-display)!important;font-size:30px!important;line-height:1.25!important;font-weight:700!important;color:var(--rx-ink)!important;margin:0 0 6px!important}
html[dir] .page-head p{font-size:14px!important;color:var(--rx-muted)!important;margin:0!important;max-width:60ch}
html[dir] .market-chip{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:999px!important;padding:8px 16px 8px 14px!important;box-shadow:none!important;gap:10px!important}
html[dir] .market-chip span{font-size:11.5px!important;color:var(--rx-muted)!important}
html[dir] .market-chip strong{font-size:12.5px!important;color:var(--rx-ink)!important;font-weight:600!important}
html[dir] .status-dot{background:var(--rx-gain)!important;box-shadow:0 0 0 4px var(--rx-gain-wash)!important}

/* ---------- Hero slideshow: let the photography breathe ---------- */
html[dir] .advisor-hero-slider{
  height:340px!important;margin:0 0 28px!important;border-radius:var(--rx-r-lg)!important;border:0!important;
  box-shadow:0 30px 60px -34px rgba(8,34,40,.55)!important;background:var(--rx-night)!important;
}
html[dir] .advisor-hero-slide::after{background:linear-gradient(90deg,rgba(6,28,34,.92) 0%,rgba(6,28,34,.72) 32%,rgba(6,28,34,.2) 62%,rgba(6,28,34,0) 100%)!important}
html[dir="rtl"] .advisor-hero-slide::after{background:linear-gradient(270deg,rgba(6,28,34,.92) 0%,rgba(6,28,34,.72) 32%,rgba(6,28,34,.2) 62%,rgba(6,28,34,0) 100%)!important}
html[dir] .advisor-hero-content{width:min(50%,560px)!important;padding:40px 48px!important}
html[dir] .advisor-hero-title{font-family:var(--rx-display)!important;font-size:32px!important;font-weight:700!important;line-height:1.3!important;color:#fff!important}
html[dir] .advisor-hero-text{font-size:14.5px!important;line-height:1.75!important;color:rgba(235,245,245,.82)!important;margin-top:12px!important;max-width:46ch!important}
html[dir] .advisor-hero-action{
  margin-top:22px!important;min-height:42px!important;padding:0 20px!important;border-radius:999px!important;
  background:var(--rx-gold)!important;border:1px solid var(--rx-gold)!important;color:#2B1F0B!important;font-weight:600!important;font-size:13.5px!important;
}
html[dir] .advisor-hero-controls{inset-inline-end:20px!important}
html[dir] .advisor-hero-arrow{width:38px!important;height:38px!important;border-radius:50%!important;background:rgba(6,28,34,.35)!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;backdrop-filter:blur(8px)}
html[dir] .advisor-hero-arrow:hover{background:rgba(6,28,34,.6)!important}
html[dir] .advisor-hero-dots{bottom:22px!important;inset-inline-start:48px!important}

/* ---------- Portfolio switcher ---------- */
html[dir] #portfolioBoardPass3 > .portfolio-board-head{margin:0 0 12px!important;padding:0!important;display:flex!important;align-items:baseline}
html[dir] #portfolioBoardPass3 .portfolio-board-head h2{font-family:var(--rx-display)!important;font-size:17px!important;font-weight:600!important;color:var(--rx-ink)!important;margin:0!important}
html[dir] #portfolioBoardPass3 .portfolio-board-head p{font-size:13px!important;color:var(--rx-muted)!important;margin:2px 0 0!important}
html[dir] #portfolioBoardGrid{position:relative;z-index:20;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))!important;gap:12px!important;margin:0 0 30px!important}
html[dir] .portfolio-top-card{
  position:relative;min-height:0!important;padding:16px 18px!important;border-radius:var(--rx-r)!important;
  background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;box-shadow:none!important;
  color:var(--rx-ink)!important;cursor:pointer;transition:border-color .2s,background-color .2s!important;transform:none!important;
}
html[dir] .portfolio-top-card::before,html[dir] .portfolio-top-card::after{display:none!important}
html[dir] .portfolio-top-card:hover{border-color:color-mix(in srgb,var(--rx-teal) 45%,var(--rx-line))!important}
html[dir] .portfolio-top-card h3{font-family:var(--rx-display)!important;font-size:15px!important;font-weight:600!important;color:inherit!important;margin:0!important}
html[dir] .portfolio-top-card .pc-updated{font-size:11.5px!important;color:var(--rx-muted)!important}
html[dir] .portfolio-top-card .pc-value{font-family:var(--rx-font)!important;font-size:24px!important;font-weight:700!important;margin:14px 0 12px!important;color:inherit!important;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;letter-spacing:-.01em}
html[dir] .portfolio-top-card .pc-value small{font-size:12px!important;font-weight:500!important;color:var(--rx-muted)!important}
html[dir] .portfolio-top-card .pc-change{font-size:12px!important;font-weight:600!important;padding:2px 8px!important;border-radius:999px!important;margin-inline-start:auto}
html[dir] .portfolio-top-card .pc-change.gain{background:var(--rx-gain-wash)!important;color:var(--rx-gain)!important}
html[dir] .portfolio-top-card .pc-change.loss{background:var(--rx-loss-wash)!important;color:var(--rx-loss)!important}
html[dir] .portfolio-top-card .pc-metrics{border-top:1px solid var(--rx-line-2)!important;padding-top:10px!important;margin:0!important;gap:8px!important}
html[dir] .portfolio-top-card .pc-metrics span{font-size:11.5px!important;color:var(--rx-muted)!important}
html[dir] .portfolio-top-card .pc-metrics strong{font-size:14px!important;font-weight:600!important;color:inherit!important}
html[dir] .portfolio-top-card .pc-active{display:none!important}
html[dir] .portfolio-top-card .pc-more{color:var(--rx-muted)!important;background:transparent!important;border:0!important;border-radius:8px!important}
html[dir] .portfolio-top-card .pc-more:hover{background:var(--rx-sunken)!important;color:var(--rx-ink)!important}
/* the portfolio on screen — inverted into the night palette */
html[dir] .portfolio-top-card.active{
  background:linear-gradient(160deg,var(--rx-night-3) 0%,var(--rx-night) 100%)!important;border-color:var(--rx-night)!important;color:#fff!important;
  box-shadow:0 18px 36px -22px rgba(8,34,40,.7)!important;
}
html[dir] .portfolio-top-card.active::before{display:block!important;content:""!important;position:absolute;inset-block-start:16px;inset-inline-start:0;width:3px;height:22px;border-radius:0 3px 3px 0;background:var(--rx-gold)!important;opacity:1!important;top:16px!important;bottom:auto!important;left:auto;right:auto}
html[dir="rtl"] .portfolio-top-card.active::before{right:0!important;border-radius:3px 0 0 3px}
html[dir="ltr"] .portfolio-top-card.active::before{left:0!important}
html[dir] .portfolio-top-card.active :is(.pc-updated,.pc-metrics span,.pc-value small){color:rgba(225,240,240,.62)!important}
html[dir] .portfolio-top-card.active .pc-metrics{border-color:rgba(255,255,255,.1)!important}
html[dir] .portfolio-top-card.active .pc-change.gain{background:rgba(60,196,142,.16)!important;color:#7FE0B6!important}
html[dir] .portfolio-top-card.active .pc-change.loss{background:rgba(240,118,132,.16)!important;color:#FFA3AE!important}
html[dir] .portfolio-top-card.active .pc-more{color:rgba(255,255,255,.7)!important}
html[dir] .portfolio-top-card.active .pc-more:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
html[dir] .pc-menu{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:12px!important;box-shadow:var(--rx-shadow-pop)!important;color:var(--rx-ink)!important}
html[dir] .pc-menu button{color:var(--rx-ink-2)!important}
html[dir] .pc-menu button:hover{background:var(--rx-sunken)!important}
html[dir] .pc-menu button.danger{color:var(--rx-loss)!important}
html[dir] .portfolio-top-add{
  min-height:0!important;border-radius:var(--rx-r)!important;border:1.5px dashed color-mix(in srgb,var(--rx-teal) 35%,var(--rx-line))!important;
  background:transparent!important;box-shadow:none!important;color:var(--rx-teal-ink)!important;transition:background-color .2s!important;
}
html[dir] .portfolio-top-add:hover{background:var(--rx-teal-wash)!important}
html[dir] .portfolio-top-add b{width:40px!important;height:40px!important;border-radius:50%!important;background:var(--rx-teal-wash)!important;color:var(--rx-teal-ink)!important;font-size:22px!important;box-shadow:none!important}
html[dir] .portfolio-top-add strong{font-size:14px!important;font-weight:600!important;color:var(--rx-teal-ink)!important}

/* =====================================================================
   Surfaces
   ===================================================================== */
html[dir] .card,html[dir] .panel{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:var(--rx-r-lg)!important;box-shadow:var(--rx-shadow)!important}
html[dir] .panel,html[dir] .analytics-card{padding:22px!important}
html[dir] .grid{gap:18px!important}
html[dir] .panel-head{margin-bottom:18px!important;align-items:flex-start!important}
html[dir] .panel-head h2{font-family:var(--rx-display)!important;font-size:16px!important;font-weight:600!important;color:var(--rx-ink)!important;margin:0 0 3px!important}
html[dir] .panel-head span{font-size:12.5px!important;color:var(--rx-muted)!important}
html[dir] .section{margin-bottom:0}
html[dir] .section > .grid,html[dir] .section > .card,html[dir] .section > div{margin-bottom:18px}

/* Section intro: page title already names the section */
html[dir] .section-intro > div:first-child:has(> h2){display:none!important}
html[dir] .section-intro .portfolio-context-badge{display:none!important}
html[dir] .section-intro:not(:has(.tx-io-actions,.action-btn,button)){display:none!important}
html[dir] .section-intro{justify-content:flex-end!important;margin:0 0 14px!important;padding:0!important;background:none!important;border:0!important;min-height:0!important}

/* ---------- Overview: quick action bar ---------- */
html[dir] .overview-action-row{
  background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:var(--rx-r)!important;box-shadow:none!important;
  padding:12px 14px 12px 16px!important;margin-bottom:18px!important;
}
html[dir] .overview-action-row .quick-icon{background:var(--rx-teal-wash)!important;color:var(--rx-teal-ink)!important;border-radius:10px!important;box-shadow:none!important}
html[dir] .overview-action-copy strong{font-family:var(--rx-display);font-size:14.5px!important;font-weight:600!important;color:var(--rx-ink)!important}
html[dir] .overview-action-copy small,html[dir] .overview-action-copy span span{color:var(--rx-muted)!important;font-size:12.5px!important}
html[dir] .tx-launch-btn,html[dir] .action-btn,html[dir] .tx-io-btn.primary,html[dir] .auth-primary{
  background:var(--rx-teal-ink)!important;border:1px solid var(--rx-teal-ink)!important;color:#fff!important;border-radius:10px!important;
  box-shadow:none!important;font-weight:600!important;background-image:none!important;
}
html[dir] .tx-launch-btn:hover,html[dir] .action-btn:hover,html[dir] .tx-io-btn.primary:hover,html[dir] .auth-primary:hover{background:var(--rx-night-3)!important;border-color:var(--rx-night-3)!important}
html[data-theme="dark"][dir] :is(.tx-launch-btn,.action-btn,.tx-io-btn.primary,.auth-primary){background:var(--rx-teal)!important;border-color:var(--rx-teal)!important;color:#04191C!important}
html[dir] .tx-launch-menu{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:14px!important;box-shadow:var(--rx-shadow-pop)!important}

/* ---------- Key figures: one ledger instead of four cards ---------- */
html[dir] .grid.stats{
  gap:0!important;background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:var(--rx-r-lg);overflow:hidden;margin-bottom:18px!important;
}
html[dir] .grid.stats > .card.stat{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:22px 24px!important;overflow:visible}
html[dir] .grid.stats > .card.stat + .card.stat{border-inline-start:1px solid var(--rx-line-2)!important}
html[dir] .grid.stats > .card.stat::before,html[dir] .grid.stats > .card.stat::after{display:none!important}
html[dir] .stat .stat-icon{width:34px!important;height:34px!important;border-radius:10px!important;background:var(--rx-sunken)!important;color:var(--rx-teal-ink)!important;border:1px solid var(--rx-line-2)!important;box-shadow:none!important;font-size:15px!important}
html[dir] .stat .stat-label{font-size:13px!important;font-weight:500!important;color:var(--rx-muted)!important}
html[dir] .stat .stat-value{font-family:var(--rx-font)!important;font-size:27px!important;font-weight:700!important;letter-spacing:-.015em;margin-top:8px!important;line-height:1.2!important}
html[dir] .stat .stat-value small{font-size:12px!important;font-weight:500!important}
html[dir] .stat .stat-detail{margin-top:14px!important;padding-top:12px!important;border-top:1px dashed var(--rx-line)!important;font-size:12px!important;color:var(--rx-muted)!important}
html[dir] .stat .stat-detail b{font-weight:600!important}
html[dir] .grid.stats > .card.stat:first-child .stat-value{color:var(--rx-ink)!important}
@media (max-width:1250px){
  html[dir] .grid.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[dir] .grid.stats > .card.stat:nth-child(3){border-inline-start:0!important}
  html[dir] .grid.stats > .card.stat:nth-child(n+3){border-top:1px solid var(--rx-line-2)!important}
}
@media (max-width:560px){
  html[dir] .grid.stats{grid-template-columns:1fr!important}
  html[dir] .grid.stats > .card.stat{border-inline-start:0!important}
  html[dir] .grid.stats > .card.stat + .card.stat{border-top:1px solid var(--rx-line-2)!important}
}

/* Summary tiles on the other sections share the ledger feel */
html[dir] :is(.holdings-summary,.tx-summary){gap:0!important;background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:var(--rx-r-lg);overflow:hidden}
html[dir] :is(.holdings-summary,.tx-summary) > .card{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:20px 22px!important}
html[dir] :is(.holdings-summary,.tx-summary) > .card + .card{border-inline-start:1px solid var(--rx-line-2)!important}
html[dir] :is(.holdings-summary,.tx-summary) > .card::before,html[dir] :is(.holdings-summary,.tx-summary) > .card::after{display:none!important}
html[dir] :is(.holdings-summary,.tx-summary) > .card span{font-size:13px!important;color:var(--rx-muted)!important;font-weight:500!important}
html[dir] :is(.holdings-summary,.tx-summary) > .card strong{font-size:24px!important;font-weight:700!important;letter-spacing:-.01em;margin-top:6px!important;display:block}
html[dir] .metric-strip{gap:0!important;background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:var(--rx-r-lg);overflow:hidden}
html[dir] .metric-strip .metric-tile{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:20px 22px!important}
html[dir] .metric-strip .metric-tile + .metric-tile{border-inline-start:1px solid var(--rx-line-2)!important}
html[dir] .metric-strip .metric-tile span{font-size:13px!important;color:var(--rx-muted)!important}
html[dir] .metric-strip .metric-tile strong{font-size:24px!important;font-weight:700!important}
@media (max-width:900px){
  html[dir] :is(.holdings-summary,.tx-summary,.metric-strip){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[dir] :is(.holdings-summary,.tx-summary) > .card:nth-child(3),html[dir] .metric-strip .metric-tile:nth-child(3){border-inline-start:0!important}
  html[dir] :is(.holdings-summary,.tx-summary) > .card:nth-child(n+3),html[dir] .metric-strip .metric-tile:nth-child(n+3){border-top:1px solid var(--rx-line-2)!important}
}

/* ---------- Controls: segmented, chips, tabs ---------- */
html[dir] .segmented{background:var(--rx-sunken)!important;border:1px solid var(--rx-line-2)!important;border-radius:10px!important;padding:3px!important}
html[dir] .segmented button{border-radius:7px!important;font-size:12.5px!important;font-weight:500!important;color:var(--rx-muted)!important;padding:6px 12px!important}
html[dir] .segmented button.active{background:var(--rx-surface)!important;color:var(--rx-ink)!important;font-weight:600!important;box-shadow:0 1px 2px rgba(16,37,44,.12)!important}
html[dir] .range-tabs{background:transparent!important;gap:2px!important}
html[dir] .range-btn{border-radius:8px!important;font-size:12px!important;font-weight:500!important;color:var(--rx-muted)!important;background:transparent!important;border:0!important;padding:5px 10px!important}
html[dir] .range-btn:hover{color:var(--rx-ink)!important;background:var(--rx-sunken)!important}
html[dir] .range-btn.active{background:var(--rx-teal-wash)!important;color:var(--rx-teal-ink)!important;font-weight:600!important;box-shadow:none!important}
html[dir] .chip,html[dir] .tx-io-btn:not(.primary),html[dir] .row-action{
  background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;color:var(--rx-ink-2)!important;border-radius:999px!important;
  font-size:12.5px!important;font-weight:500!important;box-shadow:none!important;
}
html[dir] .chip:hover,html[dir] .tx-io-btn:not(.primary):hover,html[dir] .row-action:hover{border-color:color-mix(in srgb,var(--rx-teal) 40%,var(--rx-line))!important;color:var(--rx-ink)!important}
html[dir] .chip.active{background:var(--rx-night)!important;border-color:var(--rx-night)!important;color:#fff!important}
html[data-theme="dark"][dir] .chip.active{background:var(--rx-teal-wash)!important;border-color:var(--rx-teal)!important;color:var(--rx-teal-ink)!important}
html[dir] .search-box{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:999px!important;box-shadow:none!important;color:var(--rx-muted)!important}
html[dir] .search-box:focus-within{border-color:var(--rx-teal)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--rx-teal) 16%,transparent)!important}
html[dir] .search-box input{background:transparent!important;color:var(--rx-ink)!important}

html[dir] :is(.holdings-tabs,.tx-category-tabs){
  display:flex!important;gap:4px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--rx-line)!important;
  border-radius:0!important;padding:0!important;box-shadow:none!important;margin-bottom:18px!important;overflow-x:auto;scrollbar-width:none;
}
html[dir] :is(.holdings-tab,.tx-category-tab){
  position:relative;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:12px 14px!important;font-size:13.5px!important;font-weight:500!important;color:var(--rx-muted)!important;white-space:nowrap;min-height:0!important;
}
html[dir] :is(.holdings-tab,.tx-category-tab):hover{color:var(--rx-ink)!important}
html[dir] :is(.holdings-tab,.tx-category-tab).active{color:var(--rx-teal-ink)!important;font-weight:600!important;background:transparent!important}
html[dir] :is(.holdings-tab,.tx-category-tab)::after{content:""!important;position:absolute!important;inset-inline:10px!important;bottom:-1px!important;top:auto!important;height:2px!important;width:auto!important;border-radius:2px 2px 0 0;background:var(--rx-teal)!important;transform:scaleX(0);transition:transform .2s;display:block!important}
html[dir] :is(.holdings-tab,.tx-category-tab).active::after{transform:scaleX(1)}
html[dir] .tx-category-shell{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html[dir] .tx-category-tab{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px}
html[dir] .tx-category-tab > span{font-size:11px!important;background:var(--rx-sunken)!important;color:var(--rx-muted)!important;border-radius:999px!important;min-width:22px;padding:1px 7px!important;border:0!important;margin:0!important}
html[dir] .tx-category-tab.active > span{background:var(--rx-teal-wash)!important;color:var(--rx-teal-ink)!important}
html[dir] .tx-category-summary{font-size:12.5px!important;color:var(--rx-muted)!important;padding:0 2px!important;margin-top:-6px}

/* ---------- Tables ---------- */
html[dir] .table-wrap{border-radius:var(--rx-r-lg)!important;overflow:auto!important;padding:0!important}
html[dir] :is(.data-table,.analytics-table,.compact-table) th{
  background:var(--rx-sunken)!important;color:var(--rx-muted)!important;font-size:12px!important;font-weight:600!important;
  border-bottom:1px solid var(--rx-line)!important;padding:12px 14px!important;white-space:nowrap;position:sticky;top:0;z-index:2;letter-spacing:0;text-transform:none!important
}
html[dir] :is(.data-table,.analytics-table,.compact-table) td{border-bottom:1px solid var(--rx-line-2)!important;padding:14px!important;font-size:13.5px!important;color:var(--rx-ink-2)}
html[dir] :is(.data-table,.analytics-table) tbody tr:is(.holding-main,.tx-main,:not([class])):hover td{background:color-mix(in srgb,var(--rx-teal) 4%,var(--rx-surface))!important}
html[dir] .symbol-cell strong,html[dir] .data-table td strong{color:var(--rx-ink)!important;font-weight:600!important}
html[dir] .symbol-cell small{color:var(--rx-muted)!important;font-size:11.5px!important}
html[dir] .weight .bar{background:var(--rx-line-2)!important;border-radius:99px!important;height:5px!important}
html[dir] .weight .bar i{background:var(--rx-teal)!important;border-radius:99px!important}
html[dir] .type-badge{border-radius:999px!important;font-size:11.5px!important;font-weight:600!important;padding:3px 10px!important;border:0!important}
html[dir] :is(.position-detail,.tx-detail-cell){background:var(--rx-sunken)!important}
html[dir] .detail-box{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:var(--rx-r)!important;box-shadow:none!important}
html[dir] .pagination{border-top:1px solid var(--rx-line-2)!important;padding:12px 16px!important;color:var(--rx-muted)!important;font-size:12.5px!important}
html[dir] .pagination-controls button{border-radius:8px!important;border:1px solid var(--rx-line)!important;background:var(--rx-surface)!important;color:var(--rx-ink-2)!important;min-width:32px}
html[dir] .pagination-controls button.active{background:var(--rx-night)!important;border-color:var(--rx-night)!important;color:#fff!important}
html[data-theme="dark"][dir] .pagination-controls button.active{background:var(--rx-teal)!important;color:#04191C!important}

/* ---------- Overview panels ---------- */
html[dir] .chart-summary strong{font-family:var(--rx-font)!important;font-size:26px!important;font-weight:700!important;color:var(--rx-ink)!important;letter-spacing:-.015em}
html[dir] .live-chart{border-radius:var(--rx-r)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--rx-teal) 5%,var(--rx-surface)),var(--rx-surface))!important;border:1px solid var(--rx-line-2)!important}
html[dir] .summary-strip{border-top:1px solid var(--rx-line-2)!important;background:transparent!important;border-radius:0!important;padding-top:16px!important;margin-top:16px!important}
html[dir] .summary-strip span,html[dir] .context-item span,html[dir] .dividend-summary span{font-size:12px!important;color:var(--rx-muted)!important}
html[dir] .summary-strip strong{font-size:15px!important;font-weight:600!important;color:var(--rx-ink)!important}
html[dir] :is(.context-item,.event-card,.mini-list,.risk-item,.profitability-item,.dividend-summary > div,.notice){background:var(--rx-sunken)!important;border:1px solid var(--rx-line-2)!important;border-radius:var(--rx-r)!important;box-shadow:none!important}
html[dir] .context-item strong{font-size:15px!important;font-weight:600!important;color:var(--rx-ink)!important}
html[dir] .dividend-summary strong{font-size:18px!important;font-weight:700!important}
html[dir] .donut-center strong{font-family:var(--rx-font)!important;font-size:20px!important;color:var(--rx-ink)!important}
html[dir] .event-date{background:var(--rx-gold-wash)!important;color:#8A6420!important;border-radius:12px!important;border:0!important}
html[data-theme="dark"][dir] .event-date{color:var(--rx-gold)!important}
html[dir] .event-date strong{font-family:var(--rx-display)!important;color:inherit!important}
html[dir] .stock-row{border-color:var(--rx-line-2)!important}
html[dir] .risk-scale{background:var(--rx-line)!important}
html[dir] .risk-scale i{background:var(--rx-teal)!important;box-shadow:0 0 0 3px var(--rx-surface)!important}

/* ---------- Modals & popovers ---------- */
html[dir] :is(.tx-add-backdrop,.portfolios-backdrop,.hux-popover-backdrop,.split-backdrop,.tx-import-backdrop){background:rgba(6,24,29,.5)!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.hux-popover-card,.split-dialog,.tx-import-dialog){
  background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:20px!important;box-shadow:var(--rx-shadow-pop)!important;color:var(--rx-ink)!important
}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog) :is(h2,h3){font-family:var(--rx-display)!important}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card) :is(input,select,textarea){
  border-radius:10px!important;border:1px solid var(--rx-line)!important;background:var(--rx-surface)!important;color:var(--rx-ink)!important
}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card) :is(input,select,textarea):focus{border-color:var(--rx-teal)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--rx-teal) 16%,transparent)!important;outline:0}
html[dir] :is(.app-toast,.tx-toast){background:var(--rx-night)!important;color:#fff!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:var(--rx-shadow-pop)!important}
html[dir] .to-top{background:var(--rx-night)!important;color:#fff!important;border:0!important;border-radius:12px!important;box-shadow:var(--rx-shadow-pop)!important}
html[dir] .mobile-nav-popover{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;box-shadow:var(--rx-shadow-pop)!important}

/* =====================================================================
   Sign-in
   ===================================================================== */
html[dir] .auth-screen{background:var(--rx-canvas)!important}
html[dir] .auth-shell{width:min(1120px,100%)!important;gap:0!important;border-radius:24px;overflow:hidden;box-shadow:var(--rx-shadow-pop);background:var(--rx-surface)}
html[dir] .auth-showcase{border-radius:0!important;background:var(--rx-night) var(--rx-auth-img,none) center/cover no-repeat!important;position:relative;isolation:isolate}
html[dir] .auth-showcase::before{content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;border-radius:0!important;filter:none!important;width:auto!important;height:auto!important;background:linear-gradient(180deg,rgba(6,28,34,.78) 0%,rgba(6,28,34,.15) 40%,rgba(6,28,34,.2) 60%,rgba(6,28,34,.92) 100%)!important;display:block!important;opacity:1!important}
html[dir] .auth-showcase::after{display:none!important}
html[dir] .auth-feature{background:rgba(6,28,34,.5)!important;border:1px solid rgba(255,255,255,.12)!important;backdrop-filter:blur(10px);border-radius:14px!important}
html[dir] .auth-card{border-radius:0!important;border:0!important;box-shadow:none!important;background:var(--rx-surface)!important;padding:44px 48px!important}
html[dir] .auth-card-head h1{font-family:var(--rx-display)!important;font-size:30px!important;font-weight:700!important;color:var(--rx-ink)!important}
html[dir] .auth-card-head p{color:var(--rx-muted)!important}
html[dir] .auth-lock{display:none!important}
html[dir] .auth-panel > h2{display:none!important}
html[dir] .auth-panel > p{color:var(--rx-muted)!important;font-size:13.5px!important}
html[dir] .auth-tabs{background:var(--rx-sunken)!important;border:1px solid var(--rx-line-2)!important;border-radius:12px!important}
html[dir] .auth-tab.active{background:var(--rx-surface)!important;color:var(--rx-ink)!important;box-shadow:0 1px 2px rgba(16,37,44,.12)!important}
html[dir] .auth-input-wrap,html[dir] .auth-input{border-radius:12px!important;border-color:var(--rx-line)!important;background:var(--rx-surface)!important}
html[dir] .auth-primary{min-height:48px;border-radius:12px!important;font-size:15px!important}
html[dir] .auth-lang,html[dir] .auth-theme{border-radius:10px!important;border:1px solid var(--rx-line)!important;background:var(--rx-surface)!important;color:var(--rx-ink-2)!important}
html[dir] a[class*="forgot"],html[dir] .auth-row a,html[dir] .auth-row button{color:var(--rx-teal-ink)!important}

/* ---------- Mobile ---------- */
@media (max-width:700px){
  html[dir] .page-head{flex-direction:column!important;align-items:flex-start!important;gap:14px!important}
  html[dir] .page-head h1{font-size:24px!important}
  html[dir] .advisor-hero-slider{height:260px!important;border-radius:16px!important}
  html[dir] .advisor-hero-content{width:88%!important;padding:24px 22px!important}
  html[dir] .advisor-hero-title{font-size:22px!important}
  html[dir] .advisor-hero-text{font-size:13px!important}
  html[dir] .advisor-hero-dots{inset-inline-start:22px!important;bottom:16px!important}
  html[dir] #portfolioBoardGrid{grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:minmax(240px,78%);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none}
  html[dir] #portfolioBoardGrid > *{scroll-snap-align:start}
  html[dir] .panel,html[dir] .analytics-card{padding:18px!important}
  html[dir] .auth-card{padding:28px 22px!important}
  html[dir] .auth-shell{border-radius:20px}
}
@media (prefers-reduced-motion:reduce){html[dir] *{transition-duration:.01ms!important}}

/* ---------- Fixes after review ---------- */
html[dir] .tx-category-tab > strong{font-size:13.5px!important;font-weight:inherit!important;color:inherit!important}
html[dir] .overview-grid{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr)!important}
@media (max-width:1320px){html[dir] .overview-grid{grid-template-columns:1fr!important}}
html[dir] .allocation-shell{align-items:center}
html[dir] .context-item strong{white-space:nowrap}
html[dir] .toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px 16px!important;margin-bottom:14px!important}
html[dir] :is(.toolbar-right,.table-actions,.hux-tools){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;width:auto}
html[dir] :is(.chip,.hux-select,.hux-toggle,.hux-btn,.tx-io-btn){white-space:nowrap!important;height:36px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;gap:6px}
html[dir] :is(.hux-select,.hux-toggle,.hux-btn){border:1px solid var(--rx-line)!important;border-radius:999px!important;background:var(--rx-surface)!important;color:var(--rx-ink-2)!important;font-size:12.5px!important;font-weight:500!important;box-shadow:none!important}
html[dir] .hux-select{padding-inline-end:30px!important}
html[dir] .hux-toggle input:checked + .hux-switch{background:var(--rx-teal)!important}
html[dir] .search-box{height:38px;min-width:240px}
html[dir] .section-intro .tx-io-actions{display:flex;gap:8px}
html[dir] .tx-export-pop,html[dir] .hux-menu{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:12px!important;box-shadow:var(--rx-shadow-pop)!important}
html[dir] .holding-view-note{color:var(--rx-muted)!important;font-size:13px!important;margin:0 0 12px!important}
html[dir] .filter-group{flex-wrap:wrap;gap:8px!important}
html[dir] .tx-io-btn{font-size:13px!important;font-weight:600!important;border-radius:10px!important}
html[dir] .stat .stat-detail > *{white-space:nowrap}
html[dir] .stat .stat-detail{flex-wrap:wrap;gap:4px 10px}
@media (max-width:700px){
  html[dir] .advisor-hero-controls{top:auto!important;bottom:10px!important;transform:none!important;flex-direction:row!important;gap:6px!important}
  html[dir] .advisor-hero-arrow{width:32px!important;height:32px!important}
  html[dir] .advisor-hero-content{width:100%!important;padding:22px 22px 56px!important;justify-content:flex-start!important}
  html[dir] .advisor-hero-dots{bottom:24px!important}
  html[dir] .grid.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[dir] .grid.stats > .card.stat{padding:16px!important}
  html[dir] .grid.stats > .card.stat:nth-child(2),html[dir] .grid.stats > .card.stat:nth-child(4){border-inline-start:1px solid var(--rx-line-2)!important}
  html[dir] .grid.stats > .card.stat:nth-child(3){border-inline-start:0!important}
  html[dir] .grid.stats > .card.stat:nth-child(2){border-top:0!important}
  html[dir] .stat .stat-value{font-size:20px!important}
  html[dir] .stat .stat-icon{display:none!important}
  html[dir] .stat .stat-detail{font-size:11px!important}
  html[dir] :is(.holdings-summary,.tx-summary) > .card strong,html[dir] .metric-strip .metric-tile strong{font-size:19px!important}
  html[dir] :is(.holdings-summary,.tx-summary) > .card,html[dir] .metric-strip .metric-tile{padding:16px!important}
  html[dir] .search-box{min-width:0;width:100%}
}
html[data-theme="dark"][dir] .portfolio-top-card.active{border-color:color-mix(in srgb,var(--rx-teal) 45%,transparent)!important}
html[dir] :is(.tx-add-modal,.portfolios-modal,.hux-popover,.split-modal,.tx-import-modal){z-index:2000!important}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card) button{font-size:13px!important}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card) label{font-size:12.5px!important}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card) :is(input,select){min-height:42px}
html[dir] .analytics-card .panel-head{flex-wrap:wrap!important;gap:4px 14px!important}
html[dir] .analytics-card.span-4 .panel-head{flex-direction:column!important}

/* ---------- Sidebar skyline, animated ---------- */
html[dir] .rx-skyline{display:none}
@media (min-width:1100px){
  html[dir] .topbar:has(.rx-skyline)::before{display:none!important}
  html[dir] .rx-skyline{display:block;position:absolute;inset-inline:0;bottom:168px;height:210px;pointer-events:none;z-index:0}
  html[dir="ltr"] .rx-skyline{transform:scaleX(-1)}
  html[dir] .rx-skyline svg{display:block;width:100%;height:100%;overflow:visible}
}
/* market line draws itself, rests, then fades — a 16s breath */
.rx-skyline .rx-tick{stroke-dasharray:1;stroke-dashoffset:1;stroke-opacity:.45;animation:rxTick 16s cubic-bezier(.45,0,.2,1) infinite}
.rx-skyline .rx-tick-area{opacity:0;animation:rxTickArea 16s ease-in-out infinite}
@keyframes rxTick{0%{stroke-dashoffset:1;opacity:0}6%{opacity:1}40%{stroke-dashoffset:0}82%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@keyframes rxTickArea{0%,30%{opacity:0}50%,80%{opacity:1}100%{opacity:0}}
/* tower beacons breathe */
.rx-skyline .rx-halo{transform-box:fill-box;transform-origin:center;opacity:.35;animation:rxBeacon 3.6s ease-in-out infinite}
.rx-skyline .rx-halo-2{animation-delay:-1.8s}
@keyframes rxBeacon{0%,100%{transform:scale(.6);opacity:.12}50%{transform:scale(1.25);opacity:.4}}
/* windows flicker on and off at their own pace */
.rx-skyline .rx-win{opacity:.2;animation-name:rxWin;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
@keyframes rxWin{0%,100%{opacity:.15}45%,60%{opacity:.85}}
/* a slow light passes across the city */
.rx-skyline .rx-sweep{animation:rxSweep 11s cubic-bezier(.5,0,.5,1) infinite}
@keyframes rxSweep{0%{transform:translateX(0)}55%,100%{transform:translateX(340px)}}
@media (prefers-reduced-motion:reduce){
  .rx-skyline *{animation:none!important}
  .rx-skyline .rx-tick{stroke-dashoffset:0;opacity:.8}
  .rx-skyline .rx-tick-area{opacity:.8}
  .rx-skyline .rx-win{opacity:.55}
  .rx-skyline .rx-sweep{display:none}
}


/* ==== block 38 id="studioRefinementPass30" ==== */

/* =====================================================================
   Studio refinement and functional-preservation polish
   Visual-only overrides. Existing markup, IDs, data hooks and workflows
   remain untouched.
   ===================================================================== */

/* --- Rhythm & type: keep Arabic and English equally composed --- */
html[dir] body{overflow-wrap:break-word}
html[dir="rtl"] body{line-height:1.72}
html[dir="ltr"] body{line-height:1.58}
html[dir] :is(.page-head,.panel-head,.section-intro,.portfolio-board-head) :is(h1,h2,h3,p,span){text-wrap:pretty}
html[dir] :is(.stat-value,.pc-value,.portfolio-option-value,.tx-amount,.market-chip strong){font-variant-numeric:tabular-nums lining-nums}

/* --- Make the active portfolio unmistakable without adding copy --- */
html[dir] .portfolio-top-card{isolation:isolate;overflow:visible!important}
html[dir] .portfolio-top-card.active{
  border-color:color-mix(in srgb,var(--rx-teal) 48%,var(--rx-night))!important;
  box-shadow:0 18px 38px -26px rgba(5,28,34,.82),inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
html[dir] .portfolio-top-card.active::after{
  content:""!important;display:block!important;position:absolute!important;z-index:2!important;
  inset-block-start:14px!important;inset-inline-end:14px!important;width:8px!important;height:8px!important;border-radius:50%!important;
  background:var(--rx-gold)!important;box-shadow:0 0 0 4px rgba(210,165,90,.13)!important;pointer-events:none!important;
}
html[dir] .portfolio-top-card:focus-visible{outline:2px solid var(--rx-teal)!important;outline-offset:3px!important}
html[dir] #portfolioBoardGrid{scroll-margin-top:18px}

/* --- Cards: one elevation language across all pages --- */
html[dir] :is(.card,.panel,.analytics-card,.portfolio-card,.detail-box,.event-card,.context-item){transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
html[dir] :is(.panel,.analytics-card,.portfolio-card):hover{border-color:color-mix(in srgb,var(--rx-teal) 18%,var(--rx-line))!important}
html[dir] .analytics-card{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:var(--rx-r-lg)!important;box-shadow:var(--rx-shadow)!important}

/* --- Tables: cleaner frame, safer horizontal overflow, consistent details --- */
html[dir] :is(.table-wrap,.portfolio-holdings-wrap){background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;box-shadow:none!important;overscroll-behavior-inline:contain}
html[dir] :is(.data-table,.analytics-table,.compact-table,.portfolio-holdings-table){background:var(--rx-surface)!important}
html[dir] :is(.data-table,.analytics-table,.compact-table,.portfolio-holdings-table) tbody tr:last-child > td{border-bottom:0!important}
html[dir] :is(.tx-detail-row,.holding-detail-row,.position-detail-row) > td,
html[dir] :is(.tx-detail-cell,.position-detail){background:var(--rx-sunken)!important;color:var(--rx-ink-2)!important}
html[dir] .tx-detail-grid > div{background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;color:var(--rx-ink)!important}
html[dir] .portfolio-holdings-table th{background:var(--rx-sunken)!important;color:var(--rx-muted)!important;border-color:var(--rx-line)!important}
html[dir] .portfolio-holdings-table td{border-color:var(--rx-line-2)!important;color:var(--rx-ink-2)!important}

/* --- Inputs and menus: remove remaining legacy white surfaces --- */
html[dir] :is(.tx-input,.tx-select,.portfolio-mini-input,.hux-select,input[type="text"],input[type="number"],input[type="date"],input[type="search"],textarea,select){color-scheme:light}
html[data-theme="dark"][dir] :is(.tx-input,.tx-select,.portfolio-mini-input,.hux-select,input[type="text"],input[type="number"],input[type="date"],input[type="search"],textarea,select){color-scheme:dark}
html[dir] :is(.portfolio-switch-menu,.portfolio-card-menu,.pc-menu,.profile-menu,.tx-export-pop,.hux-menu,.mobile-nav-popover){background:var(--rx-surface)!important;border-color:var(--rx-line)!important;color:var(--rx-ink)!important}
html[dir] :is(.portfolio-option,.portfolio-card-menu button,.pc-menu button,.profile-menu button,.hux-menu button){color:var(--rx-ink-2)!important}
html[dir] :is(.portfolio-option,.portfolio-card-menu button,.pc-menu button,.profile-menu button,.hux-menu button):hover{background:var(--rx-sunken)!important;color:var(--rx-ink)!important}

/* --- Dialog system: same shell, scroll behavior and footer language --- */
html[dir] :is(.tx-add-modal,.portfolios-modal,.split-modal,.tx-import-modal,.hux-popover){padding:clamp(12px,3vw,28px)!important}
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card){
  max-height:calc(100dvh - 32px)!important;overflow:auto!important;overscroll-behavior:contain;
  scrollbar-gutter:stable;border-radius:20px!important;
}
html[dir] :is(.tx-add-head,.portfolios-head,.split-head,.tx-import-head){position:sticky;top:0;z-index:3;background:var(--rx-surface)!important;padding-bottom:12px!important;border-bottom:1px solid var(--rx-line-2)!important}
html[dir] :is(.tx-close,.portfolio-close,.split-close,.tx-import-close){background:transparent!important;color:var(--rx-muted)!important;border-color:var(--rx-line)!important}
html[dir] :is(.tx-close,.portfolio-close,.split-close,.tx-import-close):hover{background:var(--rx-sunken)!important;color:var(--rx-ink)!important}
html[dir] :is(.tx-modal-actions,.portfolio-editor-actions,.split-actions,.tx-import-actions){border-color:var(--rx-line-2)!important}

/* --- Buttons: one clear primary/secondary hierarchy --- */
html[dir] :is(.tx-launch-btn,.action-btn,.portfolio-manage-btn,.portfolio-add-btn,.tx-io-btn.primary,.auth-primary){
  box-shadow:none!important;transition:transform .14s ease,filter .14s ease,background-color .14s ease!important;
}
html[dir] :is(.tx-launch-btn,.action-btn,.portfolio-manage-btn,.portfolio-add-btn,.tx-io-btn.primary,.auth-primary):hover{filter:brightness(1.035);transform:translateY(-1px)}
html[dir] :is(.tx-launch-btn,.action-btn,.portfolio-manage-btn,.portfolio-add-btn,.tx-io-btn.primary,.auth-primary):active{transform:translateY(0)}

/* --- Hero + portfolio header order: slideshow first, portfolio heading immediately after --- */
html[dir] #portfolioBoardPass3 > .advisor-hero-slider{order:3!important}
html[dir] #portfolioBoardPass3 > .portfolio-board-head{order:4!important}
html[dir] #portfolioBoardGrid{order:5!important}
html[dir] #portfolioBoardPass3 > .portfolio-board-head{padding-block-start:1px!important}

/* --- Dark-mode audit: neutralize legacy hard-coded light patches --- */
html[data-theme="dark"][dir] :is(.tx-detail-row,.tx-detail-grid div,.metric-tile,.portfolio-holdings-wrap,.table-wrap,.pagination,.chart-shell,.live-chart,.search-box,.market-chip){border-color:var(--rx-line)!important}
html[data-theme="dark"][dir] :is(.tx-detail-grid div,.metric-tile,.portfolio-holdings-wrap,.table-wrap,.pagination){background:var(--rx-surface)!important;color:var(--rx-ink-2)!important}
html[data-theme="dark"][dir] :is(.chart-shell,.live-chart){background:linear-gradient(180deg,color-mix(in srgb,var(--rx-teal) 5%,var(--rx-surface)),var(--rx-surface))!important}
html[data-theme="dark"][dir] .portfolio-holdings-table th{background:var(--rx-sunken)!important;color:var(--rx-muted)!important}

/* --- Tablet / mobile: predictable navigation and touch targets --- */
@media (max-width:1099.98px){
  html[dir] .topbar{position:sticky!important;top:0!important;z-index:1200!important}
  html[dir] .topbar-inner{min-height:66px!important}
}
@media (max-width:860px){
  html[dir] .brand-text span{display:none!important}
  html[dir] .top-actions{gap:7px!important}
  html[dir] :is(.lang-link,.icon-btn,.mobile-menu){min-width:40px!important;min-height:40px!important}
  html[dir] .mobile-nav-popover{max-height:min(70dvh,520px);overflow:auto}
}
@media (max-width:700px){
  html[dir] .workspace{padding-inline:14px!important;padding-top:16px!important}
  html[dir] .page-head{margin-bottom:18px!important}
  html[dir] .page-head h1{font-size:22px!important;line-height:1.3!important}
  html[dir] .market-chip{max-width:100%;white-space:normal!important}
  html[dir] .advisor-hero-slider{height:248px!important;margin-bottom:20px!important}
  html[dir] .advisor-hero-content{padding:20px 18px 58px!important}
  html[dir] .advisor-hero-title{font-size:20px!important;line-height:1.34!important}
  html[dir] .advisor-hero-text{font-size:12.5px!important;line-height:1.65!important;-webkit-line-clamp:4!important}
  html[dir] #portfolioBoardPass3 > .portfolio-board-head{margin-bottom:10px!important}
  html[dir] #portfolioBoardGrid{grid-auto-columns:minmax(250px,88%)!important;margin-bottom:22px!important;scroll-padding-inline:2px}
  html[dir] .portfolio-top-card{padding:15px 16px!important}
  html[dir] .portfolio-top-card .pc-value{font-size:21px!important;margin:12px 0 10px!important}
  html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card){max-height:calc(100dvh - 20px)!important;border-radius:16px!important}
  html[dir] .tx-form{grid-template-columns:1fr!important}
  html[dir] .tx-field.full{grid-column:auto!important}
  html[dir] :is(.toolbar-right,.table-actions,.hux-tools,.tx-io-actions){width:100%!important}
  html[dir] :is(.toolbar-right,.table-actions,.hux-tools,.tx-io-actions) > *{max-width:100%}
}
@media (max-width:430px){
  html[dir] .grid.stats{grid-template-columns:1fr!important}
  html[dir] .grid.stats > .card.stat{border-inline-start:0!important;border-top:1px solid var(--rx-line-2)!important}
  html[dir] .grid.stats > .card.stat:first-child{border-top:0!important}
  html[dir] :is(.holdings-summary,.tx-summary,.metric-strip){grid-template-columns:1fr!important}
  html[dir] :is(.holdings-summary,.tx-summary) > .card,html[dir] .metric-strip .metric-tile{border-inline-start:0!important;border-top:1px solid var(--rx-line-2)!important}
  html[dir] :is(.holdings-summary,.tx-summary) > .card:first-child,html[dir] .metric-strip .metric-tile:first-child{border-top:0!important}
}

/* Respect OS motion preferences for the added polish too. */
@media (prefers-reduced-motion:reduce){
  html[dir] :is(.portfolio-top-card,.card,.panel,.analytics-card,.portfolio-card,button,a){transition:none!important;transform:none!important}
}

/* ==== block 39 id="pass31FourStateResponsiveAudit" ==== */

/* Four-state and responsive audit.
   Deliberately CSS-only: behavior, IDs, handlers and stored state remain untouched. */

/* ---------- Shared legibility / keyboard focus ---------- */
html[dir] :is(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:2px solid color-mix(in srgb,var(--rx-teal) 78%,white)!important;
  outline-offset:2px!important;
}
html[dir] :is(button,.icon-btn,.lang-link,.mobile-menu,.portfolio-top-card,.tx-category-tab){-webkit-tap-highlight-color:transparent}
html[dir] :is(.page-head h1,.panel-head h2,.panel-head h3,.section-intro h2,.portfolio-board-head h2){overflow-wrap:anywhere}
html[dir] :is(.panel-head p,.section-intro p,.portfolio-board-head p,.notice,.holding-view-note){max-width:72ch}
html[dir] :is(input,textarea,select,button){font-family:inherit}
html[dir="rtl"] :is(input,textarea,select){text-align:right}
html[dir="ltr"] :is(input,textarea,select){text-align:left}
html[dir] input[type="number"]{font-variant-numeric:tabular-nums}

/* ---------- Arabic / English parity ---------- */
html[dir="rtl"] :is(.page-head h1,.advisor-hero-title,.panel-head h2,.panel-head h3,.section-intro h2,.portfolio-board-head h2){letter-spacing:0!important}
html[dir="rtl"] :is(.panel-head p,.section-intro p,.advisor-hero-text,.portfolio-board-head p){line-height:1.75!important}
html[dir="ltr"] :is(.panel-head p,.section-intro p,.advisor-hero-text,.portfolio-board-head p){line-height:1.58!important}
html[dir] :is(.stat-value,.pc-value,.tx-amount,.market-chip strong,.metric-tile strong){unicode-bidi:plaintext}

/* ---------- Header / menus ---------- */
html[dir] .topbar{backdrop-filter:saturate(145%) blur(14px);-webkit-backdrop-filter:saturate(145%) blur(14px)}
html[dir] .top-actions{min-width:0}
html[dir] :is(.profile,.brand,.brand-text){min-width:0}
html[dir] .brand-text{overflow:hidden}
html[dir] .brand-text > *{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[dir] :is(.profile-menu,.portfolio-switch-menu,.portfolio-card-menu,.pc-menu,.tx-export-pop,.hux-menu,.mobile-nav-popover){
  max-width:min(92vw,360px)!important;overflow-wrap:anywhere;
}

/* ---------- Hero ---------- */
html[dir] .advisor-hero-slider{isolation:isolate}
html[dir] .advisor-hero-content{max-width:760px}
html[dir] .advisor-hero-title{overflow-wrap:anywhere;text-wrap:balance}
html[dir] .advisor-hero-text{overflow-wrap:anywhere}
html[dir] .advisor-hero-arrow{touch-action:manipulation}

/* ---------- Portfolio strip / cards ---------- */
html[dir] #portfolioBoardGrid{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
html[dir] .portfolio-top-card{min-width:0}
html[dir] .portfolio-top-card :is(.pc-name,.pc-value,.pc-sub,.pc-meta){min-width:0;overflow-wrap:anywhere}
html[dir] .portfolio-top-card.active::after{z-index:4!important}

/* ---------- Statistics and cards ---------- */
html[dir] :is(.grid.stats,.holdings-summary,.tx-summary,.metric-strip) > *{min-width:0}
html[dir] :is(.stat,.metric-tile,.context-item,.event-card) :is(strong,.stat-value,.stat-detail){overflow-wrap:anywhere}
html[dir] .stat-detail{align-items:flex-start!important}

/* ---------- Tables: keep data available rather than collapsing it ---------- */
html[dir] :is(.table-wrap,.portfolio-holdings-wrap){
  width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;
}
html[dir] :is(.data-table,.tx-table,.analytics-table,.compact-table,.portfolio-holdings-table){min-width:720px}
html[dir] :is(.data-table,.tx-table,.analytics-table,.compact-table,.portfolio-holdings-table) th,
html[dir] :is(.data-table,.tx-table,.analytics-table,.compact-table,.portfolio-holdings-table) td{vertical-align:middle}
html[dir] :is(.data-table,.tx-table,.analytics-table,.compact-table,.portfolio-holdings-table) th{white-space:nowrap}
html[dir] :is(.data-table,.tx-table,.analytics-table,.compact-table,.portfolio-holdings-table) td{overflow-wrap:anywhere}
html[dir] .pagination{gap:10px;flex-wrap:wrap}
html[dir] .pagination-controls{margin-inline-start:auto}

/* ---------- Charts / analytics ---------- */
html[dir] :is(.chart-shell,.live-chart,.allocation-shell){max-width:100%;min-width:0}
html[dir] .analytics-grid > *{min-width:0}
html[dir] .panel-head > *{min-width:0}

/* ---------- Dialogs / forms ---------- */
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.hux-popover-card){
  width:min(100%,760px)!important;margin:auto!important;
}
html[dir] :is(.tx-add-modal,.portfolios-modal,.split-modal,.tx-import-modal,.hux-popover){
  overscroll-behavior:none;background:color-mix(in srgb,var(--rx-night) 58%,transparent)!important;
}
html[dir] :is(.tx-form,.portfolio-editor-grid,.split-grid,.tx-import-grid) > *{min-width:0}
html[dir] :is(.tx-input,.tx-select,.portfolio-mini-input,input,select,textarea){max-width:100%}
html[dir] textarea{resize:vertical}
html[dir] :is(.tx-modal-actions,.portfolio-editor-actions,.split-actions,.tx-import-actions){
  position:sticky;bottom:0;z-index:2;background:var(--rx-surface)!important;
}

/* ---------- Dark-mode completion ---------- */
html[data-theme="dark"][dir] :is(.pagination-controls button,.advisor-hero-arrow,.icon-btn,.lang-link,.mobile-menu){
  border-color:var(--rx-line)!important;
}
html[data-theme="dark"][dir] .pagination-controls button{background:var(--rx-surface)!important;color:var(--rx-ink-2)!important}
html[data-theme="dark"][dir] .pagination-controls button.active{background:var(--rx-teal-wash)!important;color:var(--rx-teal-ink)!important}
html[data-theme="dark"][dir] :is(.type-buy,.type-sell,.type-dividend,.type-cash){filter:saturate(.78) brightness(.92)}
html[data-theme="dark"][dir] :is(.notice,.market-chip,.context-item,.event-card){border-color:var(--rx-line)!important}
html[data-theme="dark"][dir] ::placeholder{color:color-mix(in srgb,var(--rx-muted) 82%,transparent)!important;opacity:1}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  html[dir] .workspace{max-width:100%;overflow-x:clip}
  html[dir] :is(.overview-grid,.analytics-grid){min-width:0}
  html[dir] .quick-area{grid-template-columns:1fr!important}
  html[dir] .advisor-hero-content{max-width:680px}
}

/* ---------- Mobile ---------- */
@media (max-width:700px){
  html[dir] .topbar-inner{padding-inline:12px!important}
  html[dir] .brand-mark{flex:0 0 auto}
  html[dir] .profile-copy{display:none!important}
  html[dir] .page-head > *{max-width:100%}
  html[dir] .market-chip{align-self:stretch!important;justify-content:center!important;text-align:center}
  html[dir] .advisor-hero-slider{min-height:238px!important;height:auto!important}
  html[dir] .advisor-hero-slide{min-height:238px!important}
  html[dir] .advisor-hero-content{min-height:238px!important;width:100%!important;max-width:none!important}
  html[dir] .advisor-hero-action{max-width:100%;white-space:normal!important;text-align:center}
  html[dir] #portfolioBoardGrid{grid-auto-columns:minmax(238px,88vw)!important}
  html[dir] :is(.toolbar,.panel-head,.section-intro){align-items:stretch!important}
  html[dir] :is(.toolbar-right,.table-actions,.hux-tools,.tx-io-actions){justify-content:flex-start!important}
  html[dir] :is(.chip,.hux-select,.hux-toggle,.hux-btn,.tx-io-btn){min-height:40px!important;height:auto!important}
  html[dir] .pagination-controls{margin-inline-start:0}
  html[dir] :is(.tx-modal-actions,.portfolio-editor-actions,.split-actions,.tx-import-actions){
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;
  }
  html[dir] :is(.tx-modal-actions,.portfolio-editor-actions,.split-actions,.tx-import-actions) > *{min-height:44px!important;width:100%!important}
}

/* ---------- Narrow phones ---------- */
@media (max-width:430px){
  html[dir] .workspace{padding-inline:10px!important}
  html[dir] .topbar-inner{min-height:60px!important;padding-inline:9px!important}
  html[dir] .top-actions{gap:4px!important}
  html[dir] :is(.lang-link,.icon-btn,.mobile-menu){min-width:38px!important;width:38px!important;height:38px!important;padding:0!important}
  html[dir] .advisor-hero-slider{border-radius:14px!important}
  html[dir] .advisor-hero-content{padding:18px 15px 58px!important}
  html[dir] .advisor-hero-title{font-size:19px!important}
  html[dir] .advisor-hero-text{font-size:12px!important}
  html[dir] #portfolioBoardGrid{grid-auto-columns:minmax(226px,91vw)!important}
  html[dir] :is(.panel,.analytics-card){padding:15px!important}
  html[dir] :is(.tx-modal-actions,.portfolio-editor-actions,.split-actions,.tx-import-actions){grid-template-columns:1fr!important}
}

/* Keep motion restrained in all four UI states. */
@media (prefers-reduced-motion:reduce){
  html[dir] .advisor-hero-slide,html[dir] .advisor-hero-content{animation:none!important;transition:none!important}
}

/* ==== block 40 id="pass36FinalActivePortfolioAndMintAvatar" ==== */

/* Active portfolio and account avatar final styling */

/* Active portfolio: all tiny active accents become white on the dark card. */
html[dir] .portfolio-top-card.active::before{
  background:#fff!important;
  box-shadow:none!important;
}
html[dir] .portfolio-top-card.active::after{
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.14)!important;
}
html[dir] .portfolio-top-card.active .portfolio-live-dot,
html[dir] .portfolio-top-card.active .live-dot,
html[dir] .portfolio-top-card.active .active-dot,
html[dir] .portfolio-top-card.active .portfolio-dot{
  background:#fff!important;
  border-color:#fff!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.14)!important;
}
html[dir] .portfolio-top-card.active .pc-more,
html[dir] .portfolio-top-card.active .card-kebab,
html[dir] .portfolio-top-card.active .pc-kebab{
  color:#fff!important;
}

/* User avatar: soft mint surface inspired by the slideshow secondary text. */
html[dir] .avatar,
html[data-theme="dark"][dir] .avatar{
  background:#DDECE7!important;
  color:#183C38!important;
  border:1px solid rgba(24,60,56,.10)!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.10),0 8px 20px rgba(3,25,29,.18)!important;
  text-shadow:none!important;
  font-weight:800!important;
}

/* ==== block 41 id="clientReadyVisualPolish" ==== */

/* Client-ready visual polish. Functional selectors and behavior remain unchanged. */
html[dir]{
  --client-accent:#C93F5B;
  --client-accent-hover:#B93552;
  --client-mint:#DDECE7;
  --client-mint-ink:#183C38;
}

/* Global rhythm and crisp surfaces */
html[dir] body{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
html[dir] :is(.card,.panel,.analytics-card,.portfolio-top-card,.market-chip,.notice,.context-item,.event-card){
  border-color:var(--rx-line)!important;
}
html[dir] :is(.card,.panel,.analytics-card){
  box-shadow:0 1px 2px rgba(7,31,37,.035),0 10px 28px rgba(7,31,37,.045)!important;
}
html[data-theme="dark"][dir] :is(.card,.panel,.analytics-card){
  box-shadow:0 1px 2px rgba(0,0,0,.14),0 14px 30px rgba(0,0,0,.10)!important;
}

/* Keep controls visually related: rounded rectangles, not capsules. */
html[dir] :is(.action-btn,.tx-launch-btn,.tx-io-btn,.hux-btn,.advisor-hero-action){
  border-radius:11px!important;
}
html[dir] :is(button,a,[role="button"]){
  -webkit-tap-highlight-color:transparent;
}
html[dir] :is(button,a,[role="button"]):focus-visible{
  outline:3px solid rgba(14,140,146,.22)!important;
  outline-offset:2px!important;
}

/* Slideshow: clean controls and restrained hierarchy. */
html[dir] .advisor-hero-slider{
  box-shadow:0 18px 42px rgba(5,42,49,.13)!important;
}
html[dir] .advisor-hero-arrow{
  color:#fff!important;
  border-color:rgba(255,255,255,.22)!important;
  background:rgba(3,31,38,.38)!important;
}
html[dir] .advisor-hero-arrow:hover{
  background:rgba(3,31,38,.62)!important;
  border-color:rgba(255,255,255,.42)!important;
}
html[dir] .advisor-hero-dot{
  background:rgba(255,255,255,.35)!important;
  box-shadow:none!important;
}
html[dir] .advisor-hero-dot.active,
html[data-theme="dark"][dir] .advisor-hero-dot.active{
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.11)!important;
}
html[dir] .advisor-hero-action{
  background:linear-gradient(135deg,var(--client-accent),var(--client-accent-hover))!important;
  color:#fff!important;
  border-color:rgba(185,53,82,.95)!important;
  box-shadow:0 10px 24px rgba(185,53,82,.22)!important;
}
html[dir] .advisor-hero-action:hover{
  background:linear-gradient(135deg,#D74A68,#BF3956)!important;
  color:#fff!important;
}

/* Sidebar navigation: active state reads clearly without extra accent noise. */
html[dir] .main-nav .nav-btn{
  transition:background-color .16s ease,color .16s ease,border-color .16s ease!important;
}
html[dir] .main-nav .nav-btn.active{
  color:#fff!important;
}
html[dir] .main-nav .nav-btn.active :is(svg,i){
  color:#fff!important;stroke:#fff!important;
}
html[dir] .main-nav .nav-btn.active::after{background:#fff!important}

/* Account avatar: soft mint with dark ink as approved. */
html[dir] .avatar,
html[data-theme="dark"][dir] .avatar{
  background:var(--client-mint)!important;
  color:var(--client-mint-ink)!important;
  border:1px solid rgba(24,60,56,.11)!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.08),0 7px 18px rgba(3,25,29,.14)!important;
}

/* Active portfolio: no red/purple micro-accents on the dark card. */
html[dir] .portfolio-top-card.active{
  border-color:rgba(255,255,255,.16)!important;
}
html[dir] .portfolio-top-card.active::before,
html[dir] .portfolio-top-card.active::after{
  background:#fff!important;
}
html[dir] .portfolio-top-card.active::before{box-shadow:none!important}
html[dir] .portfolio-top-card.active::after{box-shadow:0 0 0 4px rgba(255,255,255,.13)!important}
html[dir] .portfolio-top-card.active :is(.portfolio-live-dot,.live-dot,.active-dot,.portfolio-dot){
  background:#fff!important;
  border-color:#fff!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.13)!important;
}
html[dir] .portfolio-top-card.active :is(.pc-more,.card-kebab,.pc-kebab){color:#fff!important}
html[dir] .portfolio-top-card:not(.active):hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(7,31,37,.07)!important;
}

/* Tables and dense financial data */
html[dir] :is(.data-table,.tx-table,.compact-table,.analytics-table) th{
  letter-spacing:0!important;
  font-weight:700!important;
}
html[dir] :is(.data-table,.tx-table,.compact-table,.analytics-table) tbody tr{
  transition:background-color .12s ease!important;
}
html[data-theme="dark"][dir] :is(.data-table,.tx-table,.compact-table,.analytics-table) tbody tr:hover{
  background:rgba(255,255,255,.025)!important;
}

/* Dialogs and menus: consistent production surface. */
html[dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.profile-menu,.portfolio-switch-menu,.portfolio-card-menu,.pc-menu,.tx-export-pop,.hux-menu,.mobile-nav-popover){
  border-color:var(--rx-line)!important;
  box-shadow:0 20px 56px rgba(5,31,38,.15)!important;
}
html[data-theme="dark"][dir] :is(.tx-add-dialog,.portfolios-dialog,.split-dialog,.tx-import-dialog,.profile-menu,.portfolio-switch-menu,.portfolio-card-menu,.pc-menu,.tx-export-pop,.hux-menu,.mobile-nav-popover){
  box-shadow:0 22px 60px rgba(0,0,0,.34)!important;
}

/* Mobile finishing touches */
@media(max-width:700px){
  html[dir] .workspace{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
  html[dir] .advisor-hero-slider{box-shadow:0 12px 28px rgba(5,42,49,.12)!important}
  html[dir] .portfolio-top-card{scroll-snap-align:start}
  html[dir] #portfolioBoardGrid{scroll-snap-type:inline proximity}
}

@media(prefers-reduced-motion:reduce){
  html[dir] .portfolio-top-card:not(.active):hover{transform:none!important}
}

/* ==== block 42 id="holdingsDesktopFitPass" ==== */

/* Holdings desktop-fit refinement: keep all columns visible on wide desktop screens. */
@media (min-width:1100px){
  html[dir]{--rx-side:224px!important}

  /* Use more of the available viewport only while Holdings is the active section. */
  html[dir] .workspace:has(#section-holdings.active){
    max-width:1480px!important;
    width:100%!important;
    padding-inline:24px!important;
  }

  html[dir] #section-holdings .table-wrap{
    overflow-x:auto!important;
    overflow-y:visible!important;
  }

  html[dir] #section-holdings .data-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }

  html[dir] #section-holdings .data-table th,
  html[dir] #section-holdings .data-table td{
    padding-inline:7px!important;
  }
  html[dir] #section-holdings .data-table th{
    padding-block:10px!important;
    font-size:11px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  html[dir] #section-holdings .data-table td{
    padding-block:12px!important;
    font-size:12.25px!important;
    line-height:1.35!important;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
  }

  /* Balanced column budget — all 13 columns remain visible. */
  html[dir] #section-holdings .data-table th:nth-child(1),
  html[dir] #section-holdings .data-table td:nth-child(1){width:11%!important}
  html[dir] #section-holdings .data-table th:nth-child(2),
  html[dir] #section-holdings .data-table td:nth-child(2){width:8%!important}
  html[dir] #section-holdings .data-table th:nth-child(3),
  html[dir] #section-holdings .data-table td:nth-child(3){width:6%!important}
  html[dir] #section-holdings .data-table th:nth-child(4),
  html[dir] #section-holdings .data-table td:nth-child(4){width:7%!important}
  html[dir] #section-holdings .data-table th:nth-child(5),
  html[dir] #section-holdings .data-table td:nth-child(5){width:9%!important}
  html[dir] #section-holdings .data-table th:nth-child(6),
  html[dir] #section-holdings .data-table td:nth-child(6){width:7%!important}
  html[dir] #section-holdings .data-table th:nth-child(7),
  html[dir] #section-holdings .data-table td:nth-child(7){width:8%!important}
  html[dir] #section-holdings .data-table th:nth-child(8),
  html[dir] #section-holdings .data-table td:nth-child(8){width:7%!important}
  html[dir] #section-holdings .data-table th:nth-child(9),
  html[dir] #section-holdings .data-table td:nth-child(9){width:8%!important}
  html[dir] #section-holdings .data-table th:nth-child(10),
  html[dir] #section-holdings .data-table td:nth-child(10){width:6%!important}
  html[dir] #section-holdings .data-table th:nth-child(11),
  html[dir] #section-holdings .data-table td:nth-child(11){width:6%!important}
  html[dir] #section-holdings .data-table th:nth-child(12),
  html[dir] #section-holdings .data-table td:nth-child(12){width:8%!important}
  html[dir] #section-holdings .data-table th:nth-child(13),
  html[dir] #section-holdings .data-table td:nth-child(13){width:9%!important}

  /* Weight is useful, but its progress bar does not need much horizontal room. */
  html[dir] #section-holdings .weight{gap:5px!important;min-width:0!important}
  html[dir] #section-holdings .weight .bar{width:42px!important;min-width:28px!important;flex:0 1 42px!important}
  html[dir] #section-holdings .weight strong{font-size:12px!important;white-space:nowrap!important}

  /* Keep the symbol cell compact while preserving the company context. */
  html[dir] #section-holdings .symbol-cell strong{font-size:12.5px!important;line-height:1.25!important}
  html[dir] #section-holdings .symbol-cell small{
    font-size:10.5px!important;
    margin-top:3px!important;
    white-space:normal!important;
    line-height:1.25!important;
  }

  /* Compact details action instead of spending a full financial-column width on it. */
  html[dir] #section-holdings .data-table th:last-child,
  html[dir] #section-holdings .data-table td:last-child{
    min-width:0!important;
    width:9%!important;
    padding-inline:5px!important;
  }
  html[dir] #section-holdings .data-table td:last-child .row-action{
    min-width:52px!important;
    padding-inline:8px!important;
    font-size:11px!important;
  }
}

/* At narrower desktop/laptop widths retain readability and allow scroll as a fallback. */
@media (min-width:1100px) and (max-width:1399px){
  html[dir] #section-holdings .data-table{min-width:1180px!important}
}

/* ==== block 43 id="analyticsEnhancementCss" ==== */

/* Analytics expansion — bilingual, RTL/LTR and light/dark theme aware */
#section-analytics .strategy-card{display:flex;gap:17px;align-items:flex-start;padding:22px 24px;margin-bottom:18px;border-inline-start:4px solid var(--primary);background:linear-gradient(120deg,var(--surface),var(--primary-soft));}
.strategy-mark{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--primary-soft);color:var(--primary-dark)}
.strategy-mark svg{width:23px;height:23px}
.strategy-kicker{font-size:10px;font-weight:800;color:var(--primary-dark);margin-bottom:5px}
.strategy-card h3{font-size:17px;margin:0 0 7px}.strategy-card p{margin:0;line-height:1.9;font-size:12px;color:var(--muted);max-width:960px}
.advanced-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:24px 0 14px}
.advanced-section-head h2{font-size:18px;margin:0 0 4px}.advanced-section-head p{font-size:11px;color:var(--muted);margin:0;line-height:1.75}
.analysis-tag{display:inline-block;border-radius:7px;padding:6px 9px;font-size:10px;font-weight:700;background:var(--primary-soft);color:var(--primary-dark)}
.stats-analysis-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.analytics-enhanced{padding:19px;min-width:0}
.analytics-enhanced h3{font-size:14px;margin:0 0 5px}.analytics-enhanced .subnote{font-size:10px;color:var(--muted);margin:0 0 14px;line-height:1.65}
.stat-number-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.stat-number{background:var(--canvas);border:1px solid var(--line);border-radius:11px;padding:12px;min-width:0}
.stat-number span{display:block;color:var(--muted);font-size:10px;line-height:1.6}.stat-number strong{display:block;margin-top:6px;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.stat-number small{color:var(--muted);font-size:9px;display:block;margin-top:4px}
.analysis-toolbar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:13px}
.analysis-toggle{display:flex;gap:4px;background:var(--canvas);border:1px solid var(--line);border-radius:9px;padding:3px}
.analysis-toggle button{font:inherit;font-size:10px;cursor:pointer;padding:7px 10px;color:var(--muted);border:0;background:transparent;border-radius:7px;font-weight:800}
.analysis-toggle button.active{background:var(--surface);color:var(--primary-dark);box-shadow:0 1px 4px rgba(0,0,0,.07)}
.analysis-select{font:inherit;font-size:11px;border:1px solid var(--line);border-radius:9px;padding:8px 10px;color:var(--ink);background:var(--surface)}
.analysis-scroll{overflow:auto;max-width:100%}
.analysis-data-table{border-collapse:separate;border-spacing:0;width:100%;font-size:10px;font-variant-numeric:tabular-nums}
.analysis-data-table th,.analysis-data-table td{border-bottom:1px solid var(--line);padding:10px 7px;text-align:center;white-space:nowrap}
.analysis-data-table th{color:var(--muted);background:var(--canvas);font-weight:800}
.analysis-data-table th:first-child,.analysis-data-table td:first-child{text-align:start;position:sticky;inset-inline-start:0;background:var(--surface);font-weight:800;z-index:1}
.analysis-data-table thead th:first-child{background:var(--canvas);z-index:2}
.matrix-cell{border-radius:6px;font-weight:800}.matrix-high{background:#dcf4ed;color:#08664f}.matrix-mid{background:#ecf7f8;color:#177782}.matrix-low{background:#f1f3f7;color:#556375}.matrix-negative{background:#ffebef;color:#a53a50}
html[data-theme="dark"] .matrix-high{background:#123d33;color:#7be1ba}html[data-theme="dark"] .matrix-mid{background:#163740;color:#8adbe0}html[data-theme="dark"] .matrix-low{background:#263446;color:#c2cbd8}html[data-theme="dark"] .matrix-negative{background:#482530;color:#ff9baa}
.annual-section{margin-top:16px}.annual-returns-table{min-width:950px}.annual-returns-table td{font-size:10px}.annual-returns-table td.pos{background:var(--gain-bg);color:var(--gain)}.annual-returns-table td.neg{background:var(--loss-bg);color:var(--loss)}.annual-returns-table td.none{color:var(--muted)}
.analysis-detail-title{margin:18px 0 10px!important;font-size:12px!important}.deviation-table{min-width:650px}.deviation-summary td{background:var(--primary-soft)!important;color:var(--ink);font-weight:800}.analysis-footnote{font-size:10px;line-height:1.75;color:var(--muted);margin:12px 0 0}
@media(max-width:900px){.stats-analysis-grid{grid-template-columns:1fr}}
@media(max-width:650px){#section-analytics .strategy-card{padding:16px;gap:12px}.strategy-card h3{font-size:15px}.strategy-mark{width:35px;height:35px}.stat-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced-section-head{flex-direction:column}.analysis-toolbar{align-items:stretch;flex-direction:column}.analysis-toggle{width:100%}.analysis-toggle button{flex:1}}

/* ==== block 44 id="benchmarkComparisonV3Css" ==== */

/* Benchmark-first performance presentation; follows existing theme tokens */
.bmk-card{padding:21px!important;min-width:0}.bmk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:15px}
.bmk-head h2{font-size:17px;margin:0 0 5px}.bmk-head p{font-size:11px;color:var(--muted);line-height:1.7;margin:0}
.bmk-mode{display:inline-flex;background:var(--canvas);border:1px solid var(--line);padding:4px;border-radius:11px;gap:3px}
.bmk-mode button,.bmk-ranges button{font:inherit;color:var(--muted);font-size:10px;font-weight:800;border:0;border-radius:8px;background:transparent;padding:9px 12px;cursor:pointer;white-space:nowrap}
.bmk-mode button.active,.bmk-ranges button.active{color:var(--primary-dark);background:var(--surface);box-shadow:0 2px 8px rgba(20,35,50,.09)}
.bmk-mode button:focus-visible,.bmk-ranges button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.bmk-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:15px}
.bmk-kpi{padding:14px 15px;background:var(--canvas);border:1px solid var(--line);border-radius:12px;min-width:0}
.bmk-kpi span{color:var(--muted);font-size:10px;display:block;margin-bottom:6px}.bmk-kpi strong{font-size:23px;letter-spacing:-.3px;font-variant-numeric:tabular-nums;white-space:nowrap}.bmk-kpi small{display:block;margin-top:4px;color:var(--muted);font-size:9px}
.bmk-positive{color:var(--gain)!important}.bmk-negative{color:var(--loss)!important}.bmk-neutral{color:var(--ink)!important}
.bmk-controls{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0 8px}
.bmk-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--ink);font-weight:800}.bmk-legend span{display:inline-flex;align-items:center;gap:6px}.bmk-dot{height:8px;width:8px;border-radius:50%;display:inline-block;background:#008C80}.bmk-dot.bench{background:#82909d}
.bmk-ranges{display:flex;gap:4px;flex-wrap:wrap}.bmk-ranges button{padding:7px 9px}
.bmk-chart{position:relative;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:6px;min-width:0}
.bmk-chart svg{display:block;width:100%;height:292px;overflow:visible;touch-action:pan-y}.bmk-chart svg text{font-family:Tahoma,'Segoe UI',Arial,sans-serif;font-size:10px;fill:var(--muted)}
.bmk-tooltip{position:absolute;top:16px;inset-inline-start:55px;display:none;z-index:4;min-width:175px;background:var(--surface);box-shadow:0 10px 25px rgba(8,20,36,.15);border:1px solid var(--line);border-radius:10px;padding:11px 12px;pointer-events:none;font-size:10px;line-height:1.85;color:var(--ink)}.bmk-tooltip.open{display:block}
.bmk-tip-date{color:var(--muted);font-weight:800;border-bottom:1px solid var(--line);padding-bottom:4px;margin-bottom:3px}
.bmk-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:10px}
.bmk-status{font-size:10px;font-weight:800;padding:7px 10px;border-radius:9px;background:var(--gain-bg);color:var(--gain)}.bmk-status.behind{background:var(--loss-bg);color:var(--loss)}
.bmk-note{font-size:10px;line-height:1.8;color:var(--muted);margin:9px 0 0}.bmk-note em{font-style:normal;color:var(--primary-dark);font-weight:800}
.bmk-excess{margin-bottom:17px;padding:20px}.bmk-excess .bmk-head{margin-bottom:5px}.bmk-excess svg{height:205px}.bmk-demo-flag{font-size:9px;background:var(--primary-soft);color:var(--primary-dark);border-radius:8px;padding:6px 9px;font-weight:800;white-space:nowrap}
.bmk-value-view{display:none}.bmk-value-view.active{display:block}.bmk-methodology{font-size:10px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:9px;margin-top:11px}
html[data-theme="dark"] .bmk-mode button.active,html[data-theme="dark"] .bmk-ranges button.active{color:#7ee0e5}
@media(max-width:750px){.bmk-card{padding:14px!important}.bmk-head h2{font-size:14px}.bmk-kpis{gap:6px}.bmk-kpi{padding:10px 8px}.bmk-kpi strong{font-size:17px}.bmk-kpi span{font-size:9px}.bmk-chart svg{height:235px}.bmk-mode{width:100%}.bmk-mode button{flex:1;padding-inline:6px}.bmk-controls{align-items:flex-start;flex-direction:column}.bmk-tooltip{inset-inline-start:12px;top:8px}}
@media(max-width:460px){.bmk-kpis{grid-template-columns:1fr}.bmk-kpi{display:flex;align-items:center;justify-content:space-between;gap:8px}.bmk-kpi span{margin:0}.bmk-kpi strong{font-size:20px}.bmk-kpi small{display:none}}
