/* ck-acap 11/17: 자산 시가총액 순위 (/market-cap) - the list on top of share.css (.xs2 cards, sections, FAQ) and cvol.css (pills,
   the 달러 / 원화 switch, the page numbers). */
/* ck-acap2 11/17 (owner: theddari's 조회 범위): 조회 범위 [select] · 달러/원화 · 상위 N개 [select]; the selects are the browser's own
   (a real list on phones, keys and screen readers work), drawn like the site's buttons */
.ac .ac-ctl{gap:8px 10px}
.ac .ac-scope{display:flex;align-items:center;gap:10px;min-width:0}
.ac .ac-lab{flex:none;font-size:13.5px;font-weight:700;color:#1F2937}   /* owner mockup 11/17: a dark label */
.ac .ac-selw{position:relative;display:inline-flex;min-width:0}
.ac .ac-selw::after{content:"";position:absolute;top:50%;right:14px;width:7px;height:7px;margin-top:-6px;border:solid #64748B;border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
.ac .ac-sel{width:100%;min-width:0;height:38px;padding:0 36px 0 14px;border:1px solid #E3E8EF;border-radius:12px;background:#fff;color:#111827;font:inherit;font-size:14px;font-weight:700;cursor:pointer;-webkit-appearance:none;appearance:none;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.ac .ac-scope .ac-selw{width:210px}
.ac .ac-topw{width:128px}
.ac .ac-sel:focus-visible{outline:2px solid #1D74F5;outline-offset:2px}
.ac .ac-sortm{display:none}
.ac .ac-cnt{display:inline-flex;align-items:center;margin-left:10px;padding:2px 10px;border-radius:999px;background:#F1F5F9;font-size:13px;font-weight:700;line-height:1.5;letter-spacing:0;color:#475569;white-space:nowrap;vertical-align:middle}   /* owner mockup 11/17: a grey pill */
.ac .ac-hd .ac-sort{display:inline-flex;align-items:center;justify-self:center;gap:3px;padding:0;border:0;background:none;color:#0F172A;font:inherit;font-weight:800;cursor:pointer}
.ac .ac-hd .ac-sort i{font-style:normal;font-size:13px;color:#1D74F5}
@media (hover:hover){.ac .ac-hd .ac-sort:hover span{text-decoration:underline}}
.ac .ac-hd .ac-sort:focus-visible{outline:2px solid #1D74F5;outline-offset:2px;border-radius:4px}
.ac .ac-hd,.ac .ac-r{display:grid;grid-template-columns:34px minmax(0,1fr) 106px 104px 56px 92px 72px 70px;align-items:center;gap:10px}   /* ck-actyp: 종류 106 for the icon pills (스테이블코인), taken from 시가총액 / 24시간 / 7일 */   /* + 최근 7일 (ck-acsp); the other columns narrower so the name keeps ~180px at 1280 (the side bar) */
.ac .ac-hd{margin-bottom:2px;padding:9px 6px;border-radius:10px;background:#F1F5F9;font-size:12.5px;font-weight:700;color:#475569}   /* owner mockup: a grey band */
.ac .ac-hd > span{text-align:center}   /* owner 11/17 "가운데 정렬시켜": every label in the middle of its column */.ac .ac-list{margin:0;padding:0;list-style:none}
.ac .ac-r{padding:10px 6px;border-bottom:1px solid #EEF2F7}
.ac .ac-r.ac-btc,.ac .ac-r.ac-k1{background:#FFF8EA;border-radius:12px}   /* owner mockup 11/17: the rank-1 row pale gold (bitcoin's row too) */
.ac .ac-rk{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#EEF2F7;color:#334155;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
/* by the asset's rank (was the first 3 rows of every page / of 낮은 순 too): 1 = a filled red square, 2-3 = pink */
.ac .ac-k1 .ac-rk{background:#DC3B5E;color:#fff}
.ac .ac-k2 .ac-rk,.ac .ac-k3 .ac-rk{background:#FCE3E8;color:#BE1E45}
.ac .ac-cn{display:flex;align-items:center;gap:10px;min-width:0}
.ac .ac-cn .mk-ci{flex:none;width:28px;height:28px;font-size:12px}
.ac .ac-l.ac-us{background:#E8F0FB;color:#1D4ED8}
.ac .ac-cn img.ac-lg{border-radius:50%;background:#fff;object-fit:contain;box-shadow:0 0 0 1px #E6EAF0,0 1px 3px rgba(15,23,42,.08)}   /* ck-acap4: company / coin logos from CoinGecko; owner mockup: a thin ring */
.ac .ac-l.ac-crypto,.ac .ac-l.ac-stable{background:#EEF2F7;color:#334155}
.ac .ac-nm{display:flex;flex-direction:column;min-width:0}
/* 11/17 (owner "암호화폐를 누르면 /premium/XRP 이렇게 링크가게"): a coin listed in Korea = a link to its coin page (logo + name) */
.ac a.ac-lk{color:inherit;text-decoration:none;border-radius:8px}
.ac a.ac-lk:focus-visible{outline:2px solid #1D74F5;outline-offset:2px}
@media (hover:hover){.ac a.ac-lk:hover .ac-nm b{color:#1D74F5;text-decoration:underline;text-underline-offset:3px}body.dm .ac a.ac-lk:hover .ac-nm b{color:#6AA4FF}}
.ac .ac-nm b{overflow:hidden;font-size:14.5px;font-weight:800;line-height:1.35;color:#111827;white-space:nowrap;text-overflow:ellipsis}
.ac .ac-nm small{font-size:11.5px;color:#64748B}
/* ck-actyp 11/17 (owner mockup "이렇게 디자인해줘"): the 종류 pill = a round icon (flag / bitcoin / gold bars / dollar coin, ck_ac_spdefs
   symbols) + the word in a deep shade of the pill's pastel colour, a soft gradient and shadow */
.ac .ac-ty{display:inline-flex;align-items:center;gap:5px;justify-self:start;padding:2px 9px 2px 3px;border-radius:999px;font-size:11.5px;font-weight:800;line-height:1.5;letter-spacing:-.2px;white-space:nowrap;box-shadow:0 1px 3px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.75)}
.ac .ac-tyi{flex:none;width:17px;height:17px;filter:drop-shadow(0 1px 1px rgba(15,23,42,.18))}
.ac .ac-t-us{background:linear-gradient(180deg,#EAF1FF,#D7E5FE);color:#1B2A6B}
.ac .ac-t-jp{background:linear-gradient(180deg,#FDEDF1,#FADBE4);color:#5B1730}
.ac .ac-t-cn{background:linear-gradient(180deg,#FFEFE3,#FDDECB);color:#3B2414}
.ac .ac-t-kr{background:linear-gradient(180deg,#E5F8F0,#CFF0E2);color:#0F3B2C}
.ac .ac-t-crypto{background:linear-gradient(180deg,#F2ECFF,#E6DAFE);color:#4318B0}
.ac .ac-t-metal{background:linear-gradient(180deg,#FFF7DA,#FDEBB3);color:#5C3B0A}
.ac .ac-t-stable{background:linear-gradient(180deg,#E4F7F1,#CFEEE6);color:#0F4F47}
.ac .ac-l.ac-kr{background:#E6FAF6;color:#0F766E}
.ac .ac-l.ac-jp{background:#FDF0F7;color:#BE185D}
.ac .ac-l.ac-cn{background:#FFF4E8;color:#C2410C}
.ac .ac-mc{text-align:right}
.ac .ac-mc b{font-size:14.5px;font-weight:900;color:#0F172A;white-space:nowrap;font-variant-numeric:tabular-nums}
.ac .ac-sh,.ac .ac-px,.ac .ac-ch{font-size:13.5px;font-weight:700;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;color:#374151}
.ac .ac-ch{font-weight:800}
.ac .ac-ch.up{color:#E11D48}
.ac .ac-ch.dn{color:#2563EB}
/* owner mockup 11/17: 24시간 in a tinted pill - pink rising, pale blue falling */
.ac .ac-tg > .ac-ch{justify-self:center;padding:1px 9px;border-radius:999px;background:#F1F5F9}
.ac .ac-tg > .ac-ch.up{background:#FDECEF}
.ac .ac-tg > .ac-ch.dn{background:#E7F0FE}
.ac .ac-lb{display:none}
/* ck-acsp 11/17 (owner mockup): the 7-day line - red rising, blue falling, a pale fill under it (ck_ac_spark / acap.js spark) */
.ac .ac-defs{position:absolute;width:0;height:0;overflow:hidden}
.ac .ac-sp{display:block;justify-self:center;width:72px;height:26px}
.ac .ac-sp svg{display:block;width:100%;height:100%;overflow:visible}
.ac .ac-spl{stroke:#94A3B8;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.ac .ac-sp.up .ac-spl{stroke:#F0435F}
.ac .ac-sp.dn .ac-spl{stroke:#3B82F6}
/* PC / tablet: the pill box disappears, each pill sits in its column (rank · asset · type · market cap · share · price · 24h · 7 days) */
@media (min-width:761px){   /* ck-g4-12 11/19: was 641 - 641-760 = the phone rows */
	.ac .ac-tg{display:contents}
	.ac .ac-r > .ac-rk{order:1}.ac .ac-r > .ac-cn{order:2}.ac .ac-tg > .ac-ty{order:3}.ac .ac-r > .ac-mc{order:4}.ac .ac-r > .ac-sh{order:5}.ac .ac-tg > .ac-px{order:6}.ac .ac-tg > .ac-ch{order:7}.ac .ac-r > .ac-sp{order:8}
}
@media (min-width:761px){.ac .ac-r .ac-rk,.ac .ac-r .ac-ty{justify-self:center}.ac .ac-mc,.ac .ac-sh,.ac .ac-px,.ac .ac-ch{text-align:center}}   /* owner 11/17 "가운데 정렬": under the centred labels (phones keep their own layout) */
.ac.xs2 .xs-s3 .xs-sn{padding-right:0}   /* the line picture sits behind the number (share.css keeps 56px for a picture on tablets) */
/* owner mockup 11/17: a pale crown in card 1, a pale rising line in card 3 (behind the words), card 3's line = "24시간 ▼ x% | 비트코인 비중 y%" */
.ac .xs-sum .xs-sc{overflow:hidden}
.ac .xs-sum .xs-sc > :not(.xs-art){position:relative;z-index:1}
.ac .xs-sum .ac-art{z-index:0;pointer-events:none}
.ac .xs-s1 .xs-art.ac-crown{display:inline-flex;top:auto;right:16px;bottom:24px;margin-top:0;opacity:.5}   /* cvol.css hides .xs-s1 .xs-art (its own card) */
.ac .xs-s1 .ac-crown svg{width:72px;height:52px;margin-top:0}
.ac .xs-s3 .ac-trend{top:12px;right:0;margin-top:0}
.ac .xs-s3 .ac-trend svg{display:block;width:96px;height:58px}
/* the bar between the two parts is the second part's ::before - when the card is too narrow and the part drops to the next line,
   the bar falls outside the box (overflow hidden) instead of hanging at the end of the first line */
.ac .xs-sum .xs-sm.ac-gsm{display:flex;flex-wrap:wrap;align-items:center;gap:2px 17px;overflow:hidden;color:#7C3AED;font-size:12.5px;font-weight:700;letter-spacing:-.4px}   /* (cvol.css .cv .cv-sum .xs-sm is 13.5px) */
.ac .ac-gsm .cv-dn{color:#2563EB}
.ac .ac-gsm .cv-up{color:#E11D48}
.ac .ac-gsm .ac-bd{position:relative}
.ac .ac-gsm .ac-bd::before{content:"";position:absolute;top:50%;left:-9px;width:1px;height:13px;margin-top:-6.5px;background:#CDBEF5}
.ac .xs-sn small{margin-left:4px;font-size:.6em}
@media (min-width:761px) and (max-width:1024px){
	.ac .ac-hd,.ac .ac-r{grid-template-columns:30px minmax(0,1.5fr) 96px 98px 54px 86px 68px 58px;gap:8px}   /* ck-actyp: 종류 96 for the icon pills */
	.ac .ac-ty{gap:4px;padding:2px 7px 2px 2px;font-size:11px}
	.ac .ac-tyi{width:15px;height:15px}
	.ac .ac-sp{width:56px;height:24px}
	.ac .ac-tg > .ac-ch{padding:1px 7px}
	.ac .ac-nm b,.ac .ac-mc b{font-size:13.5px}
	.ac .ac-sh,.ac .ac-px,.ac .ac-ch{font-size:12.5px}
	.ac .ac-hd{font-size:11px}
}
@media (max-width:640px){.ac .xs-s1 .xs-art.ac-crown{display:none}}   /* the half-width phone card has no room (as share.css) */
/* ck-g4-12 11/19 (2차 점검 12): the 7 fixed columns left the 자산 column 4-40px at 641-720 (names one letter a line) - up to 760 the rows
   take the phone shape (name line, then type · price · 24h); no column is dropped */
@media (max-width:760px){
	.ac .ac-hd{display:none}
	/* phone: name lines = rank · name · market cap (비중 under it), then type · price · 24h */
	/* + the 7-day line at the end of the first two lines (owner mockup 11/17) */
	/* the three pills = one box on the third line (it does not widen the columns above - the line no longer pushed the 7-day line out) */
	.ac .ac-r{grid-template-columns:26px minmax(0,1fr) auto 50px;grid-template-areas:"rk cn mc sp" "rk cn sh sp" ". tg tg tg";gap:0 6px;padding:10px 4px}
	.ac .ac-tg{grid-area:tg;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0;margin-top:7px}
	.ac .ac-sp{grid-area:sp;justify-self:end;align-self:center;width:42px;height:24px}
	.ac .ac-rk{grid-area:rk;width:26px;height:26px;font-size:12px}
	.ac .ac-cn{grid-area:cn;gap:8px}
	.ac .ac-cn .mk-ci{width:28px;height:28px}
	.ac .ac-nm b,.ac .ac-mc b{font-size:14px}
	.ac .ac-mc{grid-area:mc;align-self:end}
	.ac .ac-sh{grid-area:sh;align-self:start;justify-self:end;font-size:11.5px;font-weight:700;color:#64748B}
	.ac .ac-ty{gap:4px;padding:1px 8px 1px 2px;font-size:11px}
	.ac .ac-tyi{width:15px;height:15px}
	.ac .ac-tg > .ac-px,.ac .ac-tg > .ac-ch{display:inline-flex;align-items:center;gap:4px;padding:1px 8px;border-radius:999px;background:#F1F5F9;font-size:11.5px;line-height:1.6}
	.ac .ac-tg > .ac-ch.up{background:#FDECEF}
	.ac .ac-tg > .ac-ch.dn{background:#E7F0FE}
	.ac .ac-lb{display:inline;margin-right:3px;font-size:10.5px;font-weight:700;color:#64748B}
	.ac .ac-px .ac-lb,.ac .ac-ch .ac-lb{margin-right:0}
	/* phones: 조회 범위 on its own line, then 달러/원화 · 상위 N개 · 높은 순 / 낮은 순 (the table head with the arrow is hidden) */
	.ac .ac-scope{flex:1 1 100%}
	.ac .ac-scope .ac-selw{flex:1 1 auto;width:auto}
	.ac .ac-topw{flex:1 1 92px;width:auto}
	.ac .ac-sel{height:34px;padding-left:10px;font-size:13px}
	.ac .ac-sortm{display:inline-flex;align-items:center;gap:3px;height:34px;padding:0 10px;border:1px solid #E3E8EF;border-radius:10px;background:#fff;color:#111827;font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
	.ac .ac-sortm i{font-style:normal;color:#1D74F5}
	.ac .ac-cnt{margin-left:8px;padding:1px 9px;font-size:12px}
}
body.dm .ac .ac-hd{background:var(--mk-card2);color:var(--mk-mu)}
body.dm .ac .ac-sel,body.dm .ac .ac-sortm{border-color:var(--mk-bd);background:var(--mk-card);color:var(--mk-tx)}
body.dm .ac .ac-sel option,body.dm .ac .ac-sel optgroup{background:#1E293B;color:#F1F5F9}
body.dm .ac .ac-selw::after{border-color:#94A3B8}
body.dm .ac .ac-lab{color:var(--mk-tx)}
body.dm .ac .ac-cnt{background:var(--mk-card2);color:var(--mk-mu)}
body.dm .ac .ac-cn img.ac-lg{box-shadow:0 0 0 1px #334155}
body.dm .ac .ac-tg > .ac-ch{background:#1E2A3A}
body.dm .ac .ac-tg > .ac-ch.up{background:rgba(251,113,133,.14)}
body.dm .ac .ac-tg > .ac-ch.dn{background:rgba(96,165,250,.14)}
body.dm .ac .ac-sp.up .ac-spl{stroke:#FB7185}
body.dm .ac .ac-sp.dn .ac-spl{stroke:#60A5FA}
body.dm .ac .ac-k1 .ac-rk{background:#C8344F;color:#fff}
body.dm .ac .ac-k2 .ac-rk,body.dm .ac .ac-k3 .ac-rk{background:#4A1D28;color:#FDA4AF}
body.dm .ac .ac-hd .ac-sort{color:#F1F5F9}
body.dm .ac .ac-hd .ac-sort i,body.dm .ac .ac-sortm i{color:#60A5FA}
body.dm .ac .ac-ty{box-shadow:none}
body.dm .ac .ac-t-kr{background:rgba(52,211,153,.14);color:#A7F3D0}
body.dm .ac .ac-l.ac-kr{background:#123B37;color:#5EEAD4}
body.dm .ac .ac-l.ac-jp{background:#43162F;color:#F9A8D4}
body.dm .ac .ac-l.ac-cn{background:#45230F;color:#FDBA74}
body.dm .ac .ac-t-jp{background:rgba(244,114,182,.15);color:#FBCFE1}
body.dm .ac .ac-t-cn{background:rgba(251,146,60,.15);color:#FED7B0}
body.dm .ac .ac-art{opacity:.35}
body.dm .ac .xs-sum .xs-sm.ac-gsm{color:#C4B5FD}
body.dm .ac .ac-gsm .cv-dn{color:#60A5FA}
body.dm .ac .ac-gsm .cv-up{color:#FB7185}
body.dm .ac .ac-gsm .ac-bd::before{background:#4C3F75}
body.dm .ac .ac-r{border-color:var(--mk-bd)}
body.dm .ac .ac-r.ac-btc,body.dm .ac .ac-r.ac-k1{background:rgba(251,191,36,.08)}   /* a faint gold (11/17 owner: dark mode must not stand out) */
body.dm .ac .ac-rk{background:#243448;color:#CBD5E1}
body.dm .ac .ac-l.ac-us{background:#1E3354;color:#93C5FD}
body.dm .ac .ac-l.ac-crypto,body.dm .ac .ac-l.ac-stable{background:#243448;color:#CBD5E1}
body.dm .ac .ac-nm b,body.dm .ac .ac-mc b,body.dm .ac .ac-sh,body.dm .ac .ac-px{color:#F1F5F9}
body.dm .ac .ac-ch{color:#CBD5E1}   /* ck-g4-26 11/19 (2차 점검 26): an unchanged 0.00% was the light grey #374151 on the dark row (1.4:1); up / down keep their colours */
body.dm .ac .ac-nm small,body.dm .ac .ac-lb{color:var(--mk-mu)}
body.dm .ac .ac-ch.up{color:#FB7185}
body.dm .ac .ac-ch.dn{color:#60A5FA}
body.dm .ac .ac-t-metal{background:rgba(250,204,21,.14);color:#FDE68A}
body.dm .ac .ac-t-crypto{background:rgba(167,139,250,.17);color:#DDD6FE}
body.dm .ac .ac-t-stable{background:rgba(45,212,191,.14);color:#99F6E4}
body.dm .ac .ac-t-us{background:rgba(96,165,250,.16);color:#C7DAFF}
@media (max-width:760px){body.dm .ac .ac-tg > .ac-px{background:#1E2A3A}body.dm .ac .ac-sh{color:var(--mk-mu)}}
/* ck-ac7d 11/19 (owner review 36 "7일 적어줘"): phones have no column heads - the 7-day line says what it is */
@media (max-width:760px){   /* ck-g4-12: with the phone rows */
	.ac .ac-r > .ac-sp{position:relative}
	.ac .ac-r > .ac-sp::after{content:"7일";position:absolute;right:0;top:100%;margin-top:3px;font-size:10.5px;font-weight:600;line-height:1;color:#94A3B8}
	html[lang="en"] .ac .ac-r > .ac-sp::after{content:"7D"}
	body.dm .ac .ac-r > .ac-sp::after{color:#7D8FA6}
}
/* ck-g4-13 11/19 (2차 점검 13): the blue pill under the title may take 2 lines when it is longer than the screen (EN phone: 515px of text
   ran 140px off the right edge); one line stays exactly as before (28px high) */
.ac.xs2 .xs-tag{box-sizing:border-box;max-width:100%;height:auto;min-height:28px;padding:4px 12px;border-radius:14px;line-height:1.45;white-space:normal}
/* ck-g4-12b 11/19 (2차 점검 12, same page): 641-700px - card 3's number a little smaller (32 -> 30px) so "2.19조 달러" is never cut to "2.19조 …" */
@media (min-width:641px) and (max-width:700px){.ac .cv-sum .xs-s3 .xs-sn{font-size:30px}}
