/* ==========================================================================
   윈도우클리너 랜딩 — index.php 전용. 모든 클래스는 kc- 접두어 (밝은 바탕, 앱 강조색 #3d84dd)
   프로그램 창 안(.kc-win)은 앱 css 를 옮긴 app.css — 여기에는 창 크기 · 페이지 쪽 맞춤만
   ========================================================================== */

:root {
	--bg: #f5f8fd;
	--bg-2: #e8eef8;
	--surface: #fff;
	--line: rgba(15, 23, 42, .08);
	--line-2: rgba(15, 23, 42, .15);
	--text: #0f172a;
	--muted: #475569;
	--faint: #8a96a8;
	--acc: #2563eb;
	--acc-2: #60a5fa;
	--acc-deep: #1d4ed8;
	--acc-dim: rgba(37, 99, 235, .1);
	--blue: #3d84dd;
	--pin: #f59e0b;
	--wrap: 1160px;
	--top: 64px;
	--font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", "Pretendard Variable", monospace;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body.kc {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.7 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acc-deep); text-underline-offset: 3px; }
b, strong { font-weight: 700; color: var(--text); }
code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); padding: .1em .4em; border-radius: 6px; color: #1e40af; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.kc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kc-narrow { max-width: 820px; }
.kc-small { font-size: 14px; color: var(--muted); }
.kc-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--acc); color: #fff; padding: 8px 14px; border-radius: 8px; }
.kc-skip:focus { top: 8px; }

/* ---------- 버튼 · 배지 ---------- */
.kc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
	background: linear-gradient(180deg, #3b82f6, #1f56d6); color: #fff; font-family: inherit; cursor: pointer;
	font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
	box-shadow: 0 10px 26px -12px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .2s, box-shadow .2s;
}
.kc-btn svg { width: 20px; height: 20px; }
.kc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.kc-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.kc-btn--ghost:hover { background: var(--bg-2); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.kc-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.kc-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--acc-dim); color: var(--acc-deep); white-space: nowrap; }
.kc-badge--off { background: var(--bg-2); color: var(--muted); }

/* ---------- 상단 ---------- */
.kc-top {
	position: sticky; top: 0; z-index: 50; height: var(--top);
	background: rgba(245, 248, 253, .8); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid transparent; transition: border-color .3s;
}
.kc-top.is-stuck { border-bottom-color: var(--line); }
.kc-top__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.kc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; text-decoration: none; margin: 0; }
.kc-brand__icon { width: 20px; height: 20px; }
.kc-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.kc-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.kc-nav a:hover { color: var(--text); background: var(--bg-2); }

