/* ── delist.css: 바이낸스 선물 상장폐지 페이지 ── */
#delistApp {
  max-width: 760px; margin: 0 auto; padding: 0 12px 80px;
  font-family: var(--font-sans);
}
.delist-title { font-size: 13px; font-weight: 800; color: var(--yellow); letter-spacing: 2px; }
#delistApp .scan-ts { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.dl-lead { margin: 12px 0 4px; font-size: 12px; line-height: 1.5; color: var(--text-muted); }

/* 실패·안내 — 판정 색(초록·빨강)이 아니라 노랑으로 적는다 */
.dl-notices:empty { display: none; }
.dl-notices { display: grid; gap: 4px; margin: 8px 0 4px; }
.dl-notice {
  font-size: 12px; line-height: 1.5; color: var(--yellow);
  background: rgba(246,189,63,.07); border: 1px solid rgba(246,189,63,.25);
  border-radius: var(--radius-sm); padding: 6px 10px;
}

/* ── 구역 ── */
.dl-section { margin-top: 18px; }
.dl-head {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.dl-head em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: auto; }
.dl-count {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-body);
  background: rgba(255,255,255,.06); border-radius: 9px; padding: 0 7px;
}
.dl-count:empty { display: none; }
.dl-list { display: grid; gap: 10px; }
.dl-empty {
  display: flex; flex-direction: column; gap: 3px; padding: 18px 14px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  font-size: 12px; color: var(--text-muted); text-align: center;
}
.dl-empty b { font-size: 14px; color: var(--text-body); }
.dl-empty.dl-err b, .dl-empty.dl-err { color: var(--yellow); }

/* ── 항목 카드 ── */
.dl-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid var(--border); padding: 12px 14px;
  min-width: 0;
}
.dl-item.is-sched { border-left-color: var(--yellow); }
.dl-item.is-past { background: rgba(17,24,39,.6); }
/* 알림에서 들어온 항목 — 눈에 띄게 테두리를 두르고 잠깐 빛나게 한다 */
.dl-item.dl-hit {
  border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow);
  animation: dl-hit-glow 1.2s ease-out 2;
}
@keyframes dl-hit-glow {
  from { box-shadow: 0 0 0 1px var(--yellow), 0 0 18px rgba(246,189,63,.55); }
  to   { box-shadow: 0 0 0 1px var(--yellow), 0 0 0 rgba(246,189,63,0); }
}

.dl-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.dl-name { min-width: 0; flex: 1 1 160px; }
.dl-base {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.3;
  overflow-wrap: anywhere;
}
.dl-sym {
  margin-top: 2px; font: 12px/1.4 var(--font-mono); color: var(--text-muted);
  overflow-wrap: anywhere;
}
.dl-mult { white-space: nowrap; }

