.movement-filter-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(4,minmax(150px,1fr));gap:.85rem;align-items:end;margin-bottom:1rem;padding:1rem;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.movement-filter-grid label{display:flex;flex-direction:column;gap:.4rem;color:#334155;font-size:.9rem;font-weight:600}.movement-filter-grid input,.movement-filter-grid select{width:100%;border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:.7rem .8rem}.movement-filter-actions{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.stats-table-shell{width:100%;overflow-x:auto}.dividend-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.dividend-stat-card{display:flex;flex-direction:column;gap:.45rem;min-width:0;padding:1rem;border:1px solid #dbeafe;border-radius:18px;background:linear-gradient(145deg,#eff6ff,#fff)}.dividend-stat-card strong{color:#0f172a;font-size:1.05rem;line-height:1.4}.dividend-stat-caption{margin:0}.dividend-stat-section{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:1rem}.dividend-stat-section h4{margin:0 0 .75rem}@media (max-width: 1200px){.movement-filter-grid,.dividend-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.movement-filter-grid,.dividend-summary-grid{grid-template-columns:1fr}.movement-filter-actions{align-items:stretch;flex-direction:column}.movement-filter-actions button{width:100%}}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc;line-height:1.5;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}button{border:0;border-radius:12px;padding:.75rem 1rem;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.secondary-button,.ghost-button{background:#e2e8f0;color:#0f172a}.danger-button{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff}.table-actions{display:flex;align-items:center;gap:.5rem}.icon-button{width:2.5rem;height:2.5rem;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#e2e8f0;color:#0f172a}.icon-button.accent{background:#dbeafe;color:#1d4ed8}.icon-button.danger{background:#fee2e2;color:#b91c1c}.icon-button svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.auth-card{width:min(560px,100%);background:#fff;border-radius:24px;padding:2rem;box-shadow:0 18px 48px #0f172a1f}.auth-form{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-user-label{white-space:nowrap}.app-shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}.mobile-nav-backdrop{display:none}.sidebar{background:#0f172a;color:#fff;padding:2rem 1.25rem;display:flex;flex-direction:column;gap:2rem}.sidebar-brand{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.sidebar-close-button,.nav-toggle{display:none;width:2.75rem;height:2.75rem;padding:0;align-items:center;justify-content:center}.sidebar h1,.topbar h2,.section-header h2,.modal-header h3{margin:0}.nav-list{display:flex;flex-direction:column;gap:.5rem}.nav-button{text-align:left;background:transparent;border:1px solid rgba(255,255,255,.1)}.nav-button.active{background:#3b82f640;border-color:#93c5fd80}.content{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;min-width:0}.topbar-title-group{display:flex;align-items:center;gap:1rem}.topbar,.section-header,.modal-header,.toolbar,.section-actions,.form-actions,.checkbox-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.stats-grid,.two-columns,.action-grid{display:grid;gap:1rem}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.two-columns{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}.action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border-radius:20px;padding:1.25rem;box-shadow:0 10px 30px #0f172a14;overflow:hidden}.stat-card strong{font-size:1.6rem}.stat-card{display:flex;align-items:baseline;gap:.75rem}.stat-card .eyebrow{flex:1 1 auto}.stat-card strong{margin-left:auto;text-align:right}.toolbar-icon-group{display:inline-flex;align-items:center;gap:.5rem}.toolbar>button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.section-actions-inline{display:inline-flex;align-items:center;gap:.75rem;flex-wrap:wrap}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:#64748b}.muted{color:#64748b}.positive{color:#15803d}.negative{color:#dc2626}.stack-gap{display:flex;flex-direction:column;gap:1rem}.stack-gap.compact{gap:.75rem}.history-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.history-summary-grid>div{display:flex;flex-direction:column;gap:.35rem}.history-summary-grid>div strong{text-align:right;white-space:nowrap}.history-summary-grid>div .eyebrow{min-width:0}.agent-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.agent-summary-item,.agent-insight-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:1rem}.agent-summary-item{display:flex;flex-direction:column;gap:.45rem}.agent-summary-item strong{line-height:1.4}.agent-insight-list{display:grid;gap:.85rem}.agent-insight-card{display:flex;flex-direction:column;gap:.45rem}.agent-insight-card.success{border-color:#bbf7d0;background:#f0fdf4}.agent-insight-card.warning{border-color:#fde68a;background:#fffbeb}.agent-insight-card.info{border-color:#bfdbfe;background:#eff6ff}.agent-insight-card p,.agent-technical-details summary{margin:0}.agent-technical-details{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:1rem}.agent-technical-details summary{cursor:pointer;font-weight:700;color:#0f172a}.agent-technical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.agent-technical-grid pre{margin:.5rem 0 0}.agent-actions-bar{display:flex;align-items:center;gap:.75rem;flex-wrap:nowrap;width:100%;margin-bottom:.85rem}.agent-actions-bar select{min-width:0;flex:1 1 0}.agent-actions-icons{display:inline-flex;align-items:center;gap:.5rem;margin-left:auto;flex:0 0 auto}.agent-section-header{flex-direction:column;align-items:stretch;gap:.65rem}.agent-section-header .section-actions{width:100%}.agent-actions-select{border:1px solid #cbd5e1;background:#f8fafc;padding:.55rem .7rem;border-radius:12px;font-size:.95rem;width:100%}.agent-actions-icons .icon-button{width:2.6rem;height:2.6rem;padding:.55rem}.agent-actions-icons .icon-button svg{width:1.15rem;height:1.15rem}.agent-proposals{margin-top:.25rem}.agent-proposal-list{margin:.5rem 0 0;padding-left:1.2rem}.agent-proposal-list li{margin:.25rem 0}.history-chart{width:100%;height:220px;border-radius:18px;background:linear-gradient(180deg,#eff6ff,#f8fafc);overflow:hidden}.history-chart.history-chart-large{height:280px}.history-chart svg{width:100%;height:100%;display:block}.history-chart-area{fill:#3b82f62e}.history-chart-line{fill:none;stroke:#2563eb;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.compact-form{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filter-grid{margin-bottom:1rem}.settings-meta{display:flex;align-items:center}.stats-tabs{display:inline-flex;align-items:center;gap:.5rem;padding:.35rem;background:#e2e8f0;border-radius:14px;width:fit-content}.stats-tab{background:transparent;color:#334155;border-radius:10px;padding:.65rem 1rem}.stats-tab.active{background:#fff;color:#0f172a;box-shadow:0 4px 14px #0f172a14}.stats-filter-bar{display:flex;justify-content:flex-end}.stats-filter-bar label{display:flex;flex-direction:column;gap:.45rem;min-width:320px;color:#334155}.stats-filter-bar select{border:1px solid #cbd5e1;background:#f8fafc;padding:.8rem .9rem;border-radius:12px}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;flex-wrap:wrap}.asset-history-panel{display:flex;flex-direction:column;gap:1rem}.asset-history-header h4{margin:0}.asset-history-header p{margin:.35rem 0 0}.asset-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.asset-chart-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:1rem;display:flex;flex-direction:column;gap:1rem}.asset-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.allocation-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:1rem;display:flex;flex-direction:column;gap:1rem}.allocation-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.allocation-header h4,.allocation-header p{margin:0}.allocation-header p{margin-top:.35rem}.allocation-header strong{white-space:nowrap}.allocation-layout{display:grid;grid-template-columns:minmax(320px,40%) minmax(0,1fr);gap:1rem;align-items:center}.allocation-chart-shell{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%}.allocation-chart{width:min(100%,320px);height:auto;aspect-ratio:1}.allocation-chart circle{cursor:pointer;transition:opacity .2s ease,transform .2s ease}.allocation-chart circle:hover,.allocation-chart circle:focus{opacity:.92}.allocation-tooltip{display:flex;align-items:flex-start;gap:.75rem;width:100%;border-radius:16px;border:1px solid #dbeafe;background:#fff;padding:.9rem 1rem;color:#0f172a}.allocation-tooltip strong,.allocation-tooltip-value{white-space:nowrap}.allocation-tooltip-color,.allocation-legend-swatch{width:.85rem;height:.85rem;border-radius:999px;flex:0 0 auto}.allocation-tooltip-value{margin-top:.25rem;font-weight:700;color:#0f172a}.allocation-center-label,.allocation-center-value,.allocation-center-subvalue{fill:#0f172a;pointer-events:none}.allocation-center-label{font-size:.92rem;font-weight:700}.allocation-center-value{font-size:1.2rem;font-weight:800}.allocation-center-subvalue{font-size:.8rem;fill:#475569}.allocation-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.allocation-legend-item{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.75rem;text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:.75rem .9rem;color:#0f172a}.allocation-legend-item.active{border-color:#93c5fd;background:#eff6ff;box-shadow:0 10px 24px #2563eb1f}.allocation-legend-item strong{white-space:nowrap;color:#1d4ed8;justify-self:end}.allocation-legend-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-weight:600}.allocation-legend-value{grid-column:2;color:#475569;font-size:.9rem;white-space:nowrap}.banner{border-radius:14px;padding:.9rem 1rem;display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.notification-overlay{position:fixed;top:1rem;right:1rem;z-index:2000;display:flex;flex-direction:column;gap:.75rem;width:min(420px,calc(100vw - 2rem));pointer-events:none}.notification-overlay .banner{box-shadow:0 18px 48px #0f172a2e;pointer-events:auto}.notification-overlay .banner span{flex:1 1 auto}.banner-close-button{padding:0;border:0;border-radius:0;background:transparent;color:inherit;line-height:1;font-size:1.1rem;font-weight:700;flex:0 0 auto}.banner-close-button:hover{opacity:.8}.banner.success{background:#dcfce7;color:#166534}.banner.error{background:#fee2e2;color:#991b1b}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.85rem .75rem;border-bottom:1px solid #e2e8f0;vertical-align:top}th{color:#475569;font-size:.9rem}.sortable-column-button{display:inline-flex;align-items:center;gap:.4rem;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font-weight:600}.sortable-column-button:hover{color:#0f172a}.sort-indicator{color:#94a3b8;font-size:.85rem}pre{margin:0;white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;padding:1rem;border-radius:16px;max-height:260px;overflow:auto}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000}.modal{background:#fff;width:min(880px,100%);max-height:90vh;overflow:auto;border-radius:24px;padding:1.25rem}.modal.modal-wide{width:min(1320px,100%)}.modal-close-button{flex:0 0 auto}.modal-body{margin-top:1rem}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-grid label{display:flex;flex-direction:column;gap:.45rem;color:#334155}.required-label span:after{content:" *";color:#dc2626}.form-grid input,.form-grid select{width:100%;border:1px solid #cbd5e1;background:#f8fafc;padding:.8rem .9rem;border-radius:12px}.form-grid input.required-field.is-empty{border-color:#f59e0b;background:#fff7ed}.form-grid input.required-field.is-filled{border-color:#16a34a;background:#f0fdf4}.form-grid input.required-field:focus{outline:none;box-shadow:0 0 0 3px #2563eb26}.settings-section{padding:1rem;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.password-rules-card{display:flex;flex-direction:column;gap:.6rem;padding:1rem;border-radius:16px;background:#f8fafc;border:1px solid #dbeafe}.password-rule-list{margin:0;padding-left:1.25rem;display:grid;gap:.35rem}.password-rule-list li.valid{color:#15803d}.password-rule-list li.invalid{color:#b45309}.danger-zone{border-color:#fecaca;background:#fef2f2}.form-hint-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.form-hint-row .muted{flex:1}.full-width{grid-column:1 / -1}.checkbox-row{justify-content:flex-start}@media (max-width: 1200px){.stats-grid,.two-columns,.history-summary-grid,.agent-summary-grid,.agent-technical-grid,.asset-history-grid,.asset-metrics-grid,.allocation-layout,.allocation-legend{grid-template-columns:1fr}}@media (max-width: 900px){.app-shell{grid-template-columns:1fr}.notification-overlay{left:1rem;right:1rem;width:auto}.mobile-nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;padding:0;border-radius:0;z-index:30}.auth-form{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.sidebar{position:fixed;top:0;left:0;bottom:0;width:min(86vw,320px);max-width:320px;padding:1rem;z-index:40;transform:translate(-100%);transition:transform .2s ease;overflow-y:auto}.sidebar.open{transform:translate(0)}.content{padding:1rem}.sidebar-close-button,.nav-toggle{display:inline-flex}.nav-list{gap:.75rem}.nav-button{width:100%}.form-grid,.action-grid{grid-template-columns:1fr}.form-hint-row{flex-direction:column;align-items:stretch}.stats-filter-bar{justify-content:stretch}.stats-filter-bar label{min-width:0;width:100%}.allocation-header{flex-direction:column}.topbar,.section-header{flex-direction:column;align-items:stretch}.topbar-title-group{width:100%}.toolbar{width:100%;align-items:stretch}.toolbar-icon-group,.toolbar>button,.auth-user-label{width:100%}.toolbar-icon-group{justify-content:flex-start}table{display:block;overflow-x:auto;white-space:nowrap}th,td{padding:.8rem .65rem}.modal{width:100%;max-height:94vh;padding:1rem;border-radius:20px}}@media (max-width: 640px){body{background:#f1f5f9}.content{gap:1rem;padding:max(.75rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.75rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left))}.topbar{gap:.75rem}.topbar-title-group{align-items:flex-start;gap:.75rem}.topbar-title-group>div{min-width:0}.topbar h2{font-size:1.25rem;line-height:1.25}.topbar p{margin:.25rem 0 0;font-size:.82rem;line-height:1.4}.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.auth-user-label,.toolbar-icon-group{grid-column:1 / -1;width:auto}.auth-user-label{font-size:.8rem}.toolbar-icon-group{justify-content:flex-start}.toolbar>button{width:100%;min-height:44px;padding:.65rem .7rem;font-size:.82rem;line-height:1.25}.toolbar-logout{grid-column:1 / -1}.stats-grid,.two-columns,.stack-gap{gap:.75rem}.card{padding:1rem;border-radius:16px;box-shadow:0 6px 20px #0f172a12}.stat-card{align-items:center;gap:.5rem}.stat-card strong{font-size:1.2rem;line-height:1.2}.eyebrow{font-size:.68rem;letter-spacing:.06em}.section-header h2{font-size:1.1rem}.positions-card{overflow:visible}.positions-table{display:block;overflow:visible;white-space:normal}.positions-table thead{display:flex;margin:0 0 .75rem;padding:0;overflow:visible}.positions-table thead tr{display:flex;flex-wrap:wrap;gap:.4rem;width:100%}.positions-table thead th{display:block;padding:0;border:0;flex:0 0 auto}.positions-table .sortable-column-button{min-height:36px;padding:.4rem .65rem;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;white-space:nowrap}.positions-table tbody{display:grid;grid-template-columns:1fr;gap:.75rem}.positions-table tbody tr{display:grid;grid-template-columns:1fr;padding:.5rem 0;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.positions-table tbody td{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.6rem .75rem;border-bottom:1px solid #e2e8f0;text-align:right;white-space:normal;font-size:.95rem}.positions-table tbody td:before{content:attr(data-label);color:#64748b;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;text-align:left;flex:0 0 auto}.positions-table tbody td:last-child{border-bottom:0}.positions-table tbody td:first-child{flex-direction:column;align-items:flex-start;gap:.15rem;padding:.75rem .75rem .6rem;border-bottom:1px solid #e2e8f0}.positions-table tbody td:first-child:before{display:none}.positions-table tbody td:first-child strong{font-size:1.1rem}.positions-table tbody td:first-child .muted{max-width:100%;overflow-wrap:anywhere;font-size:.84rem}.agent-card,.quick-actions-card{padding:1rem}.agent-actions-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;margin-bottom:.5rem}.agent-actions-select,.agent-actions-icons .icon-button{min-height:44px}.agent-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.agent-summary-item,.agent-insight-card{padding:.75rem;border-radius:14px}.agent-summary-item strong,.agent-insight-card p{overflow-wrap:anywhere;font-size:.84rem}.agent-insight-list{gap:.6rem}.agent-technical-details{padding:.8rem;border-radius:14px}.agent-technical-details pre{font-size:.72rem}.quick-actions-card .section-header{flex-direction:row;align-items:center}.action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.action-grid button{min-height:48px;padding:.65rem;font-size:.82rem;line-height:1.25}.notification-overlay{top:max(.75rem,env(safe-area-inset-top));left:.75rem;right:.75rem}}@media (max-width: 340px){.toolbar,.agent-summary-grid,.action-grid,.positions-table tbody tr{grid-template-columns:1fr}.toolbar>*,.positions-table tbody td:first-child{grid-column:1}}
