@import "https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap";:root{--primary:#45b992;--primary-light:#eaf8f4;--primary-dark:#379e7c;--bg-color:#f3f6f8;--surface:#fff;--surface-hover:#f9fafb;--text-main:#1f2937;--text-muted:#6b7280;--text-light:#9ca3af;--profit:#ef4444;--profit-bg:#fef2f2;--loss:#3b82f6;--loss-bg:#eff6ff;--border:#e6e9ee;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #00000014, 0 2px 4px -1px #0000000a;--shadow-lg:0 10px 15px -3px #00000014, 0 4px 6px -2px #0000000a;--radius-sm:.5rem;--radius-md:.75rem;--radius-lg:1rem;--font-sans:"Pretendard", "Inter", -apple-system, sans-serif;--font-mono:"Inter", monospace}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-color);color:var(--text-main);-webkit-font-smoothing:antialiased;line-height:1.5}button{cursor:pointer;background:0 0;border:none;font-family:inherit}a{color:inherit;text-decoration:none}.text-profit{color:var(--profit)}.text-loss{color:var(--loss)}.text-neutral{color:var(--text-muted)}.bg-profit-light{background-color:var(--profit-bg);color:var(--profit)}.bg-loss-light{background-color:var(--loss-bg);color:var(--loss)}.font-num{font-family:var(--font-mono);letter-spacing:-.02em;white-space:nowrap}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.dropdown-item:hover,.icon-btn:hover{background-color:var(--surface-hover)!important}.animate-fade-in{animation:.4s ease-out forwards fadeIn}.app-container{--sidebar-width:260px;--header-height:64px;height:100vh;display:flex;overflow:hidden}.sidebar{width:var(--sidebar-width);background:var(--surface);border-right:1px solid var(--border);z-index:100;flex-direction:column;transition:width .3s;display:flex;box-shadow:2px 0 8px #00000005}.app-container.sidebar-collapsed{--sidebar-width:72px}.main-content{background-color:var(--bg-color);flex-direction:column;flex:1;height:100vh;display:flex;position:relative;overflow:hidden}.top-header{height:var(--header-height);background:var(--surface);border-bottom:1px solid var(--border);z-index:50;flex-shrink:0;justify-content:flex-end;align-items:center;padding:0 1.25rem;display:flex;position:sticky;top:0;box-shadow:0 1px 3px #00000005}.page-scroller{-webkit-overflow-scrolling:touch;flex:1;overflow:hidden auto}.page-container{width:100%;margin:0 auto;padding:1.5rem 2rem}.mobile-app-container{background-color:var(--bg-color);flex-direction:column;min-height:100vh;display:flex}.mobile-main-content{margin-top:56px;padding-bottom:70px}@media (width<=768px){.sidebar{width:260px;position:absolute;top:0;bottom:0;left:0;transform:translate(-100%);box-shadow:4px 0 16px #0000001a}.app-container:not(.sidebar-collapsed) .sidebar{transform:translate(0)}.app-container:not(.sidebar-collapsed):after{content:"";z-index:90;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0006;position:fixed;inset:0}.top-header{flex-wrap:wrap;gap:.5rem;height:auto;min-height:64px;padding:.5rem .75rem}.page-container{padding:1rem .75rem}.top-header>div:first-child{order:3;justify-content:flex-start;width:100%;padding:4px 0;overflow-x:auto}table thead th,table tbody td{padding:.6rem .5rem;font-size:.8125rem}}.card{background:var(--surface);border-radius:var(--radius-md);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:all .2s}.card:hover{box-shadow:var(--shadow-md)}.card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.card-body{padding:1.25rem}.btn{border-radius:var(--radius-sm);justify-content:center;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .2s;display:inline-flex}.btn-primary{background-color:var(--primary);color:#fff}.btn-primary:hover{background-color:var(--primary-dark)}.btn-outline{border:1px solid var(--border);background-color:var(--surface);color:var(--text-main)}.btn-outline:hover{background-color:var(--surface-hover);border-color:#d1d5db}.table-container{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%}thead th{text-align:right;color:var(--text-muted);border-bottom:1px solid var(--border);white-space:nowrap;padding:.5rem;font-size:.8125rem;font-weight:500}thead th:first-child{text-align:left;padding-left:1rem}tbody td{border-bottom:1px solid var(--border);text-align:right;white-space:nowrap;padding:.5rem;font-size:.8125rem}tbody td:first-child{text-align:left;padding-left:1rem}tbody tr:hover{background-color:var(--surface-hover)}.table-container::-webkit-scrollbar{background-color:#f1f5f9;height:6px}.table-container::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:10px}.table-container::-webkit-scrollbar-thumb:hover{background-color:#94a3b8}.badge{border-radius:9999px;align-items:center;padding:.125rem .5rem;font-size:.75rem;font-weight:600;display:inline-flex}.form-input,.form-select{border:1px solid var(--border);border-radius:var(--radius-sm);background-color:var(--surface);width:100%;color:var(--text-main);padding:.625rem .875rem;font-family:inherit;font-size:.9rem;transition:all .2s}.form-input:focus,.form-select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 2px #45b99233}.form-input::placeholder{color:var(--text-light)}.hide-scrollbar::-webkit-scrollbar{display:none}.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.asset-card-grid{grid-template-columns:1fr 1fr;gap:.8rem .5rem;margin-bottom:1.25rem;font-size:.8125rem;display:grid}@media (width<=480px){.asset-card-grid{grid-template-columns:1fr}}.drag-handle{cursor:grab;color:var(--text-light);border-radius:4px;justify-content:center;align-items:center;padding:4px;transition:all .2s;display:flex}.drag-handle:hover{background-color:var(--surface-hover);color:var(--text-main)}.drag-handle:active{cursor:grabbing}.sortable-item-dragging{opacity:.5;background-color:var(--surface-hover);z-index:1000;box-shadow:var(--shadow-lg)}.sortable-row-dragging{background-color:var(--surface-hover);box-shadow:inset 0 0 0 2px var(--primary)}.sort-label{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:4px;align-items:center;gap:4px;margin:-2px -4px;padding:2px 4px;transition:all .2s;display:inline-flex}.sort-label:hover{color:var(--text-main)!important}.sort-icon{opacity:0;color:var(--text-light);transition:opacity .2s,transform .2s;display:inline-flex}.sort-label:hover .sort-icon{opacity:.5}.sort-label.active .sort-icon{opacity:1;color:var(--primary-dark)}.sort-label.asc .sort-icon{transform:rotate(180deg)}.sort-label.desc .sort-icon{transform:rotate(0)}.mobile-dashboard{background-color:var(--bg-color);min-height:calc(100vh - 120px);padding:16px}.mobile-section{margin-bottom:24px}.mobile-section-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.mobile-section-title{color:var(--text-main);font-size:1.1rem;font-weight:700}.mobile-summary-card{border:1px solid var(--border);background:#fff;border-radius:16px;padding:20px;box-shadow:0 4px 12px #0000000d}.mobile-summary-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.mobile-summary-item{flex-direction:column;gap:4px;display:flex}.mobile-summary-item .label{color:var(--text-muted);font-size:.75rem;font-weight:500}.mobile-summary-item .value{font-family:Outfit,-apple-system,sans-serif;font-size:1rem;font-weight:700}.mobile-summary-item .value:not(.text-profit):not(.text-loss):not(.text-neutral){color:var(--text-main)}.mobile-tabs{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:4px;display:flex}.mobile-tabs button{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 12px;font-size:.75rem;font-weight:600}.mobile-tabs button.active{color:var(--text-main);background:#fff;box-shadow:0 2px 4px #0000000d}.mobile-treemap-container{background:#fff;border-radius:12px;padding:8px;overflow:hidden;box-shadow:0 2px 8px #0000000d}.mobile-asset-list{flex-direction:column;gap:12px;display:flex}.mobile-asset-card{border:1px solid var(--border);background:#fff;border-radius:16px;padding:16px;box-shadow:0 2px 8px #0000000a}.card-top{border-bottom:1px solid var(--border);background:#f8fafc;justify-content:space-between;align-items:flex-start;margin:-16px -16px 16px;padding:16px;display:flex}.card-info .name{color:var(--text-main);margin-bottom:2px;font-size:.95rem;font-weight:700}.card-info .ticker{color:var(--text-muted);font-size:.75rem}.card-info .percent{color:var(--text-muted);margin-left:4px;font-weight:600}.card-price{text-align:right}.card-price .current-price{font-size:1rem;font-weight:700}.card-price .change{font-size:.75rem;font-weight:600}.card-divider{display:none}.card-bottom{grid-template-columns:1fr 1fr;gap:12px;display:grid}.bottom-item{flex-direction:column;gap:2px;display:flex}.bottom-item .label{color:var(--text-muted);font-size:.7rem}.bottom-item .val{font-size:.9rem;font-weight:700}.card-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;margin-top:16px;padding-top:16px;display:flex}.dividend-tag{color:#10b981;background:#f0fdf4;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-size:.75rem;font-weight:600;display:flex}.treemap-tooltip{color:#fff;background:#000c;border-radius:8px;padding:8px 12px;font-size:.8rem;box-shadow:0 4px 12px #0003}.mobile-transactions{background-color:var(--bg-color);min-height:calc(100vh - 120px);padding:16px}.transactions-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.transactions-header .title{color:#029a73;font-size:1.25rem;font-weight:700}.add-btn{color:#fff;cursor:pointer;background:#029a73;border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;display:flex;box-shadow:0 4px 10px #0000001a}.filters-container{margin-bottom:20px}.filter-row{gap:12px;margin-bottom:12px;display:flex}.filter-select{color:#029a73;cursor:pointer;background:#e6f7f3;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:8px;padding:8px 12px;font-size:.85rem;font-weight:600;display:flex}.period-tabs{background:var(--surface);border:1px solid var(--border);border-radius:8px;justify-content:space-between;padding:4px;display:flex}.transactions-list{flex-direction:column;gap:12px;display:flex}.transaction-card{border:1px solid var(--border-light);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;padding:12px 16px;display:flex;box-shadow:0 2px 6px #00000008}.card-left .date{color:var(--text-muted);margin-bottom:2px;font-size:.7rem}.card-left .name{color:var(--text-main);margin-bottom:2px;font-size:.9rem;font-weight:700}.card-left .account{color:var(--text-muted);font-size:.7rem}.card-right{flex-direction:column;align-items:flex-end;gap:4px;display:flex}.type-badge{text-transform:uppercase;border-radius:4px;padding:2px 8px;font-size:.65rem;font-weight:700}.type-badge.buy{color:#ef4444;background:#fee2e2}.type-badge.sell{color:#3b82f6;background:#dbeafe}.type-badge.div{color:#10b981;background:#f0fdf4}.amount{font-size:.95rem;font-weight:700}.amount.plus{color:#3b82f6}.amount.minus{color:#ef4444}.mobile-trends{background-color:var(--bg-color);min-height:calc(100vh - 120px);padding:16px}.trends-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.trends-header .title{color:#029a73;font-size:1.25rem;font-weight:700}.icon-btn{color:#6b7280;cursor:pointer;background:#f3f4f6;border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.filter-tabs .filter-select{color:#029a73;cursor:pointer;background:#e6f7f3;border:none;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:8px;padding:10px 12px;font-size:.85rem;font-weight:600;display:flex}.chart-footer{text-align:center;color:#9ca3af;background:#f9fafb;border-radius:6px;margin-top:12px;padding:6px;font-size:.7rem}.chart-legend{justify-content:center;gap:16px;display:flex}.legend-item{color:var(--text-muted);align-items:center;gap:6px;font-size:.75rem;font-weight:600;display:flex}.dot{border-radius:50%;width:8px;height:8px}.dot.buy{background:#10b981}.dot.rate{background:#f59e0b}.dot.eval{background:#8b5cf6}.mobile-dividends{background-color:var(--bg-color);min-height:calc(100vh - 120px);padding:16px}.dividends-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.dividends-header .title{color:#029a73;font-size:1.25rem;font-weight:700}.header-actions{gap:12px;display:flex}.total-dividend-card{background:#f0fdf4;border:1px solid #dcfce7;border-radius:16px;margin-bottom:24px;padding:24px;position:relative}.total-dividend-card .label{color:#10b981;margin-bottom:8px;font-size:.85rem;font-weight:600}.total-dividend-card .amount{color:#065f46;font-size:1.75rem;font-weight:800}.total-dividend-card .trend-icon{font-size:1.5rem;position:absolute;top:50%;right:24px;transform:translateY(-50%)}.filter-tabs{gap:12px;margin-bottom:16px;display:flex}.filter-tabs .filter-select{color:#029a73;cursor:pointer;background:#e6f7f3;border:none;border-radius:8px;flex:1;padding:8px 12px;font-size:.85rem;font-weight:600}.period-tabs{background:var(--surface);border:1px solid var(--border);border-radius:8px;justify-content:space-between;margin-bottom:20px;padding:4px;display:flex}.period-tabs button{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1;padding:6px 0;font-size:.75rem;font-weight:600}.period-tabs button.active{color:#fff;background:#029a73;box-shadow:0 2px 4px #0000001a}.chart-container{border:1px solid var(--border);background:#fff;border-radius:16px;margin-bottom:24px;padding:16px;box-shadow:0 4px 12px #0000000d}.chart-footer{text-align:center;color:#9ca3af;border-bottom:.5px solid #f1f5f9;margin-top:12px;padding-bottom:4px;font-size:.75rem}.history-list{flex-direction:column;gap:16px;display:flex}.history-item{border:1px solid var(--border);background:#fff;border-radius:16px;overflow:hidden}.year-group .group-header{background:#fafafa;justify-content:space-between;align-items:center;padding:16px;display:flex}.year-group .group-header .title{align-items:center;gap:8px;font-weight:700;display:flex}.year-group .group-header .badge{color:#9ca3af;background:#eee;border-radius:10px;padding:2px 6px;font-size:.7rem;font-weight:500}.year-group .group-header .amount{color:#029a73;margin-left:auto;margin-right:12px;font-weight:800}.month-group .group-header{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.month-group .group-header .title{font-size:.95rem;font-weight:700}.month-group .group-header .amount{color:#f59e0b;margin-left:auto;margin-right:12px;font-weight:700}.stock-dividend{border-top:1px solid #f9fafb;justify-content:space-between;align-items:flex-end;padding:12px 16px;display:flex}.stock-info .name{color:#1f2937;margin-bottom:4px;font-size:.85rem;font-weight:600}.stock-info .details{color:#9ca3af;font-size:.7rem}.stock-dividend .val{color:#111827;font-size:.9rem;font-weight:700}.mobile-header{color:#fff;z-index:1000;background-color:#029a73;justify-content:space-between;align-items:center;height:56px;padding:0 16px;display:flex;position:fixed;top:0;left:0;right:0;box-shadow:0 1px 3px #0000001a}.mobile-header-left{align-items:center;gap:4px;display:flex}.mobile-logo-pt{font-size:1rem;font-weight:800}.mobile-logo-pc{color:#029a73;background:#fff;border-radius:4px;padding:2px 5px;font-size:.6rem;font-weight:800}.mobile-header-right{align-items:center;gap:6px;display:flex}.mobile-total-val{font-size:1.05rem;font-weight:700}.mobile-total-rate{opacity:.95;font-size:.8rem;font-weight:500}.mobile-nav{-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--border);z-index:1000;height:64px;padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;justify-content:space-around;align-items:center;display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-nav-item{color:#8e8e93;flex-direction:column;flex:1;align-items:center;gap:4px;font-size:.7rem;font-weight:500;text-decoration:none;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.mobile-nav-item.active{color:#029a73}.mobile-nav-item span{font-size:.65rem;font-weight:600}
