/* Home "증시 맞추기" row (templates/pages/home/index.html section.es-dq, static/js/home_dc.js). Loaded after home.css. */
.es-dq { margin: 0 0 32px; min-width: 0; max-width: 100%; }
.es-dq-top { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.es-dq-all { flex: none; margin-left: auto; padding: 8px 2px; font-size: 14px; font-weight: 600; color: var(--es-sub, #65676B); text-decoration: none; white-space: nowrap; }
.es-dq-all:hover { color: var(--es-ink, var(--text)); text-decoration: underline; }
.es-dq-h { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.35; color: var(--es-ink, var(--text)); word-break: keep-all; }
/* sideways strip: fixed-size cards, snap, no scrollbar; touch pans natively, wheel/drag in home_dc.js */
.es-dq-row { display: flex; width: 100%; max-width: 100%; box-sizing: border-box; contain: inline-size;  /* never grows to its content (flex/auto-margin parents) */
   gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding: 0 2px; scrollbar-width: none; touch-action: pan-x pan-y; padding: 2px 2px 4px; cursor: grab; }
.es-dq-row::-webkit-scrollbar { display: none; }
.es-dq-row.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.es-dq-row.drag * { pointer-events: none; }
.es-dqc { flex: 0 0 220px; width: 220px; height: 214px; box-sizing: border-box; scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 14px; border: 1px solid var(--es-border, #E4E6EB); border-radius: 12px; background: var(--es-surface, #fff); box-shadow: var(--shadow-1, none); }
.es-dqc-1 { display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; flex: none; color: inherit; text-decoration: none; }
.es-dqc-f { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--btn2, #E4E6EB); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.es-dqc-f img { width: 40px; height: 40px; object-fit: cover; display: block; }
.es-dqc-f .flag-txt { font-size: 20px; font-weight: 700; }
.es-dqc-n { min-width: 0; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-dqc-v { margin-top: 10px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--es-ink, var(--text)); }
.es-dqc-c { height: 18px; margin-top: 2px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--es-sub, #65676B); }
.es-dqc-c.up { color: var(--up, #E0474C); } .es-dqc-c.down { color: var(--down, #3870D8); }
/* ". □□" input */
.es-dqc-in { display: flex; align-items: flex-end; gap: 4px; margin-top: auto; height: 52px; }
.es-dqc-dot { font-size: 34px; font-weight: 900; line-height: 34px; color: var(--es-ink, var(--text)); padding-bottom: 4px; }
.es-dqc-in input { width: 64px; height: 52px; box-sizing: border-box; padding: 0; margin: 0; text-align: center; letter-spacing: 2px;
  border: 1.5px solid #C9CDD3; border-radius: 10px; background: #fff; color: var(--es-ink, var(--text));
  font: inherit; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; }
.es-dqc-in input::placeholder { color: #C4C8CE; font-weight: 700; }
.es-dqc-in input:focus { outline: none; border-color: var(--down, #3870D8); box-shadow: 0 0 0 3px rgba(56,112,216,.18); }
.es-dqc.bad .es-dqc-in input { border-color: var(--up, #E0474C); }
.es-dqc-ok { margin-left: auto; height: 44px; min-width: 56px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ink, #1C2532); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; align-self: center; touch-action: manipulation; }
.es-dqc-ok:disabled { background: var(--btn2, #E4E6EB); color: var(--es-muted, #767A80); cursor: default; }
.es-dqc-s { height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--es-muted, #767A80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-dqc-s.good { color: var(--good, #1E8A5A); font-weight: 700; }
.es-dqc-s.err { color: var(--up, #E0474C); font-weight: 600; }
/* saved / closed */
.es-dqc.done .es-dqc-in input { background: var(--es-subtle, #F0F2F5); border-color: transparent; color: var(--good, #1E8A5A); }
.es-dqc.closed { opacity: .6; }
.es-dqc.closed .es-dqc-in input { background: var(--es-subtle, #F0F2F5); }
.es-dqc.closed .es-dqc-s { color: var(--es-sub, #65676B); font-weight: 700; }
@media (max-width: 760px) {
  .es-home .es-dq { padding-left: 10px; padding-right: 0; margin-bottom: 20px; }
  .es-dq-h { font-size: 18px; }
  .es-dq-top { padding-right: 10px; }
  .es-dq-row { gap: 10px; padding-right: 10px; }
  /* same width as the popular-stock cards: exactly 2 on screen = (screen - 10px left - 10px right - 10px gap) / 2, max 220px */
  .es-dqc { flex-basis: min(220px, calc((100vw - 30px) / 2)); width: min(220px, calc((100vw - 30px) / 2)); padding: 12px; }
  .es-dqc-in input { width: 58px; }
  .es-dqc-ok { min-width: 48px; padding: 0 10px; }
  .es-dqc-v { font-size: 24px; }
}

/* 2026-11-21 회의: 너무 크고 복잡 — 작고 단순하게 (확인 버튼 없이 두 자리 넣으면 자동 저장) */
.es-dq-h { font-size: 16px !important; line-height: 1.3; }
.es-dq-top { margin-bottom: 8px !important; }
.es-dqc { height: auto !important; padding: 10px !important; border-radius: 6px !important; }
.es-dqc-1 { height: 24px !important; gap: 6px !important; }
.es-dqc-f, .es-dqc-f img { width: 22px !important; height: 22px !important; }
.es-dqc-n { font-size: 14px !important; }
.es-dqc-v { margin-top: 6px !important; font-size: 18px !important; }
.es-dqc-c { font-size: 12px !important; height: 16px !important; }
.es-dqc-in { height: 34px !important; margin-top: 8px !important; align-items: center !important; }
.es-dqc-dot { font-size: 22px !important; line-height: 22px !important; padding-bottom: 0 !important; }
.es-dqc-in input { width: 48px !important; height: 34px !important; font-size: 18px !important; border-width: 1px !important; border-radius: 4px !important; }
.es-dqc-ok { display: none !important; }
.es-dqc-s { margin-top: 4px !important; font-size: 11px !important; height: 14px !important; }

/* 2026-11-21 17:40 대표 시안대로: 카드 테두리 없이, 국기+이름 / 큰 가격 + 옆 작은 등락 / ". □" 한 줄, 마감 문구 숨김 — 높이 짧게 */
.es-dq-row { gap: 8px !important; }
.es-dqc { flex-direction: row !important; flex-wrap: wrap !important; align-items: baseline !important; column-gap: 6px !important; row-gap: 2px !important;
  padding: 8px 4px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.es-dqc-1 { flex: 0 0 100% !important; height: 30px !important; gap: 6px !important; }
.es-dqc-f, .es-dqc-f img { width: 28px !important; height: 28px !important; }
.es-dqc-n { font-size: 16px !important; }
.es-dqc-v { margin-top: 0 !important; font-size: 22px !important; overflow: visible !important; }
.es-dqc-c { height: auto !important; margin-top: 0 !important; font-size: 12px !important; }
.es-dqc-in { flex: 0 0 100% !important; height: 34px !important; margin-top: 4px !important; }
.es-dqc-s { display: none !important; }
.es-dqc-s.good, .es-dqc-s.err { display: block !important; flex: 0 0 100% !important; margin-top: 2px !important; }
/* 17:44 시안대로 한 줄 줄이기: 큰 가격 옆에 작은 등락(▼5.21%) */
.es-dqc { row-gap: 0 !important; padding: 6px 2px !important; }
.es-dqc-1 { height: 28px !important; }
.es-dqc-v { font-size: 21px !important; }
.es-dqc-c { font-size: 13px !important; }
.es-dqc-in { margin-top: 2px !important; }
/* 17:45 대표 시안 그대로: 큰 국기 왼쪽 / 오른쪽에 이름, 그 아래 큰 가격 + 옆 작은 등락, 그 아래 ". □" — 폭은 조금만 늘림 */
.es-dqc { display: grid !important; grid-template-columns: 36px auto 1fr; grid-template-areas: "f n n" "f v c" ". i i";
  column-gap: 6px !important; row-gap: 0 !important; align-items: center !important;
  flex: 0 0 196px !important; width: 196px !important; padding: 6px 2px !important; }
.es-dqc-1 { display: contents !important; }
.es-dqc-f { grid-area: f; align-self: center; }
.es-dqc-f, .es-dqc-f img { width: 36px !important; height: 36px !important; }
.es-dqc-n { grid-area: n; font-size: 15px !important; line-height: 20px; }
.es-dqc-v { grid-area: v; font-size: 20px !important; line-height: 24px; }
.es-dqc-c { grid-area: c; align-self: end; padding-bottom: 3px; font-size: 12px !important; }
.es-dqc-in { grid-area: i; margin-top: 2px !important; }
.es-dqc-s.good, .es-dqc-s.err { grid-column: 2 / 4; }

/* 22:35 고객 시안: 제목 한 줄 작게(더보기와 같은 크기), 카드 박스 / 1줄: 국기·이름 ··· 가격, 2줄: 등락 ··· [00] */
.es-dq-h { font-size: 14px !important; font-weight: 700 !important; line-height: 1.3 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin: 0 !important; }
.es-dq-all { font-size: 14px !important; white-space: nowrap; flex: 0 0 auto; }
.es-dq-hd, .es-dq > header { margin-bottom: 6px !important; gap: 8px !important; align-items: center !important; }
.es-dq-row { gap: 6px !important; }
.es-dqc { grid-template-columns: auto auto 1fr !important; grid-template-areas: "f n v" "c c i" !important;
  flex: 0 0 calc((100vw - 26px) / 2) !important; width: calc((100vw - 26px) / 2) !important; max-width: 230px;
  border: 1px solid var(--es-line, #D9DDE3) !important; border-radius: 4px !important; background: #fff !important;
  padding: 6px 6px !important; column-gap: 4px !important; row-gap: 4px !important; align-items: center !important; }
.es-dqc-f, .es-dqc-f img { width: 22px !important; height: 22px !important; }
.es-dqc-n { font-size: 14px !important; white-space: nowrap; }
.es-dqc-v { justify-self: end; font-size: 17px !important; line-height: 22px !important; white-space: nowrap; }
.es-dqc-c { align-self: center !important; padding: 0 !important; font-size: 11px !important; white-space: nowrap; }
.es-dqc-in { justify-self: end; margin: 0 !important; height: 30px !important; }
.es-dqc-in .es-dqc-dot { display: none !important; }
.es-dqc-in input { width: 44px !important; height: 30px !important; font-size: 16px !important; }
.es-dq-top { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; margin-bottom: 6px !important; }

/* 23:46 정돈: 이름·등락 왼쪽 세로줄 맞춤, 가격·[00] 오른쪽 끝선 맞춤, 크기 균형 */
.es-dqc { grid-template-columns: 22px minmax(0,1fr) auto !important; grid-template-areas: "f n v" ". c i" !important;
  column-gap: 6px !important; row-gap: 6px !important; padding: 10px 10px 10px 8px !important; align-items: center !important; }
.es-dqc-f, .es-dqc-f img { width: 22px !important; height: 22px !important; }
.es-dqc-n { font-size: 15px !important; font-weight: 700 !important; color: #111 !important; overflow: hidden; text-overflow: ellipsis; }
.es-dqc-v { font-size: 17px !important; font-weight: 800 !important; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
.es-dqc-c { font-size: 12px !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
.es-dqc-in { height: 28px !important; }
.es-dqc-in input { width: 52px !important; height: 28px !important; padding: 0 !important; border: 1px solid #C9CED6 !important; border-radius: 4px !important;
  font-size: 15px !important; font-weight: 700 !important; text-align: center !important; color: #111 !important; background: #fff !important; }
.es-dqc-in input::placeholder { color: #A9AFB8 !important; }
.es-dqc { grid-template-areas: "f n v" "c c i" !important; }
.es-dqc-c { white-space: nowrap; overflow: visible; }
