/* ═══════════════════════════════════════════════════════════
   KarmoLab. Observatory
   관측실 톤, 별빛 액센트, 종이/잉크 다크 베이스
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */

:root {
    /* 브라우저가 직접 그리는 것들(날짜 선택 달력 아이콘, 숫자 증감 화살표, 기본 스크롤바)에게
       지금 테마를 알려 준다. 안 알려 주면 어두운 화면에 검은 아이콘이 얹혀 안 보인다. */
    color-scheme: dark;

    /* 밤의 종이. body는 보라 기운의 어두움, 카드/패널은 paper/ink 톤 유지 (TASK-KL-097) */
    --bg-void: #0f1016;        /* quiet night */
    --bg-primary: #171821;     /* work surface */
    --bg-secondary: #1d1e28;   /* raised surface */
    --bg-tertiary: #292a36;    /* divider */
    --bg-hover: #343542;       /* hover surface */
    --bg-active: #424352;      /* active surface */

    --glass: rgba(23, 24, 33, 0.97);
    --glass-hover: rgba(29, 30, 40, 0.98);
    --glass-strong: rgba(15, 16, 22, 0.99);
    /* 유리를 옅게 열어 둘수록 흐림이 세야 유리로 읽힌다. 약하면 그냥 반투명 판이다. */
    --glass-blur: blur(16px) saturate(115%);

    --text-primary: #f2f2ee;   /* ink */
    --text-secondary: #9a9a94; /* ink-2 */
    /* 흐린 라벨("키 (cm)" 같은 것)이 카드 위에서 2.1:1 까지 떨어져 56곳이 읽기 힘들었다.
       흐림은 유지하되 읽히는 선까지만 올린다.
       2026-08-16 두 번째 올림. 실사이트 axe 측정에서 가장 어두운 카드(#1d1e28) 위에서
       3.83:1 로 여전히 모자랐다(기준 4.5). #7a7a75 → #94948f = 4.53. 색상은 그대로. */
    --text-tertiary: #94948f;  /* ink-3 */

    /* Typography tokens */
    /* 다섯 단계 + 작은 글자 둘 + 제목 하나. 위젯이 쓰던 열두 종을 여기로 모음
       (change.karmolab-style-tokens, 2026-08-30). 직접 값 금지. audit:style-tokens 가 셈 */
    --font-size-4xs: 10px;
    --font-size-3xs: 11px;
    --font-size-2xs: 12px;
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-md: 18px;
    --font-size-title: 20px;
    --font-size-lg: 22px;
    /* 표시용 큰 글자 (2026-09-01). 도구가 결과를 크게 보일 때 쓰던 24, 28, 32px 을 이름으로.
       값은 그대로라 픽셀이 안 바뀐다. 이보다 큰 것(48px 이상)은 도구마다 뜻이 달라 그대로 둔다 */
    --font-size-display-sm: 24px;
    --font-size-display-md: 28px;
    --font-size-display-lg: 32px;

    /* 브랜드 = 연보라 (TASK-KL-097). 황동 금색은 폐기. 두 테마가 같은 색을 공유한다. */
    --accent: #a79bef;         /* quiet lavender */
    /* 글자로 쓰는 주황, 보라. 클래식에서는 칠과 같다. 필드 스킨만 따로 정한다 */
    --accent-ink: var(--accent);
    /* ★ accent 로 **채운 자리 위의 글자색** (2026-08-16). 여태 토큰이 없어서 여러 자리가
       `var(--accent-fg)` 로 흰 글자를 썼는데, 어두운 판의 accent 는 **밝은 라벤더**라
       흰 글자는 2.45:1 이다. 사실상 안 읽힌다. 판마다 반대 색을 쓴다: 어두운 판 7.76, 밝은 판 6.31. */
    --accent-fg: #0f1016;
    /* 상태색으로 칠한 자리의 글자. 칠이 밝으면 어두운 잉크로 바꿔 끼운다 */
    --status-fg: #0f1016;   /* 어두운 판의 상태색은 밝다. 그 위 글자는 어두운 잉크 (흰 글자 3.84:1) */
    --modal-scrim: rgba(8, 8, 12, 0.62);
    --accent-hover: #bdb4f4;
    --accent-dim: rgba(167, 155, 239, 0.10);
    --accent-subtle: rgba(167, 155, 239, 0.07);
    --accent-glow: rgba(167, 155, 239, 0.20);

    --secondary: #8292ad;      /* muted blue */
    --secondary-hover: #9aa8be;
    --secondary-subtle: rgba(130, 146, 173, 0.08);
    --secondary-glow: rgba(130, 146, 173, 0.16);

    --success: #22C55E;
    --success-subtle: rgba(34, 197, 94, 0.08);
    /* WCAG AA (2026-09-01). 옛 #ED4245 는 어두운 판에서 4.31:1 로 4.5 아래
       .tool-status.error 와 .btn-danger 글자가 전부 그 색이라 도구 전체에 걸림
       지금 값: 판(#1d1e28) 위 5.07, 옅은 빨강(#2e212a) 위 4.70 */
    --error: #F4595C;
    --error-subtle: rgba(244, 89, 92, 0.08);
    --warning: #F59E0B;
    --warning-subtle: rgba(245, 158, 11, 0.08);

    --border: rgba(242, 242, 238, 0.06);
    --border-hover: rgba(242, 242, 238, 0.12);
    --border-strong: rgba(169, 155, 245, 0.4);

    /* Observatory: 직각에 가까운 라디우스 (종이/도감 톤) */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-pill: 999px;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;


    /* 위젯 내부 툴 사이드바 폭 (이미지 편집 등; 앱 메인 내비와 무관) */
    --sidebar-width: 224px;
    --sidebar-collapsed-width: 56px;
    /* 머리띠. 2026-08-30 에 52 -> 40. 남은 것은 로고, 지금 도구 이름, 창 제어뿐 */
    --header-h: 40px;
    --transition: 180ms ease;
    --transition-fast: 100ms ease;
    --transition-slow: 350ms ease;

    /* Inter 를 뺐다(TASK-KL-089). 앞의 'KarmoSans' 이 영문, 숫자까지 덮어 도달하지 않는
       자리였고, 웹글꼴도 더 이상 부르지 않는다. 남겨 두면 Inter 가 설치된 기기에서만
       다른 글씨체로 보여 사람마다 화면이 갈린다. */
    /* 이름이 Karmo* 인 것은 **우리가 구운 글꼴**이다 (TASK-KL-128, `scripts/gen-fonts.py`).
       담지 않은 글자는 그 다음 후보로 흘러간다. 그래서 뒤의 컴퓨터 글꼴 목록을 그대로 둔다. */
    /* 후보를 **짧게** 둔다 (TASK-KL-128 ⑳).
     * 우리 글꼴에 없는 글자는 이 목록을 하나씩 짚어 내려간다. 그리고 그 값이 크다.
     * 실측(도구 화면, 기기 4배 느리게): 후보를 하나로 줄이면 글자 모양내기 429 → 282ms,
     * 첫 배치 한 번이 395 → 311ms. 사슬이 **첫 그림의 34%** 였다.
     * 예전 목록의 `-apple-system`, `BlinkMacSystemFont`, `Segoe UI`, `Roboto` 는 결국 전부
     * 그 기계의 기본 글꼴을 가리킨다. `system-ui` 한 단어가 같은 일을 한 걸음에 한다.
     * 한글은 `system-ui` 가 안 덮는 기계가 있어 맑은 고딕만 남긴다. */
    --font-sans: 'KarmoSans', system-ui, 'Malgun Gothic', sans-serif;
    --font-serif: 'KarmoSerif', Georgia, serif;
    --font-mono: 'KarmoMono', ui-monospace, Consolas, monospace;

    /* 격자 두 겹. 굵은 칸은 또렷하게, 가는 칸은 아주 옅게 (모눈 종이) */
    --grid-color: rgba(191, 187, 220, 0.045);
    --grid-color-fine: rgba(191, 187, 220, 0.018);
    --vignette: rgba(0, 0, 0, 0.38);   /* 바닥 가장자리 어둠 */

    /* Y2K 그라데이션 (TASK-KL-097). **토큰으로만** 낸다.
       곳곳에 그라데이션 문자열을 박으면 다음 톤 조정 때 전부 찾아 고쳐야 한다.
       ① holo-sweep = 보라→분홍→청록이 화면을 **대각으로** 가로지르는 홀로그램 쓸기.
          띠 한 겹으로 뒀더니 색이 멈추는 선이 보였다. 대각으로 화면을 다 덮으면 경계가 없다.
       ② holo-bloom = 위쪽에서 번지는 빛. 쓸기 혼자면 위아래가 허전하다.
       ③ chrome-grad = 로고, 주요 버튼 같은 **작은 면적**에만.
       주의: 이 넷은 라이트 블록에도 같은 이름으로 있어야 한다. 한쪽만 있으면 그 테마에서
       배경이 통째로 안 그려지고 버튼이 투명해진다(실제로 다크가 그렇게 깨져 있었다). */
    --holo-sweep: linear-gradient(112deg,
        rgba(126, 113, 190, 0.16) 0%,
        rgba(155, 111, 153, 0.09) 18%,
        rgba(15, 16, 22, 0) 34%,
        rgba(15, 16, 22, 0) 58%,
        rgba(99, 143, 157, 0.08) 74%,
        rgba(126, 113, 190, 0.13) 100%);
    --holo-bloom: radial-gradient(ellipse 120% 60% at 50% -20%, rgba(126, 113, 190, 0.16), transparent 70%);
    --chrome-grad: linear-gradient(135deg, #c9bdff 0%, #a99bf5 32%, #ffffff 54%, #a99bf5 78%, #8b7ce8 100%);
    --chrome-grad-hover: linear-gradient(135deg, #ddd5ff 0%, #c0b5f8 32%, #ffffff 54%, #c0b5f8 78%, #a99bf5 100%);
    --brand-edge: rgba(242, 242, 238, 0.34);
    --brand-shadow: rgba(0, 0, 0, 0.48);

    /* 첫 화면 장식이 쓰는 색. 어두운 바탕에서는 밝게 떠야 보인다.
       (밝은 테마는 아래에서 더 짙은 값으로 덮는다. 흰 종이 위에서 이 값들은 씻겨 사라진다.) */
    --decor-a: #a97999;
    --decor-b: #9188c4;
    --decor-c: #6d9da7;
    --decor-d: #aa8ca8;
    --decor-e: #756ca8;

    /* 넓게 칠하는 버튼 전용. 다크에선 강조색 그대로가 가장 밝게 빛난다. */
    --fill-strong: var(--accent);
    --fill-strong-hover: var(--accent-hover);
    --fill-strong-ink: var(--bg-void);
    --glow-text: none;
    --glow-box: none;
    --shadow-float: 0 1px 0 rgba(0, 0, 0, 0.25);

    /* 헤더 줄 + 메가메뉴 패널 동일 표면 (토스형: 위아래 한 장의 글래스) */
    --header-shell-glass: color-mix(in srgb, var(--glass) 35%, transparent);
    /* 메가 패널 max-height와 헤더 ::after 확장 높이를 반드시 동일하게 */
    --header-mega-max-h: min(44vh, 320px);
}

/* ── Light Theme ── */

[data-theme="light"] {
    color-scheme: light;

    /* 흰 종이. 사무실 복사지. 따뜻한 회색을 전부 걷어냈다(R−B 편차 0 또는 보라 쪽).
       예전 값은 R이 B보다 4~13 높아 누리끼리로 읽혔다 (TASK-KL-097). */
    --bg-void: #ffffff;        /* 백지 바닥 */
    --bg-primary: #ffffff;     /* paper */
    --bg-secondary: #ffffff;   /* 카드도 같은 백지. 계층은 그림자와 선이 만든다 */
    --bg-tertiary: #e9e7f2;    /* divider. 연보라 기운의 회색 */
    --bg-hover: #e2dff0;
    --bg-active: #d4cfe8;

    --glass: rgba(255, 255, 255, 0.85);
    --glass-hover: rgba(255, 255, 255, 0.92);
    --glass-strong: rgba(255, 255, 255, 0.96);

    --text-primary: #1a1a1f;   /* ink. 중성에서 살짝 차갑게 */
    --text-secondary: #64626f; /* ink-2 */
    --text-tertiary: #656374;  /* ink-3 */

    --accent: #5f4dc2;         /* 연보라 잉크. 다크(#a99bf5)와 같은 hue, 흰 위에서 읽히게 어둡게 */
    --accent-ink: var(--accent);
    --accent-fg: #ffffff;      /* 밝은 판 accent 는 어두우므로 글자는 흰색 (6.31:1) */
    --status-fg: #ffffff;
    --accent-hover: #4f3eb0;
    --accent-dim: rgba(95, 77, 194, 0.10);
    --accent-subtle: rgba(95, 77, 194, 0.07);
    --accent-glow: rgba(95, 77, 194, 0.22);

    --secondary: #3f6285;      /* 별빛 블루 잉크 */
    --secondary-hover: #4f779f;
    --secondary-subtle: rgba(63, 98, 133, 0.08);
    --secondary-glow: rgba(63, 98, 133, 0.22);

    --success: #2f7d4f;
    --success-subtle: rgba(47, 125, 79, 0.08);
    --error: #b3261e;
    --error-subtle: rgba(179, 38, 30, 0.08);
    /* 밝은 판 경고색. 자기 14% 틴트 위에서 3.49:1 이라 기준(4.5)에 못 미쳤다
       (2026-08-16, CI 의 axe 가 판 낡음 배지에서 잡았다. 그 배지는 서버에 더 새 판이
       있을 때만 뜨는데 로컬에는 그런 상태가 없어 안 보였다). #a8721c → #8a5c12 = 4.77.
       이 토큰은 어디서나 **글자색**으로만 쓰인다(확인함). 어둡게 하면 전부 좋아지는 방향. */
    --warning: #8a5c12;
    --warning-subtle: rgba(138, 92, 18, 0.08);

    --border: rgba(26, 26, 31, 0.10);
    --border-hover: rgba(26, 26, 31, 0.18);
    --border-strong: rgba(95, 77, 194, 0.4);

    --grid-color: rgba(95, 77, 194, 0.105);
    --grid-color-fine: rgba(95, 77, 194, 0.045);
    /* 다크의 50% 검정 vignette 를 그대로 쓰면 흰 바닥 가장자리가 때 탄 회색이 된다 */
    --vignette: rgba(95, 77, 194, 0.06);

    /* 홀로그램 쓸기. 흰 종이 위라 다크보다 옅게 깐다. 진하면 카드가 물든다. */
    --holo-sweep: linear-gradient(112deg,
        rgba(150, 132, 246, 0.30) 0%,
        rgba(215, 168, 240, 0.22) 18%,
        rgba(255, 255, 255, 0) 34%,
        rgba(255, 255, 255, 0) 58%,
        rgba(160, 215, 240, 0.20) 74%,
        rgba(140, 120, 245, 0.26) 100%);
    --holo-bloom: radial-gradient(ellipse 120% 60% at 50% -20%, rgba(160, 142, 248, 0.28), transparent 70%);
    /* 장식 색을 짙게. 어두운 화면용 밝은 값을 흰 종이에 그대로 쓰면 씻겨서 있는 둥 마는 둥이 된다
      . 하프톤이 옅다는 지적의 진짜 원인이 점 크기가 아니라 이 색이었다. */
    --decor-a: #c2185b;
    --decor-b: #6d3fd4;
    --decor-c: #0e8fa8;
    --decor-d: #b247c9;
    --decor-e: #4a35a8;

    /* 흰 바탕에서는 크롬을 밝게 두면 글자가 안 읽힌다. 중간 톤에서 흰 하이라이트만 스친다. */
    --chrome-grad: linear-gradient(135deg, #8a7ae8 0%, #5f4dc2 30%, #b9a8f0 52%, #5f4dc2 76%, #5847bb 100%);
    --chrome-grad-hover: linear-gradient(135deg, #9b8cf0 0%, #7b69dc 30%, #cdc0f7 52%, #7b69dc 76%, #5f4dc2 100%);
    --brand-edge: rgba(26, 26, 31, 0.30);
    --brand-shadow: rgba(255, 255, 255, 0.72);

    /* 연보라를 넓게 칠하면 흰 종이 위에서 탁해진다. 넓은 면은 잉크로 칠하고
       보라는 글자, 테두리, 선택 표시 같은 작은 면적에 남긴다. */
    --fill-strong: #2a2735;
    --fill-strong-hover: #3d3950;
    --fill-strong-ink: #ffffff;
    --glow-text: none;
    --glow-box: none;
    /* 라이트에선 카드와 바닥이 둘 다 순백이므로 그림자와 선이 계층을 통째로 맡는다 */
    --shadow-float: 0 1px 2px rgba(26, 26, 31, 0.06), 0 6px 16px -6px rgba(45, 35, 90, 0.16);

    /* 예전엔 거의 불투명한 종이(94%)로 덮었다. 그때 바탕이 얼룩덜룩해서 비치면 지저분했다.
       지금 바탕은 매끈한 홀로그램 한 장이라 그 이유가 사라졌다. 비치게 열어 둔다 (KL-097). */
    --header-shell-glass: color-mix(in srgb, var(--glass) 52%, transparent);
}
[data-theme="light"] .spinner { border-color: rgba(0,0,0,0.08); border-top-color: var(--accent); }
[data-theme="light"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d5bd0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    color-scheme: light;
}
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.18); }

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ── Body & Layout ── */

/* 넘겨 스크롤(바운스)하면 body 밖이 잠깐 보인다. html 에 색이 없으면 브라우저가 제 기본색을
   칠하는데, 이 앱은 어두운 화면이 기본이라 알려 뒀으므로 밝은 테마에서도 **검은 띠**가 번쩍인다.
   바탕색은 화면 전체의 것이니 html 이 갖는 게 맞다 (TASK-KL-101). */
html { background-color: var(--bg-void); }

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-md);
    /* 바탕색은 html 만 갖는다. body 에도 주면 **판때기를 덮는다**. 뒤로 깐 것(z-index:-1)은
       그리는 순서상 body 의 바탕색보다 먼저 칠해지기 때문이다. 실제로 격자가 통째로
       사라졌다 (TASK-KL-101). */
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    min-height: 100vh;
}

/* 스크롤 잠금은 **앱 껍데기가 있는 문서에만**.
   .app-layout 은 position:fixed inset:0 이라 스크롤을 자기가 갖는다. 그때만 문서 스크롤을
   막는 게 맞다. 이걸 맨 body 에 걸어 뒀더니, 껍데기 없이 글만 있는 문서(/t/ 도구
   전체 목록)가 데스크톱에서 스크롤 자체가 막혀 첫 화면 밑이 통째로 안 보였다.
   (폰은 아래 반응형에서 문서 스크롤로 되돌린다.) */
body:has(> .app-layout) {
    overflow: hidden;
}

/* 배경 테마: 관측실 (기본). 그리드 + 어두운 vignette만 (채도 0, 최소 톤) */
/* 관측실이 **바닥값**이다. 고른 배경이 없거나 모르는 값이어도 이게 남는다.
   예전엔 `:not([data-bg])` 와 `="observatory"` 둘만 받았다. 그래서 값이 한 번
   `undefined` 로 적히자 어느 쪽에도 안 걸려 **배경이 통째로 사라졌다**. 다크는 검은
   순색, 라이트는 흰 순색. 아래 다른 테마들이 이 위에 덮는다 (TASK-KL-101). */
.app-bg,
.bg-swatch {
    /* 배경은 **화면에 딱 맞는 판때기 한 장**에 그린다 (TASK-KL-101).
       예전엔 body 에 attachment:fixed 로 붙이고 높이를 화면 단위(svh/lvh)로 적었다.
       그건 화면이 이만할 것이라는 추측이고, 폰은 주소창이 접혔다 펴졌다 하며 그
       추측을 계속 배신한다. 모자라면 검은 띠, 넘치면 스크롤 중 출렁임. 두 번 다 겪었다.
       position:fixed + inset:0 은 추측이 아니라 **브라우저가 재 준 화면 그 자체**다.
       그래서 크기를 비율(100%)로만 적을 수 있고, 화면 단위가 한 개도 안 남는다.
       판때기는 셸(index.html)에 있으므로 도구 목록, 상세 페이지도 그대로 따라온다. */
    position: fixed;
    inset: 0;
    /* -1 = 다른 모든 것의 **뒤**. 0 으로 두면 자리를 잡은 요소라서, 껍데기 없이 글만 있는
       문서(도구 상세)에서는 글 위로 올라와 화면을 덮는다. */
    z-index: -1;
    pointer-events: none;
    /* 격자는 두 겹이다. 굵은 칸(48px) 안에 가는 칸(12px). 모눈 종이, 제도 용지가 그렇게
       생겼고, 한 겹만 있으면 무늬로 보이지 종이로 안 보인다 (TASK-KL-097). */
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to right, var(--grid-color-fine) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color-fine) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 50%, transparent 20%, var(--vignette) 100%);
    /* 판때기가 곧 화면이므로 비율로 적으면 된다. 화면 단위(vh/svh/lvh) 없음이 핵심이다. */
    background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px, auto;
    background-repeat: repeat, repeat, repeat, repeat, no-repeat;
    background-position: 0 0, 0 0, 0 0, 0 0, center;
}

/* 분위기층은 **따로 겹친다** (TASK-KL-101).
   예전엔 격자와 분위기를 한 규칙에 쌓아 두고, 테마마다 그림 목록만 갈아 끼웠다. 그런데
   크기, 반복 목록은 그대로 남아서 층 수가 어긋났다. 오로라는 화면만 한 타원이 48px 로
   잘려 바둑판처럼 깔렸고, 격자는 테마마다 통째로 사라졌다. 사실상 관측실 말고는 다 고장.
   층을 갈라 두면 테마는 **자기 그림과 자기 크기만** 적으면 되고, 격자는 늘 남는다. */
.app-bg::before,
.bg-swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--holo-sweep), var(--holo-bloom);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* 아래 테마들은 **분위기층만** 바꾼다. 격자, vignette 는 위에서 늘 깔린다. */

/* 배경 테마: 블루 매젠타 */
html[data-bg="blue-magenta"] .app-bg::before,
.bg-swatch[data-bg="blue-magenta"]::before {
    background-image:
        radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.20) 0px, transparent 50%),
        radial-gradient(at 80% 20%, rgba(217, 70, 239, 0.16) 0px, transparent 45%),
        radial-gradient(at 0% 80%, rgba(99, 102, 241, 0.12) 0px, transparent 40%),
        radial-gradient(at 70% 70%, rgba(192, 38, 211, 0.10) 0px, transparent 55%);
    background-size: 100% 100%;
}

