/* 크라우니메일 마을 모드 스킨 — 그램 village.css 와 같은 토큰(1절 동일 값) 위에 메일 컴포넌트를 재매핑. 색은 토큰만(hex 는 1절 선언 블록에서만) · 규칙은 html[data-skin=village] 하위.
 * 스펙 /Users/ef/crowny-gram/docs/마을모드-스펙.md · 순서: crowny-design.css → 페이지 인라인 style → skin.css → village.css */

/* 1. 토큰 — gram village.css 에서 값 그대로 복사 (선택자의 #skin-card 미리보기 갈래만 id 에 없어 뺐다) */
html[data-skin="village"] {
  color-scheme: light;
  --v-bg: #faf8f1;
  --v-surface: #fffdf7;
  --v-chip: #eef3ec;
  --v-ink: #0c2a22;
  --v-muted: #3a4843;
  --v-line: #c6d7ca;
  --v-green: #26775f;
  --v-on-green: #ffffff;
  --v-clay: #de9167;
  --v-on-clay: #0c2a22;
  --v-focus: #a85a32;
  --v-amber: #b7791f;
  --v-amber-ink: #7a4f0f;
  --v-amber-soft: #fdf3df;
  --v-blue: #2f6fb3;
  --v-done: #1e7a50;
  --v-idle: #8fd3a8;
  --v-off: #7b8781;
  --v-err: #c0392b;
  --v-hud: rgba(255,253,247,.97);
  --v-hud-line: rgba(12,42,34,.28);
  --v-bubble: #ffffff;
  --v-me: #26775f;
  --v-me-text: #ffffff;
  --v-bot: #eef3ec;
  --v-bot-text: #12301f;
  --v-toast: rgba(10,36,29,.97);
  --v-toast-ink: #ffffff;
  --v-shadow: rgba(12,42,34,.22);
  --v-street: #e9efe4;
  --v-code-bg: #0f2a22;
  --v-code-text: #e8f0ea;
  --v-display: "Jua", "Noto Sans KR", var(--g-font);
  --v-r: 16px;
  --v-r-bubble: 18px;
  --g-bg: var(--v-bg);
  --g-s1: var(--v-surface);
  --g-s2: var(--v-chip);
  --g-text: var(--v-ink);
  --g-text2: var(--v-muted);
  --g-line: var(--v-line);
  --g-gold-soft: var(--v-amber-soft);
  --g-blue-soft: var(--v-chip);
  --g-green-soft: var(--v-chip);
  --g-amber-ink: var(--v-amber-ink);
  --g-amber-soft: var(--v-amber-soft);
  --g-blue: var(--v-blue);
  --g-gold: var(--v-green);
  --g-gold-strong: var(--v-green);
  --g-on-gold: var(--v-on-green);
  --g-me: var(--v-me);
  --g-me-text: var(--v-me-text);
  --g-ai: var(--v-bubble);
  --g-bot: var(--v-bot);
  --g-bot-text: var(--v-bot-text);
  --g-busy: var(--v-blue);
  --g-done: var(--v-done);
  --g-idle: var(--v-idle);
  --g-off: var(--v-off);
  --g-err: var(--v-err);
  --g-code-bg: var(--v-code-bg);
  --g-code-text: var(--v-code-text);
  --g-r: var(--v-r);
}
@media (prefers-color-scheme: dark) {
  html[data-skin="village"]:not([data-theme="라이트"]) {
    color-scheme: dark;
    --v-bg: #0f1412;
    --v-surface: #18211d;
    --v-chip: #22302a;
    --v-ink: #e8f0ea;
    --v-muted: #a7b8af;
    --v-line: #2e3d36;
    --v-green: #5cc29f;
    --v-on-green: #0f1714;
    --v-clay: #e8a27f;
    --v-on-clay: #0f1412;
    --v-focus: #e8a27f;
    --v-amber: #e9b65a;
    --v-amber-ink: #f0c46a;
    --v-amber-soft: #2a2214;
    --v-blue: #7fb0e6;
    --v-done: #4cc884;
    --v-idle: #3f6f57;
    --v-off: #6d7a74;
    --v-err: #ff8a7a;
    --v-hud: rgba(24,33,29,.96);
    --v-hud-line: rgba(232,240,234,.24);
    --v-bubble: #1d2823;
    --v-me: #2f7d63;
    --v-me-text: #ffffff;
    --v-bot: #18211d;
    --v-bot-text: #d6efe0;
    --v-toast: rgba(232,240,234,.96);
    --v-toast-ink: #0c2a22;
    --v-shadow: rgba(0,0,0,.55);
    --v-street: #0b100e;
    --v-code-bg: #07100c;
    --v-code-text: #e8f0ea;
  }
}
/* 2. 틀 — 머리띠(HUD 알약)·구역 탭 */
html[data-skin="village"] :focus-visible { outline: 3px solid var(--v-focus); outline-offset: 2px; }
html[data-skin="village"] .bar { background: var(--v-bg); border-bottom: 0; box-shadow: 0 1px 0 var(--v-line); gap: 6px; }
html[data-skin="village"] .bar h1,
html[data-skin="village"] .bar .bar-title { flex: 0 1 auto; width: fit-content; max-width: 100%; min-width: 0; margin-right: auto; font: 400 17px/1.2 var(--v-display); color: var(--v-ink); background: var(--v-hud); border: 1px solid var(--v-hud-line); border-radius: 999px; padding: 6px 14px; }
html[data-skin="village"] .bar .크라우니-왕관 { background: linear-gradient(135deg, var(--v-green), var(--v-clay)); }
html[data-skin="village"] .icon-btn { background: var(--v-hud); border: 1px solid var(--v-hud-line); color: var(--v-ink); transition: transform .12s; }
html[data-skin="village"] .icon-btn:active { transform: scale(.9); }
html[data-skin="village"] #btn-skin[aria-pressed="true"] { background: var(--v-chip); border-color: var(--v-green); color: var(--v-green); }
html[data-skin="village"] .bar-acts a,
html[data-skin="village"] .bar-acts button { background: var(--v-hud); border: 1px solid var(--v-hud-line); border-radius: 999px; color: var(--v-ink); font-family: var(--v-display); font-weight: 400; box-shadow: 0 3px 0 var(--v-shadow); transition: transform .12s; }
html[data-skin="village"] .bar-acts a:active,
html[data-skin="village"] .bar-acts button:active { transform: translateY(2px); box-shadow: none; }
html[data-skin="village"] .zones { border-bottom: 0; background: var(--v-bg); padding: 6px 10px; gap: 6px; }
html[data-skin="village"] .zone { flex: 1 0 auto; border: 1px solid var(--v-hud-line); border-radius: 999px; background: var(--v-hud); color: var(--v-muted); font: 400 15px var(--v-display); }
html[data-skin="village"] .zone[aria-selected="true"],
html[data-skin="village"] .zone[aria-current="page"] { background: var(--v-green); color: var(--v-on-green); border-color: var(--v-green); box-shadow: 0 3px 0 var(--v-shadow); }

