/* ==========================================================================
   에디트원 랜딩 — index.php 전용. 모든 클래스는 eo- 접두어 (밝은 회청 바탕, 앱 강조색 파랑 #3b82f6)
   앱 창 재현은 앱 0.9.2 app/ui 의 html · css 값(아래 고유 부분)
   ========================================================================== */

:root {
	--bg: #f6f8fb;
	--bg-2: #eaeff6;
	--surface: #fff;
	--line: rgba(20, 35, 60, .08);
	--line-2: rgba(20, 35, 60, .15);
	--text: #111827;
	--muted: #4b5563;
	--faint: #8a94a6;
	--acc: #3b82f6;
	--acc-2: #93c5fd;
	--acc-deep: #1d4ed8;
	--acc-dim: rgba(59, 130, 246, .12);
	--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.eo {
	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; }

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

/* ---------- 버튼 · 배지 ---------- */
.eo-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, #4f8ff7, #2563eb); 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,.5);
	transition: transform .2s, box-shadow .2s;
}
.eo-btn svg { width: 20px; height: 20px; }
.eo-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.eo-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(20,35,60,.05); }
.eo-btn--ghost:hover { background: var(--bg-2); box-shadow: 0 1px 2px rgba(20,35,60,.05); }
.eo-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.eo-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; }
.eo-badge--off { background: var(--bg-2); color: var(--muted); }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ---------- 프로그램 미리보기: 탭 + 창 ---------- */
.eo-appsec { background: linear-gradient(180deg, #fff, var(--bg)); }
.eo-appv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.eo-appv__side { position: sticky; top: calc(var(--top) + 24px); }
.eo-appv__tabs { display: grid; gap: 10px; }
.eo-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; }
.eo-appv__tabs [role="tab"] > b { display: block; font-size: 16px; margin-bottom: 2px; }
.eo-appv__tabs [role="tab"] span { font-size: 14px; line-height: 1.55; display: block; }
.eo-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); }
.eo-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(59, 130, 246, .12), transparent 70%), linear-gradient(160deg, #e6edf8, #fbfcfe);
	border: 1px solid var(--line);
}
.eo-appv__pane { width: 100%; min-width: 0; display: grid; justify-items: center; }
.eo-appv__pane[hidden] { display: none; }

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

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

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





/* ==========================================================================
   에디트원 고유 — 앱 창 재현 (앱 0.9.2 app/ui main.css · settings.css · sessions.css 값,
   편집 창 색은 app/src/editor.rs · syntax_style.rs 의 라이트 · 다크 값)
   ========================================================================== */

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

/* ---------- 앱 창 공통: 글자 Segoe UI 12px, 창 테두리 · 둥근 모서리(Windows 11) ---------- */
.eo-win {
	--bg: #ffffff; --surface: #f5f5f7; --border: #e0e0e0; --text: #1a1a1a; --text-muted: #888888; --btn-bg: #ffffff;
	--accent: #3b82f6; --hover: #e8e8ec; --nav-on-bg: #ddeefc; --nav-on-border: #a8cce6; --tab-active: #ffffff;
	--warn-bg: #fdf3e0; --warn-text: #8a5a12;
	--ed-bg: #ffffff; --ed-fg: #1a1a1a; --ln-fg: #999999; --caret-line: #f3f6fb; --add: #d8f5de;
	--k: #0000ff; --s: #a31515; --c: #008000; --n: #098658; --v: #001080; --t: #267f99; --f: #795e26;
	--cap-bg: #ffffff; --cap-fg: #1a1a1a;
	position: relative; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
	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;
	border: 1px solid #8f8f8f; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 35, 60, .5);
}
.eo-win.is-dark {
	--bg: #1e1e1e; --surface: #252526; --border: #3a3a3a; --text: #e0e0e0; --text-muted: #999999; --btn-bg: #333333;
	--hover: #2f2f33; --nav-on-border: #35608f; --tab-active: #1e1e1e; --warn-bg: #3a2f1a; --warn-text: #e6c88a;
	--ed-bg: #1e1e1e; --ed-fg: #e0e0e0; --ln-fg: #858585; --caret-line: #2a2a2a; --add: #1f3d28;
	--k: #569cd6; --s: #ce9178; --c: #6a9955; --n: #b5cea8; --v: #9cdcfe; --t: #4ec9b0; --f: #d7ba7d;
	--cap-bg: #202020; --cap-fg: #ffffff;
	border-color: #555;
}
.eo-win.is-dark img { filter: brightness(1.6); }
.eo-win.is-dark .eo-exi, .eo-win.is-dark .eo-cap__ic { filter: none; }