/* 배경 테마: 메쉬 도트. 유일하게 **되풀이되는** 분위기층이라 크기를 제가 적는다 */
html[data-bg="mesh-dots"] .app-bg::before,
.bg-swatch[data-bg="mesh-dots"]::before {
    background-image:
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.30) 0px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(217, 70, 239, 0.26) 0px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.18) 0px, transparent 2px);
    background-size: 48px 48px, 64px 64px, 80px 80px;
    background-repeat: repeat;
    background-position: 0 0;
}

/* 배경 테마: 오로라 */
html[data-bg="aurora"] .app-bg::before,
.bg-swatch[data-bg="aurora"]::before {
    background-image:
        radial-gradient(ellipse 80% 50% at 10% 20%, rgba(34, 197, 94, 0.18) 0px, transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(59, 130, 246, 0.20) 0px, transparent 45%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(99, 102, 241, 0.14) 0px, transparent 55%);
    background-size: 100% 100%;
}

/* 배경 테마: 은은한 */
html[data-bg="subtle"] .app-bg::before,
.bg-swatch[data-bg="subtle"]::before {
    background-image:
        radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.12) 0px, transparent 70%);
    background-size: 100% 100%;
}

/* 배경 테마: 미니멀. 분위기도 격자도 없이 종이만 */
html[data-bg="minimal"] .app-bg::before,
.bg-swatch[data-bg="minimal"]::before { background-image: none; }
html[data-bg="minimal"] .app-bg,
.bg-swatch[data-bg="minimal"] {
    background-image: radial-gradient(ellipse at 50% 50%, transparent 20%, var(--vignette) 100%);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
}

/* 배경 견본. 위 규칙을 그대로 물려받아 **진짜 배경과 같은 그림**을 보여 준다.
   값을 두 벌 적지 않는 것이 핵심이다: 테마를 손보면 견본도 같이 바뀐다.
   물려받은 화면에 붙어라만 여기서 되돌린다 (TASK-KL-101). */
.bg-swatch {
    position: relative;
    inset: auto;
    z-index: 0;
    pointer-events: auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background-color: var(--bg-void);
    transition: border-color .18s ease, transform .18s ease;
}
.bg-swatch:hover { transform: translateY(-2px); }
.bg-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.bg-swatch-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 4px 6px;
    font-size: var(--font-size-2xs, 12px);
    color: var(--text-primary);
    background: linear-gradient(to top, var(--bg-void), transparent);
    text-align: center;
}
.settings-bg-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
    width: 100%;
}

.app-layout {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}
.app-body { flex: 1; display: flex; min-height: 0; overflow: hidden; }
.main-content { margin-left: 0; }

/* ═══════════════════════════════════════
   INTRO OVERLAY
   ═══════════════════════════════════════ */

.intro-overlay {
    /* **화면 기준**이어야 한다 (TASK-KL-101).
       내용 상자 기준(absolute)이면 상자가 자라는 만큼 덮개도 자란다. 폰에서는 앱이 문서처럼
       흐르므로 내용이 그려지는 순간 상자가 664 → 1282px 로 늘고, 가운데 있던 제목이 화면
       한참 아래로 내려간다. 실제로 가운데 나왔다가 아래로 튀는 것으로 보였다.
       덮개는 화면을 덮는 물건이므로 처음부터 화면에 못 박는 것이 맞다. */
    position: fixed;
    inset: 0;
    /* 폰 주소창이 접히면 화면 높이가 바뀐다. inset:0 만 두면 그때 덮개가 늘어나고 가운데가
       같이 내려가 **살짝 튄다**. svh(주소창이 보일 때의 높이)로 못 박으면 접히든 펴지든
       그대로다. 지원 안 하는 브라우저는 위의 inset:0 이 그대로 받는다 (TASK-KL-101). */
    height: 100svh;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 바탕을 단색으로 두면 첫 화면과 다른 세계가 됐다가 갑자기 바뀐다.
       같은 홀로그램을 깔아 두면 인트로가 다른 화면이 아니라 이 화면의 시작이 된다. */
    background: var(--holo-sweep), var(--holo-bloom), var(--bg-void);
    /* 걷히는 방식: 위로 쓸어 올린다. 그냥 사라지면 꺼졌다이고, 걷히면 열렸다가 된다. */
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.55s ease;
    pointer-events: none;
}
.intro-overlay.done {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
}
.intro-overlay.hidden,
/* 도구를 보던 사람에게는 인트로를 아예 안 켠다. 부트 스크립트가 첫 그림 전에 정한다 */
html[data-intro="off"] .intro-overlay {
    display: none;
}
.intro-title {
    font-size: clamp(36px, 8vw, 64px);
    color: var(--text-primary);
    white-space: pre;
}
/* 글자 하나씩 흐림에서 걸어 나온다 (레퍼런스 공통 문법. 가짜 진행률 표시는 안 쓴다.
   이 앱은 실제로 빨리 뜨는데 퍼센트를 보여 주면 없는 기다림을 지어내는 것이다). */
.intro-letter {
    display: inline-block;
    opacity: 0;
    animation: intro-letter-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 55ms);
}
@keyframes intro-letter-in {
    0%   { opacity: 0; filter: blur(14px); transform: translateY(22px) scale(0.94); }
    60%  { opacity: 1; filter: blur(0);    transform: translateY(0)    scale(1.02); }
    100% { opacity: 1; filter: blur(0);    transform: translateY(0)    scale(1); }
}
/* 움직임을 줄여 달라고 한 사람에겐 걷기, 와이프 없이 그냥 뜨고 사라진다 */
@media (prefers-reduced-motion: reduce) {
    .intro-overlay { transition: opacity 0.3s ease; clip-path: none; }
    .intro-overlay.done { clip-path: none; }
    .intro-letter { animation: none; opacity: 1; }
}

/* ═══════════════════════════════════════
   HEADER NAV. 토스/금융앱형 상단 메가메뉴 (호버로 전체 폭 패널)
   ═══════════════════════════════════════ */

.header-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-self: start;
    min-width: 0;
}

.header-nav-section-empty {
    margin: 0;
    padding: 2px 8px 8px;
    font-size: var(--font-size-3xs);
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* 옆줄의 접히지 않는 이름표 (빈 칸용, 2026-08-19) */

/* 폰 전용 도구 목록 입구. 폰 미디어쿼리에서만 켠다 (PC 는 사이드바가 그 역할).
   손가락 기준 최소 40px 을 여기서 확보한다 (미디어쿼리는 display 만 뒤집는다). */
.header-tools-link {
    display: none;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
/* ★ **도구 목록으로 가는 길은 접히지 않는다** (2026-08-12).
   PC 에서는 옆줄이 그 역할이라는 전제로 이 링크들을 폰에서만 켰다. 그런데 첫 화면 꾸미기가
   기본을 머리띠 차림 + 갈 곳 카드 접힘으로 바꾸면서, **처음 온 사람의 PC 화면에 도구 목록으로
   가는 보이는 링크가 0개**가 됐다(실측: /t/ 링크 4개가 전부 접힌 칸 안에 있었다).
   길은 취향이 아니다. 꾸미기로 접는 칸 **밖**에 하나는 늘 서 있어야 한다.
   나머지 넷(봇, 오늘의, 커뮤니티, 광장)은 그대로 폰 전용이다: PC 머리띠가 붐비지 않게 둔다. */
.header-tools-link[href="/t/"] { display: inline-flex; }

.header-tools-link:hover,
.header-tools-link:active {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-subtle);
}

.header-dev-link {
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.header-dev-link:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 34px;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    user-select: none;
    border-left: 2px solid transparent;
    border-radius: var(--radius-sm);
    margin: 1px 0;
    position: relative;
}
.nav-item:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}
.nav-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-subtle);
    font-weight: 600;
}
.nav-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { opacity: 1; }
.nav-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   HEADER BAR (글래스 배경, 좌측 로고, 우측 액션)
   ═══════════════════════════════════════ */

.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    height: var(--header-h);
    overflow: visible;
    isolation: isolate;
    /* 머리띠 불투명. 투명이면 지나가는 본문이 비쳐 글자 두 겹 */
    background: var(--bg-void);
    border-bottom: 1px solid var(--border);
}

/* 단일 글래스 레이어: 헤더 줄 + 열린 메가 영역까지 동일 backdrop (패널에 또 깔면 뒤가 달라져 색이 어긋남) */
.header-bar::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: var(--header-h);
    z-index: 0;
    background: var(--header-shell-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    /* 유리 아래끝 = 단색 선 대신 빛이 맺힌 가장자리 (KL-097).
       옅게 열어 두면 단색 1px 선이 유리에 얹힌 자국처럼 겉돈다. */
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg,
        transparent 0%, var(--accent-dim) 22%, var(--accent-glow) 50%, var(--accent-dim) 78%, transparent 100%) 1;
    pointer-events: none;
}
/* ★ **머리띠는 메뉴를 열어도 안 늘어난다** (2026-08-19, 사용자 지적).
   여기 있던 규칙은 메뉴가 열리면 머리띠 유리판을 `52px + 320px` 로 키워 **화면 폭 전체**를
   덮었다. 갈래 메뉴 시절에는 판 자신이 투명이라(대문짝) 그 유리가 곧 판의 바탕이었다.
   지금 내 도구 판은 제 바탕, 테두리, 그림자를 가진 작은 판이므로, 이 확장은 아무것도
   담지 않은 채 화면 절반만 어둡게 만든다. 규칙을 지운다. 되살릴 일이 생기면 그때는
   판이 다시 투명해진 것이므로 그 판 쪽에 바탕을 주는 것이 맞다. */

.header-bar > * {
    position: relative;
    z-index: 1;
}

/* 판 표식 배지 (TASK-KL-192). 웹, 앱 공통. 지금 이 화면이 어느 판인가를 항상 말한다.
   브랜드 글자 옆에 붙지만 눈을 뺏으면 안 된다: 흐린 글씨 + 테두리 없음이 기본이고,
   서버에 더 새 판이 있을 때만(`.is-stale`) 색이 올라온다. */
.karmolab-version-badge {
    font-family: var(--font-mono);
    font-size: var(--font-size-2xs);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 2px 6px;
    margin-left: 2px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    /* ★ 흐리게 만들 때 `opacity` 를 쓰지 않는다 (2026-08-16, CI 의 axe 가 잡았다).
       `opacity: 0.8` 은 **흐리게 보이게만 하고 색 토큰 값은 그대로 둔다**. 그래서
       이 색은 4.5 를 넘는다는 계산이 실제 화면과 어긋난다. 흐림은 *색*으로 말한다:
       그러면 잰 값이 곧 본 값이다. 흐린 글자용 토큰이 이미 있다(--text-tertiary).
       이 배지는 판 표식이 있을 때만 떠서 로컬에선 안 보였다. CI 에서만 났다. */
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.karmolab-version-badge:hover,
.karmolab-version-badge:focus-visible {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.karmolab-version-badge.is-stale {
    opacity: 1;
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 14%, transparent);
}

.header-logo {
    /* 글꼴, 굵기, 자간은 브랜드 글자 규칙(.header-logo-text)이 정한다. 여기서 또 적으면 갈라진다 */
    /* 누를 크기 24px (WCAG 2.2 AA 2.5.8). 글자 높이만 있어 16px 이었다 */
    display: inline-flex; align-items: center; min-height: 24px;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color var(--transition);
    flex-shrink: 0;
}
.header-logo:hover {
    color: var(--accent);
}
.header-logo.active {
    color: var(--accent);
}

.header-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 4px;
    flex-shrink: 0;
}

.content-header {
    padding: 0;
    min-height: 0;
    display: none;
    flex-shrink: 0;
}

.content-header > div:first-child {
    display: none;
}

.content-title {
    display: none;
}

/* ── 계정 캡슐 = 내 정보 단추 (TASK-KL-139) ──────────────────────────
   화면(index.html)에 기본 캡슐이 박혀 있고 js/account.js 가 로그인 상태면 아바타, 이름으로
   갈아 끼운다. 그래서 모양은 **셸 CSS 인 여기**에 있어야 한다. 스크립트 안에 두면
   account.js 가 오기 전까지 맨몸 단추로 보인다. */
