:root {
  color-scheme: light;
  font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
  color: #1a2d25;
  background: #f4f7f4;
  --forest: #102b23;
  --green: #12603f;
  --faint: #e8f5eb;
  --ink: #1a2d25;
  --muted: #5b6d64;
  --line: #dbe5de;
  --paper: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button {
  color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; min-height: 40px; font-weight: 650;
}
button:hover { border-color: #8bab97; background: #f3f8f3; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid #268a5d; outline-offset: 3px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px max(24px, calc((100vw - 1420px) / 2)); background: var(--forest); color: white;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.brand small { display: block; font-size: 11px; margin-top: 2px; color: #bfdbc9; letter-spacing: 0; font-weight: 500; }
.mark { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #bff2a9; }
.mark i { width: 17px; height: 17px; border: 2px solid #183b29; border-radius: 50%; transform: translate(-2px,-2px); }
.mark i::after { content:""; position: absolute; width: 9px; height: 2px; background: #183b29; top: 13px; left: 11px; transform: rotate(47deg); }
.top-side { display: flex; gap: 15px; align-items: center; }
.dataset { color: #cce7d8; font-size: 12px; }
.top-button { background: transparent; color: #eaf8ef; border-color: #527362; font-size: 12px; }
.top-button:hover { background: #254e3c; }
.workspace { max-width: 1470px; padding: 0 24px; margin: auto; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; padding: 36px 0 25px; gap: 24px; }
.eyeline { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { font-size: clamp(30px, 4vw, 49px); line-height: 1.12; letter-spacing: -.065em; margin: 7px 0 10px; }
.intro p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(112px, 1fr)); }
.stats div { border-left: 1px solid #cfddd3; padding: 4px 17px; }
.stats small { display:block; color: var(--muted); font-size: 11px; margin-bottom: 5px; white-space: nowrap; }
.stats strong { font-size: clamp(17px, 2.1vw, 27px); letter-spacing: -.035em; white-space: nowrap; }
.workarea { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 16px; align-items: start; }
.filters, .results { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; min-width: 0; overflow: hidden; }
.filters summary { font-weight: 800; padding: 16px 17px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.filters summary::after { content: "＋"; margin-left: auto; color: var(--green); }
.filters[open] summary::after { content: "−"; }
.filter-count { background: var(--faint); color: var(--green); font-size: 11px; border-radius: 6px; padding: 2px 6px; }
.filter-inner { padding: 11px 16px 17px; position: relative; }
.filter-inner label:not(.check), .condition-head { display: flex; align-items: center; font-size: 12px; font-weight: 750; margin: 10px 0 5px; gap: 5px; }
.filter-inner small { color: var(--muted); font-size: 10px; }
select, input:not([type="checkbox"]) { color: var(--ink); }
.filter-inner select, .range input { background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; width: 100%; min-width: 0; padding: 8px; min-height: 38px; }
.link-button { background: transparent; border: 0; color: var(--green); }
.reset { padding: 2px 0; min-height: 20px; position: absolute; top: 13px; right: 17px; font-size: 11px; }
.filter-divider { margin: 17px 0 12px; border-top: 1px solid var(--line); }
.condition-head { justify-content: space-between; }
.condition { margin-top: 8px; padding: 8px; background: #f4f8f4; border: 1px solid #e3ece5; border-radius: 9px; }
.condition-top { display: flex; align-items: center; gap: 4px; }
.condition-top button { padding: 0 6px; min-height: 34px; background: transparent; border: 0; font-size: 19px; color: #42574a; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; margin-top: 5px; }
.add { width: 100%; border-style: dashed; margin: 9px 0 8px; color: var(--green); font-size: 12px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin: 5px 0 0; }
input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; }
.search-row { padding: 15px 15px 10px; display: flex; gap: 8px; }
.search { flex: 1; min-width: 0; border-radius: 8px; border: 1px solid var(--line); background: #f7faf7; display: flex; align-items: center; padding: 0 10px; gap: 11px; }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 7px 0; font-size: 14px; }
.search-icon { flex: none; display: block; width: 13px; height: 13px; border: 1.7px solid #597365; border-radius: 50%; position: relative; }
.search-icon::after { content:""; position: absolute; background: #597365; width: 6px; height: 1.6px; top: 10px; left: 9px; transform: rotate(45deg); }
.search-row button { font-size: 12px; white-space: nowrap; }
.primary { color: white; background: #14583e; border-color: #14583e; }
.primary:hover { color: white; background: #1f694b; }
.result-bar { display: flex; justify-content:space-between; align-items: center; gap: 9px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.result-bar > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 12px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); font-size: 12px; padding: 10px 3px; }
.tabs button[aria-pressed=true] { border-bottom-color: #1f714e; color: var(--green); }
.tabs span { background: #eef3ee; border-radius: 5px; padding: 1px 4px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow: auto; min-height: 280px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; text-align: left; white-space: nowrap; font-size: 12px; }
th { background: #eef5ef; color: #41594b; font-weight: 700; }
th, td { padding: 9px 12px; border-bottom: 1px solid #edf1ee; }
th button { min-height: 20px; border: 0; background: transparent; padding: 2px; border-radius: 3px; font-size: 12px; color: inherit; }
tbody tr:hover td { background: #f6faf6; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.symbol-cell { position: sticky; left: 0; z-index: 1; min-width: 102px; background: white; }
th.symbol-cell { background: #eef5ef; }
.symbol-wrap { display: flex; gap: 5px; align-items: center; }
.star, .ticker { background: transparent; border: none; min-height: 24px; padding: 2px 3px; color: var(--green); }
.star { color: #667c6d; font-size: 17px; }
.star[aria-pressed=true] { color: #976007; }
.ticker { font-size: 13px; font-weight: 800; }
.company { max-width: 218px; overflow: hidden; text-overflow: ellipsis; }
.na { color: #697970; }
.negative { color: #a43838; }
.positive { color: #196346; }
.empty { white-space: normal; padding: 45px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 8px 16px; color: var(--muted); font-size: 12px; }
.pager button { margin-left: 5px; min-width: 35px; min-height: 34px; padding: 4px; }
footer { display: flex; justify-content: space-between; gap: 10px; padding: 20px 0; color: var(--muted); font-size: 11px; }
dialog { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; width: min(890px, calc(100vw - 24px)); max-height: 87vh; padding: 0; box-shadow: 0 14px 90px #0b271c33; }
dialog::backdrop { background: #102b2380; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f1f7f1; padding: 13px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.modal-top h2 { margin: 0; font-size: 19px; letter-spacing: -.034em; }
#close-dialog { min-height: 35px; font-size: 21px; padding: 0 10px; }
#modal-body { padding: 15px 18px; }
#modal-body h3 { font-size: 16px; margin: 20px 0 8px; }
#modal-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 8px 0; }
#modal-body a { color: var(--green); }
.column-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(142px,1fr)); gap: 5px 12px; }
.column-options label { border: 1px solid var(--line); border-radius: 7px; min-height: 37px; padding: 6px 8px; }
.metric-explanation { white-space: normal; min-width: 170px; line-height: 1.55; }
.source-list { padding-left: 17px; font-size: 11px; margin: 4px 0; overflow-wrap: anywhere; }
.detail-table { max-width:100%; overflow-x:auto; }
.tag { color: #6a4208; font-size: 11px; margin-left: 5px; }
@media (max-width: 900px) {
  .intro { align-items: flex-start; flex-direction: column; gap: 17px; padding: 24px 0 17px; }
  .stats div:first-child { padding-left: 0; border: 0; }
  .workarea { grid-template-columns: 213px minmax(0, 1fr); gap: 10px; }
  .workspace, .topbar { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 680px) {
  .topbar { padding-top: 11px; padding-bottom: 11px; }
  .dataset { display: none; }
  .workspace { padding: 0 10px; }
  .workarea { display: block; }
  .filters { margin-bottom: 9px; }
  .filter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
  .filter-inner > * { grid-column: 1 / -1; }
  .filter-inner select { grid-column: 2; }
  .filter-inner label[for] { grid-column: 1; }
  .filter-inner .reset { position: static; grid-column: 2; justify-self: end; }
  .search-row { gap: 5px; padding: 9px 7px; }
  .search-row button { padding: 5px 7px; font-size: 11px; }
  .search input { font-size: 12px; }
  .stats div { padding: 2px 10px; }
  .stats small { font-size: 10px; }
  .stats { grid-template-columns: repeat(3, minmax(0, auto)); }
  footer { flex-wrap: wrap; }
}

:root[data-edition="sec-public"] :is(label[for="type"], #type) { display: none; }
footer a { color: var(--green); }