.dl-when { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.dl-tag {
  font: 800 18px/1.3 var(--font-mono); color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.dl-when.urgent .dl-tag { color: var(--red); }
.dl-when.past .dl-tag { font-size: 14px; color: var(--text-muted); font-weight: 700; }
.dl-rest { font: 600 12px/1.4 var(--font-mono); color: var(--text-body); font-variant-numeric: tabular-nums; }
.dl-when.urgent .dl-rest { color: var(--red); }
.dl-at { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* 본문 — 데스크톱은 메타 | 거래대금 두 칸, 폰은 쌓는다 */
.dl-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-dim);
}
.dl-meta { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dl-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 12px; line-height: 1.45; }
.dl-row dt { color: var(--text-muted); }
.dl-row dd { color: var(--text-body); min-width: 0; overflow-wrap: anywhere; }
.dl-num { font-variant-numeric: tabular-nums; }
.dl-code { font-family: var(--font-mono); color: var(--text-primary); }
.dl-muted { color: var(--text-muted); }
.dl-src {
  display: inline-block; font-size: 11px; line-height: 1.5; padding: 0 6px; margin: 0 4px 2px 0;
  border: 1px solid var(--border); border-radius: 4px; color: var(--text-body);
}
/* 링크가 아닌 제목(https 가 아닌 주소)은 파랗게 칠하지 않는다 — 누를 수 있는 것처럼 보이면 안 된다 */
.dl-ann { color: var(--text-body); }
a.dl-ann { color: var(--blue); }
a.dl-ann:hover { text-decoration: underline; }
.dl-ann-at { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dl-v-fail { color: var(--yellow); }
.dl-v-off { color: var(--text-muted); }

/* ── 거래소별 24h 거래대금 ── */
.dl-vol { min-width: 0; }
.dl-vol-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
}
.dl-vol-sum { font-size: 11px; font-variant-numeric: tabular-nums; }
.dl-vol-sum b { font-family: var(--font-mono); color: var(--text-primary); font-weight: 700; }
/* 층 사이 1px 틈은 카드 배경색 — 비슷한 색끼리 붙어도 경계가 보이게 */
.dl-bar {
  display: flex; gap: 1px; height: 14px; border-radius: 4px; overflow: hidden;
  background: var(--bg-input);
}
.dl-seg { flex-basis: 0; min-width: 0; }
.dl-bar-msg {
  height: auto; min-height: 14px; padding: 2px 8px; align-items: center;
  font-size: 11px; color: var(--text-muted); border: 1px dashed var(--border);
}
.dl-legend { list-style: none; display: grid; gap: 3px; margin-top: 8px; }
.dl-lg { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-size: 12px; line-height: 1.45; }
.dl-lg i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid transparent; }
.dl-lg-nm { color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-lg-v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.dl-lg-v b { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; }
.dl-v-pct { font-family: var(--font-mono); color: var(--text-body); }
.dl-lg-unlisted .dl-lg-nm, .dl-lg-fail .dl-lg-nm { color: var(--text-muted); }

/* ── 국내 거래소(업비트·빗썸) 거래지원 종료 ── */
/* 서버가 kr 을 아직 안 내려주면 구역째 숨긴다 (hidden 이 클래스 display 를 이기게) */
#dlKrSection[hidden] { display: none; }

/* 카드 구조는 .dl-item 과 같지만 클래스는 따로 둔다 — 바이낸스 행 스타일과 섞이지 않게 */
.dl-kr {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid var(--border); padding: 12px 14px;
  min-width: 0;
}
.dl-kr.is-sched { border-left-color: var(--yellow); }
.dl-kr.is-past { background: rgba(17,24,39,.6); }
.dl-kr.dl-kr-hit {
  border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow);
  animation: dl-hit-glow 1.2s ease-out 2;
}

.dl-kr-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; }
.dl-kr-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; flex: 1 1 160px; }
.dl-kr-coin {
  font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.3;
  min-width: 0; overflow-wrap: anywhere;
}
/* 이름·base 가 모두 없어 공지 제목으로 대신한 행 — 18px 굵은 영문 제목은 무겁다 */
.dl-kr-coin.is-title { font-size: 14px; font-weight: 600; }
.dl-kr-base { font: 400 12px/1.4 var(--font-mono); color: var(--text-muted); }
.dl-kr-baseonly { font-family: var(--font-mono); }