.header-account { display: flex; align-items: center; position: relative; }
.header-account-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: transparent; cursor: pointer;
    color: var(--text-secondary); font-size: var(--font-size-xs);
    max-width: 170px;
}
.header-account-btn:hover { color: var(--text-primary); border-color: var(--accent); }
.header-account-btn.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.header-account-btn img,
.header-account-blank { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.header-account-blank { display: grid; place-items: center; background: var(--bg-tertiary); }
.header-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 계정 메뉴 (2026-08-30 다시 그림). 머리(얼굴, 이름, 상태) + 구획 셋 + 바닥(로그인, 로그아웃)
   Claude, ChatGPT 계정 메뉴와 같은 짜임. 폭 240, 줄 34, 아이콘 16 */
.header-account-menu {
    position: absolute; top: 40px; right: 0; width: 240px; z-index: 60;
    padding: 6px;
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
    font-size: var(--font-size-xs);
}
.kam-head {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 10px;
}
.kam-head img, .kam-head .header-account-blank { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.kam-head .header-account-blank { display: grid; place-items: center; background: var(--bg-tertiary); }
.kam-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.kam-who b { font-size: var(--font-size-sm); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kam-who small { font-size: var(--font-size-3xs); color: var(--text-tertiary); }
.kam-group { padding: 4px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.header-account-menu button,
.header-account-menu a {
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 34px; padding: 0 8px;
    background: none; border: 0; border-radius: var(--radius-lg);
    text-align: left; font: inherit; font-size: var(--font-size-xs);
    color: var(--text-primary); cursor: pointer; text-decoration: none;
}
.header-account-menu button:hover,
.header-account-menu a:hover,
.header-account-menu button:focus-visible,
.header-account-menu a:focus-visible { background: var(--bg-hover); outline: none; }
.header-account-menu .kam-ic { flex: none; color: var(--text-tertiary); }
.header-account-menu button:hover .kam-ic,
.header-account-menu a:hover .kam-ic { color: var(--text-primary); }
.header-account-menu button > span,
.header-account-menu a > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kam-hint { font-style: normal; font-size: var(--font-size-3xs); color: var(--text-tertiary); font-family: var(--font-mono); }
.header-account-menu .header-account-menu-count { margin-left: 0; }
.kam-foot button { justify-content: center; font-weight: 600; }
.header-account-menu button[data-signin] { color: var(--bg-primary); background: var(--accent); }
.header-account-menu button[data-signin]:hover { background: var(--accent); filter: brightness(1.08); }
.header-account-menu .header-account-menu-out { color: #dc2626; }
html[data-theme="dark"] .header-account-menu .header-account-menu-out { color: #fca5a5; }

/* 아직 안 써 본 것 (TASK-KL-183 E). 첫 화면 아래 한 줄. 없으면 아예 안 그려진다. */
.landing-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.landing-suggest:empty { display: none; }
.landing-suggest-label { font-size: var(--font-size-2xs); color: var(--text-tertiary); }
.landing-suggest-item {
    padding: 6px 13px; border-radius: var(--radius-pill); cursor: pointer; font: inherit; font-size: var(--font-size-2xs);
    border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary);
}
.landing-suggest-item:hover { border-color: var(--accent); color: var(--accent); }

.header-btn.user-btn,
.header-btn.settings-btn,
.header-btn.files-btn,
.header-btn.lang-btn,
.theme-toggle {
    width: 36px; height: 36px; padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}
.header-btn.user-btn:hover,
.header-btn.settings-btn:hover,
.header-btn.files-btn:hover,
.header-btn.lang-btn:hover,
.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.header-btn.user-btn.active,
.header-btn.settings-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
}
.header-btn.user-btn svg,
.header-btn.settings-btn svg,
.header-btn.files-btn svg,
.header-btn.lang-btn svg,
.theme-toggle .theme-icon {
    width: 18px; height: 18px;
}

/* 언어 단추. 이웃(톱니, 해달)과 **같은 몸**을 쓰되, 언어 두 글자가 들어가므로 가로만 늘어난다.
   깃발 그림문자를 안 쓰는 이유: 윈도우 크롬은 깃발 글리프가 없어 🇰🇷이 그대로 KR 두
   글자로 떨어진다. KO 🇰🇷가 KO KR로 보이던 자리다(2026-08-20 실측).
   **지역은 단추에 안 적는다**. 머리띠는 좁고, 지역은 눌러서 펴는 목록 안에 이미 있다.
   지구본은 선 아이콘(이웃과 같은 굵기)으로 통일한다. */
.header-btn.lang-btn {
    width: auto; min-width: 36px; gap: 5px; padding: 0 8px;
}
.header-btn.lang-btn svg { opacity: .85; }
.lang-btn-code {
    /* 12px 이 이 사이트의 폰 가독 바닥이다. `smoke-hub` 가 관문에서 그 아래를 잡는다.
       08-20 에 KO KR을 한 글자 묶음으로 고치며 11px 로 내려갔다가 걸렸다.
       통은 `width:auto; min-width:36px` 이라 글자가 커져도 따라 늘어난다. */
    font-size: var(--font-size-2xs); font-weight: 700; letter-spacing: .06em; line-height: 1;
    color: var(--text-primary);
}
.theme-toggle .theme-icon { color: inherit; }

[data-theme="dark"] .theme-toggle .sun, [data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: block; }

/* ── 윈도우 컨트롤 (카모랩 데스크톱 전용) ─────────────────────────────────
   Tauri decorations:false로 OS 헤더를 끄고 헤더 우측에 minimize/maximize/close 직접 표시.
   브라우저에서는 display:none. 데스크톱일 때만 toolbox.ts가 unhide. */
.window-controls {
    display: none;
    align-items: stretch;
    margin-left: 4px;
    align-self: stretch;
}
.wc-btn {
    width: 46px;
    min-height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.wc-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.wc-close:hover { background: #e81123; color: #fff; }
.wc-btn:active { filter: brightness(0.9); }
.wc-btn svg { width: 12px; height: 12px; display: block; }
/* `.wc-btn svg { display: block }` 보다 특이도가 낮으면 진다. 작은 창에서 최대화, 복원
   아이콘이 **둘 다** 보였다 (2026-08-27). 같은 자리에서 겨루게 `.wc-btn` 을 붙인다. */
.wc-btn .wc-icon-restore { display: none; }
.window-controls[data-maximized="true"] .wc-btn .wc-icon-max { display: none; }
.window-controls[data-maximized="true"] .wc-btn .wc-icon-restore { display: block; }

.prism-theme-select {
    min-width: 0; width: 130px; padding: 5px 24px 5px 8px;
    font-size: var(--font-size-xs);
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-tertiary); cursor: pointer;
    font-family: var(--font-mono); appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235865F2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center;
    transition: all var(--transition);
}
.prism-theme-select:hover, .prism-theme-select:focus {
    color: var(--text-primary); border-color: var(--accent); outline: none;
    box-shadow: 0 0 8px var(--accent-dim);
}

/* ── Breadcrumb (Discord-style) ── */

.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--font-size-xs); color: var(--text-tertiary);
    font-family: var(--font-sans); font-weight: 500;
}
.breadcrumb-sep {
    opacity: 0.4; color: var(--text-tertiary);
}
.breadcrumb-link {
    color: var(--text-tertiary); text-decoration: none; cursor: pointer;
    transition: color var(--transition); background: none; border: none;
    font: inherit; font-size: inherit; padding: 0; font-family: inherit;
}
.breadcrumb-link:hover { color: var(--accent); }
.breadcrumb-current { color: var(--text-secondary); font-weight: 600; }

/* 내가 넣은 것이 어디로 가나 배지 (TASK-KL-352). 도구를 여는 자리에 바로 붙는다.
   상세 장 바닥까지 내려가는 사람은 적고, 대부분은 여기서 바로 쓰기 시작한다.
   색만으로 안 가른다. 글자가 늘 같은 뜻을 이고 간다(색맹, 흑백 인쇄). */
.tool-privacy-chip {
    margin-left: 10px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
    cursor: help;
}
.tool-privacy-chip[data-where="local"],
.tool-privacy-chip[data-where="assets"] { border-color: var(--success); }
.tool-privacy-chip[data-where="ours"] { border-color: var(--accent); }
.tool-privacy-chip[data-where="third-party"],
.tool-privacy-chip[data-where="yours"],
.tool-privacy-chip[data-where="ai"] { border-color: var(--warning); color: var(--text-primary); }


/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */

.main-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; position: relative; min-height: 0; }
/* 본문 바탕. 사이드바보다 한 톤 밝게 (Linear, 디스코드, LLM 챗 방식)
   도구 화면에서만. 첫 화면까지 칠하면 배경 격자와 떠다니는 그림을 덮음 (실측 확인) */
html[data-view="tool"] .main-content { background: var(--bg-primary); }
.content-body {
    padding: var(--space-lg) var(--space-lg) var(--space-2xl);
    flex: 0 0 auto;
    min-height: 100%;
    display: flex; flex-direction: column;
    padding-top: calc(var(--header-h) + var(--space-lg));
}

/* layout-full 페이지가 활성화되면 스크롤 비활성화 및 flex fill 모드로 전환 */
.main-content:has(.tool-page.layout-full.active) {
    overflow: hidden;
}
.content-body:has(.tool-page.layout-full.active) {
    flex: 1;
    min-height: 0;
    padding: 0;
    padding-top: var(--header-h); /* 헤더바 높이만 */
}

/* ═══════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════ */

.landing-page {
    display: none; flex-direction: column;
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
    flex: 1 1 auto;
    /* 화면 한 장을 채우되 **넘치면 늘어난다**. 예전엔 `calc(100svh - 52px)` 로 못 박혀
       있어서, 글씨 배율을 올리면 안쪽이 그 높이를 넘어가고 바깥은 `overflow: hidden`
       이라 아래가 통째로 잘렸다(굴릴 수도 없었다). 100% = 위 칸이 정한 만큼. */
    min-height: 100%;
    max-width: 960px; margin: 0 auto; width: 100%;
    /* `safe` = 넘칠 때는 가운데 정렬을 포기하고 위부터 쌓는다. 안 그러면 넘친 만큼 위아래로
       똑같이 삐져나가 **머리(제목)가 굴려도 안 나오는 자리**로 올라간다. */
    justify-content: center;
    justify-content: safe center;
}
.content-body:has(.landing-page.active) {
    flex: 1;
    min-height: 0;
    /* 넘치면 굴린다(예전 `hidden` = 배율 올리면 아래가 잘려 안 보임). */
    overflow-y: auto;
}
.landing-page.active { display: flex; }
[data-block][hidden] { display: none !important; }

/* ── Hero ── */

/* 찾는 칸이 주인공이다 (TASK-KL-136). 머리 부분은 이름 한 줄 + 한 마디로 줄이고,
   그 밑에 바로 칸이 온다. 예전엔 머리 아래 밑줄 장식까지 있어 칸이 한참 아래였다. */
.landing-hero {
    padding: var(--space-2xl) 0 var(--space-md);
    margin-bottom: var(--space-md);
    position: relative;
    text-align: center;
}

.landing-title {
    font-size: clamp(64px, 9vw, 96px);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.landing-title .accent { color: var(--accent); }

/* ── 브랜드 글자 = 한 곳에서만 정한다 (TASK-KL-097) ──
   머리띠 로고, 첫 화면 제목, 인트로 제목이 각자 다른 글꼴, 굵기를 갖고 있었다.
   같은 이름이 자리마다 다르게 생기면 그건 로고가 아니다. 크기만 자리별로 다르다. */
.header-logo-text,
.landing-title,
.intro-title {
    font-family: var(--font-serif);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ── 첫 화면 장식 (Y2K 하프톤 도형, TASK-KL-097) ──
   누를 수 없게 두고 글보다 뒤에 깐다. 장식이 버튼을 가로채면 그건 고장이다.
   도형, 자리, 크기, 움직임은 toolbox.ts 가 열 때마다 새로 뽑는다. */
/* 도형 자리는 이 상자의 **비율**로 잡혀 있다. 그래서 상자가 화면을 그대로 따라가면(inset:0)
   폰에서 주소창이 접힐 때마다 상자가 늘고 도형이 **뚝 하고 옮겨 간다**. 눈에 그대로 보인다.
   배경 판때기와 반대로, 이쪽은 딱 맞음보다 안 흔들림이 중요하다. 화면이 가장 클 때의
   높이(lvh)로 못 박으면 주소창이 접히든 펴지든 자리가 그대로다. 주소창이 보일 때는 아래가
   조금 잘릴 뿐인데, 어차피 가려져 있던 자리다 (TASK-KL-101). */
.home-decor { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; z-index: 0; overflow: hidden; }
/* 도구 화면에서는 한 겹 물러난다. 지우지 않는 이유: 화면을 옮길 때마다 세계가 바뀌면
   앱이 아니라 문서 여러 장이 된다. 흐리게 두면 이어지면서도 글을 안 방해한다.
   옅어지기만 하면 **같은 자리에서 색만 빠진** 것으로 보인다. 물러났다는 말은 거리다.
   그래서 무대를 화면 한가운데 기준으로 줄인다: 모든 도형이 가운데로 모이며 작아진다
   = 카메라가 뒤로 빠진 그림. 홈으로 오면 1 로 돌아오고, 자리 값 자체는 손대지 않으므로
   되돌릴 상태가 없다 (KL-149).
   **왜 무대(안쪽 상자)냐**. ① 도형 각각은 transform 을 이미 두 겹 쓴다(시차, 떠다니기),
   거기 얹으면 서로 덮어써서 아무 일도 안 일어난다. ② 바깥 상자는 화면을 잘라 내는 틀이라
   같이 줄이면 **잘리는 선이 화면 안쪽으로 들어와** 도형이 허공에서 직선으로 잘린다.
   틀은 화면에 고정, 무대만 물러난다. */
html[data-view="tool"] .home-decor { opacity: 0.35; transition: opacity .45s ease; }
html[data-view="home"] .home-decor { opacity: 0.72; transition: opacity .45s ease; }
.home-decor-stage {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    will-change: transform;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
/* 배경 장식은 첫 화면 전용. 도구 화면에선 글자 뒤 겹침으로 읽기 방해
   도구 열 때만 평면 한 색. 배경 테마 6종은 그대로, 차이는 첫 화면에서 */
html[data-view="tool"] .home-decor-stage { display: none; }
html[data-view="tool"] .app-bg {
    background-image: none;
    background-color: var(--bg-void);
}
html[data-view="tool"] .app-bg::before { display: none; }
html[data-view="home"] .home-decor-stage { transform: scale(1); }
/* 움직임을 줄여 달라고 한 사람에게는 미끄러지지 않고 바로 놓인다 */
@media (prefers-reduced-motion: reduce) { .home-decor-stage { transition: none; } }
/* 바깥 = 시차(손가락, 커서), 안쪽 = 떠다니기. 둘 다 transform 이라 한 요소에 겹치면
   서로 덮어쓴다. 나눠 놓는 것이 핵심이다 (TASK-KL-101). */
.home-decor-item {
    position: absolute;
    will-change: transform;
    /* 자리는 **JS 가 완성된 값으로** 쓴다 (home-scene.ts 의 place()).
       예전에는 여기서 `calc(var(--px)*var(--depth)+var(--ox))` 로 풀었는데, 변수 하나가
       바뀔 때마다 하위 전체 스타일을 다시 계산하고 합성기가 그 transform 을 못 맡았다 . 
       마우스를 움직이는 동안 CPU 의 77%가 이 장식이었다(실측 2026-08-08). */
    transform: translate3d(0, 0, 0);
    /* 부드러움은 CSS 전환이 아니라 계산 쪽에서 만든다. 밀림 값이 매 프레임 들어오므로
       전환을 걸면 두 번 미끄러져 흐물거린다 (TASK-KL-101). */
}
.home-decor-float { will-change: transform; }
.landing-hero, .landing-cta { position: relative; z-index: 1; }
/* 떠다니는 움직임은 **안쪽 상자**에 걸려 있다 (`.home-decor-float`). 바깥 상자만 껐던
   탓에 움직임 줄이기를 켠 사람에게도 배경이 계속 흘렀다. 규칙이 죽어 있었다. */
@media (prefers-reduced-motion: reduce) {
    .home-decor-item, .home-decor-float { animation: none !important; }
}
@media (max-width: 768px) {
    /* 크기는 만들 때 줄인다(toolbox.ts). 여기서 transform 을 걸면 떠다니는 움직임에 덮인다 */
}

/* 로고와 큰 제목에만 크롬 그라데이션 (TASK-KL-097).
   @supports 로 감싼 이유: 글자에 배경을 오려 넣는 방식이라, 안 되는 브라우저에서 색을
   투명으로 두면 **제목이 통째로 사라진다**. 되는 곳에서만 투명으로 바꾼다. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .header-logo-text {
        background: var(--chrome-grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .landing-title {
        background: var(--chrome-grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    /* 크롬을 오려 넣으면 그 안의 강조 글자도 같이 투명해진다. 원래 색을 되돌린다 */
    .landing-title .accent {
        -webkit-background-clip: initial;
        background-clip: initial;
        color: var(--accent);
    }
}

.landing-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 7px var(--brand-shadow);
}

/* ── 첫 화면. 찾는 칸이 주인공, 카드는 그 아래 한 줄 (TASK-KL-099 → KL-136) ──
   순서: 이름 → **찾는 칸** → 갈 곳 카드 한 줄 → 방문 수(Today/Total).
   카드는 아이콘+이름 한 줄짜리로 줄였다. 설명 줄을 달면 다섯 장이 두 줄을 먹고, 그만큼
   찾는 칸이 아래로 밀린다. 각 카드가 무엇인지는 들어가면 그 화면이 스스로 말한다. */

.landing-palette {
    display: flex; justify-content: center;
    width: 100%;
    /* z-index 4 = 아래 줄(카드, 오늘의 판, 전부 1)보다 위. 펼쳐진 목록이 **떠 있는 판**이
       되면서(아래 `.kp-inline .kp-list`) 뒤 순서인 카드에 가리면 안 된다. */
    position: relative; z-index: 4;
    /* **자리를 미리 잡아 둔다** (TASK-KL-201 후속).
       찾는 칸은 도구 목록이 실린 뒤에 제 모습이 된다. 그 순간 45px 에서 65px 로 자라며
       아래 있는 카드, 글을 통째로 밀어낸다. 실측: 그 밀림 하나로 CLS 가 0.02 ↔ 0.097 사이를
       오갔다(회차마다 목록이 언제 오느냐에 따라). 미리 그만큼 비워 두면 자라도 안 민다.
       폰에서는 두 줄로 접히므로(실측 57→65) 같은 값으로 덮인다. */
    min-height: 65px;
}

.landing-cta {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-md);
    padding: var(--space-lg) 0 0; text-align: center;
}
/* 첫 화면의 방문 수 (TASK-KL-098 → KL-136). 블로그와 같은 Today / Total 두 칸.
   값이 없으면 자리 자체가 안 생긴다 (`:empty`). 0번이 떠 있으면 죽은 화면으로 읽힌다. */
.landing-pulse { max-width: 620px; margin: var(--space-lg) auto 0;
    position: relative; z-index: 1; }
.landing-pulse:empty { display: none; }
/* 지금 이만큼 쓰였어요 한 줄도 **서버 대답을 기다렸다가** 들어온다 (TASK-KL-201, 2026-08-09).
   그 순간 아래가 23px 내려간다. 실사이트 밀림 0.042 가 이것이었다. 우리 기계에서는 이 요청이
   막혀(다른 출처) 칸이 비어 있어서 **로컬에서는 영영 안 보이는 종류**였다. 진짜 사이트에서 재야 보인다.
   폭이 좁아져도 한 줄이라 값이 안 변한다(360~1280px 전부 23px. 직접 재서 확인). */
.landing-pulse[data-reserving] { display: block; min-height: 23px; }
.landing-pulse-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: var(--space-md);
    font-size: var(--font-size-xs); color: var(--text-tertiary); }
.landing-pulse-stat { display: inline-flex; align-items: baseline; gap: 6px; }
.landing-pulse-k { font-family: var(--font-mono); font-size: var(--font-size-3xs); letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-tertiary); }
.landing-pulse-line b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
/* 손가락으로 누를 만해야 한다. 글자만 있는 단추라 높이가 22px 이었다(관문 검사 기준 32px).
   생김새는 그대로 두고 **누를 자리만** 넓힌다 (실측 2026-08-12). */
.landing-pulse-all { background:none; border:0; padding:5px 6px; margin:-5px -6px; font:inherit;
    min-height:32px; display:inline-flex; align-items:center;
    font-size:var(--font-size-xs); color:var(--accent); cursor:pointer; }

/* 어서 와요, ○○. 이름은 계정 닉네임이다 (TASK-KL-325).
   계정 대답이 온 뒤에 붙으므로 로그인한 사람에게만 이 한 줄이 생긴다. */
.landing-hi { margin-top: 6px; font-size: var(--font-size-sm); color: var(--accent); }

.landing-cta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}
.landing-cta-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 9px 14px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), background var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    /* 알약 말고 네모 (사용자 요청, KL-136). 위 찾는 칸, 아래 칩과 각을 맞춘다. */
    border-radius: var(--radius-sm);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.landing-cta-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-tertiary);
}
.landing-cta-card:hover .landing-cta-card-icon { color: var(--accent); }
.landing-cta-card:hover .landing-cta-card-title { color: var(--accent); }
a.landing-cta-card:hover { color: inherit; }
.landing-cta-card-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--text-tertiary);
    transition: color var(--transition);
}
.landing-cta-card-icon svg { width: 100%; height: 100%; display: block; }
.landing-cta-card-title {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
/* 다섯 장 아래 한 줄 (change.karmolab-axis). 도구 목록, 즐겨찾기, 커뮤니티: 카드 아닌 글자 링크. 카드로 올리면 유틸 사이트 첫 화면 */
.landing-more {
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}
.landing-more a,
.landing-more button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    /* WCAG 2.2 target-size: 누르는 자리 24px 이상 (test:wcag 측정) */
    min-height: 24px;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    font: inherit;
    color: var(--text-tertiary);
    text-decoration: none;
    cursor: pointer;
}
.landing-more a:hover,
.landing-more button:hover { color: var(--accent); }

/* ═══════ 첫 화면 자리잡기. 늦게 와도 안 튀게 (TASK-KL-201) ═══════
   **이 구역은 절대 뒤로 빼지 마라**. 색이 아니라 *자리* 다.
   접힘 감추기, 아이콘 크기가 늦게 오면 첫 화면이 465px→65px 로 접히며 밀림 0.24 가 난다.
   (왜, 실측값 = scripts/split-css.mjs 머리말) */
.kp-inline.kp-collapsed .kp-list,
.kp-inline.kp-collapsed .kp-live { display: none; }
/* 접힌 팔레트의 키 = 입력 한 줄. 늦은 스타일이 정하는 값(18px 패딩 + 테두리)과 같은 값을
   여기서 미리 잡아 둔다. 둘이 어긋나면 그만큼 튀므로, 고칠 때는 같이 고쳐라. */
/* 펼쳐진 목록은 **흐름 밖에 뜬다** (사용자 요청. 검색창 누르면 로고까지 움직인다).
   첫 화면은 세로 가운데 정렬이라, 목록이 자리를 차지하면 그만큼 위아래가 다시 나뉘어
   제목, 로고가 위로 밀려 올라갔다. 입력 칸 아래에 떠 있게 하면 접히든 펼쳐지든 자리 값이
   같아서 아무것도 안 움직인다(덤: 접힘/펼침 밀림도 구조적으로 0). */
.kp-inline { position: relative; }
/* 목록이 밖으로 떠야 하므로 상자는 안 자른다. 자르면 뜬 목록이 잘려 사라진다. */
.kp-inline .kp-box { display: flex; flex-direction: column; overflow: visible; }
.kp-inline .kp-list {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    z-index: 30;
}
.kp-inline .kp-input-wrap { display: flex; align-items: center; }
/* 돋보기 그림에 크기를 안 주면 **줄 높이만큼 늘어난다**. 실측 122px. 아이콘 하나가 상자를
   두 배로 키우고 있었다. 크기는 자리이므로 여기, 색은 뒤에. */
.kp-inline .kp-input-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.kp-inline .kp-kbd { flex: 0 0 auto; }
.kp-inline input.kp-input { flex: 1 1 auto; min-width: 0; padding: 12px 0; font-size: var(--font-size-md); }
/* 껍데기(바탕, 테두리, 그림자)를 여기서도 지운다 (2026-08-12).
   `.kp-box input.kp-input` 쪽에는 이 초기화가 있는데 **이 줄은 그 구역 밖**이라(첫 화면에
   박히는 인라인 팔레트는 앞 구역에 산다) 앱의 일반 `input` 차림이 되살아났다. 상자 안에
   네모가 하나 더 보이는 모양이다. 눈으로는 흘려보내기 쉬워 검사가 계산된 값으로 잡는다. */
.kp-inline input.kp-input,
.kp-inline input.kp-input:focus {
    background: none; border: none; outline: none; box-shadow: none;
}

/* ═══════ 명령 팔레트 (TASK-KL-099) ═══════
   한 벌의 규칙이 두 자리를 칠한다. 첫 화면에 박힌 것(.kp-inline)과 ⌘K 로 뜨는 것
   (.kp-overlay). 차이는 껍데기(그림자, 너비, 최대 높이)뿐이고 줄 모양은 같다. 그래야
   두 번째로 만났을 때 아까 그것으로 읽힌다. */

/* 첫 화면의 팔레트는 화면 폭을 다 쓰지 않는다. 가로로 늘어나면 아이콘, 이름, 설명이
   서로 멀어져 한 줄로 안 읽히고, 찾는 칸이 아니라 입력 양식처럼 보인다.
   떠오르는 창과 같은 폭으로 맞춰 둘이 같은 것으로 읽히게 한다. */
.kp { width: 100%; max-width: 640px; margin: 0 auto; }
.kp-box {
    display: flex; flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.kp-inline .kp-box {
    box-shadow: 0 1px 0 var(--border);
}
/* 입력을 쥐고 있는 동안 테두리가 살아난다. 지금 여기에 치면 된다는 표시. */
.kp-box:focus-within {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.kp-input-wrap {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: 0 var(--space-md);
    border-bottom: 1px solid var(--border);
}
.kp-input-icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--text-tertiary); }
/* 태그 이름까지 적는다: 아래쪽의 `input[type="text"]` 공통 규칙이 클래스 하나보다
   힘이 세서, 그냥 `.kp-input` 으로는 테두리, 바탕이 되살아난다 (실제로 그렇게 나왔다 . 
   찾는 칸 안에 또 네모난 칸이 그려졌다). */
.kp-box input.kp-input {
    flex: 1 1 auto; min-width: 0; width: auto;
    background: none; border: none; outline: none;
    box-shadow: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-md);
    /* 16px 미만이면 iOS 가 입력에 닿는 순간 화면을 확대한다. 그러면 목록이 밖으로 밀린다. */
    padding: 12px 0;
    letter-spacing: 0.01em;
}
/* 포커스 표시는 바깥 상자(.kp-box:focus-within)가 이미 한다. 공통 규칙이 여기에 또
   테두리, 바탕을 얹으면 상자 안에 네모가 하나 더 생긴다. 그것을 되돌린다.
   `.kp-box` 를 앞에 붙인 이유: 공통 규칙이 이 파일 **뒤쪽**에 있어서, 힘이 같으면
   그쪽이 이긴다. 실제로 그래서 포커스만 주면 입력 줄에 밝은 띠가 다시 생겼다. */
.kp-box input.kp-input:focus {
    background: none;
    border: none;
    box-shadow: none;
}
.kp-input::placeholder { color: var(--text-tertiary); }
.kp-kbd {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 7px;
    letter-spacing: 0.04em;
}
/* 손가락으로 쓰는 화면에는 그 키가 없다. 없는 것을 알려 주면 거짓말이 된다. */
@media (hover: none) { .kp-kbd { display: none; } }

/* 찾기 닫기 (TASK-KL-101). 폰에는 Esc 가 없다. 누르는 크기부터 확보한다. */
.kp-close {
    flex-shrink: 0;
    width: 40px; height: 40px;
    margin-right: -6px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer;
    color: var(--text-tertiary);
    border-radius: var(--radius-md);
    transition: color var(--transition), background var(--transition);
}
.kp-close svg { width: 18px; height: 18px; }
.kp-close:hover, .kp-close:focus-visible { color: var(--text-primary); background: var(--bg-hover); }

.kp-list { overflow-y: auto; overscroll-behavior: contain; }
/* 첫 화면에 박힌 칸은 **스크롤이 없다** (TASK-KL-136, 사용자 요청). 높이로 자르는 대신
   줄 수를 palette.ts 가 자른다. 자르고 안에서 또 스크롤하면 잘린 줄은 보지도 못한 채
   화면만 길어진다. 갈래 펼치기, 결과 전부 보기는 ⌘K 창이 받는다(그쪽은 스크롤 OK). */
