.hc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.hc-layout[hidden], [data-hc-card][hidden] { display: none; }
.hc-panel-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.hc-panel-heading h3 { font-size: 22px; margin: 0; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.hc-panel-heading .hc-title-bm, .hc-panel-heading .hc-title-moat { display: inline-flex; align-items: baseline; gap: 6px; }
.hc-panel-heading .hc-title-my { display: inline-flex; align-items: baseline; gap: 6px; color: #8b5cf6; }
.hc-title-my[hidden], .hc-method[hidden], .hc-my-column[hidden] { display: none; }
.hc-val-my { color: #8b5cf6; font-weight: 700; font-size: 22px; }
.hc-personal { margin-top: 20px; padding: 16px; border-radius: 14px; background: #f8f6ff; border: 1px solid #ede9fe; }
.hc-personal-heading, .hc-personal-heading > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.hc-personal-heading > strong { color: #6d28d9; font-size: 13px; }
.hc-personal-heading a { font-size: 12px; color: #6d28d9; text-underline-offset: 3px; }
.hc-personal .hc-note { margin-top: 8px; }
#homeComparison[data-logged-in="true"] .hc-personal > :not(.hc-personal-heading) { display: none; }
.hc-table td.hc-my-column { background: #f8f6ff; color: #7c3aed; font-weight: 700; }
.hc-panel-heading .hc-vs { color: #94a3b8; font-size: 16px; margin: 0 4px; font-weight: 500; }
.hc-panel-heading em { color: #16a070; font-style: normal; }
.hc-panel-heading > span { color: #64748b; font-size: 12px; }
.hc-val-bm { font-weight: 700; font-size: 22px; }
#hcValSPY, #hcValQQQ { color: #3b82f6; }
.hc-val-moat { color: #16a070; font-weight: 700; font-size: 22px; }
.hc-chart-card, .hc-sector-card { padding: 24px; min-width: 0; border-radius: 26px; }
.hc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.hc-eyebrow { color: #64748b; font-size: 13px; font-weight: 600; line-height: 1.45; }
.hc-ranges-wrap { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 12px; }
.hc-ranges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.hc-weighting-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.hc-control { display: inline-flex; align-items: center; gap: 10px; }
.hc-control > span { color: #64748b; font-size: 12px; font-weight: 600; }
.hc-weightings { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #eaf0f6; }
.hc-ranges button, .hc-weightings button, .hc-retry { border: 0; border-radius: 8px; padding: 6px 11px; background: #f1f5f9; color: #475569; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; transition: all 0.15s ease; }
.hc-weightings button { padding: 8px 14px; }
.hc-ranges button:hover, .hc-weightings button:hover, .hc-retry:hover { background: #e2e8f0; color: #1e293b; }
.hc-ranges button[aria-pressed="true"], .hc-weightings button[aria-pressed="true"] { background: #15283d; color: white; }
.hc-ranges button:focus-visible, .hc-weightings button:focus-visible, .hc-retry:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.hc-note[hidden] { display: none; }
.hc-chart { height: 310px; width: 100%; }
.hc-chart svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; }
.hc-chart text { fill: #64748b; font-size: 11px; font-family: inherit; }
.hc-status { min-height: 290px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: #64748b; font-size: 14px; text-align: center; }
.hc-status[hidden], .hc-chart[hidden] { display: none; }
.hc-note, .hc-method { font-size: 12px; color: #64748b; line-height: 1.7; margin: 14px 0 0; overflow-wrap: anywhere; }
.hc-method summary { cursor: pointer; font-weight: 600; }
.hc-method p { margin: 8px 0 0; }
.hc-sector-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 18px; }
.hc-sector-heading h4 { margin: 0; font-size: 17px; }
.hc-sector-heading span { color: #94a3b8; font-size: 12px; }
.hc-sector-details { margin-top: 28px; }
.hc-sector-details > summary { margin: 0; padding: 10px 0; cursor: pointer; list-style: none; }
.hc-sector-details > summary::-webkit-details-marker { display: none; }
.hc-sector-details > summary:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; border-radius: 6px; }
.hc-sector-details[open] > summary { margin-bottom: 18px; }
.hc-sector-toggle::after { content: '펼치기 +'; }
.hc-sector-details[open] .hc-sector-toggle::after { content: '접기 −'; }
.hc-table-wrap { overflow-x: auto; }
.hc-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.hc-table th, .hc-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid #e9eef4; white-space: nowrap; }
.hc-table th:first-child { text-align: left; font-weight: 500; }
.hc-table thead th { color: #0f2749; border-top: 2px solid #15283d; border-bottom: 2px solid #15283d; font-weight: 800; }
.hc-table thead th:first-child { font-weight: 800; }
.hc-table td:nth-child(3), .hc-table thead th:nth-child(3) { background: #edf8f3; color: #13845f; font-weight: 700; }
.hc-table th small { display: block; color: #94a3b8; font-size: 10px; margin-top: 3px; }
.hc-holdings { max-height: 280px; overflow-y: auto; margin-top: 10px; }
.hc-holdings a { display: flex; justify-content: space-between; gap: 10px; color: #334155; text-decoration: none; padding: 8px 0; border-bottom: 1px solid #e9eef4; }
.hc-holdings small { color: #94a3b8; }
.hc-my-holding { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e9eef4; font-variant-numeric: tabular-nums; }
.hc-table td.hc-my-column small { display: block; font-size: 10px; font-weight: 400; margin-top: 3px; }
.hc-table tbody tr:last-child > * { border-bottom: 2px solid #15283d; }
.hc-table .hc-empty { text-align: center; color: #64748b; padding: 36px 8px; font-weight: 400; background: none; }
.hc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    #homeComparison > .section-head { flex-wrap: wrap; }
    .hc-weighting-wrap { margin: 0 0 10px; flex-basis: 100%; }
    .hc-toolbar { gap: 10px; }
    .hc-chart-card, .hc-sector-card { padding: 18px 14px; }
    .hc-chart { height: 260px; }
    .hc-ranges-wrap { justify-content: flex-start; margin-bottom: 10px; }
    .hc-ranges { gap: 3px; width: 100%; }
    .hc-ranges button { flex: 1 1 auto; min-width: 0; padding: 6px 2px; font-size: 11px; text-align: center; font-weight: 600; }
    .hc-benchmarks button { padding: 5px 12px; font-size: 11.5px; }
    .hc-panel-heading { margin-bottom: 12px; }
    .hc-panel-heading h3 { font-size: 18px; gap: 4px; }
    .hc-val-bm, .hc-val-moat, .hc-val-my { font-size: 18px; font-weight: 700; }
    .hc-panel-heading .hc-title-my { flex-basis: 100%; font-size: 16px; }
    .hc-title-my .hc-vs { display: none; }
    .hc-personal { padding: 12px; }
    .hc-panel-heading .hc-vs { font-size: 14px; margin: 0 2px; }
}