/* 제목 줄 32px — 아이콘 · 메뉴 띠(캡션 안 메뉴, GUI-CAPTION) · 제목 · 단추. 아래 기본 선(body border-top) */
.eo-cap { height: 32px; flex: none; display: flex; align-items: center; background: var(--cap-bg); color: var(--cap-fg); border-bottom: 1px solid var(--border); }
.eo-cap__ic { width: 16px; height: 16px; margin-inline: 12px 8px; flex: none; }
.eo-menu { display: flex; flex: none; }
.eo-menu > span { padding: 0 8px; line-height: 32px; white-space: nowrap; }
.eo-menu u { text-decoration: underline; text-underline-offset: 2px; }
.eo-cap__t { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.eo-cap__t--l { text-align: start; padding-inline-start: 0; }
.eo-capb { display: flex; flex: none; height: 32px; }
.eo-capb i { width: 46px; height: 32px; display: grid; place-items: center; }
.eo-capb svg { width: 10px; height: 10px; }
[dir="rtl"] .eo-capb { order: -1; }   /* 오른쪽에서 왼쪽 글이면 창 단추는 왼쪽 */
[dir="rtl"] .eo-cap__ic { order: 0; }

/* 메인 창 748x632 (README 그림과 같은 크기) */
.eo-main { width: 748px; height: 540px; }
.eo-mid { flex: 1; min-height: 0; display: flex; }
.eo-panes { flex: 1; min-width: 0; display: flex; }
.eo-split { flex: 0 0 1px; background: var(--border); }

/* 왼쪽 칸 (#side) — 너비 198 (README 그림), 나무 · 파일 목록은 편집 창 바탕 */
.eo-side { width: 198px; flex: none; display: flex; flex-direction: column; background: var(--surface); border-inline-end: 1px solid var(--border); }
.eo-side__head { height: 30px; flex: none; display: flex; align-items: center; gap: 4px; padding-inline: 4px 6px; border-bottom: 1px solid var(--border); }
.eo-combo { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; padding-inline: 6px 4px; border: 1px solid var(--border); border-radius: 3px; background: var(--btn-bg); }
.eo-combo > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-combo img { width: 12px; height: 12px; flex: none; }
.eo-sbtn { width: 24px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 3px; }
.eo-sbtn img { width: 14px; height: 14px; }
.eo-tree, .eo-files { padding: 4px 0; background: var(--ed-bg); overflow: hidden; }
.eo-tree { height: 228px; flex: none; border-bottom: 1px solid var(--border); }
.eo-files { flex: 1; min-height: 0; }
.eo-ex { display: flex; align-items: center; height: 22px; padding-inline-end: 6px; white-space: nowrap; }
.eo-ex.is-sel { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
[dir="rtl"] .eo-ex.is-sel { box-shadow: inset -2px 0 0 var(--accent); }
.eo-tw { width: 14px; height: 22px; flex: none; display: grid; place-items: center; }
.eo-tw img { width: 10px; height: 10px; }
[dir="rtl"] .eo-tw img[src*="chev-right"] { transform: scaleX(-1); }
.eo-exi { width: 16px; height: 16px; flex: none; margin-inline-end: 5px; }
.eo-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eo-side__foot { flex: none; display: flex; padding: 4px; border-top: 1px solid var(--border); }

/* 칸 · 탭 줄 */
.eo-pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.eo-tabs { height: 30px; flex: none; display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.eo-tab { display: flex; align-items: center; min-width: 70px; max-width: 220px; padding-inline: 12px 4px; border-inline-end: 1px solid var(--border); white-space: nowrap; }
.eo-tab.is-on { background: var(--tab-active); box-shadow: inset 0 2px 0 var(--accent); }
.eo-pane.is-dim .eo-tab.is-on { box-shadow: none; }
.eo-tab__n { overflow: hidden; text-overflow: ellipsis; }
.eo-tab.is-dirty .eo-tab__n::after { content: " ●"; color: var(--accent); }
.eo-tab i { width: 18px; height: 18px; margin-inline-start: 4px; line-height: 18px; text-align: center; color: var(--text-muted); font-style: normal; }
.eo-tab svg { width: 14px; height: 14px; margin-inline-end: 5px; flex: none; }
.eo-aiopen { align-self: center; width: 24px; height: 22px; display: grid; place-items: center; margin-inline: 2px 6px; color: var(--text); }
.eo-aiopen svg { width: 15px; height: 15px; }

/* 알림 줄 (#notice) */
.eo-notice { height: 28px; flex: none; display: flex; align-items: center; padding-inline: 12px 8px; background: var(--warn-bg); color: var(--warn-text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.eo-notice__t { margin-inline-end: 10px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eo-nbtn { flex: none; margin-inline-end: 6px; padding: 1px 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--btn-bg); color: var(--text); }
.eo-nclose { flex: none; width: 20px; text-align: center; color: var(--text-muted); }

/* 편집 창 (Scintilla) — Consolas 10pt(13px), 줄 높이 17px, 줄 번호 칸 · 접기 칸 */
.eo-ed { flex: 1; min-height: 0; display: flex; background: var(--ed-bg); color: var(--ed-fg); font: 13px/17px Consolas, "Cascadia Mono", Menlo, "Malgun Gothic", "Apple SD Gothic Neo", monospace, "Pretendard Variable"; overflow: hidden; padding-top: 2px; }
.eo-gut { flex: none; width: 52px; padding-inline-end: 4px; text-align: right; color: var(--ln-fg); }
.eo-gut span, .eo-ln { display: block; height: 17px; white-space: pre; }
.eo-gut span.is-cur { color: var(--ed-fg); }
.eo-code { flex: 1; min-width: 0; padding-inline-start: 10px; }
.eo-ln.is-cur { background: var(--caret-line); }
.eo-ln.is-add { background: var(--add); }
.eo-ln .k { color: var(--k); } .eo-ln .s { color: var(--s); } .eo-ln .c { color: var(--c); } .eo-ln .n { color: var(--n); }
.eo-ln .v { color: var(--v); } .eo-ln .t { color: var(--t); } .eo-ln .f { color: var(--f); }
.eo-caret { display: inline-block; width: 1px; height: 15px; vertical-align: -3px; background: var(--ed-fg); animation: eo-caret 1s steps(1) infinite; }
@keyframes eo-caret { 50% { opacity: 0; } }

/* 상태 표시줄 22px */
.eo-status { height: 22px; flex: none; display: flex; line-height: 22px; padding-inline: 10px 4px; background: var(--surface); border-top: 1px solid var(--border); white-space: nowrap; }
.eo-status > span { padding: 0 8px; }
.eo-status > .eo-st__path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0 8px 0 0; text-align: start; }
[dir="rtl"] .eo-status > .eo-st__path { text-align: right; }

/* AI 대화 탭 (#chat-tpl) */
.eo-main--ai .eo-pane:first-child { flex: 1.15 1 0; }
.eo-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.eo-ai-head { height: 30px; flex: none; display: flex; align-items: center; padding-inline: 10px 6px; border-bottom: 1px solid var(--border); }
.eo-ai-t { padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-ai-log { flex: 1; min-height: 0; padding: 6px 12px 10px; background: var(--bg); line-height: 1.5; overflow: hidden; }
.eo-ai-user { display: flex; justify-content: flex-end; margin: 8px 0; }
.eo-ai-user span { background: var(--hover); border-radius: 12px; padding: 6px 11px; max-width: 85%; }
.eo-ai-run { display: flex; align-items: center; gap: 3px; margin: 6px 0; color: var(--text-muted); font-size: 11px; }
.eo-ai-run img { width: 12px; height: 12px; }
[dir="rtl"] .eo-ai-run img { transform: scaleX(-1); }
.eo-ai-msg { margin: 8px 0; overflow-wrap: anywhere; }
.eo-ai-msg code { background: var(--surface); padding: 1px 4px; border-radius: 3px; font: 11px Consolas, Menlo, "Malgun Gothic", monospace; color: inherit; }
.eo-ai-ch { margin: 6px 0; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; overflow: hidden; }
.eo-ai-ch__h, .eo-ai-ch__f { display: flex; align-items: center; padding: 4px 8px; white-space: nowrap; }
.eo-ai-ch__h { background: var(--surface); color: var(--text-muted); }
.eo-ai-ch__h .t { color: var(--text); }
.eo-ai-ch__f { border-top: 1px solid var(--border); padding-block: 3px; }
.eo-ai-ch .add { margin-inline-start: 6px; color: #3fa34d; }
.eo-ai-ch .del { margin-inline-start: 4px; color: #e5534b; }
.eo-ai-ch .rv { margin-inline-start: 8px; color: var(--text); }
.eo-ai-compose { flex: none; border-top: 1px solid var(--border); padding: 6px 8px; background: var(--surface); }
.eo-ai-input { height: 64px; border: 1px solid var(--accent); border-radius: 3px; background: var(--btn-bg); }
.eo-ai-bar { display: flex; align-items: center; height: 26px; margin-top: 4px; }
.eo-ai-send { padding: 2px 12px; border: 1px solid var(--border); border-radius: 3px; background: var(--btn-bg); white-space: nowrap; }

/* 대화 상자 공통 단추 · 입력 칸 (sessions.css · settings.css) */
.eo-b { min-width: 80px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--border); border-radius: 3px; background: var(--btn-bg); white-space: nowrap; box-sizing: border-box; }
.eo-b--pri { border-color: var(--accent); }
.eo-b--sq { min-width: 0; width: 28px; height: 24px; padding: 0; }
.eo-b--auto { min-width: 0; height: 24px; }
.eo-inp, .eo-sel { height: 24px; display: flex; align-items: center; padding: 0 6px; border: 1px solid var(--border); border-radius: 3px; background: var(--btn-bg); white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.eo-sel { gap: 4px; min-width: 70px; }
.eo-sel > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eo-sel img { width: 10px; height: 10px; flex: none; }
.eo-sel--w { width: 170px; }
.eo-port { width: 80px; flex: none; }
.eo-chk { width: 14px; height: 14px; flex: none; border-radius: 3px; background: var(--accent); display: grid; place-items: center; }
.eo-chk::after { content: ""; width: 3px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }

/* 서버 목록 680x510 (sessions_ui.rs) */
.eo-dlg--sm { width: 682px; }
.eo-sm { height: 434px; display: flex; }
.eo-sm__side { width: 200px; flex: none; display: flex; flex-direction: column; border-inline-end: 1px solid var(--border); }
.eo-sm__grp { display: flex; gap: 4px; padding: 8px 8px 0; }
.eo-sm__list { flex: 1; min-height: 0; padding: 8px; }
.eo-sm__item { display: flex; flex-direction: column; padding: 5px 8px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 5px; white-space: nowrap; overflow: hidden; }
.eo-sm__item b { font-weight: 600; }
.eo-sm__item span { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; text-align: start; }
.eo-sm__item.is-on { background: var(--nav-on-bg); border-color: var(--nav-on-border); }
.eo-sm__btns { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--border); }
.eo-sm__btns .eo-b { flex: 1; min-width: 0; }
.eo-sm__form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.eo-sm__row { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.eo-sm__l { width: 150px; flex: none; }
.eo-sm__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); }

/* 환경설정 700x580 (settings_ui.rs) */
.eo-dlg--set { width: 702px; }
.eo-set { height: 548px; display: flex; }
.eo-set__side { width: 120px; flex: none; display: flex; flex-direction: column; border-inline-end: 1px solid var(--border); }
.eo-set__cats { display: flex; flex-direction: column; gap: 12px; padding-block: 8px; padding-inline: 8px 7px; }
.eo-set__cat { height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; }
.eo-set__cat.is-on { background: var(--nav-on-bg); border-color: var(--nav-on-border); }
.eo-set__reset { margin: 0 8px 12px; min-width: 0; }
.eo-set__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eo-set__head { height: 56px; flex: none; padding: 18px 24px 0; border-bottom: 1px solid var(--border); font-size: 19px; font-weight: 700; line-height: 25px; box-sizing: border-box; }
.eo-set__pane { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.eo-set__row { height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eo-set__item { display: flex; flex-direction: column; gap: 2px; }
.eo-set__hint { color: var(--text-muted); line-height: 1.5; }

/* ---------- 첫 화면: 글은 가운데, 그림은 아래에 넓게 ---------- */
.eo-hero { text-align: center; padding-bottom: 72px; }
.eo-hero__copy { max-width: 860px; margin: 0 auto; }
.eo-tags, .eo-cta { justify-content: center; }
.eo-hero__lead { margin-inline: auto; }
.eo-hero__visual { margin: 48px auto 0; padding: 0; }

/* ---------- 원격 · AI ---------- */
.eo-tint { background: linear-gradient(180deg, #fff, var(--bg)); }
.eo-split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 748px); gap: 40px 48px; align-items: center; }
.eo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: st; }
.eo-steps li { position: relative; padding-inline-start: 46px; }
.eo-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; }
.eo-steps h3 { font-size: 17px; margin: 2px 0 4px; }
.eo-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.eo-steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.eo-points { margin-top: 56px; }
.eo-card--flat { padding: 22px; }
.eo-card--flat h3 { margin-top: 0; font-size: 17px; }
.eo-aifig { margin: 0; }
.eo-out { text-align: center; color: var(--muted); font-size: 15px; margin: 36px auto 0; max-width: 720px; }
figure { margin: 0; }

/* ---------- 프로그램 화면 ---------- */
.eo-appv { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.eo-appv__view { min-height: 660px; padding: 32px 20px; }
.eo-appv__pane { grid-template-columns: minmax(0, 1fr); }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
	.eo-split2 { grid-template-columns: minmax(0, 1fr); }
	.eo-steps:not(.eo-steps--row) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 1020px) {
	.eo-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eo-appv { grid-template-columns: minmax(0, 1fr); }
	.eo-appv__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.eo-steps:not(.eo-steps--row), .eo-steps--row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.eo-appv__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eo-hero__visual { margin-top: 32px; }
}
@media (max-width: 520px) {
	.eo-grid--4 { grid-template-columns: 1fr; }
}
.eo-hero__title .eo-line { text-wrap: balance; }
:root:lang(ja) .eo-hero__title { word-break: auto-phrase; }

/* ---------- 휴대폰: 창을 좁은 모양으로 바꾼다 (1배 창을 zoom 으로 줄이면 0.4배라 글이 안 보인다) ---------- */
@media (max-width: 600px) {
	.eo-appv__view { padding: 16px 4px; min-height: 0; }
	.eo-main { width: 440px; height: 440px; }
	.eo-notice { height: auto; flex-wrap: wrap; gap: 4px; padding-block: 4px; }   /* 알림 글이 잘리지 않게 단추는 다음 줄로 */
	.eo-notice__t { white-space: normal; }
	.eo-notice:has(.eo-nbtn) .eo-notice__t { flex-basis: 100%; }
	.eo-main .eo-cap__t { display: none; }
	.eo-menu { flex: 1; min-width: 0; flex-wrap: wrap; height: 32px; overflow: hidden; }   /* 넘치는 메뉴 이름은 통째로 빠진다 */
	.eo-gut { width: 36px; }
	.eo-main .eo-side { display: none; }
	.eo-main--remote .eo-side { display: flex; width: 150px; }
	.eo-main--remote .eo-tree { height: 200px; }
	/* AI: 대화 칸을 아래로 (앱의 위아래로 나누기) */
	.eo-main--ai { height: 720px; }
	.eo-main--ai .eo-panes { flex-direction: column; }
	.eo-main--ai .eo-pane { min-height: 0; }
	.eo-main--ai .eo-pane:first-child { flex: 0 0 300px; }
	/* 서버 목록: 목록을 위, 입력 칸을 아래 */
	.eo-dlg--sm { width: 440px; }
	.eo-sm { height: auto; flex-direction: column; }
	.eo-sm__side { width: auto; border-inline-end: 0; border-bottom: 1px solid var(--border); }
	.eo-sm__form { padding: 12px 14px; }
	.eo-sm__l { width: 120px; line-height: 1.3; }
	/* 환경설정: 분류를 위에 한 줄로 */
	.eo-dlg--set { width: 440px; }
	.eo-set { height: auto; flex-direction: column; }
	.eo-set__side { width: auto; border-inline-end: 0; border-bottom: 1px solid var(--border); }
	.eo-set__side > .grow, .eo-set__reset { display: none; }
	.eo-set__cats { flex-direction: row; gap: 4px; padding: 6px; overflow: hidden; }
	.eo-set__cat { padding: 0 10px; white-space: nowrap; }
	.eo-set__head { height: 46px; padding: 12px 16px 0; }
	.eo-set__pane { padding: 14px 16px; }
	.eo-sel--w { width: 150px; }
}