/* 뜬 목록은 제 껍데기를 갖는다. 상자 밖으로 나왔으니 바탕, 테두리가 없으면 뒤 글자와 겹친다. */
.kp-inline .kp-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px var(--brand-shadow);
    /* 줄 수는 palette.ts 가 자른다(8줄). 높이는 **입력칸 아래 실제로 남은 자리**로 자른다 . 
       `--kp-space` 는 palette.ts 가 열 때(그리고 창 크기가 바뀔 때) 재서 넣는다. 값이 아직
       없을 때만 vh 로 어림잡는다. 배율을 올리면 남는 자리가 줄고, 안에서 굴러간다. */
    max-height: min(var(--kp-space, 46vh), 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
/* 첫 화면에서는 누르기 전까지 접혀 있다 (TASK-KL-129). 아직 안 물어본 답이 화면 절반을
   차지하지 않게. 누르면 그 자리에서 펼쳐진다. */
.kp-inline.kp-collapsed .kp-list,
.kp-inline.kp-collapsed .kp-live { display: none; }
.kp-overlay .kp-list { max-height: min(60vh, 520px); }

.kp-section {
    padding: var(--space-sm) var(--space-md) 4px;
    font-family: var(--font-mono);
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kp-row {
    display: flex; align-items: center; gap: var(--space-md);
    /* 자식 줄의 세로 이음선이 이 줄을 기준으로 그려진다 (.kp-row-child::before) */
    position: relative;
    /* 손가락 표적 44px. 좁히면 옆줄이 눌린다. */
    padding: 11px var(--space-md);
    min-height: 44px;
    cursor: pointer;
    border-left: 2px solid transparent;
}
/* 하이라이트는 진짜 포커스가 아니라 표시다 (입력이 포커스를 계속 쥔다).
   그래서 :hover 가 아니라 클래스로 칠한다. 키보드와 마우스가 같은 줄을 가리켜야 한다. */
.kp-row.is-active {
    background: var(--accent-subtle);
    border-left-color: var(--accent);
}
.kp-icon {
    width: 18px; height: 18px; flex: 0 0 auto;
    color: var(--text-tertiary);
}
.kp-icon svg { width: 100%; height: 100%; }
.kp-row.is-active .kp-icon { color: var(--accent); }
.kp-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.kp-row-title {
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kp-row-desc {
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.4;
}
/* 어디가 걸렸는지 눈으로 확인시켜 준다. 배경을 칠하면 줄 강조와 싸우므로 글자만 세운다. */
.kp-mark {
    background: none;
    color: var(--accent);
    font-weight: 700;
}
/* 답 줄. 값이 주인공이라 이름표보다 크게 놓는다 (TASK-KL-110) */
.kp-row-answer .kp-icon { color: var(--accent); }
.kp-answer-value {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kp-row-answer.is-active .kp-answer-value { color: var(--accent); }

.kp-row-badge {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
}

.kp-empty { padding: var(--space-lg) var(--space-md); text-align: center; }
.kp-empty p { font-size: var(--font-size-xs); color: var(--text-secondary); margin-bottom: var(--space-sm); }
.kp-ask { display: block; margin: 0 auto var(--space-sm); padding: 7px 14px; font: inherit;
    font-size: var(--font-size-xs); color: var(--accent); background: none;
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.kp-ask:hover { border-color: var(--accent); }
.kp-ask[disabled] { color: var(--text-tertiary); cursor: default; }
.kp-ask-hit { display: flex; flex-direction: column; gap: 3px; width: 100%; margin-bottom: var(--space-sm);
    padding: 10px 12px; text-align: left; font: inherit; cursor: pointer;
    background: var(--bg-secondary); border: 1px solid var(--accent); border-radius: var(--radius-sm); }
.kp-ask-hit b { font-size: var(--font-size-sm); color: var(--text-primary); }
.kp-ask-hit span { font-size: var(--font-size-2xs); color: var(--text-tertiary); }
.kp-ask-none { font-size: var(--font-size-2xs); color: var(--text-tertiary); margin-bottom: var(--space-sm); }
.kp-empty-link { font-size: var(--font-size-2xs); color: var(--accent); text-decoration: none; }
.kp-empty-link:hover { text-decoration: underline; }

/* 아직 아무것도 안 써 본 사람이 보는 자리. 여기에 이만큼 있다 */
.kp-browse {
    display: flex; flex-wrap: wrap; gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md) var(--space-md);
}
.kp-browse-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: var(--font-size-2xs);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}
.kp-browse-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.kp-browse-n { font-family: var(--font-mono); color: var(--text-tertiary); }
/* 전체 도구 목록 →은 갈래 칩과 **다른 것**이다. 좁히는 길이 아니라 딴 장으로 나가는 문.
   같은 모양이면 갈래 하나로 읽히므로, 바탕을 비우고 점선으로 구분한다 (2026-08-19). */
.kp-browse-chip--index {
    background: none;
    border-style: dashed;
    text-decoration: none;
    color: var(--text-tertiary);
}
.kp-browse-chip--index:hover { border-style: solid; color: var(--text-primary); }
/* 이번 주에 많이 쓴 도구 (TASK-KL-136). 갈래 칩과 같은 모양이되 도구로 바로 간다.
   줄(row)로 냈으면 44px × 6 = 264px 를 먹는다. 칩이면 한 줄이다. */
.kp-browse-tools .kp-browse-chip { border-color: var(--accent-dim); color: var(--text-primary); }
.kp-browse-tools .kp-browse-chip:hover { border-color: var(--accent); }

/* 잘라낸 결과가 있다고 알리는 줄 (TASK-KL-136). 누르면 ⌘K 창이 같은 검색어로 열린다. */
.kp-more {
    display: block; width: 100%;
    background: none; border: none;
    border-top: 1px solid var(--border);
    padding: 10px var(--space-md);
    color: var(--accent);
    font-family: inherit;
    font-size: var(--font-size-2xs);
    cursor: pointer;
    text-align: center;
}
.kp-more:hover { background: var(--bg-hover); }

/* 갈래를 펼친 뒤 되돌아가는 줄. 이게 없으면 한 번 들어간 사람이 갇힌다. */
.kp-back {
    display: flex; align-items: center; gap: 6px;
    width: 100%;
    background: none; border: none;
    border-bottom: 1px solid var(--border);
    padding: 10px var(--space-md);
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: var(--font-size-2xs);
    cursor: pointer;
    text-align: left;
}
.kp-back:hover { color: var(--accent); }

/* 묶음 안의 탭. 부모 바로 밑에 한 칸 들여 붙는다. 한 덩어리로 읽히게. */
.kp-row-child {
    padding-left: calc(var(--space-md) + 22px);
}
.kp-row-child .kp-row-title { font-weight: 400; color: var(--text-secondary); }
.kp-row-child .kp-icon { opacity: 0.55; }
/* 부모와 이어져 있다는 표시. 들여쓰기만으로는 목록이 그냥 어긋나 보인다. */
.kp-row-child::before {
    content: '';
    position: absolute;
    left: calc(var(--space-md) + 8px);
    top: 0; bottom: 0;
    border-left: 1px solid var(--border);
}

/* `.kl-sr`, `.kp-live` 는 옆줄 목록 아래(첫 CSS 구역)로 옮겼다 (2026-09-05). 여기 두면 뒤로 빠진다 */

/* ── ⌘K 로 뜨는 껍데기 ── */
.kp-scrim {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex; align-items: flex-start; justify-content: center;
    /* 화면 한가운데보다 조금 위. 목록이 아래로 자라날 자리를 미리 비워 둔다. */
    padding: 12vh var(--space-md) var(--space-md);
}
.kp-overlay { max-width: 640px; }
.kp-overlay .kp-box {
    background: var(--glass-strong);
    backdrop-filter: var(--glass-blur);
    border-color: var(--border-hover);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
    .kp-overlay { animation: kp-rise 140ms ease-out; }
    @keyframes kp-rise {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: none; }
    }
}

/* 좁은 화면에서는 화면을 통째로 쓴다. 작은 창을 띄우면 키보드가 그것을 덮는다. */
@media (max-width: 640px) {
    .kp-scrim { padding: 0; }
    .kp-overlay { max-width: none; width: 100%; height: 100%; }
    .kp-overlay .kp-box { height: 100%; border: none; border-radius: 0; }
    .kp-overlay .kp-list { max-height: none; flex: 1 1 auto; }
}
.landing-dev-links {
    margin-top: var(--space-md);
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
}
.landing-dev-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
}
.landing-dev-link-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* 마스코트 크기는 설정(환경 설정 → 마스코트)이 정한다. 화면마다 다르게 주면
   설정에서 고른 값이 홈에서만 안 먹는 것처럼 보인다. 값의 주인은 하나다. */

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */

.status-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10000;
    font-size: var(--font-size-xs); font-weight: 600; padding: 5px 12px;
    opacity: 0; transition: opacity var(--transition-slow);
    pointer-events: none; font-family: var(--font-mono);
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-float);
}
.status-toast.visible { opacity: 1; }
.status-toast.success {
    background: var(--success-subtle); color: var(--success);
    border-color: rgba(34, 197, 94, 0.2);
}
.status-toast.error {
    background: var(--error-subtle); color: var(--error);
    border-color: rgba(239, 68, 68, 0.2);
}
.status-toast.has-detail { cursor: default; pointer-events: auto; padding: 8px 12px; max-width: 90vw; display: flex; align-items: center; gap: 8px; }
.status-toast-copy {
    /* 흰색 반투명은 라이트에서 사라진다. 토스트 글자색을 따라가게 한다 */
    flex-shrink: 0; padding: 4px 8px; font-size: var(--font-size-2xs); background: color-mix(in srgb, currentColor 12%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: var(--radius-sm); cursor: pointer;
    color: inherit; font-family: inherit; white-space: nowrap;
}
.status-toast-copy:hover { background: color-mix(in srgb, currentColor 22%, transparent); }
.status-toast-detail {
    display: none; margin-top: 6px; font-size: var(--font-size-2xs); font-weight: 400;
    opacity: 0.9; white-space: pre-wrap; word-break: break-word;
    max-height: 100px; overflow-y: auto;
}
.status-toast-detail.open { display: block; }

/* ═══════════════════════════════════════
   TOOL PAGES
   ═══════════════════════════════════════ */

/* 도구 화면의 머리는 **작아야 한다** (TASK-KL-133).
   제목, 설명, 횟수가 첫 화면의 4분의 1을 먹고 있었다. 도구를 쓰러 온 사람에게 첫 화면은
   입력칸이 어디냐이지 이 도구 이름이 무엇이냐가 아니다. 이름은 이미 알고 눌러서 왔다.
   그래서 브랜드 제목(첫 화면)과 달리 여기서는 크기를 줄이고 여백을 좁힌다. */
.tool-page-hero {
    /* 왼쪽정렬. 제목만 가운데면 세로 축이 둘로 갈림
       구분선 제거. 앱 화면의 제목은 표지가 아니라 이름표 */
    text-align: left;
    padding: 0 0 var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: none;
}
.tool-page-hero-title {
    /* 세리프는 로고 세 자리 전용 (머리띠, 첫 화면, 인트로)
       도구마다 세리프면 로고가 로고로 안 읽힘. 크기도 26 에서 20 으로 */
    font-family: var(--font-sans);
    font-size: var(--font-size-title); font-weight: 700; letter-spacing: -0.01em;
    line-height: 1.2; color: var(--text-primary); margin-bottom: 2px;
}
.tool-page-hero-desc {
    font-size: var(--font-size-2xs); color: var(--text-tertiary); letter-spacing: 0.01em;
}
/* 브라우저에서 연 데스크톱 전용 도구 (TASK-KL-349). 빈 자리 대신 이 한 줄이 선다.
   경고가 아니라 안내다: 아래 설명은 그대로 읽히므로 색을 세게 쓰지 않는다. */
.tool-desktop-only-note {
    margin: var(--space-md) 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* 도구를 다 쓴 사람에게 다음 자리 (TASK-KL-098). 도구 상세는 검색으로 들어오는 정문인데
   거기서 사이트의 나머지로 가는 길이 하나도 없었다. 맨 아래에만 둔다. 위는 도구의 자리다. */
.tool-page-next { margin: var(--space-xl) 0 var(--space-md); padding-top: var(--space-md);
    border-top: 1px solid var(--border); }
.tool-page-next-head { font-size: var(--font-size-3xs); font-weight: 700; color: var(--text-tertiary); margin-bottom: 10px; }
.tool-page-next-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-page-next-link { flex: 1 1 200px; display: flex; flex-direction: column; gap: 3px;
    padding: 12px 14px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-secondary); color: inherit; text-decoration: none; cursor: pointer; font: inherit;
    transition: border-color var(--transition), background var(--transition); }
.tool-page-next-link:hover { border-color: var(--accent); background: var(--bg-tertiary); }
.tool-page-next-link b { font-size: var(--font-size-sm); color: var(--text-primary); }
.tool-page-next-link span { font-size: var(--font-size-3xs); color: var(--text-tertiary); }

/* `layout-full` 은 도구가 화면 끝까지 쓰라고 바깥 여백을 0 으로 만든다(`.content-body` padding 0).
   그런데 그 아래 붙는 이 안내까지 여백을 잃어 **화면 가장자리에 딱 붙었다**. 도구 몸통과
   엉겨 잘린 것처럼 보인다. 재 보니 `full` 도구 10개가 전부 왼, 오른 0 이었다
   (`npm run audit:footer`, 2026-08-09). 패널은 그대로 두고 이 안내에만 여백을 돌려준다.
   `flex: 0 0 auto` 도 함께. 안 그러면 짧은 창에서 눌려 글자가 서로 포갠다. */
.tool-page.layout-full > .tool-page-next {
    flex: 0 0 auto;
    margin: 0;
    padding: var(--space-md) var(--space-xl) var(--space-lg);
}

/* 도구 이름 밑의 지금까지 N번 열렸어요 (TASK-KL-098).
   아직 아무도 안 연 도구에는 글자가 안 들어가므로, 그때는 자리도 없어야 한다. */
.tool-page-hero-count { margin: 6px 0 0; font-size: var(--font-size-3xs); color: var(--text-tertiary); }
.tool-page-hero-count { display: none; }
.tool-page-hero-count b { color: var(--text-secondary); font-weight: 700; font-variant-numeric: tabular-nums; }

.layout-full .tool-page-hero {
    padding: var(--space-md) 0 var(--space-sm);
    margin-bottom: var(--space-sm);
}
.layout-full .tool-page-hero-title { font-size: var(--font-size-title); }

.tool-page {
    display: none;
    position: relative;
}
.tool-page.active {
    display: block;
    flex: 0 0 auto;
    animation: fadeIn 200ms ease;
}
.tool-page.layout-full { display: none; }
.tool-page.layout-full.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tool-page.layout-full > .tab-row { flex-shrink: 0; }
.tool-page.layout-full > .tab-panel { display: none; }
.tool-page.layout-full > .tab-panel.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
/* 도구 한 판의 공통 뼈대. 가운데 상자 없이 화면 폭 전부
   예전: form 만 테두리와 바탕, wide 는 맨몸. 도구 옮길 때마다 좌우 튐
   실측: Linear, Grafana, 디스코드, LLM 챗 전부 가운데 상자 안 씀
   (play.grafana.org 바탕 #111217, 사이드바 320px 배경색 없음, 항목 14px 에 행 32px)
   full 은 제외. 화면 끝까지 쓰는 것이 목적 */
.tool-page.layout-form,
.tool-page.layout-wide {
    max-width: none;
    margin: 0 0 var(--space-2xl);
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    position: relative;
}

/* 세로 리듬. 형제끼리 최소 간격
   인접 margin 합쳐짐이라 기존 여백이 크면 그쪽이 이김. 위젯 파일 안 건드리는 방식 */
.tool-page.layout-form > .tab-panel.active > * + *,
.tool-page.layout-wide > .tab-panel.active > * + * {
    margin-top: var(--space-md);
}

/* ── Tabs ── */

.tab-row {
    display: flex; gap: 2px;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-xs);
    position: relative;
    /* 여러 도구를 탭으로 묶으면서 탭이 8개까지 늘었다. 좁은 화면에서 줄바꿈되면 글자가
       세로로 쪼개지고, 그냥 두면 뒤쪽 탭이 잘려 손이 닿지 않는다 → 옆으로 밀어서 본다. */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab-row--sidebar { overflow-x: visible; }
.tab-row::after { display: none; }
.tab-btn {
    flex: none;
    white-space: nowrap;
    padding: 10px 18px; font-size: var(--font-size-xs); font-weight: 700;
    color: var(--text-tertiary); background: transparent; border: none;
    border-bottom: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); font-family: var(--font-mono);
    margin-bottom: -1px; letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}
.tab-btn:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}
.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--accent-subtle);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── 탭 다수: 세로 목록 (문서 위젯 `tabLayout: 'sidebar'`) ── */
.tool-tab-sidebar-layout {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    width: 100%;
}
.tool-page.layout-wide .tool-tab-sidebar-layout {
    max-width: 100%;
}
.tool-page.layout-wide .tab-row.tab-row--sidebar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 0 var(--space-md) 0 0;
    margin-bottom: 0;
    min-width: min(200px, 30vw);
    max-width: 260px;
    flex-shrink: 0;
    max-height: min(72vh, 640px);
    overflow-x: hidden;
    overflow-y: auto;
    gap: 4px;
    align-items: stretch;
}
.tool-page.layout-wide .tab-row--sidebar .tab-btn {
    text-align: left;
    justify-content: flex-start;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0.03em;
    font-weight: 600;
    font-size: var(--font-size-2xs);
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    white-space: normal;
    word-break: break-word;
}
.tool-page.layout-wide .tab-row--sidebar .tab-btn.active {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
}
.tool-tab-sidebar-layout .tab-panels-column {
    flex: 1;
    min-width: 0;
}
.tool-page.layout-wide .tool-tab-sidebar-layout .tab-panel.active {
    overflow-x: auto;
}

@media (max-width: 720px) {
    .tool-tab-sidebar-layout {
        flex-direction: column;
        gap: var(--space-md);
    }
    .tool-page.layout-wide .tab-row.tab-row--sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        max-width: none;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0 0 var(--space-sm) 0;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .tool-page.layout-wide .tab-row--sidebar .tab-btn {
        flex: 0 0 auto;
        width: auto;
        max-width: 11rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tool-page.layout-wide .tab-row--sidebar .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }
}

/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */

/* 항목 하나에 카드 하나 + 큰 여백이라 세로가 한없이 길어졌다. QR 만들기는 결과가
   첫 화면 밖으로 밀려나 있었다. 카드는 유지하되 숨 쉬는 정도만 남긴다 (TASK-KL-133). */
.field-group {
    margin-bottom: var(--space-sm);
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    position: relative;
    border-radius: var(--radius-sm);
}
.field-label {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
/* 입력칸을 감싼 라벨(<label>이름<input></label>)은 세로 쌓기
   가로 flex 면 이름이 flex 항목으로 눌려 두 줄로 쪼개짐
   (jqplay 의 고르는 말 이 고르는 / 말 로 잘림. 1600px 화면 실측) */
.field-label:has(input, select, textarea, output) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
/* 한 줄 안에 놓는 이름표. 아래 여백이 있으면 가로 줄에서 4px 떠 보인다 */
.field-label.is-inline { margin-bottom: 0; white-space: nowrap; font-weight: 500; }
.field-row { display: flex; align-items: center; justify-content: space-between; }

/* 누를 크기 (WCAG 2.2 AA 2.5.8, 2026-09-01)
   체크 상자와 라디오는 상자 자체가 13px 이다. 그 크기를 키우면 생김새가 달라지므로,
   **이어진 이름표를 누를 곳으로** 키운다. `for` 로 이어져 있어 눌러도 같은 일
   설정 판의 홀로 선 링크도 같은 값으로. 글줄 안에 든 링크는 조항이 봐주므로 안 건드린다 */
.field-row > label,
.tool-checkline,
.settings-row > label {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
}
.settings-section a:not([class]),
.settings-row a:not([class]) {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
}

/* number, date, url, search 가 빠져 있어서 그 칸들만 브라우저 기본 모양(밝은 배경, 낮은 높이)으로
   튀었다. :not() 으로 뒤집으면 특이도가 부풀어 위젯의 클래스 규칙(폭 지정 등)을 이겨 버리므로,
   타입을 그대로 열거해 특이도를 유지한다. 새 타입을 쓰면 여기 한 줄 추가. */
textarea,
input[type="text"], input[type="password"], input[type="number"], input[type="search"],
input[type="url"], input[type="email"], input[type="tel"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 2px solid transparent;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    /* ★ **줄 높이를 못 박는다** (2026-09-04 실측). 안 적으면 `normal` 이라 글꼴 지표를 따라감
       `fonts.css` 는 첫 그림 뒤에 붙는데(일부러 미룬다), 그 순간 입력칸이 35px 에서 41px 로
       자라 줄마다 6px 씩, 칸 하나에 18px 이 밀림. 그 아래가 통째로 내려간 것이 도구 장 밀림(CLS)
       0.148 의 몸통. 값은 글꼴이 온 뒤의 높이 그대로라 사람 눈에는 안 바뀜 */
    line-height: 1.2;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    /* `all` 이면 테두리 (outline) 까지 늦게 와 자판 초점 표시가 한 박자 뒤. 칠하는 것만 (WCAG 2.4.11, 2026-09-22) */
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
    resize: vertical;
}
/* 자판으로 온 초점은 바로 보이는 테두리. 마우스 초점은 아래 :focus 의 칠만 (WCAG 2.4.7, 2.4.11) */
textarea:focus-visible,
input[type="text"]:focus-visible, input[type="password"]:focus-visible, input[type="number"]:focus-visible, input[type="search"]:focus-visible,
input[type="url"]:focus-visible, input[type="email"]:focus-visible, input[type="tel"]:focus-visible,
input[type="date"]:focus-visible, input[type="time"]:focus-visible, input[type="datetime-local"]:focus-visible, input[type="month"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
textarea:focus,
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="search"]:focus,
input[type="url"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="date"]:focus, input[type="time"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus {
    border-color: var(--accent);
    border-left-color: var(--accent);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px var(--accent-dim);
}
textarea::placeholder, input::placeholder { color: var(--text-tertiary); }
textarea { min-height: 120px; line-height: 1.6; }

select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 2px solid transparent;
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235865F2' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
select:focus {
    border-color: var(--accent);
    border-left-color: var(--accent);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px var(--accent-dim);
}
select option { background: var(--bg-secondary); color: var(--text-primary); }

input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }

/* 즐겨찾기 검색창 너비 제한 */
.fav-top-row .landing-search-wrap {
    flex: none !important;
    width: 220px !important;
    max-width: 220px !important;
}
.range-value {
    font-size: var(--font-size-xs); font-weight: 700; color: var(--accent);
    font-variant-numeric: tabular-nums; font-family: var(--font-mono);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; font-size: var(--font-size-xs); font-weight: 600; font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer; transition: all var(--transition); user-select: none;
    letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.97); }
/* 못 누르는 단추는 **못 누르게 생겨야 한다**. 여태 기본 단추에만 흐림이 걸려 있어서, 곁들이
   단추(내려받기 등)는 비활성일 때도 멀쩡한 글자로 보였다. 눌러 보고서야 안 되는 걸 안다.
   (TASK-KL-133) */
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary {
    /* 폭은 **도구가 정한다.** 공통에서 좁혀 봤더니(2026-08-08 실측) 어떤 도구는 나아지고
       어떤 도구는 실행 단추가 곁들이 단추들과 한 줄에 뒤섞여 되레 나빠졌다. 배치는 도구마다
       다르므로 여기서 일괄로 정할 일이 아니다 (TASK-KL-133). */
    width: 100%;
    /* 누르는 것에만 크롬감 (TASK-KL-097). 넓은 면은 그대로 종이로 둔다 */
    background: var(--chrome-grad);
    color: var(--fill-strong-ink);
    padding: 12px 18px; margin-top: var(--space-md);
    border-color: transparent; font-weight: 800;
    border-radius: var(--radius-sm);
    text-shadow: none;
    font-family: var(--font-mono);
    letter-spacing: 0.1em; text-transform: uppercase;
}
.btn-primary:hover {
    background: var(--chrome-grad-hover);
    border-color: transparent;
}
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-ghost {
    background: none; color: var(--text-secondary);
    padding: 4px 10px; font-size: var(--font-size-xs); border-color: transparent;
    /* 누를 크기 24px (WCAG 2.2 AA 2.5.8). 4px 안 여백에 12px 글자라 22px
       가로도 같음. 글자 한 자짜리 버튼이 22px 폭으로 걸림 (2026-09-05) */
    min-height: 24px;
    min-width: 24px;
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-subtle); }

/* 곁들이 버튼 (테두리 있는 보통 크기)
   옛 tl-btn 과 그 밖 도구가 같은 모양을 따로 적던 자리. 킷에 이 모양이 없던 탓 */
.btn-outline {
    background: var(--bg-secondary); border-color: var(--border); color: var(--text-primary);
    border-radius: var(--radius-sm); padding: 6px 12px; white-space: nowrap;
}
.btn-outline:hover { background: var(--bg-hover); border-color: var(--text-tertiary); }