html[data-skin="village"][data-theme="다크"] {
    color-scheme: dark;
    --v-bg: #0f1412;
    --v-surface: #18211d;
    --v-chip: #22302a;
    --v-ink: #e8f0ea;
    --v-muted: #a7b8af;
    --v-line: #2e3d36;
    --v-green: #5cc29f;
    --v-on-green: #0f1714;
    --v-clay: #e8a27f;
    --v-on-clay: #0f1412;
    --v-focus: #e8a27f;
    --v-amber: #e9b65a;
    --v-amber-ink: #f0c46a;
    --v-amber-soft: #2a2214;
    --v-blue: #7fb0e6;
    --v-done: #4cc884;
    --v-idle: #3f6f57;
    --v-off: #6d7a74;
    --v-err: #ff8a7a;
    --v-hud: rgba(24,33,29,.96);
    --v-hud-line: rgba(232,240,234,.24);
    --v-bubble: #1d2823;
    --v-me: #2f7d63;
    --v-me-text: #ffffff;
    --v-bot: #18211d;
    --v-bot-text: #d6efe0;
    --v-toast: rgba(232,240,234,.96);
    --v-toast-ink: #0c2a22;
    --v-shadow: rgba(0,0,0,.55);
    --v-street: #0b100e;
    --v-code-bg: #07100c;
    --v-code-text: #e8f0ea;
}
/* 3. 카드·단추·입력 (로그인) */
html[data-skin="village"] body { font-family: var(--g-font); }
html[data-skin="village"] .카드 { background: var(--v-surface); border: 2px solid var(--v-green); border-radius: var(--v-r-bubble); box-shadow: 0 6px 18px var(--v-shadow); }
html[data-skin="village"] .폼타이틀, html[data-skin="village"] .브랜드워드, html[data-skin="village"] .브랜드태그라인 { font-family: var(--v-display); font-weight: 400; color: var(--v-ink); }
html[data-skin="village"] .골드버튼, html[data-skin="village"] .btn { background: var(--v-green); border: 1px solid var(--v-green); color: var(--v-on-green); border-radius: 14px; font: 400 16px var(--v-display); min-height: 46px; box-shadow: 0 3px 0 var(--v-shadow); transition: transform .12s; }
html[data-skin="village"] .골드버튼:active, html[data-skin="village"] .btn:active { transform: translateY(2px); box-shadow: none; }
html[data-skin="village"] .골드버튼.golden-off { box-shadow: none; }
html[data-skin="village"] .고스트링크, html[data-skin="village"] .btn.ghost { background: var(--v-hud); color: var(--v-ink); border: 1px solid var(--v-hud-line); border-radius: 14px; font: 400 15px var(--v-display); box-shadow: 0 3px 0 var(--v-shadow); }
html[data-skin="village"] input, html[data-skin="village"] textarea { border: 2px solid var(--v-line); border-radius: 14px; background: var(--v-bg); color: var(--v-ink); }
html[data-skin="village"] input:focus, html[data-skin="village"] textarea:focus { outline: 2px solid var(--v-focus); outline-offset: 1px; border-color: var(--v-focus); box-shadow: none; }
html[data-skin="village"] .라벨, html[data-skin="village"] .에어브로우 { color: var(--v-muted); }
html[data-skin="village"] a { color: var(--v-green); }
html[data-skin="village"] .bar-acts a { color: var(--v-ink); }
html[data-skin="village"] .브랜드 { background: var(--v-chip); }
html[data-skin="village"] .브랜드부제, html[data-skin="village"] .브랜드특징, html[data-skin="village"] .브랜드푸터 { color: var(--v-muted); }
html[data-skin="village"] .브랜드특징 li::before, html[data-skin="village"] .다이아몬드 { background: linear-gradient(135deg, var(--v-green), var(--v-clay)); }
html[data-skin="village"] .모노태그 { background: var(--v-hud); border-color: var(--v-hud-line); color: var(--v-muted); }
html[data-skin="village"] .bar .메일-마름모 { background: linear-gradient(135deg, var(--v-green), var(--v-clay)); }