/* 거래소 배지 — 브랜드 색은 어두워 칩 배경으로 쓴다(작은 글자는 밝게) */
.dl-kr-exs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.dl-kr-ex {
  display: inline-flex; align-items: center; flex-shrink: 0; padding: 0 5px; height: 16px;
  border: 1px solid; border-radius: 3px;
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: -.2px; white-space: nowrap;
}
.dl-kr-ex-upbit   { color: #8b97f6; border-color: rgba(91,110,232,.6);  background: rgba(91,110,232,.16); }
.dl-kr-ex-bithumb { color: #e981a6; border-color: rgba(213,81,129,.6); background: rgba(213,81,129,.16); }

/* 거래소별 줄 — 왼쪽 이름, 오른쪽 시각·마켓·공지 */
.dl-kr-body { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--border-dim); }
.dl-kr-exrow {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 10px;
  align-items: baseline; padding: 6px 0;
  font-size: 12px; line-height: 1.45;
}
.dl-kr-exrow + .dl-kr-exrow { border-top: 1px dashed var(--border-dim); }
.dl-kr-exname { font-size: 11px; font-weight: 700; white-space: nowrap; }
.dl-kr-exname-upbit   { color: #8b97f6; }
.dl-kr-exname-bithumb { color: #e981a6; }
.dl-kr-exbody { display: grid; gap: 2px; min-width: 0; }
.dl-kr-time { color: var(--text-body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dl-kr-tag { font-weight: 700; color: var(--text-primary); }
.dl-kr-tag.past { color: var(--text-muted); font-weight: 600; }
.dl-kr-est {
  display: inline-block; padding: 0 3px; border: 1px solid rgba(246,189,63,.45); border-radius: 3px;
  font-size: 10px; font-weight: 700; line-height: 1.4; color: var(--yellow); white-space: nowrap;
}
.dl-kr-none { color: var(--text-muted); font-weight: 600; }
.dl-kr-notice { color: var(--text-muted); }
.dl-kr-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.dl-kr-mkt {
  font-size: 11px; color: var(--text-muted); white-space: nowrap;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.dl-kr-ann { font-size: 11px; color: var(--text-body); overflow-wrap: anywhere; }
a.dl-kr-ann { color: var(--blue); }
a.dl-kr-ann:hover { text-decoration: underline; }

.dl-foot { margin-top: 18px; font-size: 11px; line-height: 1.5; color: var(--text-muted); }

#delistApp a:focus-visible, #delistApp button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── 폰 ── 44px 터치 영역(숏 스캔과 같은 규칙), 본문은 한 칸으로 쌓는다 */
@media (max-width: 640px) {
  .dl-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px), (pointer: coarse) and (max-width: 960px) {
  #delistApp { padding: 0 16px 64px; }
  #delistApp .app-header { min-height: 64px; }
  #delistApp .header-left, #delistApp .header-right { gap: 8px; }
  #delistApp .hdr-btn {
    min-width: 44px; width: 44px; height: 44px; font-size: 18px;
    padding: 0; line-height: 1;
  }
  /* layout.css 의 520px 이하 규칙(글자 0 + ::before 화살표)을 쓰지 않고 화살표 글자를 그대로 키운다 */
  #delistApp .header-left .hdr-btn::before { content: none; }
  #delistApp .back-text { display: none; }
  .delist-title { font-size: 14px; letter-spacing: 1px; }
  #delistApp .scan-ts { font-size: 12px; }
  .dl-lead { font-size: 13px; }
  .dl-item { padding: 12px; }
  .dl-base { font-size: 20px; }
  .dl-tag { font-size: 20px; }
  .dl-row { grid-template-columns: 92px minmax(0, 1fr); font-size: 13px; }
  .dl-lg { font-size: 13px; }
  /* 2026-10-10 폰 가독성 2단계 — 11px 조각을 12px 로(실측 360px: 출처 칩 ×7 · 공지 게시 시각 · 합계 · 정렬 안내 · 각주) */
  .dl-src, .dl-ann-at, .dl-vol-sum, .dl-head em, .dl-bar-msg, .dl-foot { font-size: 12px; }
  /* 한글이 섞인 줄(‘4일 전’·‘10:00 남음’·‘액면 ×1,000,000’)은 일반 글꼴 + 숫자 폭 고정 — 고정폭이면 띄어쓰기가 벌어진다 */
  .dl-tag, .dl-rest, .dl-sym, #delistApp .scan-ts { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
  /* 국내 상폐 행 — 360px 에서도 배지·시각·마켓·공지가 넘치지 않게 */
  .dl-kr { padding: 12px; }
  .dl-kr-coin { font-size: 20px; }
  .dl-kr-coin.is-title { font-size: 15px; }
  .dl-kr-base { font-size: 13px; }
  .dl-kr-exrow { grid-template-columns: 58px minmax(0, 1fr); font-size: 13px; }
  .dl-kr-exname, .dl-kr-mkt, .dl-kr-ann { font-size: 12px; }
  .dl-kr-est { font-size: 11px; }
}