/* 머리띠 버튼. 좁고 고정폭 글씨. 흥이 옛 hu-btn 으로 쓰던 모양 */
.btn-tool {
    border-color: var(--border); border-radius: var(--radius-sm);
    background: var(--bg-tertiary); color: var(--text-primary);
    min-height: 30px; padding: 4px 9px;
    font: 11px var(--font-mono); font-weight: 400; letter-spacing: normal;
    white-space: nowrap;
}
.btn-tool:hover { border-color: var(--border-hover); background: var(--bg-hover); }
.btn-tool.is-on { color: var(--accent-hover); background: var(--accent-dim); border-color: var(--accent); }
/* 켠 상태의 위험 버튼(지우기 모드 등). 테두리만으로는 켜졌는지 안 보인다 */
.btn-danger.is-on { background: var(--error-subtle); border-color: var(--error); }
@media (max-width: 850px) { .btn-tool { min-height: 38px; } }
.random-count-preset.active { color: var(--accent); background: var(--accent-subtle); }

.btn-accent {
    background: var(--fill-strong); color: var(--fill-strong-ink);
    border-color: var(--fill-strong); font-weight: 700;
    border-radius: var(--radius-sm);
}
.btn-accent:hover { background: var(--fill-strong-hover); border-color: var(--fill-strong-hover); }

.btn-danger {
    background: none; color: var(--error); border-color: var(--border);
    border-radius: var(--radius-sm);
}
.btn-danger:hover { background: var(--error-subtle); border-color: var(--error); }

.btn-secondary {
    background: var(--secondary); color: var(--bg-void);
    border-color: var(--secondary); font-weight: 700;
    border-radius: var(--radius-sm);
}
.btn-secondary:hover { background: var(--secondary-hover); }

/* ── Collapsible ── */

.collapsible-trigger {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--font-size-2xs); font-weight: 700; color: var(--text-tertiary);
    cursor: pointer; padding: 6px 10px; margin-bottom: 6px;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-left: 2px solid var(--accent-dim);
    font-family: var(--font-mono); letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--transition);
}
.collapsible-trigger:hover {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-subtle);
}
.collapsible-trigger .chevron { width: 12px; height: 12px; transition: transform var(--transition); }
.collapsible-trigger.open .chevron { transform: rotate(90deg); }
.collapsible-trigger.open {
    color: var(--accent);
    border-left-color: var(--accent);
}
.collapsible-body {
    display: none; padding: 8px 0 12px;
    border-left: 1px solid var(--border);
    margin-left: 8px; padding-left: 12px;
}
.collapsible-body.open { display: block; }

/* ── Result Box ── */

.result-box {
    margin-top: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    overflow: hidden; display: none;
    position: relative;
}
.result-box::before, .result-box::after { display: none; }
.result-box.visible {
    display: block;
    animation: fadeInUp 250ms ease;
    box-shadow: var(--shadow-float);
}

.result-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    position: relative;
}
.result-header::after { display: none; }
.result-label {
    font-size: var(--font-size-2xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-tertiary);
    font-family: var(--font-mono);
    display: flex; align-items: center; gap: 6px;
}
.result-label.success { color: var(--success); }
.result-label.error { color: var(--error); }
.result-content {
    padding: 14px; font-size: var(--font-size-xs); line-height: 1.7;
    color: var(--text-primary); white-space: pre-wrap; word-break: break-all;
    font-family: var(--font-mono); max-height: 320px; overflow-y: auto;
}
.mono-input { font-family: var(--font-mono); font-size: var(--font-size-xs); }


/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

/* 화면을 옮길 때 **브라우저가** 이어 준다 (TASK-KL-128 ②, View Transitions).
 *
 * 지금까지 도구 화면 사이 이동은 흰 화면이 한 번 스쳤다. 문서가 통째로 바뀌기 때문이다.
 * 그걸 안 보이게 하려고 앱을 한 장짜리로 만드는 것이 흔한 수인데, 그러면 그 한 장이
 * 무거워진다(지금 도구 화면이 앱 셸을 통째로 싣는 이유가 그것이다).
 * 브라우저가 대신 해 준다: 두 문서에 이 한 줄씩만 있으면 떠나는 화면과 오는 화면을
 * 스스로 찍어서 이어 붙인다. 자바스크립트는 한 줄도 안 든다.
 *
 * 머리띠에는 이름을 준다. 이름이 있는 것은 **같은 것**으로 보고 자리를 이어 준다.
 * 안 주면 머리띠까지 같이 흐려졌다 나타나서, 옮길 때마다 화면이 통째로 깜빡인다.
 * 이름은 한 화면에 하나뿐이어야 한다(둘이면 전환이 통째로 취소된다).
 */
@view-transition { navigation: auto; }
.header-bar { view-transition-name: karmolab-header; }

/* 움직임을 줄여 달라고 한 사람에게는 잇는 그림만 끄고, 이동 자체는 그대로 둔다. */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }


.spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(124, 58, 237, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ═══════════════════════════════════════
   SIDEBAR NAV (늘 있다. 고르는 것은 접힘뿐)
   ═══════════════════════════════════════ */

/* 왼쪽 목록은 상시 구조물이다 (2026-08-30). 예전엔 설정에서 왼쪽 목록/상단 메뉴 택일이었고
   상단 메뉴 끄기 스위치가 따로 있어, 둘 다 끄면 갈 길이 하나도 안 남았다. 스위치 둘을 걷고
   접힘 하나만 남긴다: 펼침 224px <-> 레일 56px. Claude, VSCode 와 같은 짜임. */
.header-bar-right { grid-column: 2; }

/* 왼쪽 목록
   실측: Grafana 320px, it-tools 240px, transform 196px 전부 이름 상시 노출
   유리(backdrop-filter) 제거. 뒤 비침으로 배경 격자가 글자에 겹침 */
.sidebar {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-void);
    border-right: 1px solid var(--border);
    flex-direction: column;
    flex-shrink: 0;
    /* 자르는 것은 안쪽 칸(.sidebar-nav, .sidebar-head)이 맡는다. 여기서 자르면 바닥의
       계정 메뉴와 알림 판이 옆줄 안에 갇힌다 */
    overflow: visible;
    z-index: 50;
    transition: width var(--transition);
}

.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition);
}

/* 접힌 레일. 폭 한 값만 바꾸면 목록과 본문 여백이 같이 따라온다 */
html[data-sidebar="rail"] { --sidebar-width: 56px; }

/* 손 떨림 방지: 폭이 움직이는 동안 글자가 줄바꿈되며 튀지 않게 */
.sidebar-nav, .sidebar-head, .sidebar-footer { min-width: var(--sidebar-width); }

/* 접힘을 싫어하는 사람도 있다. 움직임 줄이기를 켜면 폭이 즉시 바뀐다 */
@media (prefers-reduced-motion: reduce) {
    .sidebar, .main-content { transition: none; }
}

/* 머리띠의 접기 버튼. 접혀도 자리가 안 움직인다 */
.sidebar-toggle {
    flex-shrink: 0;
    width: 32px; height: 32px; padding: 0;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md); color: var(--text-secondary);
}
.sidebar-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
html[data-sidebar="rail"] .sidebar-toggle svg { opacity: 0.65; }

/* ── 레일(56px) 에서 감추는 것 ──
   이름, 갈래 라벨, 도구 수, 화살표, 단축키 글씨. 아이콘만 남는다.
   아이콘은 가운데로. 224px 때의 왼쪽 정렬 여백이 그대로면 아이콘이 왼쪽 벽에 붙는다. */
html[data-sidebar="rail"] .sidebar .nav-item-text,
html[data-sidebar="rail"] .sidebar .sidebar-group-label,
html[data-sidebar="rail"] .sidebar .sidebar-group-count,
html[data-sidebar="rail"] .sidebar .sidebar-group-trigger .chevron,
html[data-sidebar="rail"] .sidebar .sidebar-dev-links-text,
html[data-sidebar="rail"] .sidebar .sidebar-search-kbd,
html[data-sidebar="rail"] .sidebar .header-nav-section-empty {
    display: none;
}

html[data-sidebar="rail"] .sidebar-nav { padding: var(--space-sm) 0; }
html[data-sidebar="rail"] .sidebar-head { padding: var(--space-sm) 8px 0; }
html[data-sidebar="rail"] .sidebar-search-box { padding: 0; justify-content: center; }
html[data-sidebar="rail"] .sidebar-search-text { display: none; }
/* 레일의 사람 자리. 얼굴만 */
html[data-sidebar="rail"] .sidebar-user { justify-content: center; }
html[data-sidebar="rail"] .sidebar-user .header-account { flex: none; }
html[data-sidebar="rail"] .sidebar-user .header-account-btn { width: auto; padding: 3px; }
html[data-sidebar="rail"] .sidebar-user .header-account-name { display: none; }
html[data-sidebar="rail"] .sidebar-user .header-account-menu,
html[data-sidebar="rail"] .sidebar-user .kl-bell-panel { left: 100%; margin-left: 8px; bottom: 0; }

html[data-sidebar="rail"] .sidebar .nav-item,
html[data-sidebar="rail"] .sidebar .sidebar-group-trigger,
html[data-sidebar="rail"] .sidebar .sidebar-dev-links {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}

/* 갈래는 레일에서 아이콘 한 줄로만 남는다. 그 안의 도구 목록까지 아이콘으로 깔면
   234개가 세로로 늘어서 레일이 목록이 되어 버린다. 누르면 펼치면서 그 갈래를 연다
   (`toolbox.ts` 의 sidebar-group--cat 처리). */
html[data-sidebar="rail"] .sidebar-group--cat .sidebar-group-body { display: none; }
html[data-sidebar="rail"] .sidebar-group--cat + .sidebar-group--cat { margin-top: 0; }
html[data-sidebar="rail"] .sidebar-group-icon { margin-right: 0; width: 18px; height: 18px; opacity: 0.9; }

/* 아이콘은 절대배치로 왼쪽 12px 에 박혀 있다. 224px 에서는 그 자리가 맞지만 56px 에서는
   왼쪽 벽에 붙는다. 레일에서만 흐름 배치로 돌려 가운데로 온다.
   행 높이도 같이 못박는다. 글자가 빠지면 행이 눌려 아이콘끼리 촘촘해진다 (실측 28px -> 32px) */
html[data-sidebar="rail"] .sidebar .nav-icon {
    position: static;
    transform: none;
    width: 18px;
    height: 18px;
}
html[data-sidebar="rail"] .sidebar .nav-item,
html[data-sidebar="rail"] .sidebar .sidebar-group-trigger,
html[data-sidebar="rail"] .sidebar .sidebar-dev-links {
    min-height: 32px;
    margin: 1px 8px;
    border-radius: var(--radius-sm);
}

/* 왼쪽 세로줄은 레일에서 아이콘을 밀어낸다. 어차피 지금 옆줄에는 `.nav-item.active` 를
   붙이는 자리가 없다 (실측 2026-08-30, 붙는 것은 폰 띠의 홈 하나뿐) */
html[data-sidebar="rail"] .sidebar .nav-item { border-left-width: 0; }

/* 라벨이 사라지면 위 세 칸과 갈래가 한 덩이로 붙어 줄 하나로 가름
   첫 갈래는 갈래 아닌 무리 바로 뒤. `:first-of-type` 은 여기서 안 걸림 (형제가 다 div) */
html[data-sidebar="rail"] .sidebar-group:not(.sidebar-group--cat) + .sidebar-group--cat {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

/* 화면 끝까지 쓰는 도구도 왼쪽 여백 유지
   목록 56px 접힘 시절엔 0 이 맞았음. 224px 상시 펼침 뒤로는 목록이 도구를 덮음
   (smoke:newtools 가 사이드바의 버튼 가림으로 잡음) */

.sidebar-nav {
    padding: var(--space-md) var(--space-sm);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 아래 링크는 5개다. 세로로 쌓는다.
   예전엔 링크마다 position:absolute 로 같은 자리(left:9px, top:50%)에 놓여서
   다섯 개가 통째로 포개져 있었다 (옆줄을 펼치면 글자가 겹쳐 보였다). */
.sidebar-footer {
    flex-shrink: 0;
    padding: var(--space-sm);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

/* 옆줄 맨 위의 찾기 (2026-08-30). 머리띠 검색칸과 바닥 찾기 줄을 하나로 합침
   입력칸이 아니라 버튼. 한 글자만 쳐도 찾는 창으로 넘기던 것이라 칸일 이유 없음 */
.sidebar-head {
    flex-shrink: 0;
    padding: var(--space-sm) var(--space-sm) 0;
    overflow: hidden;
}
.sidebar-search-box {
    display: flex; align-items: center; gap: 8px;
    width: 100%; height: 32px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-secondary); color: var(--text-tertiary);
    font: inherit; font-size: var(--font-size-xs); cursor: pointer; text-align: left;
    transition: border-color var(--transition), color var(--transition);
}
.sidebar-search-box:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.sidebar-search-box svg { flex: none; }
.sidebar-search-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-search-kbd {
    margin-left: auto;
    padding: 1px 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    line-height: 1.4;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.sidebar-dev-links {
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    /* 아이콘 중심을 위쪽 nav-icon 열(옆줄 왼쪽에서 28px)과 같은 세로선에:
       footer padding 8px + 9px + 아이콘 22px/2 = 28px */
    padding: 3px 4px 3px 9px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-dev-links:hover { color: var(--accent); background: var(--accent-subtle); }

.sidebar-dev-links-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-tertiary);
    font-size: var(--font-size-3xs);
    font-weight: 700;
    font-style: italic;
    color: var(--text-tertiary);
}






/* 텍스트는 항상 한 줄. 사이드바 overflow:hidden 이 클리핑 담당 */
.sidebar .nav-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    flex-shrink: 0;
    transition: opacity var(--transition-slow);
}

/* 창을 화면 한가운데 띄우는 바탕. 이 블록이 없으면 창이 글 흐름에 그냥 놓여 왼쪽이
   옆줄 밑으로 들어간다 (2026-08-31 실측: 환경 설정의 왼쪽 라벨이 잘려 보였다.
   `557b04e74d` 의 옛 CSS 정리에 같이 지워졌다) */
.kl-modal-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: var(--modal-scrim);
    display: flex; align-items: center; justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn 140ms ease;
}
.kl-modal {
    position: relative;
    width: min(940px, 100%);
    height: min(88vh, 680px);
    display: flex; flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.kl-modal-close {
    position: absolute; top: 10px; right: 10px; z-index: 1;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border: 1px solid transparent; border-radius: var(--radius-md);
    background: transparent; color: var(--text-tertiary); cursor: pointer;
}
.kl-modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.kl-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kl-modal-body { flex: 1 1 auto; min-height: 0; display: flex; }
/* 창 안도 바깥 화면과 같은 짜임. 왼쪽 목록 + 오른쪽 본문
   Claude, 디스코드 설정 창이 그 모양이고 우리 메인 화면도 그 모양이다 */
.kl-modal-body .tool-page { margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kl-modal-body .tool-page-hero {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    margin: 0;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.kl-modal-body .tool-tab-sidebar-layout {
    display: flex; align-items: stretch; gap: 0;
    flex: 1 1 auto; min-height: 0; width: 100%;
}
.kl-modal-body .tab-row--sidebar {
    display: flex; flex-direction: column; gap: 2px;
    flex: 0 0 auto; width: 190px;
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-void);
    border-right: 1px solid var(--border);
    border-bottom: none;
    margin: 0;
    overflow-y: auto;
}
.kl-modal-body .tab-row--sidebar .tab-btn {
    text-align: left; justify-content: flex-start;
    border: none; border-radius: var(--radius-md);
    margin: 0; padding: 8px 10px;
    min-height: 32px;
    font-size: var(--font-size-xs); font-weight: 500;
    text-transform: none; letter-spacing: 0;
    white-space: normal; word-break: break-word;
    font-family: var(--font-sans);
}
.kl-modal-body .tab-row--sidebar .tab-btn.active {
    background: var(--accent-subtle); color: var(--accent);
    border-bottom-color: transparent;
}
.kl-modal-body .tab-panels-column {
    flex: 1 1 auto; min-width: 0; min-height: 0;
    overflow-y: auto;
    padding: var(--space-lg);
}
.kl-modal-body .tab-panel { margin: 0; }

@media (max-width: 640px) {
    .kl-modal-body .tool-tab-sidebar-layout { flex-direction: column; }
    .kl-modal-body .tab-row--sidebar {
        flex-direction: row; width: 100%;
        border-right: none; border-bottom: 1px solid var(--border);
        overflow-x: auto; overflow-y: hidden;
    }
    .kl-modal-body .tab-row--sidebar .tab-btn { flex: 0 0 auto; white-space: nowrap; }
}
.kl-modal-body .tool-page-next { display: none; }
/* 창이 뜬 동안 뒤 화면 스크롤 잠금 */
html.has-modal, html.has-modal body { overflow: hidden; }

@media (max-width: 640px) {
    .kl-modal-overlay { padding: 0; }
    .kl-modal { width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: none; }
}

/* 머리띠의 지금 도구 이름. 로고 옆에 한 줄로 선다 */
.header-now {
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 22ch;
    padding-left: var(--space-sm);
    margin-left: var(--space-sm);
    border-left: 1px solid var(--border);
}
.header-now:empty { display: none; }
@media (max-width: 768px) { .header-now, .header-crumb-sep { display: none; } } /* 이름을 감추면 그 앞의 `//` 도 같이 (2026-08-31: 폰에서 빗금만 떠 있었다) */

/* 옆줄 바닥은 얼굴과 이름뿐 (2026-08-30, 사용자 결정). 누르면 메뉴 하나
   종, 채팅, 설정, 테마 버튼은 visibility:hidden 으로 숨긴 채 산다 (초점과 접근성 나무에서 빠지고
   `el.click()` 은 먹는다). 종과 채팅의 판이 거기 매달려 있고 메뉴가 대신 눌러 준다.
   display:none 이면 판까지 같이 죽는다. 통에 aria-hidden 을 두면 안 된다. 판까지 숨긴다 (a11y 게이트) */
.sidebar-user { position: relative; display: flex; align-items: center; min-width: 0; }
.sidebar-user .header-account { flex: 1; min-width: 0; }
.sidebar-user .header-account-btn { max-width: none; width: 100%; min-height: 36px; border-color: transparent; }
.sidebar-user .header-account-btn:hover { background: var(--bg-hover); }
.sidebar-user-actions { position: absolute; left: 0; bottom: 100%; width: 0; height: 0; overflow: visible; }
.sidebar-user-actions .header-btn,
.sidebar-user-actions .theme-toggle,
.sidebar-user-actions .kl-bell-btn,
.sidebar-user-actions .klchat-dock {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
    visibility: hidden; pointer-events: none; overflow: hidden;
}
/* Files 는 desktop-chrome 이 인라인 display:flex 로 켠다. 켜져도 여기서는 안 보여야 한다 */
.sidebar-user-actions .files-btn { display: block !important; }
.sidebar-user-actions .kl-bell-dot { display: none; }
/* 메뉴와 알림 판은 위로 편다. 바닥에서 아래로 열면 화면 밖 */
.sidebar-user .header-account-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.sidebar-user .kl-bell-panel { top: auto; bottom: 6px; left: 0; right: auto; }
.header-account-menu-count {
    margin-left: 8px; padding: 0 6px; border-radius: var(--radius-pill);
    background: var(--accent); color: var(--bg-primary); font-size: var(--font-size-4xs); font-weight: 700;
}

/* 갈래 아이콘. 화살표와 이름 사이 */

.sidebar-dev-links-icon { display: flex; }
.sidebar-dev-links-text { display: inline; }

/* 폰. 도구 목록은 `.mobile-nav` 띠, 옆줄은 바닥 줄만 남아 화면 아래 띠
   머리띠에서 내려온 계정, 설정, 테마, 채팅이 폰에서 통째로 사라지지 않게 (2026-08-30) */
@media (max-width: 768px) {
    .sidebar {
        top: auto; bottom: 0; left: 0; right: 0;
        width: 100%; min-width: 0; height: auto;
        border-right: none; border-top: 1px solid var(--border);
        transition: none;
    }
    .sidebar-head, .sidebar-nav { display: none; }
    .sidebar-footer { min-width: 0; border-top: none; padding: 4px var(--space-sm); }
    .main-content { margin-left: 0; padding-bottom: 56px; }
    .sidebar-toggle { display: none; }
}

/* ── Scrollbar ── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.08); }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.18); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
    /* ── 폰: 앱 셸 고정을 풀고 문서처럼 스크롤 (TASK-KL-088) ──
       데스크톱은 화면을 꽉 채운 앱이 맞지만, 폰에서 position:fixed + 내부 스크롤이면
       ① 주소창이 자동으로 숨지 않아 화면을 계속 잡아먹고 ② 스크롤 관성, 당겨서 새로고침이
       어색하며 ③ iOS 100vh 문제를 그대로 맞는다. 폰에서는 문서 스크롤이 표준이다.
       layout-full(화면 점유형) 도 폰에서는 예외 없이 문서 스크롤로 둔다. 예외를 두었더니
       그 위젯들이 폰에서 아예 스크롤 불가로 갇혔다 (내부 스크롤 컨테이너가 없는 경우).
       주의: position:fixed 는 폭도 함께 묶고 있었다. 그냥 static 으로 바꾸면 flex 자식들이
       내용 폭까지 벌어져 가로가 폭발한다. min-width:0 / max-width:100% 를 같이 줘야 한다. */
    .app-layout {
        position: static;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }
    .app-body {
        min-height: 0;
        overflow: visible;
        min-width: 0;
        max-width: 100%;
    }
    .main-content {
        overflow: visible;
        min-width: 0;
        max-width: 100%;
    }
    .content-body {
        min-height: 0;
        min-width: 0;
        max-width: 100%;
    }
    .mobile-nav,
    .tool-page {
        max-width: 100%;
        min-width: 0;
    }

    /* 화면 점유형 위젯도 폰에서는 세로로 흐르게 (갇힘 방지) */
    .main-content:has(.tool-page.layout-full.active) { overflow: visible; padding-top: 0; }
    .content-body:has(.tool-page.layout-full.active) {
        padding: var(--space-md);
        padding-top: calc(var(--header-h) + var(--space-md));
        min-height: 0;
    }
    .tool-page.layout-full.active { display: block; }
    .tool-page.layout-full.active > .tab-panel.active { display: block; min-height: 55vh; }

    /* 폰 헤더에는 **로고와 아이콘만** 둔다 (TASK-KL-101).
       예전엔 바깥 링크를 전부 켰다(`display:inline-flex !important`). 링크가 하나씩 늘어
       넷이 되자 390px 폭에서 로고 **위에 포개졌다**. 브랜드가 뭉개진 채로 나가고 있었다.
       링크는 사라지지 않는다: toolbox 가 이것들을 읽어 폰 내비 줄로 옮겨 놓는다. */
    .header-tools-link { display: none !important; }
    .header-dev-link { display: none !important; }
    /* 아이콘 둘만 남으므로 오른쪽 묶음이 로고를 밀 일이 없다. 그래도 밀리지 않게 못을 박는다. */
    .header-bar { padding: 0 var(--space-sm); }
    .header-bar-left { min-width: 0; }
    .header-bar-right { gap: 2px; }
    .header-logo-text { white-space: nowrap; }

    /* 마스코트가 화면 우하단에 고정이라 폰에서는 마지막 요소를 덮는다.
       마스코트를 치우는 대신(브랜드 요소) 콘텐츠 아래에 그만큼 여백을 준다. */
    .content-body { padding-bottom: 120px; }

    /* 문서 스크롤로 전환했으니 body 의 overflow:hidden 을 반드시 풀어야 한다.
       이게 남아 있으면 폰 브라우저에서 손가락 스크롤이 통째로 막힌다 (헤드리스는 JS 스크롤을
       허용해 측정에 안 걸린다. 실제 스크롤을 시도해서 잡은 문제). */
    html, body { overflow: visible; overflow-x: hidden; height: auto; }
    /* 위 규칙은 `body` 한 글자라, :has 로 좁힌 잠금(body:has(> .app-layout))보다 약하다.
       같은 세기로 한 번 더 풀어 주지 않으면 폰에서 그대로 잠긴다. */
    body:has(> .app-layout) { overflow: visible; overflow-x: hidden; }

    /* 폰에서 제일 작은 글씨를 한 단 올린다 (TASK-KL-101).
       클래스마다 고치지 않고 **토큰 한 곳**에서 올린다. 이 값을 쓰는 자리가 서른 곳이 넘어
       하나씩 고치면 반드시 몇 개가 남는다(첫 화면 부제, 카드 설명, 목록 분류 이름, 도구 통계
       라벨이 전부 12px 로 남아 있었다). 데스크톱은 그대로다. */
    :root { --font-size-2xs: 13px; }

    /* 헤더 아이콘과 폰 내비 항목도 누르는 크기를 받는다. 작지만 예쁜 자리라 빠뜨리기 쉬운데,
       폰에서 제일 자주 빗나가는 것이 이 둘이다. */
    .header-btn, .theme-toggle, .header-logo { min-width: 40px; min-height: 40px; }
    /* 글자가 한 자면(홈, 봇) 폭이 33px 로 좁아진다. 높이만 채워선 안 되고 폭도 받쳐야 한다.
       `flex: 0 0 auto` 가 핵심이다: 이게 없으면 항목이 줄어들어 **상자는 안 겹치는데 글자가
       넘쳐** 서로 침범한다. 상자 좌표만 재면 겹침 0으로 통과하므로 눈으로만 보이던 문제다.
       줄은 원래 가로로 넘치게 돼 있으니(overflow-x:auto) 안 줄여도 된다. */
    .mobile-nav .nav-item {
        flex: 0 0 auto;
        min-width: 40px; min-height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
        padding: 5px 12px;
    }
    /* 다른 세션이 얹은 것들도 같은 기준을 받는다. 폰에서 누르는 크기는 만든 사람이 아니라
       화면이 정한다. 세로만 모자랐다(계정 30px, 팔레트 칩 35px). */
    .header-account-signin, .kp-browse-chip { min-height: 40px; }

    /* 손가락으로 누르는 크기 확보. 30px 짜리 버튼은 폰에서 자주 빗나간다 */
    .btn { min-height: 40px; padding: 9px 14px; }
    .tool-chip { min-height: 38px; padding: 9px 14px; }
    .header-logo { min-height: 40px; }
    input[type="text"], input[type="password"], input[type="date"], select, textarea { min-height: 42px; }

    .main-content { margin-left: 0; }
    .header-bar {
        left: 0;
        padding: 0 var(--space-md);
        grid-template-columns: auto 1fr;
        gap: var(--space-sm);
    }
    /* 폰 내비 줄은 고정 헤더 **아래**에서 시작해야 한다. 안 밀어 주면 유리 헤더 뒤에 깔려
       로고 옆에 글자가 비쳐 보인다 (실제로 그렇게 나가고 있었다, TASK-KL-101). */
    /* 줄은 **JS 가 채운다**. 그 전까지 높이가 0이라, 채워지는 순간 아래 본문이 통째로 밀렸다.
       도구 목록 폰 밀림 0.105 중 0.117(사건 둘 합)이 이것이었다(실측, 기준 0.1).
       채워진 높이(55px, 실측)를 미리 잡아 두면 채워져도 아무것도 안 움직인다.
       한 줄짜리 가로 스크롤이라 항목이 몇 개든 이 높이는 그대로다. */
    .mobile-nav { display: flex !important; margin-top: var(--header-h); min-height: 55px; }
    .content-body { padding: var(--space-md); }
    .landing-page { padding: var(--space-md); }
    .landing-title { font-size: 52px; }
    .landing-hero { padding: var(--space-lg) 0 var(--space-md); }
    .prism-theme-select { width: 100px; font-size: var(--font-size-2xs); }
    .tool-page-hero { padding: var(--space-md) 0 var(--space-sm); }
    .tool-page-hero-title { font-size: var(--font-size-display-md); }
    .field-group { padding: var(--space-sm); }
    .tool-page.layout-form { padding: var(--space-sm); }
}

.mobile-nav {
    display: none; overflow-x: auto; gap: 2px;
    padding: 6px var(--space-md);
    border-bottom: 1px solid var(--border);
    background: var(--glass-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: blur(14px);
    flex-shrink: 0;
}
.mobile-nav .nav-item {
    white-space: nowrap; font-size: var(--font-size-xs); padding: 5px 10px;
    border-left: none;
}
/* 찾기는 이 줄의 다른 항목과 다른 일을 한다 (도구로 가는 게 아니라 창을 연다) . 
   그래서 다르게 생겨야 한다. 맨 앞에 붙박이로 두어 옆으로 밀려 사라지지 않게 한다.
   (TASK-KL-099) */
.mobile-nav .nav-item-find {
    position: sticky; left: 0; z-index: 1;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 700;
    /* 붙박이라 뒤 항목이 그 밑을 지나간다. 배경을 불투명하게 덮어야 겹쳐 보이지 않는다. */
    box-shadow: 6px 0 6px -4px var(--bg-primary);
}

/* ── 랜덤 생성기 Wide 레이아웃 ── */

.randomgen-wide {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    min-width: 0;
    padding: var(--space-md);
}

.randomgen-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.randomgen-footer {
    flex-shrink: 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.randomgen-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.randomgen-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.randomgen-row-main {
    justify-content: center;
}

.randomgen-row-options {
    justify-content: center;
}

.randomgen-icon-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.randomgen-icon-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.randomgen-icon-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.randomgen-icon-btn svg {
    width: 18px;
    height: 18px;
}

.randomgen-icon-btn#randomTopicBtn {
    padding: 0 10px 0 8px;
}

.randomgen-icon-btn:not(#randomTopicBtn) {
    padding: 0;
    width: 36px;
}

.randomgen-icon-btn .randomgen-topic-label {
    font-size: var(--font-size-3xs);
    margin-left: 4px;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.randomgen-count-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.randomgen-count-wrap input[type="number"] {
    width: 44px;
    height: 36px;
    padding: 0 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
    -moz-appearance: textfield;
}
.randomgen-count-wrap input[type="number"]::-webkit-outer-spin-button,
.randomgen-count-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.randomgen-count-wrap input[type="number"]:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 1px var(--accent-dim);
}

.randomgen-presets {
    display: flex;
    gap: 4px;
}

.randomgen-presets .random-count-preset {
    min-width: 32px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-tertiary);
    transition: all var(--transition);
}
.randomgen-presets .random-count-preset:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}
.randomgen-presets .random-count-preset.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.randomgen-footer-links {
    font-size: var(--font-size-3xs);
    color: var(--text-tertiary);
}

