/* /stock/<code> detail page. Needs home.css + predict.css. */
.es-st { max-width: 1248px; margin: 0 auto; padding: 24px 24px 48px; }
.es-lk { display: inline-block; margin-left: 3px; vertical-align: -1px; opacity: .55; }
/* ── header (Flutter detail _Header): [flag name · code · price chg] | [{d} 예측 시가 고가 종가] | [상승 ━ 하락 · faces · n명] ── */
.rs-h { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(260px, 340px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-1); padding: 14px 0; margin: 0 0 12px; }
.rs-h > div { padding: 0 20px; min-width: 0; }
.rs-h > div + div { border-left: 1px solid var(--divider); }
.rs-h-l { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rs-h .es-st-name { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.3px; min-width: 0; max-width: 100%; }
.rs-h .es-st-name .es-sn { gap: 8px; max-width: 100%; }
.rs-h .es-st-name .es-sn-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-h-meta { font-size: 13px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-h-px { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.rs-h .es-st-price { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.rs-h .es-chg { font-size: 13px; }
.rs-h-share { display: none; align-self: center; margin-left: auto; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: var(--btn2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rs-h-share:hover { background: var(--btn2-h); }
.rs-h-m { display: flex; align-items: center; gap: 16px; }
.rs-h-cap { font-size: 12px; line-height: 16px; color: var(--sub); white-space: nowrap; }
.rs-h-cells { display: grid; grid-template-columns: repeat(3, minmax(84px, auto)); column-gap: 16px; margin: 0; }
.rs-h-cells > div { display: grid; justify-items: end; gap: 2px; min-width: 0; }
.rs-h-cells dt { font-size: 12px; line-height: 16px; color: var(--sub); }
.rs-h-cells dd { margin: 0; font-size: 17px; line-height: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-h-r { display: flex; align-items: center; gap: 8px; }
.rs-g-u, .rs-g-d { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-gauge { flex: 1 1 auto; min-width: 48px; height: 4px; border-radius: 2px; background: var(--down); overflow: hidden; }
.rs-gauge span { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--surface); }
.rs-ppl { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; flex: none; }
.rs-ppl .es-av-l, .rs-ppl .es-av > img { box-shadow: 0 0 0 2px var(--surface); }
.rs-ppl .es-stack .es-av + .es-av { margin-left: -6px; }
.rs-ppl-n { font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .rs-h { grid-template-columns: auto minmax(0, 1fr); padding: 0; }
  .rs-h > div { padding: 12px 16px; }
  .rs-h-l { grid-column: 1 / -1; }
  .rs-h-m, .rs-h-r { border-top: 1px solid var(--divider); }
  .rs-h > .rs-h-m { border-left: 0; }
  .rs-h-share { display: inline-flex; }
}
@media (max-width: 640px) {
  .rs-h { grid-template-columns: minmax(0, 1fr); border-radius: 0; border-left: 0; border-right: 0; margin: 0; }
  .rs-h > div { padding: 10px 16px; }
  .rs-h > .rs-h-r { border-left: 0; }
  .rs-h .es-st-name { font-size: 17px; }
  .rs-h-share span { display: none; }
  .rs-h-share { width: 32px; padding: 0; justify-content: center; }
  .rs-h-m { justify-content: space-between; gap: 8px; }
  .rs-h-cells { grid-template-columns: repeat(3, minmax(0, auto)); column-gap: 12px; }
  .rs-h-cells dd { font-size: 14px; }
}
@media (max-width: 360px) { .rs-h-cells dd { font-size: 13px; } .rs-h-cells { column-gap: 8px; } }

/* ── chart card + toolbar: left = period + range, right = icon buttons ── */
.es-chart-card { padding: 12px 16px; border-radius: 8px; margin: 0; }
.es-ch-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.es-ch-l, .es-ch-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.es-ch-r { gap: 2px; margin-left: auto; }
.es-ch-rg { display: flex; gap: 2px; }
.es-ch-rg button { border: 0; background: none; height: 28px; padding: 0 8px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.es-ch-rg button:hover { background: var(--hover); }
.es-ch-rg button.on { color: var(--ink); background: var(--btn2); }
.es-ib { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--sub); cursor: pointer; list-style: none; }
.es-ib::-webkit-details-marker { display: none; }
.es-ib:hover { background: var(--hover); color: var(--ink); }
.es-ib.on, .es-ch-menu[open] > .es-ib { color: var(--ink); background: var(--btn2); }
.es-ch-kind { display: inline-flex; gap: 2px; }
.es-ch-sep { width: 1px; height: 18px; background: var(--divider); margin: 0 6px; }
.es-ch-menu { position: relative; }
.es-ch-pop { position: absolute; z-index: 6; top: 36px; right: 0; min-width: 180px; padding: 6px; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); display: grid; }
.es-ch-pop label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.es-ch-pop label:hover { background: var(--hover); }
.es-ch-pop input { accent-color: var(--ink); margin: 0; }
.es-ch-ph { padding: 6px 10px 2px; font-size: 12px; font-weight: 600; color: var(--sub); }
.es-ch-mas { display: flex; gap: 2px; padding: 0 4px; }
.es-ch-mas label { padding: 8px 8px; gap: 6px; font-variant-numeric: tabular-nums; }
.es-ch-mas label i { width: 10px; height: 3px; border-radius: 2px; background: var(--c); }
.es-ch-pop hr { border: 0; border-top: 1px solid var(--divider); margin: 4px 0; }
.es-dc-ma[hidden] { display: none; }
.dc-svg .ar { fill: url(#dcArea); stroke: none; }
/* legend: small text in the chart's top-left */
.es-legend { position: absolute; z-index: 3; left: 4px; top: 2px; display: flex; gap: 10px; height: 18px; align-items: center; padding: 0 4px; border-radius: 4px;
  background: rgba(255,255,255,.8); font-size: 11.5px; font-weight: 500; color: var(--sub); white-space: nowrap; pointer-events: none; }
.es-legend i { display: inline-block; width: 12px; height: 2px; border-radius: 1px; margin-right: 4px; vertical-align: 3px; }
.es-chart-card .lg-line { display: none; }
.es-chart-card.k-line .lg-line { display: inline; }
.es-chart-card.nopred .lg-pred { display: none; }
.lg-a { background: var(--actual); }
.lg-c { background: var(--predict); }
.lg-x { background: var(--ink); }
@media (max-width: 640px) {
  .es-ch-tools { gap: 6px; }
  .es-ch-l { width: 100%; justify-content: space-between; gap: 6px; }
  .es-ch-rg { overflow-x: auto; scrollbar-width: none; }
  .es-ch-rg button { padding: 0 6px; }
  .es-ch-r { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* detail chart: every part has a fixed height -> zero layout shift between SSR SVG and the JS canvas */
.es-dc { --ax: 92px; --dc-h: 420px; --nav-h: 36px; position: relative; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; }
.es-dc-info { height: 24px; display: flex; align-items: center; gap: 4px 14px; white-space: nowrap; overflow: hidden; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.es-dc-info > * { flex: none; white-space: nowrap; }
.es-dc-info b { color: var(--text); font-weight: 600; }
.es-dc-info em { font-style: normal; font-weight: 600; color: var(--text); margin-left: 2px; }
.es-dc-info em.up { color: var(--up); } .es-dc-info em.down { color: var(--down); }
.es-dc-main { position: relative; height: var(--dc-h); touch-action: pan-y; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.es-dc-main.ns { cursor: ns-resize; }
.es-dc-main.drag { cursor: grabbing; }
.es-dc-main canvas, .es-dc-vol canvas, .es-dc-nav canvas, .es-dc-indp canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.es-dc-ssr { position: absolute; inset: 0; pointer-events: none; }
.es-dc.js .es-dc-ssr { display: none; }
.es-dc-plot { position: absolute; left: 0; top: 0; bottom: 0; right: var(--ax); overflow: hidden; }
.es-dc-futbg { position: absolute; top: 0; bottom: 0; background: rgba(240,242,245,.7); }
.es-dc-band { position: absolute; left: 0; right: 0; top: 18px; bottom: 60px; }
.dc-svg, .dc-vsvg, .dc-nsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dc-svg * { vector-effect: non-scaling-stroke; fill: none; }
.dc-svg .g { stroke: #EDEFF2; stroke-width: 1; }
.dc-svg .fan { stroke: rgba(224,57,62,.19); stroke-width: 1.2; }
.dc-svg .fan.lt { stroke: rgba(224,57,62,.11); }
.dc-svg .cw { stroke: var(--predict); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dc-svg .ac { stroke: var(--actual); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.dc-svg .dw { stroke: #fff; stroke-width: 8.4; stroke-linecap: round; }
.dc-svg .dc { stroke: var(--predict); stroke-width: 5; stroke-linecap: round; }
.dc-svg .da { stroke: var(--actual); stroke-width: 6; stroke-linecap: round; }
.dc-svg .dw.big { stroke-width: 13; } .dc-svg .dc.big { stroke-width: 10; } .dc-svg .da.big { stroke-width: 8.8; }
.dc-svg .bu { stroke: var(--predict); stroke-width: 2.4; stroke-dasharray: 5 5; stroke-linecap: round; }
.dc-svg .bd { stroke: var(--actual); stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linecap: round; }
.dc-svg .lv { stroke: rgba(101,103,107,.6); stroke-width: 1; stroke-dasharray: 3 3; }
.dc-svg .lv.up { stroke: rgba(224,71,76,.6); } .dc-svg .lv.down { stroke: rgba(56,112,216,.6); }
.es-dc-x { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; }
.es-dc-x span { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 15px; font-variant-numeric: tabular-nums; }
.es-dc-x span.f { color: var(--text); font-weight: 600; }
.es-dc-x small { font-size: 11px; line-height: 14px; }
.es-dc-x i { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; background: var(--muted); }
.es-dc-x i.good { background: var(--good); } .es-dc-x i.up { background: var(--up); } .es-dc-x i.down { background: var(--down); }
.es-dc-ppl { position: absolute; top: 2px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; color: var(--sub); background: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.es-dc-y { position: absolute; right: 0; width: var(--ax); top: 18px; bottom: 60px; }
.es-dc-y span { position: absolute; left: 10px; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.es-dc-tag { position: absolute; left: 2px; right: 0; transform: translateY(-50%); display: grid; padding: 2px 6px; border-radius: 3px; background: var(--sub); color: #fff; font-size: 12px; font-weight: 800; line-height: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.es-dc-tag.up { background: var(--up); } .es-dc-tag.down { background: var(--down); }
.es-dc-tag small { font-size: 10.5px; font-weight: 600; opacity: .9; }
.es-dc-ma { position: absolute; left: 4px; top: 22px; z-index: 2; display: flex; align-items: center; gap: 2px; height: 18px; font-size: 11.5px; color: var(--muted); white-space: nowrap; pointer-events: auto; }
.es-dc-ma b { font-weight: 700; color: var(--sub); margin-right: 2px; }
.es-dc-ma button { border: 0; background: rgba(255,255,255,.75); padding: 0 4px; height: 18px; border-radius: 4px; font: inherit; font-weight: 700; color: var(--c); cursor: pointer; font-variant-numeric: tabular-nums; }
.es-dc-ma button:not(.on) { color: var(--muted); text-decoration: line-through; opacity: .7; }
.es-dc-ma em { font-style: normal; font-weight: 600; }
.es-dc-indp { position: relative; height: 96px; }
.es-dc-indp[hidden] { display: none; }
.dc-svg .cu, .dc-svg .cd { stroke: none; } .dc-svg .cu { fill: var(--up); } .dc-svg .cd { fill: var(--down); }
.dc-svg .wu { stroke: var(--up); stroke-width: 1; } .dc-svg .wd { stroke: var(--down); stroke-width: 1; }
.dc-svg .ma { stroke-width: 1.1; } .dc-svg .m5 { stroke: #E04FB0; } .dc-svg .m20 { stroke: #F2994A; } .dc-svg .m60 { stroke: #27AE60; } .dc-svg .m120 { stroke: #2D9CDB; }
.dc-svg .cw { stroke: var(--predict) !important; stroke-width: 2 !important; }
.es-dc-fut { position: absolute; top: 0; bottom: 60px; touch-action: none; }
.es-dc-fav { position: absolute; z-index: 2; width: 30px; height: 30px; }
.es-dc-fav .es-av { box-shadow: 0 0 0 2px var(--ink); border-radius: 50%; }
.es-dc-fav a { position: absolute; right: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; border: 1.5px solid #fff; display: grid; place-items: center; font-size: 14px; line-height: 1; text-decoration: none; }
.es-dc-vt { display: flex; align-items: center; gap: 2px; height: 28px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--sub); cursor: pointer; }
.es-dc-vt svg { color: var(--muted); }
.es-dc-vt small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.es-dc-vt [data-off], .es-dc.vcl .es-dc-vt [data-on] { display: none; }
.es-dc.vcl .es-dc-vt [data-off] { display: inline; }
.es-dc.vcl .es-dc-vt svg { transform: rotate(180deg); }
.es-dc-vol { position: relative; height: 76px; border-top: 1px solid var(--divider); }
.es-dc.vcl .es-dc-vol { display: none; }
.es-dc-vband { position: absolute; left: 0; top: 0; bottom: 0; right: var(--ax); background: #F8F9FB; }
.dc-vsvg .u { fill: rgba(224,71,76,.55); } .dc-vsvg .d { fill: rgba(56,112,216,.55); }
.es-dc-vmax { position: absolute; right: 0; width: calc(var(--ax) - 10px); top: 2px; font-size: 12.5px; color: var(--muted); }
.es-dc-nav { position: relative; height: var(--nav-h); margin-top: 8px; cursor: ew-resize; touch-action: pan-y; }
.es-dc-nband { position: absolute; left: 0; top: 0; bottom: 0; right: var(--ax); background: #F3F5F8; border-radius: 8px; overflow: hidden; }
.dc-nsvg polyline { fill: none; stroke: #9DB7E8; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.dc-nsvg { top: 5px; bottom: auto; height: calc(100% - 10px); }  /* svg: height:auto would use its intrinsic ratio */
.es-dc-nwin { position: absolute; top: 1px; bottom: 1px; border: 1.4px solid rgba(28,37,50,.67); border-radius: 7px; box-sizing: border-box; }
@media (pointer: coarse) { .es-dc { --nav-h: 54px; } }
@media (max-width: 540px) { .es-dc { --ax: 64px; } .es-dc-y span { left: 6px; font-size: 11.5px; } }

.es-st-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; margin-top: 12px; }
.es-st .es-box { border-radius: 8px; padding: 16px; }
.es-st-main > .es-box + .es-box, .es-st-side > .es-box + .es-box { margin-top: 12px; }
.es-st-side { position: sticky; top: calc(var(--hd-h, 56px) + 12px); }
.es-st > .es-panel, .es-chart-card + .es-focus { margin-top: 12px; }
.es-st .es-h { font-size: 16px; line-height: 22px; }
.es-st .es-sub { margin: 2px 0 10px; }

/* predict panel */
.es-panel-h { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.es-panel-h .rs-tap { margin-left: auto; font-size: 12.5px; color: var(--sub); }
.rs-mine { font-size: 12px; font-weight: 600; color: var(--sub); background: var(--btn2); border-radius: 6px; padding: 2px 8px; }
.es-panel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.es-panel > .es-panel-btns { margin-top: 10px; grid-template-columns: auto; justify-content: start; }
@media (min-width: 1000px) {
  .es-panel .es-pk { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .es-panel .es-pk-track, .es-panel .es-pk-leg { display: none; }
  .es-panel .es-pk-ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .es-panel .es-pk-pct { grid-column: 1 / -1; margin-top: 2px; }
  .es-panel .es-pd-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-top: 10px; }
  .es-panel .es-pd-form .es-err { grid-column: 1 / -1; grid-row: 2; }
  .es-panel .es-panel-btns { grid-template-columns: auto auto; }
}

/* focus (?u=) */
.es-focus-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.es-focus-h > div { flex: 1; min-width: 0; }
.es-focus-h .es-sub { margin: 2px 0 0; }
.es-x { font-size: 22px; line-height: 1; color: var(--muted); text-decoration: none; padding: 4px 6px; }
.rs-fc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 88px; gap: 8px; align-items: start; margin: 0 0 12px; }
.rs-fc-c { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.rs-fc-v { font-size: 12px; color: var(--sub); white-space: nowrap; }
.rs-fc-v b { display: block; font-size: 17px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rs-fc-c > b { font-size: 13px; }
.rs-fc-c small, .rs-fc-r small { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.rs-fc-c small.es-down { color: var(--sub); }
.rs-fc-r { display: grid; justify-items: end; gap: 2px; }
.rs-fc-r b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-fc-q { margin: 0 0 12px; line-height: 1.55; color: var(--text); }
.rs-good { color: var(--text); font-weight: 600; }

/* tables (AI ranking, focus history) */
.es-tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.es-tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--sub); padding: 6px 4px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.es-tbl td { height: 44px; padding: 0 4px; border-bottom: 1px solid var(--divider); }
.es-tbl tr:last-child td { border-bottom: 0; }
.es-aitbl td:nth-child(3), .es-aitbl th:nth-child(3), .es-aitbl td:last-child, .es-aitbl th:last-child { text-align: right; }
.es-aitbl th:first-child, .es-aitbl td:first-child { width: 32px; }
.es-st .es-rk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--btn2); color: var(--sub); font-size: 12px; font-weight: 600; }
.es-st .es-acc.good, .es-st .es-acc.gold, .es-st .es-acc.bad { color: var(--text); }
.es-st .es-acc { font-weight: 600; }
.es-lock { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--subtle); text-decoration: none; color: var(--text); }
.es-lock b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.es-lock span { font-size: 13px; color: var(--sub); }

/* prediction list: underline day tabs · search + sort row · FB/YouTube-style rows (40px avatar, name/meta, action row) */
.es-preds .es-box-h { margin-bottom: 4px; }
.rs-days { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 0; padding: 0 8px; border-bottom: 1px solid var(--divider); }
.rs-days::-webkit-scrollbar { display: none; }
.rs-days a { flex: none; height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-days a:hover { color: var(--text); }
.rs-days a.on { color: var(--ink); border-bottom-color: var(--ink); }
.rs-ptools { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 12px 0 4px; }
.rs-psearch { width: 240px; height: 36px; }
.rs-sort { display: flex; gap: 2px; }
.rs-sort button { border: 0; background: none; height: 32px; padding: 0 10px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; }
.rs-sort button:hover { background: var(--hover); }
.rs-sort button.on { color: var(--ink); background: var(--btn2); }
.es-pl, .es-thread, .es-cms, .es-th > ul, .es-kids > ul { list-style: none; margin: 0; padding: 0; }
.es-pr { padding: 12px 0; border-top: 1px solid var(--divider); }
.es-pr:first-child { border-top: 0; }
.es-pr-h { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.es-pr-u { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.es-pr-u span { display: grid; min-width: 0; }
.es-pr-u b { font-size: 17px; font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-pr-u small { font-size: 13px; line-height: 18px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.es-pr-focus { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 20px; color: var(--muted); text-decoration: none; }
.es-pr-focus:hover { background: var(--hover); }
.es-chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 4px 0 0 52px; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.es-chips span { white-space: nowrap; }
.es-chips b { margin-left: 2px; font-weight: 600; color: var(--text); }
.es-chips .es-acc { font-weight: 600; }
.es-pr-t { margin: 6px 0 0 52px; font-size: 17px; line-height: 1.45; word-break: break-word; }
.es-pr > .es-cm-a { margin-left: 44px; }
.es-cm-a { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.es-rx { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub); height: 32px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.es-rx:hover { background: var(--hover); }
.es-rx[aria-pressed="true"] { color: var(--ink); }
.es-rx[aria-pressed="true"] .ic { fill: currentColor; fill-opacity: .18; }
.es-rx span:empty { display: none; }
.es-rep { margin-left: auto; opacity: .6; padding: 0 8px; }
.es-rep:hover, .es-rep:focus-visible { opacity: 1; }
.es-thread { margin: 4px 0 0 52px; }
.es-pr > .es-link, .es-pr > .es-reply-form { margin-left: 52px; }
.es-cm { display: flex; gap: 10px; padding: 8px 0; }
.es-cm.new { animation: es-in .6s ease-out; }
.es-cm-b { flex: 1; min-width: 0; }
.es-cm-h { font-size: 13px; line-height: 18px; font-weight: 600; }
.es-cm-h a { color: inherit; text-decoration: none; }
.es-cm-h time { color: var(--sub); font-size: 12px; font-weight: 400; margin-left: 4px; font-variant-numeric: tabular-nums; }
.es-cm-t { margin: 2px 0 0; font-size: 14px; line-height: 1.45; word-break: break-word; }
.es-cm .es-cm-a { margin: 0 0 0 -8px; }
.es-cm .es-rx { height: 28px; font-size: 12px; }
.es-at { color: var(--ink); font-weight: 600; }
.es-kids { padding-left: 42px; }
.es-kids-tg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); padding: 2px 0 6px 42px; cursor: pointer; }
.es-free { margin: 12px -16px -16px; border-top: 1px solid var(--divider); padding: 0 16px; }
.es-free summary { cursor: pointer; list-style: none; min-height: 52px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.es-free summary::-webkit-details-marker { display: none; }
.es-free summary .es-muted { font-weight: 500; }
.es-free summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.75px solid var(--sub); border-bottom: 1.75px solid var(--sub); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.es-free[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.es-free[open] { padding-bottom: 8px; }
.es-cm-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; margin: 0 0 8px; }
.es-cm-form .es-err, .es-cm-form > p { grid-column: 1 / -1; margin: 0; }
.es-reply-form { grid-template-columns: minmax(0, 1fr) auto auto; }
.es-reply-form > p.es-muted { grid-row: 1; }
.es-st .es-more { height: 40px; margin-top: 8px; border-radius: 8px; }

/* closest prediction card (Flutter _NearestCard) */
.rs-near { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 8px 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.rs-near[hidden] { display: none; }
.rs-near-l { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rs-near-l > small { font-size: 12px; color: var(--sub); }
.rs-near-l > b { font-size: 14px; font-weight: 600; }
.rs-near .es-pill.good { background: var(--btn2); color: var(--text); }
.rs-near-v { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-near-v small { font-size: 12px; color: var(--sub); }
.rs-near-v b { font-size: 13px; font-weight: 600; color: var(--text); }
.rs-near-go { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 8px; white-space: nowrap; }
.rs-near-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }

.es-viewgate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(240,242,245,.94); padding: 20px; }
.es-viewgate[hidden] { display: none; }
.es-viewgate .es-box { max-width: 420px; width: 100%; text-align: center; margin-bottom: 8vh; box-shadow: var(--shadow); padding: 24px; }
.es-viewgate h3 { margin: 0 0 8px; }
.es-viewgate p { color: var(--sub); font-size: 17px; margin: 0 0 16px; }
html.es-locked body { overflow: hidden; }

@media (max-width: 999px) {
  .es-st-cols { grid-template-columns: 1fr; }
  .es-st-side { position: static; }
}
@media (max-width: 640px) {
  .es-st { padding: 0 0 24px; }
  .es-st .es-box, .es-chart-card { border-radius: 0; border-left: 0; border-right: 0; }
  .es-chart-card { padding: 8px 8px 8px; border-top: 0; }
  .es-dc { --dc-h: 280px; }
  .es-dc-ma { font-size: 10.5px; } .es-dc-ma b { display: none; }
  .es-dc-info { height: 22px; gap: 0 10px; font-size: 12px; overflow-x: auto; scrollbar-width: none; }
  .es-dc-info::-webkit-scrollbar { display: none; }
  .es-dc-x span:not(.s) { display: none; }
  .es-st-cols, .es-st > .es-panel, .es-chart-card + .es-focus { margin-top: 8px; gap: 8px; }
  .es-st-main > .es-box + .es-box, .es-st-side > .es-box + .es-box { margin-top: 8px; }
  .es-chips, .es-pr-t, .es-thread, .es-pr > .es-link, .es-pr > .es-reply-form { margin-left: 52px; }
  .es-pr > .es-cm-a { margin-left: 44px; }
  .es-panel-h .rs-tap { margin-left: 0; width: 100%; }
  .es-panel-btns { grid-template-columns: 1fr; }
  .es-panel-btns .es-btn { height: 44px; }
  .rs-ptools { flex-direction: column; align-items: stretch; }
  .rs-psearch { width: 100%; }
  .rs-sort { justify-content: space-between; }
  .es-kids { padding-left: 32px; }
  .es-kids-tg button { padding-left: 42px; }
  .es-ch-pop { right: -8px; }
}
/* beat align.css (home .es-dc gaps share the class name) */
.es-chart-card .es-dc { margin: 0; padding: 0; }
.es-preds .rs-days a { border-radius: 0; }
.es-st .es-seg.sm button { font-size: 13px; height: 28px; padding: 0 10px; border-radius: 6px; }
.es-st .es-seg { border-radius: 8px; }
.es-panel .es-pk-v.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.es-panel .es-pk-v.on .es-pk-vl, .es-panel .es-pk-v.on .es-pk-vb b, .es-panel .es-pk-in { color: var(--text); }
.es-st .es-rise { height: 4px; border-radius: 2px; margin-top: 12px; }
.es-st .es-rise-t { font-size: 12px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.es-st .es-ch-pd { flex-wrap: nowrap; flex: none; }
.es-st .es-ch-pd button { white-space: nowrap; }
@media (max-width: 640px) {
  .rs-h-share { display: none !important; }
  .es-st .es-ch-pd button { padding: 0 8px; }
  .es-dc-info { height: 38px; flex-wrap: wrap; align-content: center; line-height: 18px; overflow: hidden; gap: 0 10px; }
}
.rs-h > div { align-self: stretch; align-content: center; }

/* 2026-11-21 회의: 차트 필터 한 줄 (mPOP) - 일·주·월·년 | 작게·크게 | ⚙ 안에 차트 모양·예측·지표 */
.es-ch-rg[hidden] { display: none !important; }
.es-ch-tools { flex-wrap: nowrap; }
.es-ch-pop .es-ch-kind { display: flex; gap: 6px; margin: 4px 0 6px; }
.es-ch-pop .es-ch-kind .es-ib { width: auto; padding: 0 10px; gap: 4px; }
.es-ch-pop .es-ch-predrow { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: 14px; }
.es-ch-gear[aria-expanded="true"], details[open] > .es-ch-gear { background: var(--btn2, #E4E6EB); }

/* 2026-11-21 mPOP 차트: 흰 바탕 · 오른쪽 연회색 가격축 띠 · 거래량 칸 아래 날짜 줄 · 미니 전체차트(범위 손잡이) 없앰
 * (이동 = 차트를 좌우로 끌기, 확대·축소 = 두 손가락 / ＋－ 버튼. 세로 스크롤은 그대로: touch-action: pan-y) */
.es-dc-nav { display: none !important; }
.es-dc-main, .es-dc-vol { background: #fff; touch-action: pan-y; }
.es-dc-vol { height: 96px; border-top: 1px solid var(--divider); cursor: crosshair; }
.es-dc-vband { background: #fff; }
.es-dc-futbg { background: transparent; }
.es-dc-y { background: #F7F7F8; }
.es-dc-y span { color: #6B7280; }
@media (max-width: 640px) { .es-dc-vol { height: 88px; } }

/* 2026-11-21 mPOP 3차: 이동평균 5·20·60·120 기본 on (mPOP 색) · 범례/“≡ N봉”은 캔버스가 그림 · 차트 크게 */
.es-dc.js .es-legend, .es-dc.js .es-dc-ma { display: none !important; }
.es-ch-mas label:nth-child(1) { --c: #E0283A !important; }
.es-ch-mas label:nth-child(2) { --c: #C86DD7 !important; }
.es-ch-mas label:nth-child(3) { --c: #5B8DEF !important; }
.es-ch-mas label:nth-child(4) { --c: #2BB3A3 !important; }
.es-dc { --dc-h: 460px; }
.es-dc-vol { height: 120px; }
@media (max-width: 640px) {
  .es-dc { --dc-h: 380px; }
  .es-dc-vol { height: 110px; }
}

/* 2026-11-21 mPOP 4차: 버튼 줄 = 연회색 띠 · 일주월년 파란 선택 · 동그란 회색 ＋/－ · ⚙ · 전체화면 */
.es-chart-card .es-ch-tools { background: #F2F3F5; margin: 0 0 8px; padding: 6px 8px; border-radius: 8px; align-items: center; }
.es-chart-card .es-ch-tools .es-ch-pd { background: transparent; padding: 0; gap: 0; border-radius: 6px; }
.es-chart-card .es-ch-tools .es-ch-pd button { height: 34px; min-width: 44px; padding: 0 12px; border-radius: 6px; background: transparent; color: #8A8F98;
  font-size: 15px; font-weight: 600; box-shadow: none; }
.es-chart-card .es-ch-tools .es-ch-pd button.on { background: #1E6FE8; color: #fff; }
.es-chart-card .es-ch-r { gap: 8px; align-items: center; }
.es-chart-card .es-ch-zb { width: 36px; height: 36px; border-radius: 50%; background: #9AA0A6; color: #fff; }
.es-chart-card .es-ch-zb:hover { background: #868C93; }
.es-chart-card .es-ch-gear, .es-chart-card .es-ch-fs, .es-chart-card .es-ch-fsx { width: 36px; height: 36px; color: #9AA0A6; }
.es-chart-card .es-ch-gear .ic { width: 24px; height: 24px; }
.es-chart-card .es-ch-fsx[hidden], .es-chart-card .es-ch-fs[hidden] { display: none; }
@media (max-width: 640px) {
  .es-chart-card .es-ch-tools { padding: 5px 6px; }
  .es-chart-card .es-ch-l { width: auto; }
  .es-chart-card .es-ch-r { width: auto; margin-left: auto; gap: 6px; }
  .es-chart-card .es-ch-tools .es-ch-pd button { min-width: 38px; padding: 0 9px; }
}
/* 거래량: 칸 안 "■ 거래량" + 축 띠 "≡ ×" (캔버스) - 예전 "거래량 ^ 접기" 버튼은 숨김(접기 동작용으로 DOM에는 남김) */
.es-dc.js .es-dc-vt { display: none !important; }
/* 전체화면 */
.es-chart-card.es-chfs { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0;
  background: #fff; padding: 12px 16px; overflow: auto; box-sizing: border-box; }
.es-chart-card.es-chfs .es-dc { --dc-h: max(200px, calc(100vh - 230px)); --dc-h: max(200px, calc(100dvh - 230px)); }
.es-chart-card.es-chfs .es-dc-vol { height: 96px; }
.es-chart-card.es-chfs .es-dc.vcl { --dc-h: max(200px, calc(100dvh - 134px)); }
html.es-chfs-on, html.es-chfs-on body { overflow: hidden; }
@media (max-width: 640px) { .es-chart-card.es-chfs { padding: 8px; } }

/* 2026-11-21: ▲상승 ▼하락 예측 칸 (chart.js가 거래량 칸 아래에 만들어 캔버스로 그림) */
.es-dc-rise { position: relative; height: 64px; touch-action: pan-y; }
.es-dc-rise canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.es-chart-card.es-chfs .es-dc-rise { height: 56px; }
/* 5일 이동평균은 예측(빨강)과 헷갈리지 않게 주황 */
.es-ch-menu [data-ma="5"] i, .es-ma5 { background: #F59E0B !important; color: #F59E0B !important; }
.es-ch-mas label:nth-child(1) { --c: #F59E0B !important; }
/* 2026-11-21: 상승·하락 칸 → 정확도(달성률) 칸, 높이 80px */
.es-dc-rise { height: 80px; }
.es-chart-card.es-chfs .es-dc-rise { height: 72px; }

/* 2026-11-21 상세 차트 글자 +3~4px · 빈 공간 없이: 축 띠 넓힘(큰 가격 글자), 정보 줄·툴바 글자 키움, 정확도 칸 높이 */
.es-dc { --ax: 104px; }
@media (max-width: 540px) { .es-dc { --ax: 78px; } }
.es-dc-info { font-size: 15.5px; height: 30px; gap: 4px 14px; }
.es-dc-info b { font-size: 15.5px; }
@media (max-width: 640px) { .es-dc-info { font-size: 15px; height: 44px; line-height: 21px; } }
.es-chart-card .es-ch-tools .es-ch-pd button { font-size: 18px; height: 38px; min-width: 48px; }
.es-chart-card .es-ch-zb, .es-chart-card .es-ch-gear, .es-chart-card .es-ch-fs, .es-chart-card .es-ch-fsx { width: 40px; height: 40px; }
.es-ch-pop label, .es-ch-pop .es-ch-predrow { font-size: 16px; }
.es-ch-ph { font-size: 14px; }
.es-dc-rise { height: 112px; }
.es-chart-card.es-chfs .es-dc-rise { height: 96px; }
.es-dc-vol { height: 120px; }
@media (max-width: 640px) { .es-dc-vol { height: 112px; } .es-chart-card .es-ch-tools .es-ch-pd button { font-size: 17px; min-width: 40px; padding: 0 8px; } }

/* 2026-11-22: 상세 차트도 홈 카드처럼 아래 칸 하나 — 축 띠 안 [정확도][거래량] 버튼으로 바꿈 (chart.js가 .es-dc-tabs를 붙임)
 * 거래량 칸 상자는 숨기고 정확도 칸(.es-dc-rise) 하나에 두 칸 중 하나 + 날짜 줄(24px)을 그림.
 * 가격 차트 높이(--dc-h)는 그대로(전체화면만 화면에 맞춤) — 빈 칸 없이 전체 높이만 줄어듦 */
.es-dc.js.es-dc-tabs .es-dc-vol { display: none !important; }
.es-dc.js.es-dc-tabs .es-dc-rise { height: 136px; }
.es-chart-card.es-chfs .es-dc.js.es-dc-tabs, .es-chart-card.es-chfs .es-dc.js.es-dc-tabs.vcl { --dc-h: max(200px, calc(100vh - 240px)); --dc-h: max(200px, calc(100dvh - 240px)); }
.es-chart-card.es-chfs .es-dc.js.es-dc-tabs .es-dc-rise { height: 120px; }
/* /predict 패널: 거래량 72 + 정확도 56 → 한 칸 56 + 날짜 24 */
.es-pd-card .es-pd-chart .es-dc.js.es-dc-tabs .es-dc-rise { height: 80px; }

/* 2026-11-22: 상세 차트를 홈 카드에 맞춤 — 이동평균선 없음(⚙ 메뉴 항목 숨김, chart.js도 숨김) · 맨 위 정보 줄은 작고 차분하게
 * (날짜 진하게, 시/고/저/종·거래량 이름은 회색, 값은 기본 글자색; PC 한 줄, 휴대폰은 두 줄까지) */
.es-ch-mas, .es-ch-ph:has(+ .es-ch-mas), .es-ch-mas + hr { display: none !important; }
.es-dc-info { font-size: 13.5px; height: 26px; gap: 2px 12px; color: var(--muted); }
.es-dc-info b { font-size: 13.5px; font-weight: 700; color: var(--text); }
.es-dc-info em { font-weight: 600; color: var(--text); }
@media (max-width: 640px) { .es-dc-info { font-size: 13px; height: 38px; line-height: 18px; gap: 0 10px; } .es-dc-info b { font-size: 13px; } }

/* first paint (html.es-cw = set in base.html <head>, dropped after 6 s): until chart.js takes over (.es-dc.js) the server-drawn
   chart stays hidden and the box already has the canvas layout - price pane + ONE lower pane (the heights of .es-dc-rise above /
   in predict.css), no 거래량 button + volume pane - so the page does not show one chart and then jump to another. */
html.es-cw .es-dc:not(.js) .es-dc-ssr, html.es-cw .es-dc:not(.js) .es-legend { visibility: hidden; }
html.es-cw .es-dc:not(.js) .es-dc-vt, html.es-cw .es-dc:not(.js) .es-dc-vol { display: none; }
html.es-cw .es-dc:not(.js)::after { content: ''; display: block; height: 136px; }
html.es-cw .es-dc.novol:not(.js)::after { height: 112px; }
html.es-cw .es-pd-card .es-pd-chart .es-dc:not(.js)::after { height: 80px; }
html.es-cw .es-pd-card .es-pd-chart .es-dc.novol:not(.js)::after { height: 56px; }

/* 2026-11-29 (owner): the comment a home box tap landed on (?c=<id>) - a light tint for 2 s, then back (stock.js) */
.es-cm { transition: background-color .5s ease; }
.es-cm.es-cm-hl { background-color: #FFF4D1; border-radius: 6px; }
/* 2026-11-29 (owner): phone (< 600px) prediction list - the 참여자 검색 field goes; in its place (day tabs -> here -> sort row) a big
   comment box: 3 lines (96px) growing to 6, 16px dark text (no iOS zoom), clear border, 4px corners like the other inputs, "0/500"
   small at the bottom right, [등록] = the black main button, 54px / 17px like [예측하기], 8px below the box. PC: nothing of this. */
.es-cm-top { display: none; }
@media (max-width: 599px) {
  .es-preds .rs-psearch { display: none !important; }
  .es-preds .rs-ptools { gap: 10px; }
  .es-preds .es-cm-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 2px 0 2px; }
  .es-cm-top-w { position: relative; min-width: 0; }
  .es-preds .es-cm-top textarea { display: block; width: 100%; box-sizing: border-box; height: 96px; min-height: 96px; max-height: 168px; resize: none; overflow-y: auto;
    padding: 12px 14px 26px; border: 1.5px solid #1F2328 !important; border-radius: 4px !important; background: #fff; color: #111; font-size: 16px; line-height: 24px;
    box-shadow: none; }
  .es-preds .es-cm-top textarea:focus { outline: none; border-color: #111 !important; box-shadow: 0 0 0 1px #111; background: #fff; }
  .es-preds .es-cm-top textarea::placeholder { color: #6B7280; opacity: 1; transition: color .15s; }
  .es-preds .es-cm-top.es-nudge textarea::placeholder { color: #E0283A; }
  .es-preds .es-cm-top.es-nudge textarea { border-color: #E0283A !important; box-shadow: 0 0 0 1px #E0283A; }
  .es-cm-cnt { position: absolute; right: 12px; bottom: 8px; font-size: 14px; line-height: 16px; color: #6B7280; font-variant-numeric: tabular-nums; pointer-events: none; }
  .es-cm-cnt.max { color: #E0283A; }
  .es-preds .es-cm-top .es-err { margin: 0; }
  .es-preds .es-cm-top .es-cm-top-btn { width: 100%; height: 54px; border-radius: 4px; font-size: 17px; font-weight: 700; }
  /* keyboard up: no bottom tab bar riding above the keyboard over the [등록] button */
  body.es-composing nav.tabs { display: none !important; }
}

/* 2026-11-29 (owner): phone (< 600px) detail / predict chart header = 2 lines.
   line 1 = the day's values, 14px, one line: "11/27 · 시 171,200 · 고 179,900 · 저 169,000 · 거래량 14.4M" (names #555, numbers #111 500;
            the year, close and change are hidden - they sit beside the name at the top; chart.js drops the volume first when it overflows)
   line 2 = canvas: "— 실제 — 예측 ▲33% ▼67%" + [시가 고가 종가] (chart.js _legendLite / _ohlcBar, header 28px = 20 + 8).  6px between the lines. */
.es-dc-info .dc-m { display: none; }
.es-dc-info i { font-style: normal; }   /* the date spans are <i> only as hooks - never italic (PC unchanged) */
@media (max-width: 599px) {
  .es-chart-card .es-dc-info, .es-pd-chart .es-dc-info { height: 20px !important; min-height: 0 !important; margin: 0 0 6px !important; padding: 0 !important;
    display: flex !important; flex-wrap: nowrap !important; align-items: baseline !important; align-content: normal !important; gap: 0 10px !important; line-height: 20px !important;
    overflow: hidden !important; white-space: nowrap !important; font-size: 14px !important; font-weight: 400 !important; color: #555 !important; }
  .es-chart-card .es-dc-info > *, .es-pd-chart .es-dc-info > * { flex: none; font-size: 14px !important; line-height: 20px !important; }
  .es-chart-card .es-dc-info b, .es-pd-chart .es-dc-info b { color: #111 !important; font-weight: 500 !important; }
  .es-chart-card .es-dc-info em, .es-pd-chart .es-dc-info em { color: #111 !important; font-weight: 500 !important; margin-left: 2px; }
  .es-dc-info .dc-y, .es-dc-info .dc-c, .es-dc-info .dc-chg { display: none !important; }
  .es-dc-info .dc-m { display: inline !important; }
  .es-dc-info.novol .dc-v { display: none !important; }
}

/* 2026-11-29 (owner): phone - the 자유 댓글 box right under the comment input (stock.js moves it): title row, newest 3 comments,
   [댓글 더 보기] (44px, like the home's 더 보기), then the sort row + prediction list follow. Its own small form is hidden (the big box above is the form). */
.es-cm-more { display: none; }
@media (max-width: 599px) {
  .es-preds .es-free.es-free-top { margin: 4px 0 0; padding: 0; border-top: 0; }
  .es-preds .es-free.es-free-top > summary { min-height: 40px; font-size: 16px; pointer-events: none; }
  .es-preds .es-free.es-free-top > summary::after { display: none; }
  .es-preds .es-free.es-free-top .es-cm-form[data-cm-form] { display: none !important; }
  .es-preds .es-free.es-free-top .es-cms > li:nth-child(n + 4) { display: none; }
  .es-preds .es-free.es-free-top .es-cms.es-allcm > li { display: block; }
  .es-preds .es-free.es-free-top .es-cm-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin: 4px 0 8px; padding: 0;
    border: 1px solid #E4E6EB; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: #333; }
  .es-preds .es-free.es-free-top .es-cm-more[hidden] { display: none; }
  .es-preds .es-free.es-free-top[open] { padding-bottom: 0; border-bottom: 1px solid var(--divider, #EBEDF0); margin-bottom: 10px; }
}
.es-viewgate .es-vg-pt { margin-top: 8px; }   /* 2026-12-04 요구사항 A-5: 포인트로 더 보기 */