/* 4. 앱 — 사이드바·목록·읽기 창·작성 창·칩·알림 (메일 컴포넌트) */
html[data-skin="village"] h1, html[data-skin="village"] h2, html[data-skin="village"] h3 { font-family: var(--v-display); font-weight: 400; color: var(--v-ink); }
html[data-skin="village"] #topbar { background: var(--v-bg); border-bottom: 1px solid var(--v-line); }
html[data-skin="village"] #sidebar, html[data-skin="village"] #rail { background: var(--v-chip); border-right: 1px solid var(--v-line); }
html[data-skin="village"] #listPanel { background: var(--v-surface); border-right: 1px solid var(--v-line); }
html[data-skin="village"] #content { background: var(--v-bg); }
html[data-skin="village"] #tabbar { background: var(--v-hud); border-top: 1px solid var(--v-hud-line); }
html[data-skin="village"] #searchBox, html[data-skin="village"] .프로필칩, html[data-skin="village"] .설정버튼 { background: var(--v-hud); border: 1px solid var(--v-hud-line); border-radius: 999px; color: var(--v-ink); }
html[data-skin="village"] .칩, html[data-skin="village"] .chip { background: var(--v-hud); border: 1px solid var(--v-hud-line); color: var(--v-ink); font-family: var(--v-display); font-weight: 400; }
html[data-skin="village"] .칩--활성 { background: var(--v-green); border-color: var(--v-green); color: var(--v-on-green); }
html[data-skin="village"] .데모뱃지 { background: var(--v-amber-soft); border-color: var(--v-amber); color: var(--v-amber-ink); }
html[data-skin="village"] .토스트 { background: var(--v-toast); color: var(--v-toast-ink); border: 0; }
html[data-skin="village"] .cName카드 { background: var(--v-chip); border: 2px solid var(--v-green); color: var(--v-ink); border-radius: var(--v-r-bubble); }
html[data-skin="village"] .라이브점 { background: var(--v-done); }
html[data-skin="village"] table th, html[data-skin="village"] th { background: var(--v-chip); color: var(--v-muted); }
html[data-skin="village"] th, html[data-skin="village"] td { border-bottom-color: var(--v-line); }
html[data-skin="village"] .bar-acts a, html[data-skin="village"] .bar-acts button { font-family: var(--v-display); }