.randomgen-popup.randomgen-topic-popup-large {
    position: relative;
    max-width: 920px;
    width: 90vw;
    max-height: 85vh;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.randomgen-topic-popup-large .randomgen-topic-popup-tabs {
    flex-shrink: 0;
}

.randomgen-topic-popup-large .randomgen-topic-tab-panel {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.randomgen-topic-close-fab {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: var(--font-size-title);
    line-height: 1;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
}
.randomgen-topic-close-fab:hover {
    color: var(--accent);
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.randomgen-topic-popup-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.randomgen-topic-tab {
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all var(--transition);
}
.randomgen-topic-tab:hover {
    color: var(--text-secondary);
}
.randomgen-topic-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.randomgen-topic-tab-panel {
    display: none;
}
.randomgen-topic-tab-panel.active {
    display: block;
}

.randomgen-topic-popup-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.randomgen-topic-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 50vh;
    overflow-y: auto;
}

.randomgen-topic-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.randomgen-topic-special {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.randomgen-topic-group-title {
    font-size: var(--font-size-4xs);
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.randomgen-topic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
}

.randomgen-topic-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    overflow: visible;
}

.randomgen-topic-card:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.randomgen-topic-card.active,
.randomgen-topic-mode.active {
    border-color: var(--accent);
    background: var(--accent-subtle);
    color: var(--accent);
}

.randomgen-topic-card.randomgen-topic-custom.selected {
    border-color: var(--secondary);
    background: var(--secondary-subtle);
    color: var(--secondary);
}

.randomgen-topic-card.randomgen-topic-custom.pinned {
    border-color: var(--secondary);
    background: var(--secondary-subtle);
    color: var(--secondary);
}

.randomgen-topic-card.randomgen-topic-custom.pinned::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
    background: linear-gradient(225deg, var(--secondary) 50%, transparent 50%);
    border-radius: 0 var(--radius-md) 0 0;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.randomgen-topic-custom {
    cursor: pointer;
    display: flex;
}

.randomgen-topic-options-wrap {
    margin-top: var(--space-sm);
}

.randomgen-topic-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    min-height: 32px;
}

.randomgen-topic-selected-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: var(--secondary-subtle);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    overflow: visible;
}
.randomgen-topic-selected-chip:hover {
    opacity: 0.9;
}

.randomgen-topic-selected-chip.pinned {
    border-color: var(--secondary);
    background: var(--secondary-subtle);
    color: var(--secondary);
}

.randomgen-topic-selected-chip.pinned::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    background: linear-gradient(225deg, var(--secondary) 50%, transparent 50%);
    border-radius: 0 var(--radius-md) 0 0;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.randomgen-topic-pin {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition);
}

.randomgen-topic-pin:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}

.randomgen-topic-selected-chip.pinned .randomgen-topic-pin {
    color: var(--accent);
}

.randomgen-topic-pin svg {
    width: 14px;
    height: 14px;
}

.randomgen-topic-hint {
    font-size: var(--font-size-3xs);
    font-weight: 400;
    color: var(--text-tertiary);
}

.randomgen-topic-selected-empty {
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
}

.randomgen-topic-card-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 누를 곳은 24x24 이상 (WCAG 2.2 2.5.8). 22px 이라 70곳이 걸림 (2026-09-05 실측) */
.randomgen-topic-info {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xs);
    font-weight: 700;
    font-style: italic;
    color: var(--text-tertiary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.randomgen-topic-info:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.randomgen-topic-tab-panel[data-tab="add"] {
    max-width: 520px;
    padding-top: var(--space-xs);
}

.randomgen-add-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.randomgen-add-header {
    margin-bottom: 2px;
}

.randomgen-add-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.randomgen-add-desc {
    font-size: var(--font-size-2xs);
    color: var(--text-tertiary);
    margin: 0;
}

.randomgen-add-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.randomgen-add-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.randomgen-add-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.randomgen-add-field-id {
    margin-top: 2px;
}

.randomgen-add-label {
    font-size: var(--font-size-2xs);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.randomgen-add-hint {
    font-weight: 400;
    color: var(--text-tertiary);
}

.randomgen-add-form .field-input {
    padding: 8px 12px;
    font-size: var(--font-size-xs);
    min-height: 0;
}

.randomgen-add-form textarea.field-input {
    min-height: 88px;
    resize: vertical;
}

.randomgen-add-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 4px;
}

.randomgen-add-actions .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 8px 18px;
}

.randomgen-add-msg {
    font-size: var(--font-size-3xs);
    color: var(--text-tertiary);
}

@media (max-width: 480px) {
    .randomgen-add-row {
        grid-template-columns: 1fr;
    }
}

.randomgen-table-popup {
    max-width: 480px;
}

.randomgen-table-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.randomgen-table-tag {
    display: inline-block;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

/* ── 생성 버튼 (작게) ── */
.randomgen-gen-btn {
    width: auto !important;
    padding: 8px 20px !important;
    font-size: var(--font-size-2xs) !important;
    margin-top: 0 !important;
}

.randomgen-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.randomgen-popup-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.randomgen-popup {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 420px;
    max-height: 80vh;
    width: 100%;
    box-shadow: var(--shadow-float);
    display: flex;
    flex-direction: column;
}

.randomgen-popup-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.randomgen-info-content {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.6;
}
.randomgen-info-content p {
    margin: 0 0 var(--space-sm);
}
.randomgen-info-content p:last-child {
    margin-bottom: 0;
}

.randomgen-empty {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

.randomgen-exclude-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px 12px;
    max-height: 320px;
    overflow-y: auto;
    padding: 0;
}

@media (max-width: 900px) {
    .randomgen-display {
        min-height: 220px;
    }

    .randomgen-row-options {
        justify-content: center;
    }

    .randomgen-count-wrap {
        justify-content: center;
    }
}

/* ── Lightbox ── */

.tb-lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.tb-lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

.karmolab-update-banner {
    position: fixed; top: 16px; right: 16px;
    z-index: 9998;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--accent, var(--border));
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-size: var(--font-size-sm);
    max-width: 420px;
}
.karmolab-update-banner-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.karmolab-update-banner-msg { line-height: 1.4; }
.karmolab-update-banner-msg code {
    font-family: ui-monospace, monospace;
    background: var(--bg-tertiary); padding: 1px 5px; border-radius: var(--radius-sm);
    font-size: 0.95em;
}
.karmolab-update-banner-notes {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    text-decoration: none;
    align-self: flex-start;
}
.karmolab-update-banner-notes:hover { color: var(--accent); text-decoration: underline; }
.karmolab-update-banner-progress {
    width: 100%; height: 6px;
    -webkit-appearance: none; appearance: none;
    border: none; border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    overflow: hidden;
}
.karmolab-update-banner-progress::-webkit-progress-bar { background: var(--bg-tertiary); border-radius: var(--radius-sm); }
.karmolab-update-banner-progress::-webkit-progress-value { background: var(--accent); border-radius: var(--radius-sm); transition: width 120ms linear; }
.karmolab-update-banner-progress::-moz-progress-bar { background: var(--accent); border-radius: var(--radius-sm); }
.karmolab-update-banner-install {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--accent); color: var(--accent-fg);
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: var(--font-size-xs);
    cursor: pointer;
    min-width: 88px;
    /* 손가락이 닿는 자리는 32px 아래로 내려가면 안 된다 (관문 `test:hub` 의 선).
       실측 88x30. 두 픽셀이 모자라 폰에서 누르기 작은 것으로 잡혔다.
       글자를 키우지 않고 자리만 넓힌다(좁은 화면에서 배너가 두 줄이 되면 더 나쁘다). */
    min-height: 32px;
}
.karmolab-update-banner-install:hover { filter: brightness(1.1); }
.karmolab-update-banner-install:disabled { opacity: 0.7; cursor: progress; }
.karmolab-update-banner-restart {
    background: var(--success);
}
/* 닫는 단추도 손가락으로 눌러야 한다 (TASK-KL-129).
   24px 라 폰에서 정확히 짚기 어려웠다. 새로고침 안내를 못 닫으면 그 줄이 화면에 남는다.
   보이는 크기(글자, 바탕)는 그대로 두고 **눌리는 자리만** 넓힌다. */
.karmolab-update-banner-close {
    flex-shrink: 0; align-self: flex-start;
    width: 32px; height: 32px;
    background: transparent; color: var(--text-tertiary);
    border: none; border-radius: var(--radius-sm);
    font-size: var(--font-size-sm); line-height: 1; cursor: pointer;
    padding: 0;
}
.karmolab-update-banner-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.karmolab-update-completed-toast {
    position: fixed; top: 16px; right: 16px;
    z-index: 9998;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px 8px 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--success);
    border-left: 3px solid var(--success);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-size: var(--font-size-sm);
    max-width: 380px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 200ms ease, transform 200ms ease;
}
.karmolab-update-completed-toast-leaving {
    opacity: 0;
    transform: translateX(20px);
}
.karmolab-update-completed-toast-msg { line-height: 1.4; flex: 1; min-width: 0; }
.karmolab-update-completed-toast-msg code {
    font-family: ui-monospace, monospace;
    background: var(--bg-tertiary); padding: 1px 5px; border-radius: var(--radius-sm);
    font-size: 0.95em;
}
.karmolab-update-completed-toast-close {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: transparent; color: var(--text-tertiary);
    border: none; border-radius: var(--radius-sm);
    font-size: var(--font-size-xs); line-height: 1; cursor: pointer;
    padding: 0;
}
.karmolab-update-completed-toast-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* 창 전체를 놓는 자리로 (도구 품질. 전 도구 공통).
   파일을 끌어오면 이 막이 뜨고, 놓으면 지금 도구의 파일 칸이 받는다.
   자기 자리를 이미 가진 도구는 그쪽이 먼저 잡으므로 이 막은 뜨기만 하고 비켜 준다. */
.kl-dropzone {
    position: fixed; inset: 0; z-index: 9000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
    backdrop-filter: blur(2px);
}
.kl-dropzone-box {
    padding: 22px 30px; border: 2px dashed var(--accent); border-radius: var(--radius-lg);
    background: var(--bg-secondary); color: var(--text-primary);
    font-size: var(--font-size-sm); font-weight: 600;
}

html.is-layout-full .main-content {
    overflow: hidden;
}
html.is-layout-full .content-body {
    flex: 1;
    min-height: 0;
    padding: 0;
    padding-top: var(--header-h);
}
html.is-layout-full .tool-page.layout-full.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
}
html.is-layout-full .tool-page.layout-full.active > .tab-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}
/* 같은 이유로 여기서도 왼쪽 여백을 안 지운다 */

/* AI 와 함께 만들었고 소스는 열려 있다 (TASK-KL-352). 첫 화면 맨 아래 한 줄.
   자랑도 변명도 아니라 사실 고지라, 가장 작고 가장 아래다. */
.landing-madewith {
    margin: 28px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: var(--font-size-2xs, 11px);
    line-height: 1.7;
    color: var(--text-tertiary);
}
.landing-madewith a { color: var(--text-secondary); }

/* ===================================================================
   스킨 (change.karmolab-shell-redesign, 2026-08-30)
   레이아웃 하나, 스킨은 토큰 재정의만. 부품 CSS 에 스킨 분기 없음
   토큰 세 층: 색(위 :root 재정의) / 모양(--skew --cut --shadow-hard --band*) / 장면(--scene-*)
   모양과 장면은 0 또는 transparent 면 소거. classic 이 그 값
   =================================================================== */
:root {
    --skin: classic;
    --chip-radius: var(--radius-pill);   /* 칩과 별 칩의 둥글기. 필드는 0 */
    --chip-clip: none;                   /* 칩을 깎는 꼴. 필드는 평행사변형 */
    --hero-font: inherit;                /* 도구 판 큰 번호의 글꼴. 필드는 표시 글꼴 */
    --skew: 0deg;
    --cut: 0px;
    --shadow-hard: none;
    --band: var(--bg-tertiary);
    --band-ink: var(--text-primary);
    --band-mute: var(--text-tertiary);
    --accent-mix: linear-gradient(var(--accent), var(--accent));   /* 칠 그림. 색 하나만 쓰는 스킨도 그림 꼴로 둔다 */
    --scene-blob-a: transparent;
    --scene-blob-b: transparent;
    --scene-shard: transparent;
    --scene-dot: transparent;
    --scene-grain: 0;
    --scene-wm: transparent;
}