/* ---------- HERO ---------- */
.kc-hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }
.kc-hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
	background:
		radial-gradient(44% 46% at 74% 42%, rgba(96, 165, 250, .16), transparent 70%),
		radial-gradient(30% 30% at 12% 80%, rgba(245, 158, 11, .07), transparent 70%);
}
.kc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kc-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kc-tags li { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.7); }
.kc-hero__title { font-size: clamp(34px, 4.3vw, 52px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.kc-hero__title--long { font-size: clamp(30px, 3.8vw, 46px); }
.kc-hero__title em { font-style: normal; color: var(--acc); }
.kc-line { display: block; }
.kc-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.kc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.kc-hero__meta { font-size: 14px; color: var(--faint); margin: 0; }

.kc-hero__visual { position: relative; padding: 24px 0 40px; }
.kc-chip {
	position: absolute; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
	background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(15,23,42,.35); font-size: 14px; color: var(--muted); white-space: nowrap;
}
.kc-chip img { width: 20px; height: 20px; flex: none; }

/* 첫 화면 등장 (JS 가 있을 때만) */
.kc-js .kc-line, .kc-js .kc-tags, .kc-js .kc-hero__lead, .kc-js .kc-cta, .kc-js .kc-hero__meta, .kc-js .kc-hero__visual {
	animation: kc-rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.kc-js .kc-tags { animation-delay: .05s; }
.kc-js .kc-line:nth-child(1) { animation-delay: .12s; }
.kc-js .kc-line:nth-child(2) { animation-delay: .22s; }
.kc-js .kc-hero__lead { animation-delay: .34s; }
.kc-js .kc-cta { animation-delay: .44s; }
.kc-js .kc-hero__meta { animation-delay: .52s; }
.kc-js .kc-hero__visual { animation-duration: 1.2s; animation-delay: .2s; }
@keyframes kc-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes kc-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }

/* ---------- 섹션 공통 ---------- */
.kc-sec { padding: 112px 0; border-top: 1px solid var(--line); }
.kc-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.kc-ad { margin-top: 24px; line-height: 0; }
.kc-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.kc-caption { text-align: center; font-size: 13px; color: var(--faint); margin: 28px auto 0; max-width: 780px; text-wrap: balance; }

.kc-js .kc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.kc-js .kc-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 격자 ---------- */
.kc-grid { display: grid; gap: 16px; }
.kc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 카드 ---------- */
.kc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .3s, box-shadow .3s; }
.kc-card:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -30px rgba(30, 58, 138, .45); }
.kc-card h3 { font-size: 18px; margin: 12px 0 6px; }
.kc-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 아코디언 ---------- */
.kc-acc { display: grid; gap: 10px; }
.kc-acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s; }
.kc-acc details[open] { border-color: var(--line-2); }
.kc-acc summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 52px; position: relative; font-weight: 700; font-size: 16px; }
.kc-acc summary::-webkit-details-marker { display: none; }
.kc-acc summary::after { content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.kc-acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.kc-acc details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- DOWNLOAD ---------- */
.kc-down { background: radial-gradient(60% 60% at 50% 0%, rgba(96, 165, 250, .1), transparent 70%), var(--bg); }
.kc-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.kc-dl__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.kc-dl__card h3 { font-size: 22px; }
.kc-dl__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.kc-dl__card ul li { padding-inline-start: 20px; position: relative; }
.kc-dl__card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.kc-dl__card--main { border-color: rgba(37, 99, 235, .4); background: linear-gradient(180deg, #eef4fe, var(--surface) 60%); box-shadow: 0 24px 50px -36px rgba(37, 99, 235, .6); }
.kc-dl__card--main h3 { display: flex; align-items: center; gap: 10px; }
.kc-dl__card .kc-btn { align-self: stretch; white-space: normal; text-align: center; padding-block: 10px; }
.kc-req { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.kc-req b { margin-inline-end: 4px; }
.kc-hist { max-width: 820px; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--surface); }
.kc-hist summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.kc-hist__item { padding: 12px 0; border-top: 1px solid var(--line); }
.kc-hist__item p { margin: 0 0 6px; }
.kc-hist__item time { color: var(--faint); font-size: 14px; margin-inline-start: 6px; }
.kc-hist__item ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.kc-hist > .kc-small { border-top: 1px solid var(--line); padding: 14px 0 18px; margin: 0; }

/* ---------- 바닥 ---------- */
.kc-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; background: #fff; }
.kc-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.kc-foot__in p { margin: 0 0 4px; }
.kc-foot .kc-brand a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.kc-foot .kc-brand a:hover { color: var(--acc-deep); }
.kc-foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.kc-foot__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.kc-foot__links a:hover { color: var(--text); }

/* ---------- 언어 선택 ---------- */
.kc-lang { position: relative; margin-inline-start: 4px; }
.kc-lang summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
	border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; white-space: nowrap; background: rgba(255,255,255,.6);
}
.kc-lang summary::-webkit-details-marker { display: none; }
.kc-lang summary:hover, .kc-lang[open] summary { color: var(--text); background: #fff; }
.kc-lang summary svg { width: 17px; height: 17px; }
.kc-lang ul {
	position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px;
	display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 2px;
	background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(15,23,42,.35);
}
.kc-lang a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.kc-lang a:hover { background: var(--bg-2); color: var(--text); }
.kc-lang a[aria-current="page"] { color: var(--acc-deep); font-weight: 700; }

/* ---------- 언어별 서체 · 방향 ---------- */
:root:lang(ja) { --font: "Pretendard JP Variable", "Pretendard Variable", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif; }
:root:lang(zh-Hans) { --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Pretendard Variable", system-ui, sans-serif; }
:root:lang(ar) { --font: "Pretendard Variable", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
:root:lang(th) { --font: "Pretendard Variable", "Leelawadee UI", "Noto Sans Thai", Tahoma, system-ui, sans-serif; }
:root:lang(ja) body.kc, :root:lang(zh-Hans) body.kc, :root:lang(th) body.kc { word-break: normal; line-break: strict; }
:root:lang(ar) .kc-hero__title, :root:lang(ar) .kc-head h2, :root:lang(th) .kc-hero__title { letter-spacing: 0; line-height: 1.4; }
:root:lang(ar) body.kc { letter-spacing: 0; }

/* ---------- kilho.net 첫 화면 링크: 다운로드 아래 (LANDING-PAGE.md 10-1) ---------- */
.kc-more img { width: 16px; height: 16px; flex: none; }
.kc-more { margin: 32px 0 0; text-align: center; }
.kc-more a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s, transform .2s; }
.kc-more a:hover { transform: translateY(-2px); }
.kc-more a::after { content: "→"; color: var(--muted); }
[dir="rtl"] .kc-more a::after { content: "←"; }

/* ---------- 첫 화면 칩 ---------- */
.kc-chip { color: var(--text); font-weight: 600; }
kbd { font-family: var(--mono); font-size: .82em; padding: .1em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--text); white-space: nowrap; }
.kc-head > p { color: var(--muted); margin: 14px auto 0; max-width: 680px; }

/* ---------- 기능 카드 ---------- */
.kc-card h3 { margin-top: 14px; }
.kc-card__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc-dim); color: var(--acc-deep); }
.kc-card__ic .kc-ic { width: 20px; height: 20px; }

/* ---------- 프로그램 미리보기: 탭 + 창 ---------- */
.kc-appsec { background: linear-gradient(180deg, #fff, var(--bg)); }
.kc-appv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.kc-appv__side { position: sticky; top: calc(var(--top) + 24px); }
.kc-appv__tabs { display: grid; gap: 10px; }
.kc-appv__tabs [role="tab"] { text-align: start; cursor: pointer; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; transition: border-color .2s, box-shadow .2s; }
.kc-appv__tabs [role="tab"] > b { display: block; font-size: 16px; margin-bottom: 2px; }
.kc-appv__tabs [role="tab"] span { font-size: 14px; line-height: 1.55; display: block; }
.kc-appv__tabs [role="tab"][aria-selected="true"] { border-color: rgba(37, 99, 235, .45); box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }
.kc-appv__view {
	min-height: 620px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 24px; border-radius: 24px; overflow: hidden;
	background: radial-gradient(80% 70% at 50% 30%, rgba(96, 165, 250, .14), transparent 70%), linear-gradient(160deg, #e8eef8, #f8fafe);
	border: 1px solid var(--line);
}
.kc-appv__pane { width: 100%; min-width: 0; display: grid; justify-items: center; }
.kc-appv__pane[hidden] { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
	.kc-ex3 { grid-template-columns: 1fr; max-width: 520px; }
	.kc-appv { grid-template-columns: 1fr; gap: 20px; }
	.kc-appv__side { position: static; }
	.kc-appv__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	:root { --top: 56px; }
	.kc-wrap { padding: 0 16px; }
	.kc-nav { display: none; }
	.kc-top__in { justify-content: space-between; gap: 10px; }
	.kc-lang, .kc-nav + .kc-lang { margin-inline-start: auto; }
	.kc-lang summary span { display: none; }
	.kc-lang summary { padding: 0 10px; }
	.kc-top__in { position: relative; }
	.kc-lang { position: static; }
	.kc-lang ul { inset-inline-end: 16px; width: min(300px, calc(100vw - 32px)); }   /* 메뉴 목록은 머리줄 오른쪽 끝에 맞춘다 (단추에 맞추면 긴 언어 이름일 때 왼쪽이 잘림) */
	.kc-hero { padding: 40px 0 56px; }
	.kc-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.kc-chip { padding: 8px 11px; font-size: 13px; }
	.kc-sec { padding: 72px 0; }
	.kc-head { margin-bottom: 36px; }
	.kc-ex3 { grid-template-columns: 1fr; }
	.kc-grid--3 { grid-template-columns: 1fr; }
		.kc-appv__tabs { gap: 6px; }
	.kc-appv__tabs [role="tab"] { padding: 10px; text-align: center; border-radius: 10px; }
	.kc-appv__tabs [role="tab"] b { font-size: 14px; margin: 0; }
	.kc-appv__tabs [role="tab"] span { display: none; }
	.kc-appv__view { padding: 28px 12px; min-height: 0; }
	.kc-dl { grid-template-columns: 1fr; }
	.kc-foot__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
	.kc-hero__title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.kc-js .kc-reveal { opacity: 1; transform: none; }
}

/* 바닥 왼쪽 © KILHO.NET — kilho.net 첫 화면 링크, 글자색은 둘레와 같게 */
.kc-foot .kc-small a { color: inherit; text-decoration: none; }
.kc-foot .kc-small a:hover { color: var(--text); text-decoration: underline; }

/* 바닥 X(트위터) — 글자 대신 로고 */
.kc-foot__links .kc-x { display: inline-flex; align-items: center; height: 100%; }
.kc-foot__links .kc-x svg { width: 15px; height: 15px; }



/* ==========================================================================
   윈도우클리너 고유 — 첫 화면 창, 실행하기 시연(창 + 실행 중인 프로그램 + 결과), 정리 도구(탭이 움직이는 창),
   프로그램 창 틀, Windows 메뉴 · 메시지 상자
   ========================================================================== */

/* ---------- 첫 화면 ---------- */
.kc-hfig { margin: 0; display: grid; justify-items: center; min-width: 0; }
.kc-hero__visual { padding: 28px 0 36px; min-width: 0; }
.kc-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.kc-chip__dot--ok { background: #2e9d57; }
.kc-chip--a { inset-inline-start: -28px; top: 44%; }
.kc-chip--b { inset-inline-end: -12px; bottom: 6px; }
.kc-js .kc-chip--a { animation: kc-pop .7s .9s cubic-bezier(.2,.9,.3,1.3) both; }
.kc-js .kc-chip--b { animation: kc-pop .7s 1.1s cubic-bezier(.2,.9,.3,1.3) both; }

/* ---------- 실행하기: 카드 3 + 창 + 실행 중인 프로그램 ---------- */
.kc-run { background: linear-gradient(180deg, #fff, var(--bg)); }
.kc-ex3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto 28px; }
.kc-ex3__card, .kc-tcard {
	display: block; width: 100%; text-align: start; cursor: pointer; font: inherit; color: var(--muted);
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.kc-ex3__card > b, .kc-tcard > b { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 4px; }
.kc-ex3__card > b span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc-dim); color: var(--acc-deep); font-size: 12.5px; flex: none; }
.kc-ex3__card > span, .kc-tcard > span { display: block; font-size: 14px; line-height: 1.55; }
.kc-ex3__card:hover, .kc-tcard:hover { border-color: rgba(37, 99, 235, .45); }
.kc-ex3__card.is-on, .kc-tcard.is-on { border-color: rgba(37, 99, 235, .55); box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }
.kc-ex3__card.is-on > b span { background: var(--acc); color: #fff; }
.kc-stagebox { display: grid; justify-items: center; min-width: 0; }
.kc-stage { position: relative; display: flex; align-items: flex-start; gap: 28px; flex: none; width: max-content; }
.kc-stage__left, .kc-stage__right { position: relative; flex: none; }
#kc-run { transition: opacity .45s, transform .45s; }
#kc-run.is-gone { opacity: 0; transform: scale(.96); pointer-events: none; }
#kc-run .tab:not(.active) { pointer-events: none; }
#kc-run .cl-run { cursor: pointer; }
#kc-run .cl-run:disabled { cursor: default; }

/* 실행 중인 프로그램 (Windows 11 작업 관리자 '프로세스' 를 줄인 밝은 창) */
.kc-pr {
	width: 430px; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #d6dbe3; border-radius: 8px;
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); font: 12px/1.4 "Segoe UI", "Malgun Gothic", var(--font); letter-spacing: 0; word-break: normal; text-align: start; color: #1a1a1a;
	-webkit-user-select: none; user-select: none;
}
.kc-pr table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kc-pr th { font-weight: normal; color: #5f5f5f; text-align: start; padding: 4px 10px; border-bottom: 1px solid #e5e5e5; }
.kc-pr th:nth-child(2), .kc-pr td:nth-child(2) { width: 138px; }
.kc-pr th:nth-child(3), .kc-pr td:nth-child(3) { width: 78px; }
.kc-pr td { height: 27px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s, opacity .4s; }
.kc-pr td .ic { display: inline-block; width: 16px; height: 16px; margin-inline-end: 8px; vertical-align: middle; }
.kc-pr__n > span { vertical-align: middle; }
.kc-pr__exe { font-weight: 600; }
.kc-pr__path { color: #8a8f98; margin-inline-start: 6px; font-size: 11px; }
.kc-kind { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 1px 7px; border-radius: 99px; font-size: 11px; background: #eef2f7; color: #475569; }
.kc-kind--sys, .kc-kind--drv, .kc-kind--av { background: #e3f1e8; color: #1d6b3c; }
.kc-kind--bank { background: #fdf0d8; color: #8a5a00; }
.kc-kind--fake { background: #fde4e2; color: #a3261c; }
.kc-kind--mine { background: #ece6fb; color: #5b3cc4; }
.kc-st { font-weight: 600; color: #8a8f98; }
.kc-pr tr.is-now td { background: #eaf3fd; }
.kc-pr tr.is-keep .kc-st { color: #1d6b3c; }
.kc-pr tr.is-closed .kc-st { color: #c2410c; }
.kc-pr tr.is-closed .kc-pr__n, .kc-pr tr.is-closed .kc-pr__k { opacity: .45; }
.kc-pr tr.is-closed .kc-pr__exe { text-decoration: line-through; }
.kc-pr tr.is-hl td { background: #fff4d6; }
.kc-mem { padding: 12px 14px 14px; border-top: 1px solid #e5e5e5; background: #fafafa; }
.kc-mem__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.kc-mem__h > span:first-child { flex: 1; color: #5f5f5f; }
.kc-mem__v { font-size: 15px; }
.kc-mem__t { color: #8a8f98; }
.kc-mem__bar { position: relative; display: flex; height: 10px; border-radius: 5px; background: #e5e7eb; overflow: hidden; }
.kc-mem__bar i { display: block; height: 100%; }
.kc-mem__before { background: #3d84dd; }
.kc-mem__gain { width: 0; background: #2e9d57; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

/* 탐색기 · 작업 관리자 · 메모장 제목 줄 (Windows 11 밝은 창) */
.kc-xcap { display: flex; align-items: center; height: 32px; flex: none; background: #f3f3f3; color: #1a1a1a; }
.kc-xcap__f { width: 16px; height: 16px; margin-inline-start: 12px; flex: none; }
.kc-xcap__t { flex: 1; min-width: 0; padding-inline-start: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* NoClean.txt (메모장) — 실행 중인 프로그램 창 위에 겹쳐 뜬다 */
.kc-nc {
	position: absolute; z-index: 6; inset-inline-end: -18px; top: -34px; width: 230px; overflow: hidden; background: #fff; border: 1px solid #c9ced6; border-radius: 8px;
	box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .45); font: 12px/1.4 "Segoe UI", "Malgun Gothic", var(--font); letter-spacing: 0; color: #1a1a1a;
}
.kc-nc[hidden] { display: none; }
.kc-js .kc-nc:not([hidden]) { animation: kc-pop .45s cubic-bezier(.2,.9,.3,1.2) both; }
.kc-xcap--np { height: 28px; }
.kc-nc__body { margin: 0; padding: 8px 12px 12px; font: 13px/1.6 Consolas, "Cascadia Mono", var(--mono); color: #6b7280; white-space: pre-wrap; text-align: left; }
.kc-nc__body b { color: #1a1a1a; font-weight: 400; background: #fff4d6; }

/* 정리 결과 — 창이 닫힌 자리에 브라우저 결과 페이지 그림 */
.kc-res {
	position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #d6dbe3; border-radius: 10px;
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .45); text-align: start;
}
.kc-res[hidden] { display: none; }
.kc-js .kc-res:not([hidden]) { animation: kc-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.kc-res__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef1f5; border-bottom: 1px solid #e2e6ec; flex: none; }
.kc-res__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5dd; flex: none; }
.kc-res__bar span { flex: 1; margin-inline-start: 8px; padding: 3px 10px; border-radius: 99px; background: #fff; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-res__in { flex: 1; min-height: 0; padding: 18px 22px; overflow: hidden; display: flex; flex-direction: column; }
.kc-res__in h3 { font-size: 20px; margin-bottom: 14px; }
.kc-res__mem { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kc-res__mem div { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.kc-res__mem span { display: block; font-size: 13px; color: var(--muted); }
.kc-res__mem b { font-size: 20px; }
.kc-res__a { color: #1d6b3c !important; }
.kc-res__h { font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.kc-res__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font: 13px/1.6 Consolas, "Cascadia Mono", var(--mono); color: var(--muted); }
.kc-res__again { align-self: flex-start; margin-top: auto; }

/* ---------- 정리 도구: 카드 3 + 창 (탭이 움직인다) ---------- */
.kc-tools { background: linear-gradient(180deg, var(--bg), #fff); }
.kc-toolv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; }
.kc-toolv__side { display: grid; gap: 10px; }
.kc-toolv__view {
	display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 24px; border-radius: 24px; overflow: hidden;
	background: radial-gradient(80% 70% at 50% 30%, rgba(96, 165, 250, .14), transparent 70%), linear-gradient(160deg, #e8eef8, #f8fafe);
	border: 1px solid var(--line);
}
.kc-try__keys { text-align: center; margin: 18px auto 0; }
#kc-tool { outline: none; }
#kc-tool:focus-visible { box-shadow: 0 0 0 3px rgba(37, 99, 235, .35), 0 30px 60px -30px rgba(15, 23, 42, .45); }
#kc-tool .tab, #kc-tool .list-table tr[data-i], #kc-tool .list-table tr[data-c], #kc-tool .choice, #kc-tool .btn:not(:disabled), #kc-tool .kc-menu__i, #kc-tool .kc-mb__btn { cursor: pointer; }
#kc-tool .cl-run { pointer-events: none; }
#kc-tool .list-table tr.is-gone { opacity: 0; transition: opacity .5s; }

/* ---------- 프로그램 창 틀 (앱 값: 내용 464x417 크기 고정, 제목 줄은 Windows 기본 캡션 — DWM 다크 고정, 최대화 없음) ---------- */
.kc-win {
	position: relative; display: flex; flex-direction: column; flex: none; width: 466px; border: 1px solid #3d3d3d; text-align: start;
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .45), 0 2px 6px rgba(15, 23, 42, .08);
	letter-spacing: 0; word-break: normal; overflow-wrap: normal; -webkit-user-select: none; user-select: none; line-height: normal;
}
.kc-win img, .kc-win svg { display: inline-block; max-width: none; }
.kc-win b, .kc-win strong { color: inherit; }
.kc-win .kc-app { height: 417px; flex: none; font-family: "Segoe UI", "Malgun Gothic", var(--font); }
.kc-win .list-table th.ar-name, .kc-win .list-table th.cu-name, .kc-win .list-table th.in-name { width: auto; }
.kc-win .list-table .col-fill { width: 0; padding: 0; }
.kc-win .list-table td.col-fill, .kc-win .list-table th.col-fill { border-left-width: 0; }
.kc-win .list-table td span { vertical-align: middle; }
.kc-win .list-table td > .ic { margin-right: 5px; vertical-align: middle; }
.kc-win .logo { display: block; }
.kc-win .tab { cursor: default; }
.kc-win .cl-title { font-family: Tahoma, "Segoe UI", "Malgun Gothic", var(--font); }
.kc-main--static { pointer-events: none; }
.kc-cap { display: flex; align-items: center; height: 31px; flex: none; background: #202020; color: #fff; font: 12px "Segoe UI", "Malgun Gothic", var(--font); }
.kc-cap img { width: 16px; height: 16px; margin-inline-start: 8px; }
.kc-cap__t { flex: 1; min-width: 0; padding-inline-start: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-cap__b { position: relative; width: 46px; height: 31px; flex: none; display: grid; place-items: center; }
.kc-cap__min::before { content: ""; width: 10px; border-top: 1px solid #fff; }
.kc-cap__max::before { content: ""; width: 9px; height: 9px; border: 1px solid #6b6b6b; }
.kc-cap__x::before, .kc-cap__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; border-top: 1px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.kc-cap__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.kc-win.is-dark { border-color: #444; }

/* 목록 체크 칸 — 앱 엔진 모양(13x13 각진 칸, 체크는 글자색, 일부만 체크된 분류는 회색 바탕) */
.kc-win .list-table input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; position: relative; }
.kc-win .list-table input[type=checkbox]:checked::after {
	content: ""; position: absolute; inset: 0; background: var(--text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M2.6 6.6 5.1 9.1 10.4 3.8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M2.6 6.6 5.1 9.1 10.4 3.8' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.kc-win.is-dark .list-table tr.cu-cat.part input[type=checkbox]:checked::after { background: #000; }
/* 전체목록 체크 — 앱 엔진 모양(옅은 테두리 · 둥근 모서리, 체크되면 강조색 면에 흰 체크) */
.kc-win .choice input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; }
.kc-win .choice input[type=checkbox]:checked { background: var(--menu-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.2 7.2 5.8 9.8 10.8 4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Windows 기본 메뉴 (밝은 메뉴): 목록 오른쪽 클릭 ---------- */
.kc-menu {
	position: absolute; z-index: 10; display: none; min-width: 140px; padding: 4px; white-space: nowrap; text-align: start;
	background: #f9f9f9; border: 1px solid #dcdcdc; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
	color: #1a1a1a; font: 12px/1.4 "Segoe UI", "Malgun Gothic", var(--font); letter-spacing: 0;
}
.kc-menu.is-open { display: block; }
.kc-menu__i { display: flex; align-items: center; min-height: 28px; padding: 4px 24px 4px 30px; border-radius: 4px; }
.kc-menu__i:hover { background: #e9e9e9; }
.kc-menu__sep { border: 0; border-top: 1px solid #e0e0e0; margin: 4px 8px; }

/* ---------- Windows 메시지 상자 (밝은 창) — 창 가운데 ---------- */
.kc-mb {
	position: absolute; z-index: 12; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 380px; display: none; flex-direction: column;
	background: #fff; border: 1px solid #b8bec7; box-shadow: 0 16px 40px rgba(0,0,0,.28); color: #1a1a1a;
	font: 12px/1.45 "Segoe UI", "Malgun Gothic", var(--font); letter-spacing: 0; text-align: start;
}
.kc-mb.is-open { display: flex; }
.kc-mb__cap { display: flex; align-items: center; justify-content: space-between; height: 30px; padding-inline-start: 10px; }
.kc-mb__x { position: relative; width: 46px; height: 30px; }
.kc-mb__x::before, .kc-mb__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; border-top: 1px solid #1a1a1a; transform: translate(-50%, -50%) rotate(45deg); }
.kc-mb__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.kc-mb__body { display: flex; gap: 12px; padding: 14px 20px 22px; }
.kc-mb__ic { width: 32px; height: 32px; flex: none; }
.kc-mb__txt p { margin: 0; }
.kc-mb__txt p + p { margin-top: 12px; }
.kc-mb__item { overflow-wrap: anywhere; text-align: left; }
.kc-mb__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; background: #f0f0f0; }
.kc-mb__btn { min-width: 74px; height: 24px; padding: 0 10px; font: inherit; color: #1a1a1a; background: #fdfdfd; border: 1px solid #d0d0d0; border-radius: 4px; }
.kc-mb__btn:hover { background: #e5f1fb; border-color: #3d84dd; }
.kc-mb__btn.is-def { border-color: #3d84dd; box-shadow: inset 0 0 0 1px #3d84dd; }
.kc-win.is-modal .kc-app { pointer-events: none; }

/* 기능 카드 아이콘 — 단색 선 그림 */
.kc-card__ic::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.kc-card__ic--one { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='3'/%3E%3Cpath d='M10 10l4 2-4 2z'/%3E%3C/svg%3E"); }
.kc-card__ic--keep { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 7v6c0 4.5 3.4 7.5 8 8 4.6-.5 8-3.5 8-8V7z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.kc-card__ic--fake { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4M8.5 8.5l5 5M13.5 8.5l-5 5'/%3E%3C/svg%3E"); }
.kc-card__ic--mem { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='10' rx='1.5'/%3E%3Cpath d='M7 7v10M11 7v10M15 7v10M5 20v-3M19 20v-3M9 20v-3M14 20v-3'/%3E%3C/svg%3E"); }
.kc-card__ic--except { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 14l2.5 2.5L16 11'/%3E%3C/svg%3E"); }
.kc-card__ic--result { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M7 14h4M7 17h7M15 13v4'/%3E%3C/svg%3E"); }

@media (max-width: 1020px) {
	.kc-toolv { grid-template-columns: 1fr; gap: 20px; }
	.kc-toolv__side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kc-stage { flex-direction: column; align-items: center; }
	.kc-pr { width: 466px; }
}
@media (max-width: 860px) {
	.kc-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.kc-hero__visual { padding-inline: 8px; }
	.kc-chip--a { inset-inline-start: 0; top: 2%; }
	.kc-chip--b { inset-inline-end: 0; }
	.kc-ex3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
	.kc-toolv__side { gap: 6px; }
	.kc-tcard { padding: 10px; text-align: center; border-radius: 10px; }
	.kc-tcard > b { justify-content: center; font-size: 14px; margin: 0; }
	.kc-tcard > span { display: none; }
	.kc-toolv__view { padding: 28px 12px; }
	.kc-nc { inset-inline-end: 8px; }
}
.kc-grid--3 > * { min-width: 0; }
@media (hover: none) { .kc-try__keys { display: none; } }