@media (prefers-reduced-motion: reduce) {
  html[data-skin="village"] *, html[data-skin="village"] *::before, html[data-skin="village"] *::after { animation: none !important; transition: none !important; }
}

/* ── 현대카드식 꼴 2판 (2026-11-30, 색은 크라우니 에너지크림) ── */
/* 토큰: hex 는 여기서만. 기본 모드·마을 모드 같은 값. 다크 바탕·면·선은 기존 다크 토큰(--g-*) */
:root, html[data-skin="village"] {
  --hc-bg: #fefaf0;
  --hc-surface: #ffffff;
  --hc-fill2: #f6f0e2;
  --hc-ink: #212121;
  --hc-ink-2: #4b4846;
  --hc-line: #e4dccb;
  --hc-fill: #1a1a2e;
  --hc-on-fill: #fefaf0;
  --hc-link: #7a5a1c;
  --hc-focus: #b08a3e;
  --hc-r: 8px;
  --hc-h: 56px;
  --hc-ease: cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="라이트"]), html[data-skin="village"]:not([data-theme="라이트"]) {
    --hc-bg: var(--g-bg); --hc-surface: var(--g-s1); --hc-fill2: var(--g-s2);
    --hc-ink: var(--g-text); --hc-ink-2: color-mix(in srgb, var(--g-text) 82%, var(--g-bg));
    --hc-line: var(--g-line); --hc-fill: #fefaf0; --hc-on-fill: #1a1a2e; --hc-link: #d9b45f; --hc-focus: #d9b45f;
  }
}
:root[data-theme="다크"], html[data-skin="village"][data-theme="다크"] {
  --hc-bg: var(--g-bg); --hc-surface: var(--g-s1); --hc-fill2: var(--g-s2);
  --hc-ink: var(--g-text); --hc-ink-2: color-mix(in srgb, var(--g-text) 82%, var(--g-bg));
  --hc-line: var(--g-line); --hc-fill: #fefaf0; --hc-on-fill: #1a1a2e; --hc-link: #d9b45f; --hc-focus: #d9b45f;
}
/* 마을 모드의 초록·황토 토큰을 크라우니 값으로 (남는 것은 글꼴·마스코트뿐) */
html[data-skin="village"] {
  --v-green: var(--hc-fill); --v-on-green: var(--hc-on-fill); --v-focus: var(--hc-focus);
  --v-me: var(--hc-fill); --v-me-text: var(--hc-on-fill);
  --g-gold: var(--hc-link); --g-gold-strong: var(--hc-link); --g-on-gold: var(--hc-on-fill);
  --v-shadow: transparent; --v-hud: var(--hc-bg); --v-hud-line: var(--hc-line);
}
:root:not([data-skin="village"]) { --g-gold-strong: var(--hc-link); --g-gold: var(--hc-link); --g-me: var(--hc-fill2); --g-me-text: var(--hc-ink); }
/* 명시도 :root:root body 접두 = skin.css · village.css 규칙을 이김 */
:root:root body, :root:root body #content, :root:root body #appRoot { background: var(--hc-bg); color: var(--hc-ink); }
:root:root body :focus-visible { outline: 3px solid var(--hc-focus); outline-offset: 3px; }
:root:root body a { color: var(--hc-link); text-underline-offset: 3px; }
/* 제목 */
:root:root body h1:not(.bar-title), :root:root body .폼타이틀 { font-family: var(--g-font); font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; color: var(--hc-ink); }
:root:root body h2, :root:root body h3 { font-family: var(--g-font); font-weight: 600; color: var(--hc-ink); }
:root:root body .브랜드워드 { font-family: var(--g-font); font-weight: 700; color: var(--hc-ink); letter-spacing: -.03em; }
:root:root body .브랜드태그라인, :root:root body .브랜드부제, :root:root body .에어브로우 { color: var(--hc-ink-2); font-family: var(--g-font); }
@media (min-width: 768px) { :root:root body .로그인면 .폼타이틀 { font-size: 40px; } }
/* 머리띠·탭: 투명 · 알약 금지 · 밑 막대 */
:root:root body .bar { background: var(--hc-bg); border-bottom: 1px solid var(--hc-line); box-shadow: none; gap: 4px; }
:root:root body .bar h1, :root:root body .bar .bar-title { background: transparent; border: 0; border-radius: 0; padding: 6px 0; font: 600 18px/1.2 var(--g-font); color: var(--hc-ink); }
:root:root body .bar-acts a, :root:root body .bar-acts button, :root:root body .zone { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; color: var(--hc-ink); font: 600 15px var(--g-font); transition: border-color .15s var(--hc-ease); }
:root:root body .bar-acts a:hover, :root:root body .bar-acts button:hover, :root:root body .zone:hover { border-bottom-color: var(--hc-ink); }
:root:root body .bar-acts a:active, :root:root body .bar-acts button:active { transform: none; box-shadow: none; }
:root:root body .zones { background: var(--hc-bg); border-bottom: 1px solid var(--hc-line); padding: 0 8px; gap: 4px; }
:root:root body .zone { color: var(--hc-ink-2); }
:root:root body .zone[aria-selected="true"], :root:root body .zone[aria-current="page"] { color: var(--hc-ink); border-bottom-color: var(--hc-ink); background: transparent; box-shadow: none; }
:root:root body .icon-btn { background: transparent; border: 0; box-shadow: none; color: var(--hc-ink); }
:root:root body #btn-skin[aria-pressed="true"] { background: var(--hc-fill2); color: var(--hc-ink); border: 0; }
:root:root body .bar .메일-마름모, :root:root body .다이아몬드, :root:root body .브랜드특징 li::before { background: var(--hc-fill); }
/* 카드: 평평 · 1px 선 · 8px · hover 위로 12px */
:root:root body .카드, :root:root body .card, :root:root body .cName카드 { background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-r); box-shadow: none; color: var(--hc-ink); transition: transform .25s var(--hc-ease); }
@media (hover: hover) { :root:root body .로그인면 .카드:hover, :root:root body .card:hover { transform: translateY(-12px); } }
:root:root body .브랜드 { background: transparent; }
/* 주 단추: 채움 · 8px · 56px · 600 */
:root:root body .골드버튼, :root:root body .btn { min-height: var(--hc-h); padding: 0 24px; background: var(--hc-fill); color: var(--hc-on-fill); border: 1px solid var(--hc-fill); border-radius: var(--hc-r); box-shadow: none; font: 600 16px var(--g-font); transform: none; }
:root:root body .골드버튼:hover, :root:root body .btn:hover { opacity: .88; }
:root:root body .골드버튼:active, :root:root body .btn:active { transform: none; opacity: .76; box-shadow: none; }
:root:root body .로그인면 .골드버튼 { width: 100%; }
/* 보조: 투명 · 1px 선 */
:root:root body .고스트링크, :root:root body .btn.ghost { min-height: var(--hc-h); padding: 0 24px; background: transparent; color: var(--hc-ink); border: 1px solid var(--hc-ink); border-radius: var(--hc-r); box-shadow: none; font: 600 16px var(--g-font); }
:root:root body .고스트링크:hover, :root:root body .btn.ghost:hover { background: var(--hc-fill2); }
/* 입력 */
:root:root body input:not([type=checkbox]):not([type=radio]), :root:root body textarea, :root:root body select { border: 1px solid var(--hc-line); border-radius: var(--hc-r); background: var(--hc-surface); color: var(--hc-ink); box-shadow: none; }
:root:root body .카드 input:not([type=checkbox]):not([type=radio]) { min-height: var(--hc-h); }
:root:root body input:focus, :root:root body textarea:focus { outline: 3px solid var(--hc-focus); outline-offset: 1px; border-color: var(--hc-ink); box-shadow: none; }
:root:root body input::placeholder, :root:root body textarea::placeholder { color: var(--hc-ink-2); opacity: 1; }
:root:root body .라벨 { font-size: 14px; font-weight: 600; color: var(--hc-ink); }
/* 칩·토스트·앱 틀 */
:root:root body .칩, :root:root body .chip { background: transparent; border: 1px solid var(--hc-line); border-radius: var(--hc-r); color: var(--hc-ink); font-family: var(--g-font); font-weight: 600; box-shadow: none; }
:root:root body .칩--활성 { background: var(--hc-fill); border-color: var(--hc-fill); color: var(--hc-on-fill); }
:root:root body .토스트 { background: var(--hc-fill); color: var(--hc-on-fill); border: 0; box-shadow: none; border-radius: var(--hc-r); }
:root:root body .모노태그 { background: transparent; border: 1px solid var(--hc-line); border-radius: var(--hc-r); color: var(--hc-ink-2); }
:root:root body #topbar { background: var(--hc-bg); border-bottom: 1px solid var(--hc-line); }
:root:root body #sidebar, :root:root body #rail { background: var(--hc-fill2); border-right: 1px solid var(--hc-line); }
:root:root body #listPanel { background: var(--hc-surface); border-right: 1px solid var(--hc-line); }
:root:root body #tabbar { background: var(--hc-bg); border-top: 1px solid var(--hc-line); }
:root:root body #searchBox, :root:root body .프로필칩, :root:root body .설정버튼 { background: var(--hc-surface); border: 1px solid var(--hc-line); border-radius: var(--hc-r); color: var(--hc-ink); }
:root:root body .데모뱃지 { border-radius: var(--hc-r); }
:root:root body table th { background: var(--hc-fill2); color: var(--hc-ink-2); }
@media (prefers-reduced-motion: reduce) { :root:root body .카드, :root:root body .card { transition: none; } :root:root body .카드:hover, :root:root body .card:hover { transform: none; } }
/* 메일 탭 보정: 마스코트 아이콘 칩 제거(두 모드 같은 꼴) · 보조 단추 선 연하게 · 말풍선 크라우니 색 · 카드 제목 24/600 */
:root:root body #btn-skin, :root:root body #btn-skin[aria-pressed="true"] { background: transparent; border: 0; border-radius: var(--hc-r); box-shadow: none; }
:root:root body .고스트링크 { border-color: var(--hc-line); }
:root:root body .고스트링크:hover { border-color: var(--hc-ink-2); }
:root, html[data-skin="village"] { --dm-ink: var(--hc-ink); --dm-accent: var(--hc-focus); --dm-surface: var(--hc-surface); --dm-shadow-lift: none; --dm-shadow-hair: none; --dm-ring-accent: 0 0 0 3px var(--hc-focus); }
:root:root body #물빛안내 .물빛안내-말풍선 { background: var(--hc-surface); color: var(--hc-ink); border: 1px solid var(--hc-line); border-radius: var(--hc-r); box-shadow: none; }
:root:root body #물빛안내 .물빛안내-다음.dm-btn { background: var(--hc-fill); color: var(--hc-on-fill); border: 1px solid var(--hc-fill); border-radius: var(--hc-r); font-weight: 600; }
:root:root body #물빛안내 .물빛안내-글, :root:root body #물빛안내 .물빛안내-글 * { color: var(--hc-ink); }
:root:root body .카드 .폼타이틀, :root:root body .로그인면 .카드 .폼타이틀 { font-size: 24px; font-weight: 600; letter-spacing: 0; }
/* 기본 모드 다크도 마을 다크와 같은 바탕·선 (토큰 선언) */
@media (prefers-color-scheme: dark) {
  :root:not([data-skin="village"]):not([data-theme="라이트"]) { --hc-bg: #0f1412; --hc-surface: #18211d; --hc-fill2: #22302a; --hc-ink: #e8f0ea; --hc-ink-2: #a7b8af; --hc-line: #2e3d36; }
}
:root:not([data-skin="village"])[data-theme="다크"] { --hc-bg: #0f1412; --hc-surface: #18211d; --hc-fill2: #22302a; --hc-ink: #e8f0ea; --hc-ink-2: #a7b8af; --hc-line: #2e3d36; }
:root:root body .셸, :root:root body .폼사이드 { background: var(--hc-bg); }
:root:root body .물빛안내-글 .모노태그, :root:root body #물빛안내 code, :root:root body #물빛안내 kbd { background: var(--hc-fill2); color: var(--hc-ink); border: 1px solid var(--hc-line); }
:root:root body #물빛안내 .안내-용어 { background: var(--hc-fill2); color: var(--hc-ink); border: 1px solid var(--hc-line); border-radius: 4px; box-shadow: none; font: inherit; font-weight: 600; }
/* 2판 토큰 보정: 다크는 기본·마을 모두 계정 탭과 같은 값(앞 선언보다 명시도 높게) */
@media (prefers-color-scheme: dark) { html:root:root:not([data-theme="라이트"]), html:root:root[data-skin="village"]:not([data-theme="라이트"]) { --hc-bg: #121214; --hc-surface: #0a0908; --hc-fill2: #131211; --hc-surface-2: #131211; --hc-ink: #f0efe9; --hc-ink-2: color-mix(in srgb, #f0efe9 82%, #121214); --hc-ink-3: #a4a4ac; --hc-line: #34343a; } }
html:root:root[data-theme="다크"], html:root:root[data-skin="village"][data-theme="다크"] { --hc-bg: #121214; --hc-surface: #0a0908; --hc-fill2: #131211; --hc-surface-2: #131211; --hc-ink: #f0efe9; --hc-ink-2: color-mix(in srgb, #f0efe9 82%, #121214); --hc-ink-3: #a4a4ac; --hc-line: #34343a; }

/* ── 현대카드식 꼴 4판: 방향 기록(방향/메일.psv) 반영 (2026-11-30) ── */
:root:root body .쓰기골드, :root:root body .골드버튼 { background: var(--hc-fill); color: var(--hc-on-fill); border: 1px solid var(--hc-fill); border-radius: var(--hc-r); box-shadow: none; min-height: var(--hc-h); font: 600 16px var(--g-font); padding: 0 24px; } /* 메일-01 */
:root:root body .쓰기골드:hover, :root:root body .골드버튼:hover { opacity: .88; } /* 메일-01 */
:root:root body .레일버튼 { background: var(--hc-fill) !important; box-shadow: none !important; } /* 메일-01 */
:root:root body .레일버튼 * { color: var(--hc-on-fill) !important; } /* 메일-01 */
@media (max-width: 767px) {
  :root:root body .fab { background: var(--hc-fill); box-shadow: none; border-radius: var(--hc-r); } /* 메일-02 */
  :root:root body .fab span { color: var(--hc-on-fill); } /* 메일-02 */
}
:root:root body .메일행--선택 { background: var(--hc-fill2); border-color: var(--hc-line); border-left: 2px solid var(--hc-fill); box-shadow: none; } /* 메일-03 */
:root:root body .사이드항목--활성 { background: var(--hc-surface); color: var(--hc-ink); border-left: 2px solid var(--hc-fill); box-shadow: none; } /* 메일-03 */
:root:root body .저장소카드 { background: var(--hc-surface) !important; border: 1px solid var(--hc-line) !important; border-radius: var(--hc-r) !important; } /* 메일-04 */
:root:root body .저장소카드 * { color: var(--hc-ink-2) !important; } /* 메일-04 */
:root:root body .저장소바 { background: var(--hc-line); } /* 메일-04 */
:root:root body .저장소바 > div { background: var(--hc-fill) !important; } /* 메일-04 */
:root:root body .타이어칩 { font-size: 10px; border-radius: var(--hc-r); } /* 메일-05 */
:root:root body .칩 { font-size: 11px; } /* 메일-05 */
:root:root body .대기실배너 { background: var(--hc-fill2); border: 1px solid var(--hc-line); border-radius: var(--hc-r); color: var(--hc-ink); } /* 메일-06 */
:root:root body .데모뱃지 { background: transparent; border: 1px solid var(--hc-line); border-radius: var(--hc-r); color: var(--hc-ink-2); } /* 메일-06 */
:root:root body .다이얼로그, :root:root body [data-screen="1c"] { border-radius: var(--hc-r) !important; box-shadow: none !important; border: 1px solid var(--hc-line) !important; background: var(--hc-surface) !important; } /* 메일-07 */
:root:root body [data-screen="1c"] div[style*="골드배경"], :root:root body .다이얼로그 div[style*="골드배경"] { background: var(--hc-fill2) !important; border-color: var(--hc-line) !important; } /* 메일-07 */
:root:root body .토스트 span[style*="transform:rotate"] { background: var(--hc-on-fill) !important; } /* 메일-08 */
:root:root body .행미리보기, :root:root body .사이드라벨, :root:root body .모노태그 { color: var(--hc-ink-2); } /* 메일-09 */
:root:root body #listPanel .행상단 span:last-child { color: var(--hc-ink-2); } /* 메일-09 */
:root:root body .cName카드 * { color: var(--hc-ink) !important; } /* 메일-11 */
:root:root body .cName카드 .모노태그 { color: var(--hc-ink-2) !important; } /* 메일-11 */
:root:root body .cName카드 span[style*="background"] { background: var(--hc-fill2) !important; } /* 메일-11 */
:root:root body .토글 { background: var(--hc-line); } /* 메일-12 */
:root:root body .토글점 { background: var(--hc-surface); } /* 메일-12 */
:root:root body .토글--켜짐 { background: var(--hc-fill); } /* 메일-12 */
:root:root body .토글--켜짐 .토글점 { background: var(--hc-on-fill); } /* 메일-12 */
:root:root body .카드 div[style*="골드배경"] { background: var(--hc-fill2) !important; color: var(--hc-ink) !important; } /* 메일-12 */
:root:root body .탭배지, :root:root body .레일배지 { font-size: 10px; padding: 0 5px; border-radius: var(--hc-r); } /* 메일-16 */
@media (max-width: 767px) { :root:root body .탭라벨 { font-size: 10px; } } /* 메일-16 */