/* 필드: 밝은 회백 판 + 주황 키. 캔버스 "확정 Y4" 값 */
html[data-skin="field"] {
    --skin: field;
    --chip-radius: 0;
    --chip-clip: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    --hero-font: var(--font-display);
    color-scheme: light;

    --bg-void: #dedcd6;
    --bg-primary: #e2e0da;
    --bg-secondary: #eeece6;
    --bg-tertiary: #d3d1ca;
    --bg-hover: #e7e5df;
    --bg-active: #d9d7d0;

    --glass: rgba(238, 236, 230, 0.78);
    --glass-hover: rgba(238, 236, 230, 0.88);
    --glass-strong: rgba(238, 236, 230, 0.96);
    --glass-blur: blur(14px);

    --text-primary: #2a2a27;
    --text-secondary: #4a4a46;
    --text-tertiary: #58574f;  /* 세 번째 판(#d3d1ca) 위 4.75:1 */
    --accent-ink: #7a4510;      /* 주황 글자용. 칠은 --accent, 글자는 이것. 세 번째 판 위 5.0:1 */

    --accent: #e8963a;
    --accent-fg: #2a2a27;
    --status-fg: #ffffff;      /* 밝은 판. 상태색이 어두우므로 흰 글자 6.7:1 */
    --accent-hover: #d9783a;
    --accent-dim: rgba(232, 150, 58, 0.12);
    --accent-subtle: rgba(232, 150, 58, 0.07);
    --accent-glow: rgba(232, 150, 58, 0.25);
    /* 한 요소의 칠 안에 얼룩 섞임. 요소별 다른 색 아님 */
    --accent-mix: radial-gradient(circle at 8% 60%, #f0b25a 0%, transparent 30%), radial-gradient(circle at 92% 30%, #d9783a 0%, transparent 26%), linear-gradient(#e8963a, #e8963a);

    --secondary: #6f6e68;
    --secondary-hover: #4a4a46;
    --secondary-subtle: rgba(111, 110, 104, 0.08);
    --secondary-glow: rgba(111, 110, 104, 0.16);

    /* 상태색은 글자로도 쓰인다. 종이(#dedcd6) 위 4.5:1 넘는 값 (a11y 게이트, 2026-08-30) */
    --success: #256540;
    --success-subtle: rgba(37, 101, 64, 0.08);
    --error: #a83127;
    --error-subtle: rgba(168, 49, 39, 0.08);
    --warning: #7f5310;
    --warning-subtle: rgba(127, 83, 16, 0.08);

    --border: rgba(42, 42, 39, 0.14);
    --border-hover: rgba(42, 42, 39, 0.26);
    --border-strong: #2a2a27;

    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 2px;
    --radius-xl: 2px;

    --header-h: 36px;

    --grid-color: rgba(42, 42, 39, 0.05);
    --grid-color-fine: rgba(42, 42, 39, 0.0);
    --vignette: transparent;
    --holo-sweep: none;
    --holo-bloom: none;
    --chrome-grad: linear-gradient(135deg, #e8963a 0%, #f0b25a 50%, #d9783a 100%);
    --chrome-grad-hover: linear-gradient(135deg, #f0b25a 0%, #f5c470 50%, #e8963a 100%);
    --brand-edge: rgba(42, 42, 39, 0.3);
    --brand-shadow: rgba(30, 30, 28, 0.45);
    --decor-a: #e8963a;
    --decor-b: #33332f;
    --decor-c: #8a9aa3;
    --decor-d: #d9783a;
    --decor-e: #6f6e68;
    --fill-strong: #33332f;
    --fill-strong-hover: #4a4a46;
    --fill-strong-ink: #ecebe5;
    --shadow-float: 6px 6px 0 rgba(30, 30, 28, 0.45);
    --header-shell-glass: #cfcfc8;

    --skew: -12deg;
    --cut: 14px;
    --shadow-hard: 6px 6px 0 rgba(30, 30, 28, 0.45);
    --band: #33332f;
    --band-ink: #ecebe5;
    --band-mute: #9a9992;

    --scene-blob-a: rgba(232, 150, 58, 0.28);
    --scene-blob-b: rgba(138, 154, 163, 0.22);
    --scene-shard: rgba(42, 42, 39, 0.12);
    --scene-dot: rgba(42, 42, 39, 0.10);
    --scene-grain: 0.16;
    --scene-wm: rgba(20, 20, 20, 0.06);
}

/* 필드 어두운 판: 근검정 + 밝은 판, 띠 반전 (캔버스 N6). 남회색, 순검정 금지 */
html[data-skin="field"][data-theme="dark"] {
    color-scheme: dark;

    --bg-void: #232220;
    --bg-primary: #2a2926;
    --bg-secondary: #3b3936;
    --bg-tertiary: #4e4c47;
    --bg-hover: #45433f;
    --bg-active: #57544f;

    --glass: rgba(59, 57, 54, 0.9);
    --glass-hover: rgba(59, 57, 54, 0.95);
    --glass-strong: rgba(59, 57, 54, 0.98);

    --text-primary: #efede6;
    --text-secondary: #c9c7bf;
    --text-tertiary: #c2bfb7;  /* 세 번째 판(#4e4c47) 위 4.67:1 */
    --accent-ink: #f3bd70;      /* 주황 글자용. 세 번째 판 위 5.0:1 */

    --accent-fg: #2a2a27;
    --status-fg: #2a2a27;      /* 어두운 판. 상태색이 밝으므로 어두운 잉크 6.2:1 */
    --accent-dim: rgba(232, 150, 58, 0.16);
    --accent-glow: rgba(232, 150, 58, 0.3);

    --border: rgba(239, 237, 230, 0.12);
    --border-hover: rgba(239, 237, 230, 0.22);
    --border-strong: #efede6;

    /* 어두운 판에서는 상태색을 밝은 쪽으로. 밝은 판 값(#256540 등)은 여기서 2.3:1 */
    --success: #6cd096;
    --success-subtle: rgba(108, 208, 150, 0.12);
    --error: #ef9089;
    --error-subtle: rgba(239, 144, 137, 0.12);
    --warning: #e0b158;
    --warning-subtle: rgba(224, 177, 88, 0.12);

    --grid-color: rgba(239, 237, 230, 0.05);
    --brand-edge: rgba(239, 237, 230, 0.3);
    --brand-shadow: rgba(0, 0, 0, 0.55);
    --decor-b: #e9e6dd;
    --fill-strong: #e9e6dd;
    --fill-strong-hover: #f3f1ea;
    --fill-strong-ink: #2a2a27;
    --shadow-float: 6px 6px 0 rgba(0, 0, 0, 0.55);
    --header-shell-glass: #1a1917;
    --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
    --band: #e9e6dd;
    --band-ink: #2a2a27;
    --band-mute: #8a8983;

    --scene-blob-a: rgba(232, 150, 58, 0.12);
    --scene-blob-b: rgba(138, 154, 163, 0.1);
    --scene-shard: rgba(239, 237, 230, 0.14);
    --scene-dot: rgba(239, 237, 230, 0.12);
    --scene-grain: 0.08;
    --scene-wm: rgba(255, 250, 240, 0.06);
}

/* 필드 장면: 색 덩어리 둘 + 점 격자(바탕) / 결(::before) / 기울인 파편 둘(::after)
   배경 테마 6종(data-bg)은 클래식 전용. 필드는 자기 장면 하나로 덮음 (뒤에 있어 우선) */
html[data-skin="field"] .app-bg {
    background-image:
        radial-gradient(ellipse 520px 300px at 80% 20%, var(--scene-blob-a) 0%, transparent 70%),
        radial-gradient(ellipse 480px 260px at 20% 92%, var(--scene-blob-b) 0%, transparent 70%),
        radial-gradient(var(--scene-dot) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center, center, 0 0;
    overflow: hidden;
}
html[data-skin="field"] .app-bg::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23g)'/></svg>");
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: var(--scene-grain);
    mix-blend-mode: multiply;
}
html[data-skin="field"][data-theme="dark"] .app-bg::before { mix-blend-mode: screen; }
html[data-skin="field"] .app-bg::after {
    content: '';
    position: absolute;
    inset: -10% 0;
    background-image:
        linear-gradient(var(--scene-shard), var(--scene-shard)),
        linear-gradient(var(--scene-shard), var(--scene-shard));
    background-size: 10% 100%, 1.6% 100%;
    background-repeat: no-repeat;
    background-position: 76% 0, 88% 0;
    transform: skewX(var(--skew));
    pointer-events: none;
}
/* 클래식 첫 화면 꾸미기(떠다니는 그림)는 필드 장면과 중복. 필드에서 소거 */
html[data-skin="field"] .home-decor { display: none; }

/* ===================================================================
   머리띠와 옆줄, 새 짜임 (change.karmolab-shell-redesign 3, 4단계)
   레이아웃 하나. 스킨은 아래 토큰(--row-*, --band*, --cut, --skew)만 교체
   =================================================================== */
:root {
    --row-h: 32px;
    --row-gap: 1px;
    --row-bg: transparent;
    --row-bg-hover: var(--accent-subtle);
    --tab-h: 28px;
}
html[data-skin="field"] {
    --row-h: 38px;
    --row-gap: 4px;
    --row-bg: rgba(110, 108, 102, 0.30);
    --row-bg-hover: rgba(110, 108, 102, 0.42);
    --tab-h: 26px;
}
html[data-skin="field"][data-theme="dark"] {
    --row-bg: rgba(239, 237, 230, 0.10);
    --row-bg-hover: rgba(239, 237, 230, 0.18);
}

/* 경로 칩: 로고(홈) / 지금 도구. R12 의 흰 칩 */
.header-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px 0 8px;
    min-width: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}
.header-crumb .header-logo { padding: 0; height: auto; }
.header-crumb-sep { color: var(--text-tertiary); font-size: var(--font-size-2xs); }
.header-crumb .header-now { font-size: var(--font-size-2xs); font-weight: 700; color: var(--text-primary); }
.header-crumb .header-now:empty, .header-crumb .header-now:empty + .header-crumb-sep, .header-crumb-sep:has(+ .header-now:empty) { display: none; }

/* 검색은 머리띠 오른쪽 (R12). 옆줄 위에서 옮김 */
.header-search-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* 안 여백까지 재면 26px 이지만 상자 자체가 23px 이었다 (WCAG 2.2 AA 2.5.8) */
    height: 26px;
    min-height: 24px;
    box-sizing: border-box;
    width: 220px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    font-size: var(--font-size-2xs);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}
.header-search-box:hover { border-color: var(--border-hover); color: var(--text-primary); }
.header-search-box .sidebar-search-text { flex: 1; text-align: left; white-space: nowrap; }
.header-search-box .sidebar-search-kbd { font-family: var(--font-mono); font-size: var(--font-size-4xs); color: var(--text-tertiary); }
/* 폰에서는 돋보기 하나. 글자와 Ctrl K 는 숨긴다 (Ctrl K 는 폰에 없고, 10px 글자는 읽기 작다).
   누를 크기 32x32 (허브 검사의 폰 잣대. 2026-09-05 실측 92x26 이 걸렸다) */
@media (max-width: 768px) {
    .header-search-box { width: 32px; height: 32px; min-height: 32px; padding: 0; justify-content: center; }
    .header-search-box .sidebar-search-text, .header-search-box .sidebar-search-kbd { display: none; }
}

/* 갈래 탭 줄. 고른 탭만 이름이 붙고 띠 색으로 반전 */
.sidebar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 8px 6px;
}
.sidebar-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--tab-h);
    min-width: var(--tab-h);
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-2xs);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.sidebar-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.sidebar-tab .sidebar-tab-label { display: none; white-space: nowrap; }
.sidebar-tab.active { background: var(--band); color: var(--band-ink); border-color: var(--band); padding-right: 10px; }
.sidebar-tab.active .sidebar-tab-label { display: inline; }
.sidebar-list-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 6px;
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.sidebar-list-count { color: var(--text-tertiary); }
.sidebar-list { display: flex; flex-direction: column; gap: var(--row-gap); padding: 0 8px; }
/* 지금 열린 도구 한 줄. 아래 갈래 목록과 띄운다 */
.sidebar-now { margin-bottom: 8px; }
/* 낭독기 전용 줄. 머리를 안 그리는 도구의 h1(흥, 먹)과 결과 수 알림(.kp-live) 몫
   첫 CSS 구역 필수. 명령 팔레트 구역은 뒤로 빠져(split-css) 그 사이 "흥" 32px 노출 (2026-09-05 검사 실측) */
.kl-sr,
.kp-live {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 행. 필드: 회색 사각 38, 고른 것은 띠 반전 + 왼쪽 강조 3px (R12). 클래식은 토큰이 예전 값 */
.sidebar-list .nav-item {
    min-height: var(--row-h);
    margin: 0;
    padding: 0 10px 0 36px;
    background: var(--row-bg);
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}
.sidebar-list .nav-item:hover { background: var(--row-bg-hover); }
.sidebar-list .nav-item.active {
    background: var(--band);
    color: var(--band-ink);
    border-left-color: var(--accent);
    font-weight: 700;
}
.sidebar-list .nav-item.active .nav-icon { opacity: 1; }
.sidebar-list .nav-icon { left: 13px; }

/* 하위 항목 (트리). 지금 열린 도구가 Toolbox.setSubNav 로 꽂은 줄. 부모 줄 아래 한 단 더 들여쓰기,
   아이콘 없음. 왼쪽 강조는 켜진 줄 하나에만 (2026-09-13 사용자: 왼쪽 강조가 둘이면 어색). 묶음 사이는 간격만 */
.sidebar-list .nav-sub-item { padding-left: 44px; }
.sidebar-list .nav-sub-item.nav-sub-gap { margin-top: 8px; }
.sidebar-list .nav-sub-item.is-disabled { color: var(--text-tertiary); cursor: default; }
.sidebar-list .nav-sub-item.is-disabled:hover { background: var(--row-bg); }
/* 하위가 켜지면 부모는 글자만 굵게. 배경과 왼쪽 선은 켜진 하위 줄 것 */
.sidebar-list .nav-item.active:has(~ .nav-sub-item.active) {
    background: var(--row-bg);
    color: var(--text-primary);
    border-left-color: transparent;
    font-weight: 600;
}

/* 레일: 탭은 세로 아이콘만, 목록은 숨김 */
html[data-sidebar="rail"] .sidebar-tabs { flex-direction: column; align-items: center; padding: 8px 0; }
html[data-sidebar="rail"] .sidebar-tab { width: 32px; height: 32px; padding: 0; justify-content: center; }
html[data-sidebar="rail"] .sidebar-tab.active { padding: 0; }
html[data-sidebar="rail"] .sidebar-tab .sidebar-tab-label,
html[data-sidebar="rail"] .sidebar-list-head,
html[data-sidebar="rail"] .sidebar-list { display: none; }

/* 필드는 도구 화면에서도 같은 장면. 클래식의 도구 화면 평면화는 안 받음 */
html[data-skin="field"][data-view="tool"] .app-bg {
    background-image:
        radial-gradient(ellipse 520px 300px at 80% 20%, var(--scene-blob-a) 0%, transparent 70%),
        radial-gradient(ellipse 480px 260px at 20% 92%, var(--scene-blob-b) 0%, transparent 70%),
        radial-gradient(var(--scene-dot) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
}
html[data-skin="field"][data-view="tool"] .app-bg::before { display: block; }
html[data-skin="field"][data-view="tool"] .main-content { background: transparent; }

/* ===================================================================
   첫 화면, 필드 스킨 (change.karmolab-shell-redesign 5단계, 시안 HA)
   구성은 그대로(제목, 태그라인, 검색, 갈 곳 4, 방문 수). 부품 표현만 토큰으로
   =================================================================== */
html[data-skin="field"] .landing-title { color: var(--text-primary); }
html[data-skin="field"] .landing-title .accent { color: var(--text-primary); }
html[data-skin="field"] .landing-title::after {
    content: '';
    display: block;
    width: 220px;
    height: 6px;
    margin: 12px auto 0;
    border-bottom: 1px solid var(--text-primary);
    background-image: var(--accent-mix);
    background-size: 70px 6px;
    background-repeat: no-repeat;
    background-position: 0 0;
}
html[data-skin="field"] .landing-tagline { text-shadow: none; color: var(--text-tertiary); }
html[data-skin="field"] .landing-tagline::before { content: '[ '; }
html[data-skin="field"] .landing-tagline::after { content: ' ]'; }

/* 검색: 기울인 유리, 딱딱한 그림자. 안쪽은 도로 세움 */
html[data-skin="field"] .kp-inline .kp-input-wrap {
    transform: skewX(var(--skew));
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--text-primary);
    border-radius: 0;
    box-shadow: var(--shadow-hard);
    padding: 0 18px;
}
html[data-skin="field"] .kp-inline .kp-input-wrap > * { transform: skewX(calc(-1 * var(--skew))); }
html[data-skin="field"] .kp-inline input.kp-input { background: transparent; }

/* 갈 곳: 기울인 칩, 첫 칸은 띠 반전 + 강조 그림자 */
html[data-skin="field"] .landing-cta-card {
    transform: skewX(var(--skew));
    border-radius: 0;
    border-color: var(--border-hover);
    background: var(--glass);
    padding: 9px 18px;
}
html[data-skin="field"] .landing-cta-card > * { transform: skewX(calc(-1 * var(--skew))); }
html[data-skin="field"] .landing-cta-card:first-child {
    background: var(--band);
    color: var(--band-ink);
    border-color: var(--band);
    box-shadow: 3px 3px 0 var(--accent);
}
html[data-skin="field"] .landing-cta-card:first-child .landing-cta-card-icon,
html[data-skin="field"] .landing-cta-card:first-child .landing-cta-card-title { color: var(--band-ink); }

/* 방문 수: 검정 띠 라벨 + 큰 수 */
html[data-skin="field"] .landing-pulse-line {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}
html[data-skin="field"] .landing-pulse-stat { align-items: stretch; gap: 0; }
html[data-skin="field"] .landing-pulse-k {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: var(--band);
    color: var(--band-ink);
}
html[data-skin="field"] .landing-pulse-line b {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: var(--text-primary);
    font-size: var(--font-size-md);
}
html[data-skin="field"] .landing-pulse-all {
    margin: 0;
    padding: 0 14px;
    border-left: 1px solid var(--text-primary);
    font-weight: 700;
    color: var(--accent-ink);
}

/* ===================================================================
   창, 메뉴, 토스트, 필드 스킨 (change.karmolab-shell-redesign 6단계, 시안 Z5~Z7)
   떠 있는 판은 귀퉁이 깎임 + 딱딱한 그림자 + 위 띠. 깔린 판은 그림자 없음
   =================================================================== */
html[data-skin="field"] .kl-modal-overlay { background: rgba(20, 20, 18, 0.35); backdrop-filter: blur(3px); }
html[data-skin="field"] .kl-modal {
    border-radius: 0;
    border: 1px solid var(--text-primary);
    background: var(--glass-strong);
    box-shadow: var(--shadow-hard);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
html[data-skin="field"] .kl-modal::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 55%;
    height: 4px;
    background: var(--accent);
    background-image: var(--accent-mix);
    pointer-events: none;
}
html[data-skin="field"] .kl-modal-close { border-radius: 0; }

html[data-skin="field"] .header-account-menu {
    border-radius: 0;
    border: 1px solid var(--text-primary);
    background: var(--glass-strong);
    box-shadow: var(--shadow-hard);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
    padding: 0 6px 6px;
}
html[data-skin="field"] .kam-head {
    margin: 0 -6px 4px;
    padding: 10px 14px 12px;
    background: var(--band);
    color: var(--band-ink);
}
html[data-skin="field"] .kam-head .kam-who b { color: var(--band-ink); }
html[data-skin="field"] .kam-head .kam-who small { color: var(--band-mute); }
html[data-skin="field"] .kam-head .header-account-blank { background: var(--bg-void); outline: 2px solid var(--accent); outline-offset: -2px; }
html[data-skin="field"] .header-account-menu button,
html[data-skin="field"] .header-account-menu a { border-radius: 0; }
html[data-skin="field"] .header-account-menu button[data-signin] {
    background: var(--accent);
    background-image: var(--accent-mix);
    color: var(--accent-fg);
    transform: skewX(var(--skew));
    margin: 4px 6px 0;
}
html[data-skin="field"] .header-account-menu button[data-signin] > * { transform: skewX(calc(-1 * var(--skew))); }

html[data-skin="field"] .status-toast {
    border-radius: 0;
    background: var(--band);
    color: var(--band-ink);
    border-color: var(--band);
    box-shadow: var(--shadow-hard);
    padding-left: 18px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
html[data-skin="field"] .status-toast.success { color: var(--band-ink); border-left: 3px solid var(--success); }
html[data-skin="field"] .status-toast.error { color: var(--band-ink); border-left: 3px solid var(--error); }

html[data-skin="field"] .settings-control { border-radius: 0; }
html[data-skin="field"] .settings-section h2 {
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
/* 배경 테마 6종은 클래식 전용. 필드에서는 고를 게 없으니 줄 자체를 감춤 */
html[data-skin="field"] .settings-row-stack:has(.settings-bg-picker) { display: none; }

/* ===================================================================
   시안 맞추기 (change.karmolab-shell-redesign, 2026-08-30 저녁). 캔버스 Z1, HA 와 나란히 비교한 격차
   표시 글꼴, 워터마크와 큰 원, 첫 화면 라벨 줄, 옆줄 번호와 계정 띠, 도구 판 제목 자와 재료 판 칩
   =================================================================== */
:root { --font-display: 'KarmoDisplay', 'Arial Narrow', 'Noto Sans KR', system-ui, sans-serif; }

/* 워터마크와 큰 원. 장면 요소 한 겹, 토큰이 0 이면 안 보임 */
.app-wm { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.app-wm::before {
    content: '';
    position: absolute;
    right: -24px;
    top: 100px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 320px;
    line-height: .85;
    letter-spacing: -.02em;
    color: var(--scene-wm);
    user-select: none;
    /* 웹폰트가 늦게 오면 320px 글자의 윗선이 9px 움직여 화면이 밀린다 (CLS 0.088, 2026-09-04 실측).
       상자를 미리 잡고 넘치는 것은 잘라 그 움직임을 가둔다 */
    height: 272px;
    overflow: hidden;
}
html[data-view="home"] .app-wm::before { content: 'HOME'; }
html[data-view="tool"] .app-wm::before { content: 'TOOL'; }
.app-wm::after {
    content: '';
    position: absolute;
    left: calc(50% + 180px);
    top: 50%;
    width: 660px;
    height: 660px;
    margin: -330px 0 0 -330px;
    border-radius: 50%;
    border: 1px solid var(--scene-dot);
    opacity: 0;
}
html[data-skin="field"] .app-wm::after { opacity: 1; }

/* 첫 화면. 라벨 줄 + 표시 글꼴 대문자 제목 (시안 HA) */
/* 첫 화면의 날짜와 도구 수. 짜임이라 스킨과 무관하게 뜬다 (2026-09-01) */
.landing-label {
    display: block;
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
html[data-skin="field"] .landing-title {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.02em;
    font-size: clamp(72px, 9vw, 110px);
}
html[data-skin="field"] .landing-pulse-line b { font-family: var(--font-display); font-size: var(--font-size-lg); }

/* 옆줄. 번호, 계정 띠 */
/* 줄 번호는 짜임이다. 스킨과 무관하게 뜬다 (2026-09-01) */
.sidebar-list .nav-item { padding-right: 12px; }
.nav-item-num {
    display: inline;
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    color: var(--text-tertiary);
}
html[data-skin="field"] .sidebar-list-head { text-transform: none; letter-spacing: .12em; }
html[data-skin="field"] .sidebar-user {
    margin: 0 8px 8px;
    background: linear-gradient(90deg, var(--band) 70%, color-mix(in srgb, var(--band) 82%, transparent));
    color: var(--band-ink);
}
html[data-skin="field"] .sidebar-user .header-account-btn { color: var(--band-ink); }
/* 계정 줄은 띠 반전이라 바탕이 어둡다. 기본 hover 색(--bg-hover)은 밝은 판 색이라
   글자와 같은 밝기가 되어 이름이 사라졌다 (2026-08-31 실측: 밝은 판에서 1.0:1).
   띠 위에서는 띠 잉크를 조금 섞어 밝기를 올린다 */
html[data-skin="field"] .sidebar-user .header-account-btn:hover { background: color-mix(in srgb, var(--band-ink) 14%, var(--band)); }
html[data-skin="field"] .sidebar-user .header-account-btn:focus-visible { background: color-mix(in srgb, var(--band-ink) 14%, var(--band)); outline: 2px solid var(--accent); outline-offset: -2px; }
html[data-skin="field"] .sidebar-user .header-account-name { color: var(--band-ink); font-weight: 700; }
html[data-skin="field"] .sidebar-user .header-account-blank { background: var(--bg-void); outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 50%; color: var(--text-primary); }

/* 도구 판 제목. 큰 제목 + 괄호 설명 + 자(1px 선 + 강조 띠) (시안 Z1) */
/* 제목 블록 (시안 Z1). 큰 번호 96 | 라벨 10 모노 + 제목 30 + 괄호 설명 | 별 칩. 아래 자 1px + 강조 띠 120x6 */
/* 제목 블록. **짜임은 스킨과 무관하다** (2026-09-01). 큰 번호, 라벨, 제목, 설명, 별 칩, 자.
   스킨은 칠과 모양 토큰만 바꾼다: `--hero-font`, `--chip-radius`, `--skew`, `--accent-mix`, `--glass` */
.tool-page-hero-actions { display: contents; }
.tool-page-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 22px;
    padding-bottom: 0;
    margin-bottom: var(--space-lg);
}
.tool-page-hero-no {
    display: block;
    font-family: var(--hero-font);
    font-weight: 800;
    font-size: 96px;
    line-height: .8;
    letter-spacing: -.02em;
    color: var(--text-primary);
}
.tool-page-hero-main { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; min-width: 0; }
.tool-page-hero-label {
    display: block;
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.tool-page-hero-title { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.tool-page-hero-desc { margin: 0; display: flex; align-items: center; gap: 8px; }
.tool-page-hero-desc::before { content: ''; width: 8px; height: 8px; background: var(--accent); background-image: var(--accent-mix); flex: none; border-radius: var(--chip-radius); }
.tool-page-hero-desc::after { content: none; }
/* 기울인 칩은 상자 밖으로 36 x tan(12도) = 8px 삐져나온다. 그만큼 오른쪽 여백 */
.tool-page-hero-actions { display: flex; align-items: flex-end; gap: 8px; margin-left: auto; padding: 0 10px 8px 0; }
.tool-page-hero-actions .tool-pin-star {
    position: static;
    width: auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    background: var(--glass);
    color: var(--text-primary);
    font-size: var(--font-size-2xs);
    transform: skewX(var(--skew));
    border-radius: var(--chip-radius);
}
.tool-page-hero-rule {
    display: block;
    flex: 1 1 100%;
    height: 6px;
    margin-top: 18px;
    border-bottom: 1px solid var(--border-strong);
    background-image: var(--accent-mix);
    background-size: 120px 6px;
    background-repeat: no-repeat;
}
/* 필드만의 것. 테두리를 잉크로 진하게 */
html[data-skin="field"] .tool-page-hero-actions .tool-pin-star { border-color: var(--text-primary); }
html[data-skin="field"] .tool-page-hero-rule { border-bottom-color: var(--text-primary); }
/* 머리띠 글자 (시안 Z1). 로고는 표시 글꼴 대문자, 경로는 모노 라벨. 흰 칩은 뺌 */
html[data-skin="field"] .header-crumb { background: transparent; border: 0; padding: 0 0 0 4px; gap: 10px; }
html[data-skin="field"] .header-crumb .header-logo-text,
html[data-skin="field"] .header-crumb .header-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
}
html[data-skin="field"] .header-crumb-sep { font-family: var(--font-mono); font-size: var(--font-size-4xs); letter-spacing: .16em; color: var(--text-tertiary); }
html[data-skin="field"] .header-crumb-sep::before { content: '//'; }
html[data-skin="field"] .header-crumb-sep { font-size: 0; }
html[data-skin="field"] .header-crumb-sep::before { font-size: var(--font-size-4xs); }
html[data-skin="field"] .header-crumb .header-now { font-family: var(--font-mono); font-size: var(--font-size-4xs); letter-spacing: .16em; font-weight: 500; }

/* 재료 도구 판 (material-shell). **짜임은 스킨과 무관하다** (2026-09-01).
   왼쪽 재료는 번호 머리를 단 판, 오른쪽 할 일은 번호 절과 칩. 스킨은 깎임(--cut), 칩 꼴(--chip-clip),
   테두리 진하기, 번호 글꼴(--hero-font)만 바꾼다 */
.pf-shell { counter-reset: pf 1; }
.pf-shell .pf-head {
    /* position 은 원래 규칙(sticky)을 둔다. relative 로 덮으면 top 52px 가 살아 판이 52px 내려앉는다 (실측) */
    background: linear-gradient(180deg, var(--glass) 0%, color-mix(in srgb, var(--glass) 70%, transparent) 70%, transparent 100%);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-hover);
    border-bottom: 0;
    padding: 40px 14px 14px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.pf-shell .pf-head::before {
    content: '01 재료 / 붙여넣기 / 파일';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 32px;
    padding: 0 14px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    letter-spacing: .16em;
    color: var(--text-tertiary);
}
.pf-shell .pf-head::after {
    content: '';
    position: absolute;
    left: -1px; top: -1px;
    width: 14px; height: 14px;
    border-left: 2px solid var(--accent);
    border-top: 2px solid var(--accent);
}
.pf-shell .pf-paste textarea,
.pf-shell .pf-drop { border-radius: 0; border: 0; background: transparent; padding: 6px 4px; font-size: var(--font-size-sm); }
.pf-shell.pf-shell .pf-paste textarea { min-height: 420px; }
.pf-shell .pf-paste-hint { font-family: var(--font-mono); font-size: var(--font-size-4xs); letter-spacing: .16em; text-transform: uppercase; color: var(--text-tertiary); }
.pf-shell .pf-group { counter-increment: pf; margin-bottom: 18px; }
.pf-shell .pf-group-label {
    display: flex; align-items: center; gap: 8px;
    opacity: 1;
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--font-size-2xs);
    color: var(--text-primary);
    margin-bottom: 8px;
}
.pf-shell .pf-group-label::before {
    content: counter(pf, decimal-leading-zero);
    font-family: var(--hero-font);
    font-size: var(--font-size-md);
    color: var(--text-tertiary);
}
.pf-shell .pf-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border-hover); margin-left: 4px; }
.pf-shell .pf-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-shell .pf-job {
    border: 1px solid var(--border-hover);
    background: var(--glass);
    padding: 8px 16px;
    clip-path: var(--chip-clip);
}
.pf-shell .pf-job:hover { background: var(--bg-hover); border-color: var(--border-strong); }
/* 필드만의 것. 잉크로 진한 테두리, 각진 칩 */
html[data-skin="field"] .pf-shell .pf-head { border-color: var(--text-primary); }
html[data-skin="field"] .pf-shell .pf-job { border-radius: 0; }
html[data-skin="field"] .pf-shell .pf-job:hover { border-color: var(--text-primary); }
html[data-skin="field"] .pf-shell .pf-job.pf-hot { background: var(--band); color: var(--band-ink); border-color: var(--band); font-weight: 700; }
/* 제목 블록에 별만 직접 붙는 옛 경로(정적 장). 오른쪽 끝에 붙지 않게 여백 */
html[data-skin="field"] .tool-page-hero > .tool-pin-star { position: static; margin-left: auto; margin-right: 24px; align-self: flex-start; transform: none; }
/* 별 칩에 글자 (시안 Z1 의 "별 꽂기"). 글자는 이미 있는 title 을 그대로 씀 */
/* 별만 남긴다. 글자는 안 붙인다 (2026-09-01 사용자 결정). 뜻은 title 과 낭독기 이름이 말한다 */
.tool-page-hero-actions .tool-pin-star { padding: 0 12px; }
html[data-skin="field"] .tool-page-hero-actions .tool-pin-star { opacity: 1; }

/* ===================================================================
   부품 킷, 필드 스킨 (change.karmolab-ui-kit, 2026-08-30)
   위젯이 이미 쓰는 공용 클래스(btn 601, btn-ghost 413, field-group 210, tool-status 167, btn-primary 143,
   tool-chip 104, tool-grid-2 97, tool-list 79 ...)를 토큰으로 한 번에 갈아끼운다. 도구 234개가 같이 바뀜
   새 이름 없음. 정본 목록은 src/widgets/README.md 부품 킷 절
   =================================================================== */
/* 버튼 */
html[data-skin="field"] .btn {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--text-primary);
    border-radius: 0;
    background: var(--glass);
    color: var(--text-primary);
    font-size: var(--font-size-2xs);
    font-weight: 600;
    letter-spacing: 0;
}
html[data-skin="field"] .btn:hover { background: var(--bg-hover); }
html[data-skin="field"] .btn-primary {
    background: var(--band);
    color: var(--band-ink);
    border-color: var(--band);
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 0 -2px var(--accent);
    font-family: inherit;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    padding: 0 22px;
    min-height: 40px;
}
html[data-skin="field"] .btn-primary:hover { background: var(--text-primary); color: var(--bg-void); border-color: var(--text-primary); }
html[data-skin="field"] .btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); min-height: 32px; padding: 0 10px; }
html[data-skin="field"] .btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); border-color: var(--border-hover); }
html[data-skin="field"] .btn-sm { min-height: 28px; padding: 0 10px; font-size: var(--font-size-3xs); }

