:root { --portfolio-max: 1680px; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.portfolio-app { min-height: 100vh; }
.portfolio-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.portfolio-sidebar { padding: 18px 12px; border-right: 1px solid rgba(255,255,255,.06); background: rgba(5,10,20,.56); }
.portfolio-sidebar .main-nav { position: sticky; top: 78px; }
.sidebar-watchlist { position: sticky; top: 300px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-watchlist h2 { margin: 0 8px 10px; color: #475569; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-watchlist button { width: 100%; display: flex; gap: 9px; align-items: center; padding: 8px; border: 0; background: transparent; color: #64748b; font-size: 12px; text-align: left; cursor: pointer; }
.sidebar-watchlist button:hover { color: #cbd5e1; }
.sidebar-watchlist i { width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; }
.portfolio-main { width: min(100%, var(--portfolio-max)); margin: 0 auto; padding: 22px 24px 48px; }
.portfolio-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.portfolio-heading h1 { margin: 2px 0 5px; font-size: clamp(24px, 2vw, 30px); letter-spacing: -.04em; }
.portfolio-heading p { margin: 0; color: #64748b; font-size: 12px; }
.eyebrow { color: #60a5fa !important; font-size: 9px !important; font-weight: 700; letter-spacing: .15em; }
.heading-actions { display: flex; gap: 10px; }
.primary-button,.secondary-button { min-height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid rgba(255,255,255,.09); cursor: pointer; font-weight: 700; font-size: 12px; }
.primary-button { border-color: rgba(96,165,250,.4); background: linear-gradient(135deg,#3b82f6,#6366f1); box-shadow: 0 8px 24px rgba(59,130,246,.2); }
.secondary-button { background: rgba(255,255,255,.035); color: #94a3b8; }
.summary-grid { display: grid; grid-template-columns: repeat(5,minmax(135px,1fr)) minmax(205px,1.2fr); gap: 12px; margin-bottom: 16px; }
.summary-card,.fee-card { min-height: 126px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(15,23,42,.74); }
.summary-card { display: flex; flex-direction: column; justify-content: center; }
.summary-card span,.fee-card span { color: #718096; font-size: 11px; }
.summary-card strong { margin: 12px 0 7px; font-size: clamp(21px,1.8vw,27px); letter-spacing: -.045em; }
.summary-card small,.fee-card small { color: #475569; font-size: 10px; }
.accent-blue { background: linear-gradient(135deg,rgba(30,64,175,.19),rgba(15,23,42,.8)); border-color: rgba(96,165,250,.22); }
.accent-green { background: linear-gradient(135deg,rgba(5,150,105,.15),rgba(15,23,42,.8)); border-color: rgba(52,211,153,.19); }
.accent-green strong { color: #34d399; }
.accent-purple { background: linear-gradient(135deg,rgba(109,40,217,.16),rgba(15,23,42,.8)); border-color: rgba(167,139,250,.19); }
.accent-purple strong { color: #a78bfa; }
.fee-card { display: grid; align-content: center; gap: 10px; }
.fee-card-head { display: flex; justify-content: space-between; }
.fee-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fee-switch button { min-height: 56px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.025); color: #475569; cursor: pointer; }
.fee-switch button strong,.fee-switch button small { display: block; }
.fee-switch button strong { margin-bottom: 4px; color: inherit; font-size: 15px; }
.fee-switch button.active { color: #60a5fa; border-color: rgba(96,165,250,.5); background: rgba(59,130,246,.18); }
.fee-card p { margin: 0; color: #334155; font-size: 9px; text-align: center; }
.portfolio-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; align-items: start; }
.asset-column { min-width: 0; display: grid; gap: 16px; }
.register-column { display: grid; gap: 16px; position: sticky; top: 78px; }
.asset-card,.register-card,.trend-card { overflow: hidden; }
.section-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.section-head.compact { min-height: 68px; }
.section-head h2 { margin: 0 0 5px; font-size: 15px; }
.section-head p { margin: 0; color: #536078; font-size: 10px; }
.section-profit { text-align: right; }
.section-profit span { display: block; color: #64748b; font-size: 10px; }
.section-profit strong { color: #34d399; font-size: 21px; }
.asset-table-wrap { overflow-x: auto; scrollbar-color: rgba(96,165,250,.45) rgba(255,255,255,.03); scrollbar-width: thin; }
.asset-table { width: 100%; min-width: 970px; border-collapse: collapse; table-layout: fixed; }
.asset-table th { height: 38px; padding: 0 10px; color: #506078; font-size: 9px; font-weight: 600; text-align: center; background: rgba(255,255,255,.025); }
.asset-table th:first-child { width: 210px; text-align: left; padding-left: 18px; }
.asset-table th:nth-child(2){width:55px}.asset-table th:nth-child(3),.asset-table th:nth-child(4){width:80px}.asset-table th:nth-child(5){width:90px}.asset-table th:nth-child(6){width:80px}.asset-table th:nth-child(7){width:105px}.asset-table th:nth-child(8){width:90px}.asset-table th:nth-child(9){width:90px}
.asset-row { height: 74px; border-top: 1px solid rgba(255,255,255,.055); cursor: pointer; transition: background .16s ease; }
.asset-row:hover,.asset-row[aria-expanded="true"] { background: rgba(59,130,246,.075); }
.asset-row td { padding: 10px; color: #8c9bb1; font-size: 11px; text-align: center; vertical-align: middle; }
.asset-row td:first-child { text-align: left; padding-left: 16px; }
.asset-identity { display: flex; align-items: center; gap: 12px; }
.asset-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(96,165,250,.25); border-radius: 9px; background: rgba(59,130,246,.12); font-size: 17px; }
.asset-identity strong,.asset-identity small { display: block; }
.asset-identity strong { color: #e2e8f0; font-size: 12px; line-height: 1.35; }
.asset-identity small { margin-top: 3px; color: #475569; font-size: 9px; }
.asset-current { color: #e2e8f0 !important; font-weight: 700; }
.asset-profit.positive { color: #34d399; font-weight: 700; }.asset-profit.negative { color: #f87171; font-weight: 700; }
.return-badge,.ai-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 10px; white-space: nowrap; }
.return-badge.positive { color: #34d399; background: rgba(16,185,129,.12); }.return-badge.negative { color: #f87171; background: rgba(239,68,68,.11); }
.ai-badge.up { color:#34d399;background:rgba(16,185,129,.12)}.ai-badge.flat { color:#fbbf24;background:rgba(245,158,11,.11)}.ai-badge.down { color:#f87171;background:rgba(239,68,68,.11)}
.row-actions { display: flex; justify-content: center; gap: 6px; }
.row-actions button { min-width: 36px; height: 34px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.035); color: #64748b; font-size: 9px; cursor: pointer; }
.row-actions .delete-asset { border-color: rgba(248,113,113,.25); color: #f87171; }
.asset-detail-row { display: none; background: rgba(8,16,34,.82); }
.asset-detail-row.open { display: table-row; }
.asset-detail-row td { padding: 0 16px 16px; }
.asset-detail-panel { display: grid; grid-template-columns: 1.05fr 1fr .95fr 1.4fr; gap: 18px; padding: 17px 19px; border: 1px solid rgba(96,165,250,.16); border-radius: 12px; background: rgba(15,29,54,.68); }
.asset-detail-panel section { min-width: 0; }
.asset-detail-panel section>span { display: block; margin-bottom: 9px; color: #52617a; font-size: 9px; }
.asset-detail-panel section>strong { display: block; color: #dbeafe; font-size: 15px; line-height: 1.4; }
.asset-detail-panel section>small { display: block; margin-top: 7px; color: #475569; font-size: 9px; }
.asset-detail-panel dl { margin: 0; }.asset-detail-panel dl div { display:flex;justify-content:space-between;gap:12px;margin:5px 0;font-size:10px}.asset-detail-panel dt{color:#52617a}.asset-detail-panel dd{margin:0;color:#cbd5e1;font-weight:700}
.ai-detail strong.up{color:#34d399}.ai-detail strong.flat{color:#fbbf24}.ai-detail strong.down{color:#f87171}.ai-detail p{margin:6px 0;color:#8da0b9;font-size:10px;line-height:1.55}
.asset-footer { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.asset-footer p { margin: 0; color: #52617a; font-size: 9px; }
.pagination { display: flex; align-items: center; gap: 10px; }
.pagination button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.03); cursor: pointer; }
.pagination button:disabled { opacity: .25; cursor: default; }.pagination span { min-width: 45px; color: #64748b; font-size: 10px; text-align:center; }
.asset-empty { padding: 72px 20px; text-align: center; }.asset-empty span{font-size:34px}.asset-empty h3{margin:12px 0 6px;font-size:15px}.asset-empty p{margin:0 0 18px;color:#64748b;font-size:11px}
.register-card { padding-bottom: 18px; }
#asset-form { display: grid; gap: 13px; padding: 18px; }
.form-row { display: grid; grid-template-columns: minmax(0,1fr) 105px; gap: 10px; }
.form-field { display: grid; gap: 7px; }
.form-field>span { color: #64748b; font-size: 10px; }.form-field em{font-style:normal;color:#3f4b61}
.form-field input,.form-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; outline: 0; background: rgba(255,255,255,.035); color: #dbeafe; padding: 11px 12px; font-size: 11px; transition: border-color .16s,box-shadow .16s; }
.form-field textarea { resize: vertical; min-height: 92px; }
.form-field input:focus,.form-field textarea:focus { border-color: rgba(96,165,250,.5); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.field-error { min-height: 0; color:#f87171;font-size:9px}.form-field.invalid input{border-color:rgba(248,113,113,.55)}
.quantity-stepper { display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; min-height: 40px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.035); }
.quantity-stepper input { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; appearance: textfield; }.quantity-stepper input::-webkit-inner-spin-button{display:none}
.quantity-stepper button { height: 100%; border: 0; background: transparent; color: #64748b; cursor: pointer; font-size: 16px; }.quantity-stepper button:hover{color:#60a5fa;background:rgba(59,130,246,.08)}
.submit-asset { min-height: 44px; margin-top: 2px; border: 0; border-radius: 9px; background: linear-gradient(135deg,#3b82f6,#6366f1); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 10px 28px rgba(59,130,246,.22); }
.register-tip { margin: 0 18px; padding: 14px; border: 1px solid rgba(139,92,246,.23); border-radius: 9px; background: rgba(109,40,217,.1); }.register-tip strong{color:#a78bfa;font-size:9px}.register-tip p{margin:7px 0 0;color:#718096;font-size:9px;line-height:1.55}
.ad-panel { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 22px; border-style: dashed; background: linear-gradient(135deg,rgba(15,23,42,.72),rgba(30,41,59,.42)); text-align:center; }
.ad-panel.vertical { min-height: 220px; flex-direction: column; }.ad-label{color:#475569;font-size:8px;letter-spacing:.16em}.ad-panel strong,.ad-panel small{display:block}.ad-panel strong{font-size:12px}.ad-panel small{margin-top:5px;color:#475569;font-size:9px}.ad-size{padding:5px 8px;border:1px solid rgba(255,255,255,.06);border-radius:5px;color:#334155;font-size:8px}
.trend-card { padding-bottom: 16px; }.trend-legend{color:#64748b;font-size:10px}.trend-legend i{display:inline-block;width:18px;height:2px;margin-right:6px;background:#60a5fa;vertical-align:middle}.portfolio-chart-wrap{height:270px;padding:12px 18px 4px}
@media (max-width: 1450px){.summary-grid{grid-template-columns:repeat(3,1fr)}.portfolio-content-grid{grid-template-columns:minmax(0,1fr) 285px}}
@media (max-width: 1160px){.portfolio-shell{grid-template-columns:76px minmax(0,1fr)}.portfolio-sidebar .nav-item{justify-content:center;font-size:0;padding:12px 6px}.portfolio-sidebar .nav-item::before{content:'•';font-size:18px}.portfolio-sidebar .pro-badge,.sidebar-watchlist{display:none}.portfolio-main{padding-inline:16px}.portfolio-content-grid{grid-template-columns:1fr}.register-column{position:static;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr)}.ad-panel.vertical{min-height:100%}}
@media (max-width: 820px){.topbar{padding:0 12px;gap:10px}.portfolio-global-search{width:auto;flex:1}.portfolio-global-search kbd,.topbar .control-select,.topbar .profile-copy{display:none}.portfolio-shell{display:block}.portfolio-sidebar{padding:8px 10px;border-right:0;border-bottom:1px solid rgba(255,255,255,.06)}.portfolio-sidebar .main-nav{position:static;display:flex;overflow-x:auto}.portfolio-sidebar .nav-item{min-width:110px;font-size:11px}.portfolio-sidebar .nav-item::before{display:none}.portfolio-main{padding:15px 10px 35px}.portfolio-heading{align-items:center}.portfolio-heading p,.eyebrow,.secondary-button{display:none}.summary-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px}.summary-card,.fee-card{min-width:180px;scroll-snap-align:start}.portfolio-content-grid{display:block}.register-column{display:grid;margin-top:14px}.asset-detail-panel{grid-template-columns:1fr 1fr}.portfolio-chart-wrap{height:230px}}
@media (max-width: 560px){.brand span:last-child,.icon-button{display:none}.portfolio-heading{gap:8px}.portfolio-heading h1{font-size:22px}.heading-actions .primary-button{padding:0 11px}.summary-card,.fee-card{min-width:165px;min-height:112px}.register-column{grid-template-columns:1fr}.asset-footer{align-items:flex-start;flex-direction:column}.asset-detail-panel{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}.portfolio-chart-wrap{height:210px}.ad-panel{min-height:82px}.ad-panel.vertical{min-height:180px}}


/* Embedded portfolio view: market.html 내부 전환 화면 */
.portfolio-view { min-width: 0; }
.portfolio-view-inner { width: 100%; min-width: 0; }
.portfolio-view .portfolio-main { width: 100%; max-width: none; margin: 0; padding: 22px 24px 48px; }
.portfolio-view .portfolio-content-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.portfolio-view .register-column { top: 76px; }
@media (max-width: 1450px) {
  .portfolio-view .summary-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .portfolio-view .fee-card { grid-column: span 1; }
}
@media (max-width: 1180px) {
  .portfolio-view .portfolio-content-grid { grid-template-columns: 1fr; }
  .portfolio-view .register-column { position: static; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); }
}
@media (max-width: 820px) {
  .portfolio-view .portfolio-main { padding: 16px 14px 36px; }
  .portfolio-view .portfolio-heading { flex-direction: column; }
  .portfolio-view .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-view .register-column { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .portfolio-view .summary-grid { grid-template-columns: 1fr; }
  .portfolio-view .heading-actions { width: 100%; }
  .portfolio-view .heading-actions button { flex: 1; }
}

/* Portfolio analytics + sales workflow */
.portfolio-view .portfolio-content-grid{grid-template-columns:240px minmax(0,1fr) 300px;gap:16px}
.portfolio-insights-column{display:grid;gap:12px;position:sticky;top:86px}
.allocation-card,.profit-status-card,.realized-panel{overflow:hidden}
.allocation-card,.profit-status-card{padding-bottom:14px}
.allocation-chart-wrap{height:178px;padding:4px 18px 8px}
.allocation-legend{display:grid;gap:8px;padding:0 16px}
.allocation-legend-item{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:center;color:#94a3b8;font-size:10px}
.allocation-legend-item i{width:8px;height:8px;border-radius:2px}.allocation-legend-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.allocation-legend-item strong{color:#94a3b8;font-weight:600}
.profit-status-bar{display:flex;gap:8px;height:8px;padding:0 16px;margin:4px 0 17px}.profit-status-bar i{display:block;border-radius:999px;min-width:0}.profit-status-bar i:first-child{background:#34d399}.profit-status-bar i:last-child{background:#f87171}
.profit-status-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:0 12px}.profit-status-stats div{text-align:center;border-right:1px solid rgba(148,163,184,.12)}.profit-status-stats div:last-child{border:0}.profit-status-stats strong{display:block;font-size:20px;color:#cbd5e1}.profit-status-stats div:nth-child(1) strong{color:#34d399}.profit-status-stats div:nth-child(2) strong{color:#f87171}.profit-status-stats span{font-size:9px;color:#64748b}
.row-actions{gap:4px}.row-actions button{min-width:34px;padding:0 6px}.row-actions .sell-asset{border-color:rgba(52,211,153,.25);color:#34d399}
.realized-panel{margin-top:14px}.performance-tabs{display:flex;gap:8px;padding:14px 18px 0;border-bottom:1px solid rgba(148,163,184,.1)}.performance-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:#64748b;padding:10px 12px;font-size:11px;cursor:pointer}.performance-tab.active{color:#93c5fd;border-bottom-color:#60a5fa}.performance-panel{padding:18px}.realized-layout{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:28px;align-items:stretch}.realized-chart-wrap{height:265px}.realized-summary{display:grid;gap:10px;align-content:center}.realized-summary article{padding:14px;border:1px solid rgba(148,163,184,.13);background:rgba(255,255,255,.025);border-radius:10px}.realized-summary span{display:block;color:#64748b;font-size:10px;margin-bottom:7px}.realized-summary strong{font-size:17px;color:#34d399}.realized-summary article:last-child strong{color:#a78bfa}
.sales-history-wrap{overflow:auto;min-height:260px}.sales-history-table{width:100%;border-collapse:collapse;min-width:720px}.sales-history-table th,.sales-history-table td{padding:12px 10px;border-bottom:1px solid rgba(148,163,184,.09);font-size:10px;text-align:right;color:#94a3b8}.sales-history-table th:first-child,.sales-history-table td:first-child,.sales-history-table th:nth-child(2),.sales-history-table td:nth-child(2){text-align:left}.sales-history-table th{color:#475569;font-weight:600}.sales-history-table .positive{color:#34d399}.sales-history-table .negative{color:#f87171}.sales-history-empty{text-align:center;padding:90px 20px;color:#64748b;font-size:11px}
.portfolio-modal[hidden]{display:none}.portfolio-modal{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:18px}.portfolio-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.76);backdrop-filter:blur(4px)}.portfolio-modal-card{position:relative;width:min(440px,100%);padding:24px;z-index:1}.portfolio-modal-card h2{margin:2px 0 18px;font-size:22px}.sell-asset-summary{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px 14px;margin-bottom:14px;border:1px solid rgba(96,165,250,.16);background:rgba(96,165,250,.05);border-radius:10px}.sell-asset-summary span,.sell-asset-summary small{font-size:10px;color:#64748b}.sell-asset-summary strong{font-size:12px;color:#e2e8f0}.sell-fee-selector{display:flex;gap:18px;border:0;padding:0;margin:14px 0}.sell-fee-selector legend{font-size:10px;color:#94a3b8;margin-bottom:8px}.sell-fee-selector label{font-size:11px;color:#cbd5e1}.sell-preview{display:grid;gap:8px;padding:13px;margin-top:13px;border-radius:10px;background:rgba(2,6,23,.35);border:1px solid rgba(148,163,184,.1)}.sell-preview div{display:flex;justify-content:space-between;gap:15px}.sell-preview span{font-size:10px;color:#64748b}.sell-preview strong{font-size:11px;color:#cbd5e1}.sell-preview .sell-profit-row{padding-top:8px;border-top:1px solid rgba(148,163,184,.1)}.sell-preview .sell-profit-row strong.positive{color:#34d399}.sell-preview .sell-profit-row strong.negative{color:#f87171}.portfolio-modal-card .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
@media(max-width:1500px){.portfolio-view .portfolio-content-grid{grid-template-columns:215px minmax(0,1fr) 285px}}
@media(max-width:1250px){.portfolio-view .portfolio-content-grid{grid-template-columns:1fr 290px}.portfolio-insights-column{position:static;grid-column:1 / -1;grid-template-columns:1fr 1fr}.allocation-chart-wrap{height:150px}.allocation-card{display:grid;grid-template-columns:1fr 1fr;align-items:center}.allocation-card .section-head{grid-column:1/-1}.profit-status-card{align-self:stretch}.realized-layout{grid-template-columns:1fr 170px}}
@media(max-width:820px){.portfolio-insights-column{grid-template-columns:1fr}.allocation-card{display:block}.realized-layout{grid-template-columns:1fr}.realized-summary{grid-template-columns:repeat(3,1fr)}.realized-summary article{padding:10px}.row-actions{flex-direction:column}.performance-panel{padding:12px}}

/* 상세보기 및 상세 영역 관리 버튼 */
.detail-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:72px;height:28px;padding:0 9px;border:1px solid rgba(96,165,250,.22);border-radius:7px;background:rgba(96,165,250,.06);color:#93c5fd;font-size:9px;font-weight:700;cursor:pointer;transition:.16s ease}
.detail-toggle:hover,.asset-row[aria-expanded="true"] .detail-toggle{border-color:rgba(96,165,250,.5);background:rgba(96,165,250,.13);color:#dbeafe}
.detail-toggle i{font-style:normal;font-size:13px;line-height:1;transition:transform .18s ease}
.asset-row[aria-expanded="true"] .detail-toggle i{transform:rotate(180deg)}
.asset-detail-panel{position:relative;padding-bottom:68px}
.detail-actions{position:absolute;left:19px;right:19px;bottom:16px;display:flex;justify-content:flex-end;gap:8px;padding-top:13px;border-top:1px solid rgba(148,163,184,.1)}
.detail-actions button{min-width:68px;height:31px;padding:0 13px;border:1px solid rgba(148,163,184,.2);border-radius:7px;background:rgba(15,23,42,.66);color:#cbd5e1;font-size:10px;font-weight:700;cursor:pointer;transition:.16s ease}
.detail-actions button:hover{transform:translateY(-1px);background:rgba(30,41,59,.92)}
.detail-actions .sell-asset{border-color:rgba(52,211,153,.3);color:#34d399;background:rgba(52,211,153,.07)}
.detail-actions .edit-asset{border-color:rgba(96,165,250,.3);color:#93c5fd;background:rgba(96,165,250,.07)}
.detail-actions .delete-asset{border-color:rgba(248,113,113,.3);color:#f87171;background:rgba(248,113,113,.06)}
@media (max-width:560px){.detail-toggle span{display:none}.detail-toggle{min-width:34px}.asset-detail-panel{padding-bottom:112px}.detail-actions{display:grid;grid-template-columns:repeat(3,1fr)}.detail-actions button{min-width:0;padding:0 5px}}

/* =========================================================
   Portfolio visual polish v2
   - 판매 모달 버튼 균형
   - 110% 브라우저 확대 기준 가독성 개선
   - 본문 타이포그래피 및 간격 정돈
   ========================================================= */

/* 전체 포트폴리오 화면의 기본 가독성 */
.portfolio-view {
  --pf-text-xs: 11px;
  --pf-text-sm: 12px;
  --pf-text-md: 13px;
  --pf-text-lg: 15px;
  color: #d8e2f1;
}

.portfolio-view .portfolio-main {
  padding: 26px 26px 52px;
}

.portfolio-view .portfolio-heading {
  margin-bottom: 22px;
}

.portfolio-view .portfolio-heading h1 {
  font-size: clamp(27px, 2vw, 32px);
  line-height: 1.2;
}

.portfolio-view .portfolio-heading p {
  font-size: 13px;
  line-height: 1.6;
}

.portfolio-view .summary-grid,
.portfolio-view .portfolio-content-grid,
.portfolio-view .asset-column,
.portfolio-view .register-column,
.portfolio-view .portfolio-insights-column {
  gap: 18px;
}

.portfolio-view .summary-card,
.portfolio-view .fee-card {
  min-height: 132px;
  padding: 19px 20px;
}

.portfolio-view .summary-card span,
.portfolio-view .fee-card span,
.portfolio-view .summary-card small,
.portfolio-view .fee-card small {
  font-size: var(--pf-text-xs);
  line-height: 1.45;
}

.portfolio-view .section-head {
  min-height: 80px;
  padding: 20px 22px;
}

.portfolio-view .section-head.compact {
  min-height: 72px;
}

.portfolio-view .section-head h2 {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.35;
}

.portfolio-view .section-head p,
.portfolio-view .section-profit span {
  font-size: var(--pf-text-xs);
  line-height: 1.5;
}

.portfolio-view .asset-table th {
  height: 42px;
  font-size: var(--pf-text-xs);
  letter-spacing: -.01em;
}

.portfolio-view .asset-row {
  height: 82px;
}

.portfolio-view .asset-row td {
  padding: 12px 10px;
  font-size: var(--pf-text-sm);
  line-height: 1.45;
}

.portfolio-view .asset-identity strong {
  font-size: 13px;
  line-height: 1.45;
}

.portfolio-view .asset-identity small,
.portfolio-view .asset-footer p,
.portfolio-view .pagination span {
  font-size: var(--pf-text-xs);
}

.portfolio-view .return-badge,
.portfolio-view .ai-badge {
  min-height: 27px;
  padding: 5px 9px;
  font-size: var(--pf-text-xs);
}

.portfolio-view .asset-detail-panel {
  gap: 20px;
  padding: 20px 21px 72px;
}

.portfolio-view .asset-detail-panel section > span,
.portfolio-view .asset-detail-panel section > small,
.portfolio-view .asset-detail-panel dl div,
.portfolio-view .ai-detail p {
  font-size: var(--pf-text-xs);
  line-height: 1.6;
}

.portfolio-view .asset-detail-panel section > strong {
  font-size: 16px;
}

.portfolio-view .detail-actions button {
  min-width: 74px;
  height: 36px;
  padding: 0 15px;
  font-size: var(--pf-text-xs);
}

.portfolio-view .form-field {
  gap: 8px;
}

.portfolio-view .form-field > span,
.portfolio-view .sell-fee-selector legend,
.portfolio-view .sell-fee-selector label {
  font-size: var(--pf-text-sm);
  line-height: 1.45;
}

.portfolio-view .form-field input,
.portfolio-view .form-field textarea {
  min-height: 44px;
  padding: 12px 13px;
  font-size: var(--pf-text-md);
  line-height: 1.45;
}

.portfolio-view .allocation-legend-item,
.portfolio-view .profit-status-stats span,
.portfolio-view .performance-tab,
.portfolio-view .realized-summary span,
.portfolio-view .sales-history-table th,
.portfolio-view .sales-history-table td,
.portfolio-view .sales-history-empty {
  font-size: var(--pf-text-xs);
}

.portfolio-view .performance-tab {
  padding: 12px 15px;
}

.portfolio-view .performance-panel {
  padding: 22px;
}

/* 판매 모달: 제품 수준의 균형과 명확한 시각적 위계 */
.portfolio-modal {
  padding: 24px;
}

.portfolio-modal-card {
  width: min(470px, 100%);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

.portfolio-modal-card .eyebrow {
  margin-bottom: 7px;
  font-size: 10px !important;
}

.portfolio-modal-card h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.25;
}

.portfolio-modal-card .sell-asset-summary {
  min-height: 58px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 11px;
}

.portfolio-modal-card .sell-asset-summary span,
.portfolio-modal-card .sell-asset-summary small {
  font-size: 11px;
  line-height: 1.4;
}

.portfolio-modal-card .sell-asset-summary strong {
  font-size: 13px;
}

.portfolio-modal-card .quantity-stepper {
  min-height: 44px;
}

.portfolio-modal-card .quantity-stepper button {
  width: 44px;
  min-width: 44px;
  font-size: 20px;
}

.portfolio-modal-card .quantity-stepper input {
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}

.portfolio-modal-card .sell-fee-selector {
  gap: 24px;
  margin: 18px 0;
}

.portfolio-modal-card .sell-fee-selector legend {
  margin-bottom: 10px;
  color: #a9b7cb;
  font-weight: 700;
}

.portfolio-modal-card .sell-fee-selector label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d3dcea;
  cursor: pointer;
}

.portfolio-modal-card .sell-preview {
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
  border-radius: 11px;
}

.portfolio-modal-card .sell-preview div {
  min-height: 22px;
  align-items: center;
}

.portfolio-modal-card .sell-preview span {
  font-size: 11px;
  line-height: 1.45;
}

.portfolio-modal-card .sell-preview strong {
  font-size: 13px;
  line-height: 1.4;
}

.portfolio-modal-card .sell-preview .sell-profit-row {
  margin-top: 2px;
  padding-top: 12px;
}

.portfolio-modal-card .modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.portfolio-modal-card .modal-actions > button {
  display: inline-flex !important;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.portfolio-modal-card .modal-actions .secondary-button {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(255, 255, 255, .035);
  color: #aebbd0;
  box-shadow: none;
}

.portfolio-modal-card .modal-actions .secondary-button:hover {
  border-color: rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .065);
  color: #e2e8f0;
}

.portfolio-modal-card .modal-actions .primary-button {
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 10px 25px rgba(59, 130, 246, .22);
}

.portfolio-modal-card .modal-actions .primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.portfolio-modal-card .modal-actions .primary-button:disabled {
  opacity: .46;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(.7);
}

@media (max-width: 1250px) {
  .portfolio-view .portfolio-main {
    padding-inline: 20px;
  }
}

@media (max-width: 820px) {
  .portfolio-view .portfolio-main {
    padding: 18px 14px 40px;
  }

  .portfolio-view .section-head {
    padding: 18px;
  }

  /* 기존 전역 규칙으로 취소 버튼이 숨지 않도록 보장 */
  .portfolio-modal-card .secondary-button {
    display: inline-flex !important;
  }
}

@media (max-width: 560px) {
  .portfolio-modal {
    align-items: end;
    padding: 10px;
  }

  .portfolio-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .portfolio-modal-card .modal-actions {
    position: sticky;
    bottom: -18px;
    margin: 20px -18px -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .72), #0f172a 28%);
  }

  .portfolio-modal-card .modal-actions > button {
    min-height: 46px;
  }
}


/* 판매 내역 취소 기능 */
.portfolio-view .sales-history-table {
  min-width: 900px;
}

.portfolio-view .sales-history-table th:last-child,
.portfolio-view .sales-history-table td:last-child {
  width: 112px;
  text-align: center;
}

.portfolio-view .sale-item-name {
  display: block;
  color: #dce7fb;
  font-weight: 700;
}

.portfolio-view .sale-cancelled-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(100, 116, 139, .12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.portfolio-view .sale-row.is-cancelled td {
  background: rgba(15, 23, 42, .28);
  color: #64748b;
}

.portfolio-view .sale-row.is-cancelled .sale-item-name {
  color: #7f8da4;
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, .4);
}

.portfolio-view .cancelled-profit {
  color: #64748b;
  font-weight: 700;
}

.portfolio-view .sale-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(248, 113, 113, .34);
  border-radius: 9px;
  background: rgba(127, 29, 29, .13);
  color: #fda4af;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.portfolio-view .sale-cancel-button:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, .65);
  background: rgba(190, 24, 93, .19);
  color: #fecdd3;
  transform: translateY(-1px);
}

.portfolio-view .sale-cancel-button:focus-visible {
  outline: 2px solid rgba(96, 165, 250, .85);
  outline-offset: 2px;
}

.portfolio-view .sale-cancel-button.is-complete,
.portfolio-view .sale-cancel-button:disabled {
  border-color: rgba(100, 116, 139, .18);
  background: rgba(51, 65, 85, .12);
  color: #64748b;
  cursor: default;
  opacity: .8;
}


/* Keep portfolio content visible in medium-sized windows. */
@media (max-width: 1260px) {
    .portfolio-content-grid {
        grid-template-columns: 1fr !important;
    }

    .register-column {
        position: static !important;
        grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
    }
}

@media (max-width: 920px) {
    .register-column {
        grid-template-columns: 1fr;
    }
}


.asset-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* METEM acquisition type v1 */
.portfolio-view .form-field select{width:100%;min-height:44px;padding:12px 13px;border:1px solid rgba(255,255,255,.09);border-radius:9px;outline:0;background:#121e31;color:#dbeafe;font-size:var(--pf-text-md)}
.portfolio-view .form-field select:focus{border-color:rgba(96,165,250,.5);box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.portfolio-view .form-field select option{background:#121e31;color:#dbeafe}.portfolio-view .field-help{color:#8998ad;font-size:var(--pf-text-xs)}

/* ===== METEM acquisition method segmented UI v1 ===== */
.portfolio-view .acquisition-method-field{gap:9px}
.portfolio-view .acquisition-method-label{display:block;color:#aebbd0;font-size:var(--pf-text-sm);font-weight:700;letter-spacing:-.01em}
.portfolio-view .acquisition-method-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.portfolio-view .acquisition-method-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;min-height:48px;border:1px solid rgba(148,163,184,.13);border-radius:11px;background:#101a2b;box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
.portfolio-view .acquisition-method-tab{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:40px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#8998ad;font:inherit;font-size:var(--pf-text-sm);font-weight:700;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.portfolio-view .acquisition-method-tab:hover{color:#cbd5e1;background:rgba(148,163,184,.055)}
.portfolio-view .acquisition-method-tab:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(83,131,232,.18)}
.portfolio-view .acquisition-method-tab.is-active{color:#f5f8ff;border-color:rgba(96,165,250,.42);background:linear-gradient(135deg,rgba(59,130,246,.82),rgba(91,91,226,.76));box-shadow:0 7px 18px rgba(37,99,235,.16),inset 0 1px 0 rgba(255,255,255,.12)}
.portfolio-view .acquisition-method-tab:active{transform:translateY(1px)}
.portfolio-view .acquisition-method-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;color:currentColor;font-size:11px;opacity:.92}
.portfolio-view .acquisition-method-icon-boss{font-size:10px}
.portfolio-view .acquisition-method-help{display:flex;align-items:flex-start;gap:8px;min-height:38px;padding:10px 11px;border:1px solid rgba(83,131,232,.14);border-radius:9px;background:rgba(83,131,232,.065);color:#91a1b8;font-size:var(--pf-text-xs);line-height:1.45}
.portfolio-view .acquisition-help-icon{flex:0 0 16px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-top:1px;border-radius:50%;background:rgba(96,165,250,.16);color:#7fb0ff;font-size:10px;font-weight:800}
.portfolio-view #asset-price:disabled{opacity:.72;cursor:not-allowed;background:#101a2b;color:#7f8da2;border-color:rgba(148,163,184,.08)}
@media(max-width:760px){.portfolio-view .acquisition-method-tab{gap:6px;padding-inline:8px}}


/* ===== METEM boss party share UI v2 ===== */
.portfolio-view .boss-party-fields{
  display:grid;gap:10px;padding:12px;border:1px solid rgba(83,131,232,.15);
  border-radius:11px;background:rgba(13,21,36,.42)
}
.portfolio-view .boss-party-fields[hidden]{display:none!important}
.portfolio-view .boss-party-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.portfolio-view .boss-party-title{display:block;color:#b9c6d8;font-size:var(--pf-text-sm);font-weight:750}
.portfolio-view .boss-party-head small{display:block;margin-top:3px;color:#75859c;font-size:var(--pf-text-xs);line-height:1.4}
.portfolio-view .party-size-stepper{
  flex:0 0 auto;display:grid;grid-template-columns:34px 54px 34px;align-items:center;height:38px;
  overflow:hidden;border:1px solid rgba(148,163,184,.14);border-radius:9px;background:#101a2b
}
.portfolio-view .party-size-stepper button{
  height:100%;border:0;background:transparent;color:#8fa0b8;font-size:18px;cursor:pointer;
  transition:background-color .15s ease,color .15s ease
}
.portfolio-view .party-size-stepper button:hover{background:rgba(83,131,232,.08);color:#dce7f7}
.portfolio-view .party-size-stepper input{
  width:100%;height:100%;padding:0;border:0;border-inline:1px solid rgba(148,163,184,.09);
  border-radius:0;background:rgba(7,14,25,.22);color:#f1f5fb;text-align:center;font-weight:750;
  appearance:textfield
}
.portfolio-view .party-size-stepper input::-webkit-inner-spin-button,
.portfolio-view .party-size-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.portfolio-view .boss-share-summary{
  display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px 10px;padding:9px 10px;
  border:1px solid rgba(52,211,153,.13);border-radius:9px;background:rgba(16,185,129,.055)
}
.portfolio-view .boss-share-summary>span{color:#8ea0b6;font-size:var(--pf-text-xs)}
.portfolio-view .boss-share-summary>strong{color:#70ddb7;font-size:var(--pf-text-sm)}
.portfolio-view .boss-share-summary>small{color:#7f948f;font-size:var(--pf-text-xs);line-height:1.4}
@media(max-width:760px){
  .portfolio-view .boss-party-head{align-items:flex-end}
  .portfolio-view .boss-share-summary{grid-template-columns:auto auto}
  .portfolio-view .boss-share-summary>small{grid-column:1/-1}
}

/* v1.2 - 자산 등록 아이템 자동완성 레이어 회귀 방지 */
.portfolio-view .register-card { overflow: visible; }
.portfolio-view .portfolio-item-search { position: relative; z-index: 140; }
.portfolio-view .portfolio-item-autocomplete { z-index: 300; max-height: 280px; overflow-y: auto; }

/* Step 3 - registration UX */
.asset-form-actions{display:grid;grid-template-columns:minmax(110px,.42fr) minmax(0,1fr);gap:10px;margin-top:4px}
.asset-reset-button{min-height:44px;border:1px solid var(--metem-line);border-radius:10px;background:var(--metem-panel-soft);color:var(--metem-text-2);font-weight:700;cursor:pointer}
.asset-reset-button:hover{background:var(--metem-panel-raised);color:var(--metem-text)}
.boss-acquisition-badge{display:inline-flex;align-items:center;padding:2px 7px;border:1px solid rgba(83,131,232,.24);border-radius:999px;background:var(--metem-blue-soft);color:#8fb1ff;font-size:10px;font-weight:700;white-space:nowrap}
@media(max-width:640px){.asset-form-actions{grid-template-columns:1fr 1.35fr}}

/* v3.1 - 기타 획득 */
.other-acquisition-badge{display:inline-flex;align-items:center;padding:2px 7px;border:1px solid var(--metem-line);border-radius:999px;background:var(--metem-panel-soft);color:var(--metem-text-2);font-size:10px;font-weight:700;white-space:nowrap}
.acquisition-method-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.acquisition-method-icon-other{font-size:15px}

/* v3.1.1 - 획득방법 3분할 세그먼트 디자인
   PC/모바일 모두 한 줄 유지. 기존 다크 톤과 blue active hierarchy 유지. */
.acquisition-method-tabs{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:6px !important;
  width:100%;
  flex-wrap:nowrap !important;
}
.acquisition-method-tab{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:44px;
  padding:9px 8px !important;
  margin:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  overflow:hidden;
  border-radius:9px;
}
.acquisition-method-tab > span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.acquisition-method-tab .acquisition-method-icon{
  flex:0 0 auto;
}
@media(max-width:640px){
  .acquisition-method-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:4px !important;
  }
  .acquisition-method-tab{
    min-height:42px;
    padding:8px 4px !important;
    gap:4px;
    font-size:12px;
  }
  .acquisition-method-tab .acquisition-method-icon{
    font-size:11px;
  }
}





/* v3.1.6 - 획득방법 상단 간격 컴팩트 조정 */
.acquisition-method-tabs{
  margin-top:4px !important;
  margin-bottom:6px !important;
}

.acquisition-method-help{
  min-height:38px !important;
  padding:8px 12px !important;
  margin:0 0 10px !important;
  display:flex;
  align-items:center;
  gap:9px;
  line-height:1.4;
}

.acquisition-method-help .acquisition-help-icon{
  flex:0 0 auto;
}

.acquisition-method-help .acquisition-help-text{
  padding:0 !important;
  margin:0 !important;
  line-height:1.4;
}

@media(max-width:640px){
  .acquisition-method-tabs{
    margin-top:3px !important;
    margin-bottom:5px !important;
  }
  .acquisition-method-help{
    min-height:36px !important;
    padding:7px 10px !important;
    margin-bottom:9px !important;
    gap:8px;
  }
}

/* v3.1.7 - 아이템 검색 안내 → 획득방법 사이 상단 공백만 축소 */
#asset-form > #standard-asset-fields{
  margin-top:-7px !important;
}
@media(max-width:640px){
  #asset-form > #standard-asset-fields{
    margin-top:-6px !important;
  }
}

/* v3.2 - 통합 거래 내역 */
.transaction-history-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 150px 150px auto auto;gap:8px;align-items:center;padding:14px 14px 10px}
.transaction-history-toolbar input,.transaction-history-toolbar select,.transaction-history-toolbar button{min-height:38px;border:1px solid var(--metem-line);border-radius:8px;background:var(--metem-input);color:var(--metem-text-2);padding:8px 10px;font:inherit}
.transaction-history-toolbar button{cursor:pointer;background:var(--metem-panel-soft);font-weight:700}.history-result-count{justify-self:end;color:var(--metem-text-3);font-size:12px;white-space:nowrap}
.transaction-type-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;border:1px solid var(--metem-line);background:var(--metem-panel-soft);color:var(--metem-text-2);font-size:11px;font-weight:700;white-space:nowrap}
.transaction-type-badge[data-type="purchase"]{border-color:rgba(83,131,232,.25);background:var(--metem-blue-soft);color:#9bb9ff}.transaction-type-badge[data-type="boss"]{border-color:rgba(167,139,250,.24);background:rgba(139,92,246,.10);color:#c4b5fd}.transaction-type-badge[data-type="sale"]{border-color:rgba(45,212,191,.20);background:rgba(45,212,191,.08);color:#7dd3c7}
.transaction-no-action{color:var(--metem-text-3)}.history-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:10px 14px 14px}.history-pagination button{width:34px;height:32px;border:1px solid var(--metem-line);border-radius:8px;background:var(--metem-panel-soft);color:var(--metem-text-2);cursor:pointer}.history-pagination button:disabled{opacity:.4;cursor:default}.history-pagination span{min-width:52px;text-align:center;color:var(--metem-text-3);font-size:12px}
@media(max-width:900px){.transaction-history-toolbar{grid-template-columns:1fr 1fr}.transaction-search{grid-column:1/-1}.history-result-count{justify-self:start}}@media(max-width:640px){.transaction-history-toolbar{grid-template-columns:1fr}.transaction-search{grid-column:auto}.transaction-history-table{min-width:720px}}
