/* ==========================================================================
   네모 랜딩 — index.php 전용. 모든 클래스는 nm- 접두어 (밝은 크림 바탕, 쪽지 노랑 · 강조 호박색)
   앱 창 재현은 앱 1.0.0 실행 파일의 list · note · prefs html · css 값(아래 고유 부분)
   ========================================================================== */

:root {
	--bg: #fbf9f3;
	--bg-2: #f3eedf;
	--surface: #fff;
	--line: rgba(50, 40, 15, .08);
	--line-2: rgba(50, 40, 15, .15);
	--text: #1f1a10;
	--muted: #5c5444;
	--faint: #978d78;
	--acc: #c98a00;
	--acc-2: #f5c84a;
	--acc-deep: #8a5c00;
	--acc-dim: rgba(222, 160, 0, .14);
	--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.nm {
	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: #8a5c00; }
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; }

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

/* ---------- 버튼 · 배지 ---------- */
.nm-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, #ffd85c, #f2b705); color: #2a1f00; font-family: inherit; cursor: pointer;
	font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
	box-shadow: 0 10px 26px -12px rgba(196, 140, 0, .8), inset 0 1px 0 rgba(255,255,255,.5);
	transition: transform .2s, box-shadow .2s;
}
.nm-btn svg { width: 20px; height: 20px; }
.nm-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(196, 140, 0, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.nm-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(50,40,15,.05); }
.nm-btn--ghost:hover { background: var(--bg-2); box-shadow: 0 1px 2px rgba(50,40,15,.05); }
.nm-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.nm-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; }
.nm-badge--off { background: var(--bg-2); color: var(--muted); }

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

/* ---------- HERO ---------- */
.nm-hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }
.nm-hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
	background:
		radial-gradient(44% 46% at 74% 42%, rgba(245, 200, 74, .16), transparent 70%),
		radial-gradient(30% 30% at 12% 80%, rgba(120, 190, 140, .08), transparent 70%);
}
.nm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.nm-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nm-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); }
.nm-hero__title { font-size: clamp(34px, 4.3vw, 52px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.nm-hero__title--long { font-size: clamp(30px, 3.8vw, 46px); }
.nm-hero__title em { font-style: normal; color: var(--acc); }
.nm-line { display: block; }
.nm-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.nm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.nm-hero__meta { font-size: 14px; color: var(--faint); margin: 0; }

.nm-hero__visual { position: relative; padding: 24px 0 40px; }
.nm-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(50,40,15,.35); font-size: 14px; color: var(--muted); white-space: nowrap;
}
.nm-chip img { width: 20px; height: 20px; flex: none; }

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

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

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

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

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

/* ---------- 아코디언 ---------- */
.nm-acc { display: grid; gap: 10px; }
.nm-acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s; }
.nm-acc details[open] { border-color: var(--line-2); }
.nm-acc summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 52px; position: relative; font-weight: 700; font-size: 16px; }
.nm-acc summary::-webkit-details-marker { display: none; }
.nm-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; }
.nm-acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.nm-acc details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- DOWNLOAD ---------- */
.nm-down { background: radial-gradient(60% 60% at 50% 0%, rgba(245, 200, 74, .1), transparent 70%), var(--bg); }
.nm-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.nm-dl__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.nm-dl__card h3 { font-size: 22px; }
.nm-dl__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.nm-dl__card ul li { padding-inline-start: 20px; position: relative; }
.nm-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); }
.nm-dl__card--main { border-color: rgba(196, 140, 0, .4); background: linear-gradient(180deg, #fff6d8, var(--surface) 60%); box-shadow: 0 24px 50px -36px rgba(196, 140, 0, .6); }
.nm-dl__card--main h3 { display: flex; align-items: center; gap: 10px; }
.nm-dl__card .nm-btn { align-self: stretch; white-space: normal; text-align: center; padding-block: 10px; }
.nm-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; }
.nm-req b { margin-inline-end: 4px; }
.nm-hist { max-width: 820px; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--surface); }
.nm-hist summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.nm-hist__item { padding: 12px 0; border-top: 1px solid var(--line); }
.nm-hist__item p { margin: 0 0 6px; }
.nm-hist__item time { color: var(--faint); font-size: 14px; margin-inline-start: 6px; }
.nm-hist__item ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.nm-hist > .nm-small { border-top: 1px solid var(--line); padding: 14px 0 18px; margin: 0; }

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