/* 입력 묶음, 라벨, 입력칸 */
html[data-skin="field"] .field-group {
    background: var(--glass);
    border: 1px solid var(--border-hover);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 12px 14px;
}
html[data-skin="field"] .field-label,
html[data-skin="field"] .tool-sublabel {
    font-family: var(--font-mono);
    font-size: var(--font-size-4xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
}
html[data-skin="field"] .tool-page textarea,
html[data-skin="field"] .tool-page input[type="text"], html[data-skin="field"] .tool-page input[type="password"], html[data-skin="field"] .tool-page input[type="number"], html[data-skin="field"] .tool-page input[type="search"],
html[data-skin="field"] .tool-page input[type="url"], html[data-skin="field"] .tool-page input[type="email"], html[data-skin="field"] .tool-page input[type="tel"],
html[data-skin="field"] .tool-page input[type="date"], html[data-skin="field"] .tool-page input[type="time"], html[data-skin="field"] .tool-page input[type="datetime-local"], html[data-skin="field"] .tool-page input[type="month"],
html[data-skin="field"] .tool-page select,
html[data-skin="field"] .mono-input {
    border-radius: 0;
    border: 1px solid var(--border-hover);
    background: var(--bg-secondary);
    color: var(--text-primary);
}
html[data-skin="field"] .tool-page textarea:focus,
html[data-skin="field"] .tool-page input:focus,
html[data-skin="field"] .tool-page select:focus { border-color: var(--text-primary); box-shadow: inset 3px 0 0 var(--accent); outline: none; }

/* 상태, 힌트 */
html[data-skin="field"] .tool-status { font-family: var(--font-mono); font-size: var(--font-size-3xs); letter-spacing: .04em; }
html[data-skin="field"] .tool-hint { color: var(--text-tertiary); }

/* 칩 (고르기). 평행사변형, 고른 것은 띠 반전 */
html[data-skin="field"] .tool-chip {
    border-radius: 0;
    border: 1px solid var(--border-hover);
    background: var(--glass);
    color: var(--text-primary);
    padding: 7px 16px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
html[data-skin="field"] .tool-chip:hover { border-color: var(--text-primary); background: var(--bg-hover); color: var(--text-primary); }
html[data-skin="field"] .tool-chip.active { background: var(--band); color: var(--band-ink); border-color: var(--band); font-weight: 700; }

/* 목록 (키, 값) */
html[data-skin="field"] .tool-list { border: 1px solid var(--text-primary); background: var(--glass); border-radius: 0; }
html[data-skin="field"] .tool-list-row { border-bottom: 1px solid var(--border); }
html[data-skin="field"] .tool-list-key { font-size: var(--font-size-3xs); letter-spacing: .08em; text-transform: uppercase; }

/* 놓는 곳 */
html[data-skin="field"] .tool-drop { border: 1px dashed var(--border-hover); background: var(--glass); border-radius: 0; }

/* 탭 줄. 고른 탭은 띠 반전 */
html[data-skin="field"] .tab-row { border-bottom: 1px solid var(--text-primary); gap: 4px; }
html[data-skin="field"] .tab-btn {
    font-family: inherit;
    font-size: var(--font-size-2xs);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-bottom: 0;
    margin-bottom: 0;
    color: var(--text-secondary);
}
html[data-skin="field"] .tab-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
html[data-skin="field"] .tab-btn.active { background: var(--band); color: var(--band-ink); border-color: var(--band); box-shadow: 3px 3px 0 var(--accent); }

/* 부품 카탈로그 장 (`#uikit`). 견본 틀만. 부품 모양은 위 규칙이 정한다 */
.kit-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-lg); align-items: start; }
.kit-part { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 0; }
.kit-part-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); }
.kit-part-name { font-weight: 600; }
.kit-part-classes { font-family: var(--font-mono); font-size: var(--font-size-2xs); color: var(--text-tertiary); overflow-wrap: anywhere; }
.kit-part-body { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
html[data-skin="field"] .kit-part { background: var(--bg-secondary); border-radius: 0; box-shadow: var(--shadow-hard); }
/* 폰 줄의 찾기. 주황 글자는 어느 판 위에서도 4.5:1 이 안 나온다 (1.83, 3.7). 띠 반전으로 */
html[data-skin="field"] .mobile-nav .nav-item-find { background: var(--band); color: var(--band-ink); }
/* 주황은 칠이지 글자가 아니다. #e8963a 글자는 밝은 판 위 1.9:1. 글자 자리는 --accent-ink (a11y 게이트, 2026-08-30).
   아직 위젯 주입 CSS 안의 `color: var(--accent)` 는 못 걸렀다. change.karmolab-ui-kit 의 색 sweep 몫 */
html[data-skin="field"] .range-value,
html[data-skin="field"] .cc-stat-primary .cc-stat-value,
html[data-skin="field"] .hi-vl,
html[data-skin="field"] .hi-chips button[aria-pressed='true'],
html[data-skin="field"] .tool-hub-mine-title,
html[data-skin="field"] .tool-next-btn,
html[data-skin="field"] .rt-row-glyph,
html[data-skin="field"] .kc-key,
html[data-skin="field"] .pc-out,
html[data-skin="field"] .tool-hub-new,
html[data-skin="field"] .tool-seo-crumb a:hover,
html[data-skin="field"] .tool-seo-kin a:hover,
html[data-skin="field"] .tool-seo-related a:hover,
html[data-skin="field"] .tool-hub-quest a,
html[data-skin="field"] .tool-hub-group a:hover,
html[data-skin="field"] .tool-hub-toc a:hover,
html[data-skin="field"] .tool-pin-star[aria-pressed='true'],
html[data-skin="field"] .tool-hub-star[aria-pressed='true'] { color: var(--accent-ink); }
/* 체크와 라디오와 슬라이더는 브라우저가 칠한다. 안 정하면 파랑이 남는다 */
html[data-skin="field"] input[type="checkbox"],
html[data-skin="field"] input[type="radio"],
html[data-skin="field"] input[type="range"] { accent-color: var(--accent); }

/* 클래스가 하나도 없는 맨 버튼. 위젯이 아무것도 안 정한 자리다 (실측 2026-08-31: 글자 바꾸기 도구는
   버튼 11 중 10 이 브라우저 기본 13.3px, 여백 0). `:where` 로 힘을 0 으로 두고 `:not([class])` 로
   범위를 좁혀, 클래스가 하나라도 있는 버튼은 위젯 규칙이 그대로 이긴다 */
:where(.tool-page, .tab-panel) button:not([class]) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; font-family: inherit; font-size: var(--font-size-xs); font-weight: 600;
    letter-spacing: 0.02em; line-height: 1.2;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-tertiary); color: var(--text-primary);
    cursor: pointer; transition: all var(--transition);
}
:where(.tool-page, .tab-panel) button:not([class]):hover { background: var(--bg-hover); border-color: var(--border-hover); }
:where(.tool-page, .tab-panel) button:not([class]):disabled { opacity: .4; cursor: not-allowed; }
html[data-skin="field"] :where(.tool-page, .tab-panel) button:not([class]) { border-radius: 0; }
/* 위젯이 글꼴을 안 정한 조작 부품. 브라우저 기본(13.33px Arial)이 남는다 (실측 2026-08-31: 도구 60 중 7).
   `:where` 라 힘이 0. 위젯이 무엇이든 정해 두면 그쪽이 이긴다 */
:where(.tool-page, .tab-panel) :where(button, input, select, textarea) { font-family: inherit; font-size: var(--font-size-xs); }
/* 묶음 안의 맨 라벨. 위젯이 `<label>` 만 쓰고 클래스를 안 붙인 자리가 많다 (karmograph 63곳 등).
   `:where` 라 힘이 0, 클래스가 붙은 라벨은 제 규칙이 이긴다 */
:where(.field-group) > label:not([class]) {
    display: block; font-size: var(--font-size-xs); font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.02em;
}
.kit-tokens { display: flex; flex-direction: column; gap: 6px; }
.kit-token { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-2xs); }
.kit-token code { font-family: var(--font-mono); }
.kit-token-chip { width: 18px; height: 18px; flex: none; border: 1px solid var(--border); }

/* 도구 전체 목록 장(`/t/`). 셸은 새 모양인데 이 장만 옛 모양이었다 (2026-08-31 실측:
   알약 칩과 둥근 카드, 둥근 찾기 칸). 짜임은 그대로 두고 칠과 모서리만 스킨에 맞춘다 */
html[data-skin="field"] .tool-hub-toc a,
html[data-skin="field"] .tool-hub-find input,
html[data-skin="field"] .tool-hub-empty,
html[data-skin="field"] .tool-hub-new,
html[data-skin="field"] .tool-hub-desktop { border-radius: 0; }
html[data-skin="field"] .tool-hub-toc a {
    border-color: var(--border); background: var(--bg-secondary); color: var(--text-secondary);
    font-family: var(--font-mono); font-size: var(--font-size-2xs); letter-spacing: .04em;
}
html[data-skin="field"] .tool-hub-toc a:hover { background: var(--band); color: var(--band-ink); border-color: var(--band); }
html[data-skin="field"] .tool-hub-find input { border-color: var(--border); box-shadow: var(--shadow-hard); }
html[data-skin="field"] .tool-hub-card {
    border-radius: 0; border-left: 3px solid var(--accent); background: var(--bg-secondary);
}
html[data-skin="field"] .tool-hub-card:hover { transform: none; background: var(--bg-hover); box-shadow: var(--shadow-hard); }
html[data-skin="field"] .tool-hub-group { font-family: var(--font-mono); letter-spacing: .08em; }
/* 파일 고르기 버튼은 브라우저가 그린다. 안 정하면 도구마다 회색 네모가 하나씩 남는다 */
:where(.tool-page, .tab-panel) input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 6px 12px; font-family: inherit; font-size: var(--font-size-xs); font-weight: 600;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-tertiary); color: var(--text-primary); cursor: pointer;
}
:where(.tool-page, .tab-panel) input[type="file"]::file-selector-button:hover { background: var(--bg-hover); border-color: var(--border-hover); }
html[data-skin="field"] :where(.tool-page, .tab-panel) input[type="file"]::file-selector-button { border-radius: 0; }
/* 위젯이 그냥 `<table>` 을 쓴 자리. 기본 표는 테두리도 여백도 없어 글이 붙어 보인다 */
:where(.tool-page, .tab-panel) table:not([class]) { width: 100%; border-collapse: collapse; font-size: var(--font-size-2xs); }
:where(.tool-page, .tab-panel) table:not([class]) th,
:where(.tool-page, .tab-panel) table:not([class]) td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
:where(.tool-page, .tab-panel) table:not([class]) th { font-weight: 600; color: var(--text-secondary); }
:where(.tool-page, .tab-panel) table:not([class]) caption { text-align: left; padding-bottom: 6px; color: var(--text-tertiary); font-size: var(--font-size-3xs); }
/* 접힘 묶음. 화살표만 있고 누를 자리가 안 보였다 */
:where(.tool-page, .tab-panel) details:not([class]) { border: 1px solid var(--border); padding: 8px 12px; margin: 8px 0; background: var(--bg-secondary); }
:where(.tool-page, .tab-panel) details:not([class]) > summary { cursor: pointer; font-weight: 600; font-size: var(--font-size-xs); }
html[data-skin="field"] :where(.tool-page, .tab-panel) details:not([class]) { border-radius: 0; }

/* 고르기 칸의 화살표는 데이터 주소로 박혀 있어 토큰을 못 쓴다. 스킨마다 다시 그린다
   (옛 파랑 #5865F2 이 남아 있었다. 판이 회백인데 화살표만 파랬다, 2026-08-31) */
html[data-skin="field"] select,
html[data-skin="field"] .tool-page select,
html[data-skin="field"] .prism-theme-select,
html[data-skin="field"] .header-lang-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232a2a27' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
html[data-skin="field"][data-theme="dark"] select,
html[data-skin="field"][data-theme="dark"] .tool-page select,
html[data-skin="field"][data-theme="dark"] .prism-theme-select,
html[data-skin="field"][data-theme="dark"] .header-lang-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9c7bf' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}

/* 찾기 판(Ctrl+K). 셸이 각진 판인데 여기만 알약 칩과 둥근 판이었다 (2026-08-31) */
html[data-skin="field"] .kp-box { border-radius: 0; box-shadow: var(--shadow-hard); border-color: var(--border-strong); }
html[data-skin="field"] .kp-browse-chip { border-radius: 0; font-family: var(--font-mono); letter-spacing: .04em; }
html[data-skin="field"] .kp-browse-chip:hover { background: var(--band); color: var(--band-ink); border-color: var(--band); }
html[data-skin="field"] .kp-browse-chip--index:hover { background: none; color: var(--text-primary); border-color: var(--border-strong); }
html[data-skin="field"] .kp-browse-tools .kp-browse-chip { border-color: var(--border); border-left: 3px solid var(--accent); }
html[data-skin="field"] .kp-row { border-radius: 0; }
/* 이미지 편집 왼쪽 도구 줄. 아이콘 칸이라 킷 버튼과 짜임이 다르다 (제 이름으로 남김) */
html[data-skin="field"] .ie-tool-btn { border-radius: 0; }
/* 켠 머리띠 버튼은 띠 색으로 채운다. 필드는 옅은 강조색이 안 보인다 */
html[data-skin="field"] .btn-tool.is-on { background: var(--band); color: var(--band-ink); border-color: var(--band); }
