/* ck-chat 11/23 (owner "실시간 채팅 … 로그인없이", "피씨버전은 회색공간에", "자리가 없으면 이런아이콘을 만들어서 누르면 채팅창이 뜨게"):
   owner 11/23 (2nd) "모니터 사이즈에 상관없이 항상 조그마한 아이콘으로 유지해. 클릭하면 채팅창 나오게해": every screen shows only the
   small round CHAT button (52px); it opens the window bottom-right (ckc-float) or, on phones, full screen (ckc-sheet).
   Every class is ckc-*; the script (js/chat.js) builds the markup. */
.ckc,.ckc *,.ckc-fab,.ckc-fab *{box-sizing:border-box}
.ckc{font-size:14px;line-height:1.45;color:#0F172A;text-align:left;letter-spacing:0;font-family:inherit}
.ckc button{font-family:inherit;cursor:pointer;margin:0}
.ckc button::-moz-focus-inner{border:0}

/* the round button */
.ckc-fab{position:fixed;right:12px;bottom:20px;z-index:99998;width:52px;height:52px;border-radius:50%;border:0;padding:0;margin:0;background:#FFC21F;color:#111827;
	box-shadow:0 8px 22px rgba(15,23,42,.28);display:none;flex-direction:column;align-items:center;justify-content:center;gap:0;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent}
.ckc-fab.on{display:flex}
.ckc-fab:hover{background:#FFCB3D}
.ckc-fab:focus-visible{outline:3px solid #2563EB;outline-offset:2px}
.ckc-fab svg{width:22px;height:20px;display:block}
.ckc-fab span{font-size:11px;font-weight:900;line-height:12px;letter-spacing:.3px;color:#111827;margin-top:1px}
/* ck-chatnew 12/4 (owner "새로운 실시간 챗이 있으면 New 혹은 어울리는 알림" → his phone picture of the NEW pill: "N 으로 쪼끄마한 표시해"):
   a small red round "N" on the button's top right while there are messages not seen yet (js/chat.js fresh()); it bounces when more come */
.ckc-fab b{position:absolute;right:-1px;top:-1px;width:18px;height:18px;padding:0;border-radius:50%;background:#DC2626;border:2px solid #fff;color:#fff;font-size:11px;font-weight:800;line-height:14px;text-align:center;white-space:nowrap;box-shadow:0 1px 4px rgba(220,38,38,.4);display:none}
/* the letter (an inner <i>): moved by the drawn-letter measurement (12/4) so the ink sits in the middle of the red - a transform, because
   line-height / padding only move text by whole pixels */
.ckc-fab b i{display:block;font-style:normal;transform:translateY(-.8px)}
.ckc-fab b.on{display:block}
.ckc-fab b.pop{animation:ckcNew .8s ease-out 3}
@keyframes ckcNew{0%{transform:scale(1)}25%{transform:scale(1.25)}50%{transform:scale(.94)}75%{transform:scale(1.07)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.ckc-fab b.pop{animation:none}}

/* the window */
.ckc-pan{position:fixed;display:none;flex-direction:column;background:#fff;overflow:hidden}
.ckc-pan.on{display:flex}
.ckc-pan.ckc-float{z-index:99998;right:12px;width:372px;max-width:calc(100vw - 24px);height:580px;border-radius:18px;border:1px solid #E6ECF4;box-shadow:0 18px 48px rgba(15,23,42,.28)}
.ckc-pan.ckc-sheet{z-index:100000;left:0;top:0;width:100%;height:100%;border-radius:0}
html.ckc-lock,html.ckc-lock body{overflow:hidden}

.ckc-hd{display:flex;align-items:center;gap:9px;padding:10px 10px 10px 12px;background:#1E2A44;color:#fff;flex:none}
.ckc-hd .ckc-ic{width:32px;height:32px;border-radius:10px;background:#FFC21F;display:flex;align-items:center;justify-content:center;flex:none}
.ckc-hd .ckc-ic svg{width:19px;height:18px;display:block}
.ckc-tt{flex:1;min-width:0}
.ckc-tt b{display:block;font-size:15.5px;font-weight:800;line-height:1.25;color:#fff;white-space:nowrap}
.ckc-tt small{display:flex;align-items:center;gap:5px;font-size:12px;color:#CBD5E1;line-height:1.3;white-space:nowrap}
.ckc-dot{width:7px;height:7px;border-radius:50%;background:#22C55E;display:inline-block;flex:none}
.ckc .ckc-hb{height:30px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;flex:none;line-height:28px}
.ckc .ckc-hb:hover{background:rgba(255,255,255,.12)}
.ckc .ckc-x{width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:17px;line-height:30px;padding:0;flex:none;text-align:center}
.ckc .ckc-x:hover{background:rgba(255,255,255,.26)}

.ckc-kp{display:none;flex-wrap:wrap;align-items:center;column-gap:6px;padding:7px 12px;background:#EEF4FF;color:#1E3A8A;font-size:12.5px;font-weight:700;flex:none;line-height:1.4}
.ckc-kp.on{display:flex}
.ckc-kp span{white-space:nowrap}
.ckc-kp em{font-style:normal;font-weight:800;color:#DC2626}
.ckc-kp em.dn{color:#1D4ED8}
.ckc-kp i{font-style:normal;color:#94A3B8;font-weight:400}
.ckc-mt{display:none;padding:6px 12px;background:#FDF0D0;color:#92400E;font-size:12px;font-weight:700;flex:none;line-height:1.4;word-break:keep-all}
.ckc-mt.on{display:block}
.ckc-mt span{display:inline-block;white-space:pre-wrap}
.ckc-pin{display:none;gap:6px;align-items:flex-start;padding:7px 12px;background:#FFF7E6;color:#92400E;font-size:12px;font-weight:600;flex:none;line-height:1.4;word-break:keep-all}
.ckc-pin.on{display:flex}

.ckc-ls{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:10px 12px 6px;background:#F5F7FB;position:relative}
.ckc-ls::-webkit-scrollbar{width:6px}
.ckc-ls::-webkit-scrollbar-thumb{background:#CBD5E1;border-radius:3px}
.ckc-emp{padding:40px 10px;text-align:center;color:#64748B;font-size:13.5px;line-height:1.6}
.ckc .ckc-unh{display:none;width:100%;border:0;background:transparent;padding:0 0 10px;color:#2563EB;font-weight:700;font-size:12.5px;line-height:1.4;text-align:center}
.ckc-m{display:flex;gap:8px;align-items:flex-start;margin:0 0 10px}
.ckc-av{width:28px;height:28px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:12.5px;font-weight:800;background:var(--b,#E2E8F0);color:var(--f,#475569)}
.ckc-b{min-width:0;flex:0 1 auto}
.ckc-n{display:flex;align-items:center;gap:5px;font-size:12.5px;line-height:1.3;margin-bottom:2px;min-width:0}
.ckc-n b{font-weight:800;min-width:0;overflow-wrap:anywhere;color:var(--f,#334155)}
.ckc-n time{font-size:11px;color:#94A3B8;flex:none}
.ckc-bd{font-size:11px;font-weight:800;padding:0 5px;border-radius:5px;background:#DBEAFE;color:#1D4ED8;line-height:16px;flex:none;white-space:nowrap}
.ckc-bd.op{background:#FEE2E2;color:#B91C1C}
.ckc .ckc-mo{width:26px;height:22px;border:0;background:transparent;color:#94A3B8;font-size:15px;line-height:20px;padding:0;border-radius:6px;flex:none;letter-spacing:1px}
.ckc .ckc-mo:hover{background:#E2E8F0;color:#334155}
.ckc-m p{margin:0;padding:7px 10px;background:#fff;border:1px solid #E6ECF4;border-radius:4px 13px 13px 13px;font-size:14px;line-height:1.45;color:#0F172A;display:inline-block;max-width:100%;word-break:keep-all;overflow-wrap:anywhere;white-space:pre-wrap}
.ckc-m.me{flex-direction:row-reverse}
.ckc-m.me .ckc-n{justify-content:flex-end}
.ckc-m.me .ckc-b{text-align:right}
.ckc-m.me p{background:#2563EB;border-color:#2563EB;color:#fff;border-radius:13px 4px 13px 13px;text-align:left}
.ckc-m.me .ckc-n b{color:#2563EB}
.ckc-stk{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:84px;height:84px;border-radius:18px;gap:1px;background:#F1F5F9;color:#475569}
.ckc-stk i{font-style:normal;font-size:36px;line-height:1.1}
.ckc-stk b{font-size:13px;font-weight:900;line-height:1.2;white-space:nowrap}
.ckc .ckc-new{position:sticky;left:0;bottom:4px;margin:0 auto;display:none;height:30px;padding:0 14px;border-radius:999px;border:0;background:#1E2A44;color:#fff;font-size:12.5px;font-weight:800;box-shadow:0 6px 16px rgba(15,23,42,.25)}
.ckc .ckc-new.on{display:block}

.ckc-qk{display:flex;gap:6px;padding:7px 12px 0;background:#fff;flex:none}
.ckc .ckc-qk button{flex:1 1 0;min-width:0;height:32px;padding:0;border-radius:999px;border:1px solid #E6ECF4;background:#F8FAFC;font-size:17px;line-height:30px;color:#0F172A}
.ckc .ckc-qk button:hover{background:#EEF2F7}
.ckc .ckc-qk button.w{flex:1.6 1 0;font-size:12.5px;font-weight:800;color:#DC2626}
.ckc-in{display:flex;align-items:center;gap:7px;padding:9px 12px 11px;background:#fff;flex:none}
.ckc .ckc-emo{width:38px;height:38px;border-radius:50%;border:0;background:#F1F5F9;font-size:20px;line-height:38px;padding:0;flex:none}
.ckc .ckc-emo.on{background:#DBEAFE}
.ckc .ckc-tx{flex:1 1 0;min-width:0;width:auto;height:38px;border-radius:999px;border:1px solid #D8E0EC;background:#F8FAFC;padding:0 14px;margin:0;font-size:14px;line-height:36px;color:#0F172A;font-family:inherit;outline:0;box-shadow:none;-webkit-appearance:none;appearance:none}
.ckc .ckc-tx:focus{border-color:#2563EB;background:#fff}
.ckc .ckc-tx::placeholder{color:#94A3B8;opacity:1}
html.ck_touch .ckc .ckc-tx{font-size:16px}
.ckc .ckc-sd{height:38px;padding:0 15px;border-radius:999px;border:0;background:#2563EB;color:#fff;font-size:14px;font-weight:800;flex:none;white-space:nowrap;line-height:38px}
.ckc .ckc-sd:disabled{background:#93B4F5;cursor:default}
.ckc-ts{display:none;margin:0 12px 8px;padding:7px 11px;border-radius:10px;background:#1E2A44;color:#fff;font-size:12.5px;font-weight:700;line-height:1.4;flex:none;word-break:keep-all}
.ckc-ts.on{display:block}

/* emoji + stickers */
.ckc-ep{display:none;flex:none;background:#fff;border-top:1px solid #E6ECF4}
.ckc-ep.on{display:block}
.ckc-et{display:flex;align-items:stretch;border-bottom:1px solid #EEF2F7;padding:0 6px}
.ckc .ckc-et button{flex:1 1 0;min-width:0;height:42px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;font-size:20px;line-height:36px;padding:0;color:#0F172A}
.ckc .ckc-et button.on{border-bottom-color:#2563EB}
.ckc .ckc-et button.st{flex:2 1 0;font-size:12.5px;font-weight:900;color:#2563EB;white-space:nowrap}
.ckc-ec{padding:8px 12px 2px;font-size:12px;font-weight:800;color:#64748B}
.ckc-eb{height:214px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ckc-eg{display:grid;grid-template-columns:repeat(8,1fr);padding:2px 8px 10px}
.ckc .ckc-eg button{height:42px;border:0;border-radius:8px;background:transparent;font-size:26px;line-height:42px;padding:0;color:#0F172A;min-width:0}
.ckc .ckc-eg button:hover{background:#F1F5F9}
.ckc-sg{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:6px 12px 12px}
.ckc .ckc-sg button{border:0;background:transparent;padding:0;min-width:0}
.ckc-sg .ckc-stk{width:100%;height:76px}
.ckc-sg .ckc-stk i{font-size:30px}
.ckc-sg .ckc-stk b{font-size:12.5px}

/* small windows inside: message menu, the rules, the name */
.ckc-mn{position:absolute;z-index:6;background:#fff;border:1px solid #E6ECF4;border-radius:12px;box-shadow:0 10px 28px rgba(15,23,42,.2);padding:5px;min-width:150px}
.ckc .ckc-mn button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 12px;font-size:13.5px;font-weight:700;color:#0F172A;border-radius:8px;white-space:nowrap;line-height:1.3}
.ckc .ckc-mn button:hover{background:#F1F5F9}
.ckc .ckc-mn button.r{color:#DC2626}
.ckc-ov{position:absolute;left:0;top:0;right:0;bottom:0;z-index:8;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;padding:14px}
.ckc-ov.on{display:flex}
.ckc-dl{width:100%;max-width:330px;max-height:100%;overflow-y:auto;background:#fff;border-radius:16px;padding:16px 16px 14px;box-shadow:0 18px 48px rgba(15,23,42,.3)}
.ckc-dl h3{margin:0 0 8px;font-size:16px;font-weight:900;color:#0F172A;line-height:1.3}
.ckc-dl ul{margin:0 0 12px;padding:0 0 0 18px;font-size:13.5px;line-height:1.6;color:#334155;list-style:disc}
.ckc-dl li{margin:0 0 2px;list-style:disc;word-break:keep-all}
.ckc-dl p{margin:0 0 10px;font-size:13px;line-height:1.55;color:#475569;word-break:keep-all}
.ckc-dl p.er{color:#DC2626;font-weight:700;min-height:0}
.ckc .ckc-dl input{display:block;width:100%;height:42px;border:1px solid #D8E0EC;border-radius:10px;padding:0 12px;margin:0 0 8px;font-size:15px;line-height:40px;color:#0F172A;background:#F8FAFC;font-family:inherit;outline:0;box-shadow:none;-webkit-appearance:none;appearance:none}
html.ck_touch .ckc .ckc-dl input{font-size:16px}
.ckc .ckc-dl input:focus{border-color:#2563EB;background:#fff}
.ckc-da{display:flex;gap:8px;flex-wrap:wrap}
.ckc .ckc-da button{flex:1 1 0;min-width:0;height:40px;border-radius:10px;border:1px solid #D8E0EC;background:#fff;color:#334155;font-size:13.5px;font-weight:800;padding:0 10px;white-space:nowrap;line-height:38px}
.ckc .ckc-da button.p{flex:1.6 1 0;border-color:#2563EB;background:#2563EB;color:#fff}
.ckc .ckc-da button.t{flex:1 1 100%;border:0;background:transparent;color:#2563EB;height:30px;line-height:30px;font-size:12.5px}

/* dark mode */
body.dm .ckc-pan{background:#131C2E}
body.dm .ckc-pan.ckc-float{border-color:#243150}
body.dm .ckc-hd{background:#0F1830}
body.dm .ckc-ls{background:#0B1220}
body.dm .ckc-ls::-webkit-scrollbar-thumb{background:#33415C}
body.dm .ckc-emp{color:#9FB0C9}
body.dm .ckc-m p{background:#1B2640;border-color:#2A3856;color:#E8EEF8}
body.dm .ckc-m.me p{background:#2563EB;border-color:#2563EB;color:#fff}
body.dm .ckc-n time{color:#7C8BA5}
body.dm .ckc .ckc-mo{color:#7C8BA5}
body.dm .ckc .ckc-mo:hover{background:#1B2640;color:#E8EEF8}
body.dm .ckc-kp{background:#16223C;color:#BFD3FF}
body.dm .ckc-kp em{color:#FF7B7B}
body.dm .ckc-kp em.dn{color:#7FB0FF}
body.dm .ckc-mt{background:#3A2D10;color:#F5CF8A}
body.dm .ckc-pin{background:#33280F;color:#F5CF8A}
body.dm .ckc-qk,body.dm .ckc-in,body.dm .ckc-ep{background:#131C2E;border-color:#243150}
body.dm .ckc .ckc-qk button{background:#1B2640;border-color:#2A3856;color:#E8EEF8}
body.dm .ckc .ckc-qk button.w{color:#FF7B7B}
body.dm .ckc .ckc-emo{background:#1B2640}
body.dm .ckc .ckc-emo.on{background:#1E3A8A}
body.dm .ckc .ckc-tx{background:#0B1220;border-color:#2A3856;color:#E8EEF8}
body.dm .ckc .ckc-tx:focus{background:#0B1220;border-color:#5B8DEF}
body.dm .ckc .ckc-tx::placeholder{color:#7C8BA5}
body.dm .ckc-et{border-color:#243150}
body.dm .ckc .ckc-et button{color:#E8EEF8}
body.dm .ckc .ckc-et button.st{color:#7FB0FF}
body.dm .ckc-ec{color:#9FB0C9}
body.dm .ckc .ckc-eg button{color:#E8EEF8}
body.dm .ckc .ckc-eg button:hover{background:#1B2640}
body.dm .ckc-mn,body.dm .ckc-dl{background:#18233B;border-color:#2A3856}
body.dm .ckc .ckc-mn button{color:#E8EEF8}
body.dm .ckc .ckc-mn button:hover{background:#24304E}
body.dm .ckc .ckc-mn button.r{color:#FF7B7B}
body.dm .ckc-dl h3{color:#F1F5F9}
body.dm .ckc-dl ul{color:#C7D2E3}
body.dm .ckc-dl p{color:#9FB0C9}
body.dm .ckc-dl p.er{color:#FF7B7B}
body.dm .ckc .ckc-dl input{background:#0B1220;border-color:#2A3856;color:#E8EEF8}
body.dm .ckc .ckc-da button{background:#18233B;border-color:#33415C;color:#E8EEF8}
body.dm .ckc .ckc-da button.p{background:#2563EB;border-color:#2563EB;color:#fff}
body.dm .ckc .ckc-da button.t{background:transparent;color:#7FB0FF}
body.dm .ckc-av{background:#24304E;color:var(--fd,#C7D2E3)}
body.dm .ckc-n b{color:var(--fd,#C7D2E3)}
body.dm .ckc-m.me .ckc-n b{color:#7FB0FF}
body.dm .ckc .ckc-unh{color:#7FB0FF}

@media print{.ckc-fab.on,.ckc-pan.on{display:none}}