/* ---------- 언어 선택 ---------- */
.nm-lang { position: relative; margin-inline-start: 4px; }
.nm-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);
}
.nm-lang summary::-webkit-details-marker { display: none; }
.nm-lang summary:hover, .nm-lang[open] summary { color: var(--text); background: #fff; }
.nm-lang summary svg { width: 17px; height: 17px; }
.nm-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(50,40,15,.35);
}
.nm-lang a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nm-lang a:hover { background: var(--bg-2); color: var(--text); }
.nm-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.nm, :root:lang(zh-Hans) body.nm, :root:lang(th) body.nm { word-break: normal; line-break: strict; }
:root:lang(ar) .nm-hero__title, :root:lang(ar) .nm-head h2, :root:lang(th) .nm-hero__title { letter-spacing: 0; line-height: 1.4; }
:root:lang(ar) body.nm { letter-spacing: 0; }

/* ---------- kilho.net 첫 화면 링크: 다운로드 아래 (LANDING-PAGE.md 10-1) ---------- */
.nm-more img { width: 16px; height: 16px; flex: none; }
.nm-more { margin: 32px 0 0; text-align: center; }
.nm-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; }
.nm-more a:hover { transform: translateY(-2px); }
.nm-more a::after { content: "→"; color: var(--muted); }
[dir="rtl"] .nm-more a::after { content: "←"; }

/* ---------- 첫 화면 칩 ---------- */
.nm-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; }
.nm-head > p { color: var(--muted); margin: 14px auto 0; max-width: 680px; }

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

/* ---------- 프로그램 미리보기: 탭 + 창 ---------- */
.nm-appsec { background: linear-gradient(180deg, #fff, var(--bg)); }
.nm-appv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.nm-appv__side { position: sticky; top: calc(var(--top) + 24px); }
.nm-appv__tabs { display: grid; gap: 10px; }
.nm-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; }
.nm-appv__tabs [role="tab"] > b { display: block; font-size: 16px; margin-bottom: 2px; }
.nm-appv__tabs [role="tab"] span { font-size: 14px; line-height: 1.55; display: block; }
.nm-appv__tabs [role="tab"][aria-selected="true"] { border-color: rgba(196, 140, 0, .45); box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }
.nm-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(245, 200, 74, .14), transparent 70%), linear-gradient(160deg, #f7efd6, #fffcf3);
	border: 1px solid var(--line);
}
.nm-appv__pane { width: 100%; min-width: 0; display: grid; justify-items: center; }
.nm-appv__pane[hidden] { display: none; }

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

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

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




/* ==========================================================================
   네모 고유 — 앱 창 재현 (앱 1.0.0 list · note · prefs 의 html · css 값, 색은 README 그림에서 잰 값)
   ========================================================================== */

.nm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nm-fit { width: 100%; max-width: 100%; display: flex; justify-content: center; }   /* 안쪽 고정 크기 그림은 JS zoom 으로 맞춘다 */
.nm-fit > * { flex: none; }
.nm-card__ic svg { width: 22px; height: 22px; }
.nm-hero__title em { color: #b77d00; }

/* ---------- 앱 창 공통: 글자 Segoe UI 12px, 창 테두리 · 둥근 모서리(Windows 11) ---------- */
.nm-win, .nm-note, .nm-menu {
	font: 12px/1.35 "Segoe UI", "Malgun Gothic", "Yu Gothic UI", "Microsoft YaHei UI", Tahoma, var(--font); letter-spacing: 0; word-break: normal; overflow-wrap: normal;
	user-select: none; -webkit-user-select: none; text-align: start;
}
.nm-win { position: relative; display: flex; flex-direction: column; background: #fff; color: #1a1a1a; border: 1px solid #8f8f8f; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(50, 40, 15, .5); }
.nm-ico { width: 16px; height: 16px; flex: none; }
/* 제목 줄: 어두운 31px + 강조선 1px (README 그림 값) */
.nm-cap { height: 32px; flex: none; display: flex; align-items: center; background: #202020; color: #fff; border-bottom: 1px solid #3d84dd; }
.nm-cap > img { width: 16px; height: 16px; margin-inline-start: 10px; }
.nm-cap__t { flex: 1; min-width: 0; padding-inline-start: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-cap__b { width: 46px; height: 31px; flex: none; display: grid; place-items: center; color: #fff; }
.nm-cap__b svg { width: 16px; height: 16px; }

/* 목록 창 280x384 (README 그림) — 줄 26px, 줄 바탕 = 메모 색, 선택은 그 위에 비쳐 얹는다 */
.nm-win--list { width: 280px; height: 384px; }
.nm-list { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.nm-list table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.nm-list td { height: 26px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-list tr.is-sel td { background-image: linear-gradient(rgba(0, 120, 215, .18), rgba(0, 120, 215, .18)); }
.nm-list tr.is-new td { animation: nm-flash 2.4s ease-out; }
@keyframes nm-flash { 0%, 30% { box-shadow: inset 0 0 0 2px rgba(0, 120, 215, .55); } 100% { box-shadow: inset 0 0 0 2px transparent; } }
.nm-list::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 4px; height: 52%; border-radius: 2px; background: #afafaf; }   /* 엔진의 얇은 스크롤 막대 */
.nm-list.is-short::after { display: none; }
.nm-status { height: 24px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 0; padding-inline: 10px 8px; border-top: 1px solid #e0e0e0; background: #fff; }
.nm-link { width: 22px; height: 20px; display: grid; place-items: center; border-radius: 4px; color: #8a8a8a; }
.nm-link svg { width: 14px; height: 14px; }
.nm-link.is-on { color: #3b82f6; }
.nm-link.is-busy { opacity: .5; }

/* 메모 색 c1~c6 (기본 · 노랑 · 초록 · 파랑 · 보라 · 분홍) */
.c1 { background-color: #fff; } .c2 { background-color: #fff7a5; } .c3 { background-color: #d4f5c6; }
.c4 { background-color: #c5e3ff; } .c5 { background-color: #e9d9ff; } .c6 { background-color: #ffd9e3; }

/* 쪽지 창 276x328 (Memo.dfm) — 제목줄 38px 는 쪽지 색보다 조금 진하게, 본문은 왼쪽 12 · 위 46 */
.nm-note { position: relative; width: 276px; height: 328px; padding: 1px 1px 0; color: #000; border: 1px solid #b5b5b5; border-radius: 8px; overflow: hidden; box-shadow: 0 26px 50px -28px rgba(50, 40, 15, .5); }
.nm-note.c1 { border-color: #8f8f8f; }
.nm-bar { position: relative; height: 38px; background: rgba(0, 0, 0, .043); }
.nm-bar__t { margin: 0 60px; height: 38px; line-height: 38px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-ic { position: absolute; top: 7px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; color: rgba(0, 0, 0, .5); }
.nm-ic svg { width: 16px; height: 16px; }
.nm-ic--pin { inset-inline-end: 32px; } .nm-ic--x { inset-inline-end: 8px; }
.nm-ic.is-on { color: rgba(0, 0, 0, .78); }
.nm-text { margin-block: 7px 0; margin-inline: 11px 18px; white-space: pre-wrap; line-height: 16px; }
.nm-text i { display: inline-block; width: 1px; height: 15px; margin-inline-start: 1px; vertical-align: -3px; background: #000; animation: nm-caret 1s steps(1) infinite; }
@keyframes nm-caret { 50% { opacity: 0; } }

/* 오른쪽 클릭 메뉴 (Windows 11 팝업 메뉴) + 색상 하위 메뉴 */
.nm-menu { position: absolute; z-index: 3; min-width: 150px; padding: 4px; display: grid; background: #f9f9f9; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; box-shadow: 0 8px 16px rgba(0, 0, 0, .14); color: #1b1b1b; }
.nm-menu > span { position: relative; display: flex; align-items: center; min-height: 28px; padding-block: 0; padding-inline: 32px 28px; border-radius: 4px; white-space: nowrap; }
.nm-menu > span.is-hover { background: rgba(0, 0, 0, .06); }
.nm-menu > span.has-sub::after { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 5px; height: 5px; border: solid #555; border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg); }
[dir="rtl"] .nm-menu > span.has-sub::after { transform: translateY(-50%) rotate(-135deg); }
.nm-menu > span.is-cur::before { content: ""; position: absolute; inset-inline-start: 13px; top: 50%; width: 4px; height: 8px; border: solid #1b1b1b; border-width: 0 1.5px 1.5px 0; transform: translateY(-65%) rotate(45deg); }

/* 데스크톱 장면 (첫 화면 · 쪽지 탭 · 메뉴 탭) */
.nm-desk { position: relative; display: flex; align-items: flex-start; gap: 22px; }
.nm-desk--hero { width: 600px; padding: 14px 10px 26px; }
.nm-desk--hero .nm-note { margin-top: 38px; }

/* 환경설정 620x460 (prefs.css, FileIndex 틀) — 제목 줄은 닫기만 */
.nm-win--prefs { width: 622px; }
.nm-p { height: 460px; display: flex; color: #1a1a1a; line-height: 1.4; }
.nm-p-side { width: 120px; flex: none; border-inline-end: 1px solid #e0e0e0; }
.nm-p-cats { display: flex; flex-direction: column; gap: 12px; padding-block: 8px; padding-inline: 8px 7px; }
.nm-p-cat { height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; }
.nm-p-cat.is-on { background: #ddeefc; border-color: #a8cce6; }
.nm-p-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nm-p-head { height: 56px; flex: none; padding: 18px 24px 0; border-bottom: 1px solid #e0e0e0; font-size: 19px; font-weight: 700; line-height: 25px; }
.nm-p-pane { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.nm-p-row { height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nm-p-chk { width: 16px; height: 16px; flex: none; border-radius: 4px; background: #3b82f6; display: grid; place-items: center; }
.nm-p-chk::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.nm-p-inp { width: 160px; height: 26px; display: flex; align-items: center; padding: 0 6px; border: 1px solid #e0e0e0; border-radius: 4px; background: #fff; white-space: nowrap; overflow: hidden; }
.nm-p-inp.is-sel::after { content: ""; margin-inline-start: auto; width: 5px; height: 5px; border: solid #888; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.nm-p-sync { display: flex; align-items: center; gap: 10px; }
.nm-p-val { color: #888; white-space: nowrap; }
.nm-p-btn { min-width: 96px; padding: 5px 8px; text-align: center; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; white-space: nowrap; }
.nm-p-note { color: #888; line-height: 1.5; }

/* ---------- 첫 화면 ---------- */
.nm-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
.nm-hero__visual { margin: 0; padding: 0; min-width: 0; }

/* ---------- 동기화 ---------- */
.nm-syncsec { background: linear-gradient(180deg, #fff, var(--bg)); }
.nm-sync { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px 56px; align-items: center; }
.nm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: st; }
.nm-steps li { position: relative; padding-inline-start: 46px; }
.nm-steps li::before { counter-increment: st; content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--acc-dim); color: var(--acc-deep); font-weight: 800; font-size: 14px; }
.nm-steps h3 { font-size: 17px; margin: 2px 0 4px; }
.nm-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.nm-flow { margin: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 92px; }
.nm-cloud { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: #3b82f6; box-shadow: 0 0 0 8px rgba(59, 130, 246, .08); }
.nm-cloud svg { width: 30px; height: 30px; }
.nm-flow__lines { position: absolute; top: 32px; left: 0; width: 100%; height: 64px; color: rgba(59, 130, 246, .45); }
.nm-flow__lines path { stroke-dasharray: 4 5; animation: nm-dash 1.2s linear infinite; }
@keyframes nm-dash { to { stroke-dashoffset: -18; } }
.nm-dev { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.nm-dev > b { font-size: 14px; color: var(--muted); font-weight: 600; }
.nm-dev .nm-win--mini { width: 168px; height: auto; border-radius: 6px; }
.nm-dev .nm-cap { height: 24px; } .nm-dev .nm-cap > img { width: 12px; height: 12px; margin-inline-start: 7px; } .nm-dev .nm-cap__t { font-size: 11px; padding-inline-start: 6px; }
.nm-dev .nm-list td { height: 22px; font-size: 11px; }
.nm-dev .nm-status { height: 22px; font-size: 11px; }
.nm-webcard { width: 168px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(50, 40, 15, .5); }
.nm-webcard__bar { height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #eef0f3; }
.nm-webcard__bar i { width: 6px; height: 6px; border-radius: 50%; background: #c9ced6; }
.nm-webcard__bar span { margin-inline-start: 6px; flex: 1; height: 12px; border-radius: 6px; background: #fff; font: 9px/12px var(--font); color: var(--faint); padding: 0 6px; overflow: hidden; white-space: nowrap; }
.nm-webcard .nm-list td { height: 22px; font-size: 11px; font-family: var(--font); }
.nm-tip { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.4; max-width: 168px; }
.nm-tip svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 4px; color: #3b82f6; }
.nm-conflict { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px 56px; align-items: center; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.nm-conflict h3 { font-size: 20px; margin-bottom: 10px; }
.nm-conflict p { color: var(--muted); margin: 0; }
.nm-conflict figure { margin: 0; }
.nm-conflict .nm-win--mini { width: 100%; height: auto; border-radius: 6px; }
.nm-conflict .nm-list td { font-size: 12px; }
.nm-out { text-align: center; color: var(--muted); font-size: 15px; margin: 28px auto 0; max-width: 680px; }

/* ---------- 프로그램 화면 ---------- */
.nm-appv__view { min-height: 600px; }
.nm-appv__pane { grid-template-columns: minmax(0, 1fr); }
.nm-desk--menu { width: 520px; height: 420px; display: block; }
.nm-desk--menu .nm-win--list { position: absolute; left: 0; top: 0; }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
	.nm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nm-hero__grid, .nm-sync, .nm-conflict { grid-template-columns: minmax(0, 1fr); }
	.nm-appv__tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.nm-appv__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nm-conflict { padding: 22px 16px; }
}
@media (max-width: 520px) {
	.nm-grid--4 { grid-template-columns: 1fr; }
	.nm-appv__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nm-hero__title .nm-line { text-wrap: balance; }   /* 긴 언어에서 마지막 낱말 하나만 떨어지지 않게 */
:root:lang(ja) .nm-hero__title { word-break: auto-phrase; }
