/* ============================================================
   유자 배움터 포털 — 디자인 규격 v4 「햇살 든 유자」 적응 층 (2026-10-15)

   정본: YUJA-DESIGN.md (프로젝트 루트 왕관유자_디자인시스템_v4.md)
   공용 CSS: https://crownyuja.co.kr/ds/v3/fonts.css + yuja.css + themes/eosamun.css
             (배움터지만 토론 탐험대처럼 유자 노랑 — 규격 §9 예외를 포털까지 넓힘)
   형제: discussion/v3.css 맨 끝 'v4 층' — 상단바·바탕·카드 값이 같아야 한다.

   쓰는 곳: index.html(대문) · privacy.html(원고 카드) · thumbnail-tower.html(관제 도구)
   원칙: 가산 전용. 페이지 <style> 의 옛 클래스는 그대로 두고 이 파일이 덮는다.
         이 파일은 <head> 맨 끝에 링크되므로 같은 특이도면 이긴다. 그래도 흔들리지
         않게 선택자 앞에 body 를 붙인다. 인라인 style 만 !important 로 덮는다.
   값:   색·모서리·움직임·간격·그림자는 ds/v3 토큰만. HEX 를 새로 적지 않는다.
   새 클래스는 pt- (portal). yj- 는 DS 이름공간이라 새로 짓지 않는다.
   ============================================================ */

/* ── 바탕: 유자 속껍질빛 캔버스 ───────────────────────────── */
html { overflow-x: clip; }
body,
body #root { background: var(--yj-canvas); color: var(--yj-ink); }
body #root { overflow-x: clip; }

/* ── 상단바: 56 · 불투명 미색 · 아래 1px 선 · 화면 좌우 끝까지 ── */
body .header-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
}
body .top-nav {
    height: 56px;
    padding: 0 max(var(--yj-s4), calc((100% - 1100px) / 2));
    background: var(--yj-card);
    border-bottom: 1px solid var(--yj-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
/* 왼쪽 — 유자 얼굴 28 + 세리프 사이트명, 테두리 없이 */
body .nav-logo {
    gap: var(--yj-s2);
    height: 44px;
    font-family: var(--yj-font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--yj-ink-deep);
}
body .nav-logo img,
body .pt-brand__face {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
/* 오른쪽 — 아이콘 하나(공식 홈페이지) */
body .nav-actions { gap: var(--yj-s2); }
body .nav-main-home-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--yj-r-full);
    background: transparent;
    color: var(--yj-sub);
}
body .nav-main-home-btn:hover { background: var(--yj-yuja-50); color: var(--yj-ink-deep); }
body .nav-main-home-btn:active { transform: scale(.97); }
body .nav-main-home-btn .yj-ic { width: 24px; height: 24px; }

/* ── 제목 줄: 캔버스 위 · 유자 글자 라벨 / Paperlogy 제목 / 한 줄 / 32×3 막대 ── */
body .hero-section {
    background: transparent !important;   /* 인라인 교실 사진을 걷는다 */
    padding: var(--yj-s6) var(--yj-s4) var(--yj-s5);
    border-bottom: 0;
    overflow: visible;
}
body .hero-section::before { content: none; }
body .hero-container {
    display: block;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
body .hero-container::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin: var(--yj-s4) auto 0;
    border-radius: var(--yj-r-full);
    background: var(--yj-yuja-500);
}
body .hero-text {
    align-items: center;
    gap: 0;
    animation: none;
}
body .hero-tagline {
    margin-bottom: var(--yj-s3);
    padding: 0;
    background: none;
    border-radius: 0;
    text-transform: none;
    color: var(--yj-yuja-ink);
    font-size: var(--yj-t-label);
    font-weight: 700;
    letter-spacing: .04em;
}
body .hero-title {
    margin-bottom: var(--yj-s2);
    font-family: var(--yj-font-disp);
    font-size: clamp(24px, 4.4vw, 30px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: var(--yj-ink-deep);
}
body .hero-desc {
    max-width: none;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: var(--yj-ink);   /* 탐험대 머리 설명과 같은 먹 */
}
/* 떠다니는 캐릭터 + 말풍선(§0-3 마스코트 도움말)은 쓰지 않는다 */
body .hero-visual { display: none; }

/* ── 본문 틀 ──────────────────────────────────────────── */
body .main-content {
    background: transparent;
    padding: var(--yj-s4) var(--yj-s4) var(--yj-s8);
}
body .main-container { max-width: 1100px; }

/* ── 고르는 줄: 필터 칩(왼쪽) + 검색 입력 하나(오른쪽) ── */
body .pt-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--yj-s3) var(--yj-s4);
    margin-bottom: var(--yj-s6);
    background: none;
    border: 0;
}
body .pt-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--yj-s2);
    padding: 0;
    overflow: visible;
    white-space: normal;
}
/* 칩 — 미색 + 1px 강한 선 알약 · 개수 보조색 */
body .pt-chip,
body .pt-chips .nav-menu-link {
    height: 36px;
    padding: 0 var(--yj-s4);
    gap: 6px;
    border: 1px solid var(--yj-line-strong);
    border-radius: var(--yj-r-full);
    background: var(--yj-card);
    box-shadow: none;
    color: var(--yj-ink);
    font-size: 15px;
    font-weight: 600;
    transition: background-color var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease);
}
body .pt-chip:hover {
    background: var(--yj-yuja-50);
    border-color: var(--yj-yuja-600);
    color: var(--yj-ink-deep);
}
body .pt-chip__count {
    color: var(--yj-sub);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
/* 고른 칩 — 유자 300 채움 + 먹 글자 + 먹 개수 */
body .pt-chip.active,
body .pt-chip.active:hover {
    background: var(--yj-yuja-300);
    border-color: var(--yj-yuja-300);
    color: var(--yj-on-action);
    box-shadow: none;
}
body .pt-chip.active .pt-chip__count { color: var(--yj-on-action); }

/* 검색 — 왼쪽 돋보기 · 분류 고르기 없음 · 배움 지면 유자 50 · 포커스 유자 600 */
body .pt-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--yj-s2);
    width: 280px;
    height: 44px;
    padding: 0 var(--yj-s4) 0 var(--yj-s3);
    border: 1px solid var(--yj-line-strong);
    border-radius: var(--yj-r-sm);
    background: var(--yj-yuja-50);
    cursor: text;
    transition: border-color var(--yj-m-fast) var(--yj-ease), box-shadow var(--yj-m-fast) var(--yj-ease);
}
body .pt-search:focus-within {
    border-color: var(--yj-yuja-600);
    box-shadow: inset 0 0 0 1px var(--yj-yuja-600);
}
body .pt-search .nav-search-icon {
    position: static;
    transform: none;
    color: var(--yj-sub);
}
body .pt-search .nav-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--yj-ink-deep);
    font-size: 17px;   /* 16 미만이면 iOS 가 확대한다 */
}
body .pt-search .nav-search-input:focus { background: transparent; box-shadow: none; }
body .pt-search .nav-search-input::placeholder { color: var(--yj-sub); }

/* ── 분류 묶음 머리 — Paperlogy 제목 + 개수 · 아래 1px 선 ── */
body .category-group { margin-bottom: var(--yj-s7); }
body .category-title-wrapper {
    align-items: baseline;
    gap: var(--yj-s2);
    margin-bottom: var(--yj-s5);
    padding-bottom: var(--yj-s3);
    border-bottom: 1px solid var(--yj-line);
}
body .category-title {
    font-family: var(--yj-font-disp);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--yj-ink-deep);
}
body .pt-group__count {
    color: var(--yj-sub);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ── 앱 카드 격자 — 모두 같은 미색 카드(형제처럼) ─────────── */
body .apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--yj-s5);
}
body .app-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: var(--yj-card);
    border: 1px solid var(--yj-line);
    border-radius: var(--yj-r-lg);
    box-shadow: var(--yj-sh-1);
    transition: box-shadow var(--yj-m-mid) var(--yj-ease), transform var(--yj-m-mid) var(--yj-ease);
}
body .app-card:hover {
    transform: translateY(-2px);
    border-color: var(--yj-line);
    box-shadow: var(--yj-sh-2);
}
body .app-card:active { transform: scale(.98); }
body .app-card:focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; }
body .app-card.disabled { filter: none; opacity: 1; }
body .app-card.disabled:hover { transform: none; box-shadow: var(--yj-sh-1); }

/* 카드 그림 영역 — 앱마다 다른 파스텔 면 대신 모두 같은 캔버스 면 */
body .card-visual-wrapper {
    height: 152px;
    flex: none;
    border-radius: 0;
    border-bottom: 1px solid var(--yj-line);
    background: var(--yj-canvas) !important;
}
body .card-visual-img {
    height: 112px;
    transition: transform var(--yj-m-mid) var(--yj-ease);
}
body .app-card:hover .card-visual-img { transform: translateY(-2px); }

/* 카드 배너 — 썸네일 관제탑의 16:9 홍보 배너를 카드 머리에 꽉 채운다 */
body .card-visual-wrapper.yj-card-banner {
    height: auto;
    aspect-ratio: 16 / 9;
}
body .yj-card-banner .yj-card-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body .app-card:hover .yj-card-banner .yj-card-banner__img { transform: none; }

body .card-info {
    flex-grow: 1;
    gap: var(--yj-s1);
    padding: var(--yj-s5) var(--yj-s5) 0;
}
body .card-title {
    font-family: var(--yj-font-disp);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.02em;
    color: var(--yj-ink-deep);
}
body .card-description {
    min-height: 3.2em;
    font-size: 15px;
    line-height: 1.6;
    color: var(--yj-sub);
}

/* 배지 줄 + 공유 아이콘 */
body .card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--yj-s2);
    width: auto;
    margin: 0;
    padding: var(--yj-s3) var(--yj-s4) var(--yj-s3) var(--yj-s5);
    border-top: 0;
    order: 0;
}
body .card-meta-row .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
    order: 0;
    font-size: 13px;
    color: var(--yj-sub);
}
/* 배지 4종 중 셋 — 유자(AI 대화) · 외곽선(분류 · PC 전용 · 준비 중) */
body .pt-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--yj-r-full);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
}
body .pt-badge--yuja {
    background: var(--yj-yuja-100);
    border: 0;
    color: var(--yj-ink-deep);
}
body .pt-badge--line {
    background: transparent;
    border: 1px solid var(--yj-line-strong);
    color: var(--yj-sub);
    font-weight: 500;
}
/* 공유 — 아이콘 버튼(바탕 없음 · 보조 글자 · 44 원) */
body .card-share-btn {
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: var(--yj-r-full);
    background: transparent;
    box-shadow: none;
    color: var(--yj-sub);
    transition: background-color var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease);
}
body .card-share-btn:hover {
    background: var(--yj-yuja-50);
    border-color: transparent;
    color: var(--yj-ink-deep);
}

/* 빈 화면 — 선 SVG + 다음에 할 일 한 줄 + 고스트 버튼 */
body .pt-empty {
    background: var(--yj-card);
    border: 1px solid var(--yj-line);
    border-radius: var(--yj-r-lg);
    box-shadow: var(--yj-sh-1);
    font-size: 17px;
}
body .pt-empty .yj-btn--ghost { color: var(--yj-sub); }
body .pt-empty .yj-btn--ghost:hover { color: var(--yj-ink-deep); background: var(--yj-yuja-50); }

/* 스크롤 따라 올라오기 — 움직임 값은 320 하나 */
body .reveal-on-scroll {
    transform: translateY(var(--yj-s3));
    transition: opacity var(--yj-m-slow) var(--yj-ease), transform var(--yj-m-slow) var(--yj-ease);
}
body .reveal-on-scroll.is-visible { transform: none; }
body .fade-in-section { animation: none; }

/* ── 푸터: 캔버스 위 한 줄 · 1px 위 선 · 보조 글자 ─────────── */
body .footer-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--yj-s2) var(--yj-s4);
    padding: var(--yj-s5) var(--yj-s4) calc(var(--yj-s5) + var(--yj-safe-b));
    background: var(--yj-canvas);
    border-top: 1px solid var(--yj-line);
    color: var(--yj-sub);
    font-size: 15px;
}
body .footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--yj-s4);
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}
body .footer-brand,
body .footer-col-title { display: none; }
body .footer-bottom > div { display: none !important; }   /* 겹치는 링크 둘은 숨김(인라인 flex 를 덮는다) — DOM 에는 남는다 */
body .footer-column { display: contents; }
body .footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--yj-s2) var(--yj-s4);
}
body .footer-link,
body .footer-legal-link {
    color: var(--yj-sub);
    font-size: 15px;
    text-decoration: none;
    transition: color var(--yj-m-fast) var(--yj-ease);
}
body .footer-link:hover,
body .footer-legal-link:hover { color: var(--yj-ink-deep); text-decoration: underline; }
body .footer-bottom {
    order: -1;
    width: auto;
    max-width: none;
    margin: 0;
    color: var(--yj-sub);
    font-size: 15px;
}

/* ── 토스트: 숲 + 흰 글자 + 유자 체크 ─────────────────────── */
body .copy-toast {
    bottom: calc(var(--yj-s5) + var(--yj-safe-b));
    gap: var(--yj-s2);
    padding: var(--yj-s3) var(--yj-s5);
    border-radius: var(--yj-r-lg);
    background: var(--yj-forest);
    color: var(--yj-on-forest);
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--yj-sh-2);
    animation: toastIn var(--yj-m-mid) var(--yj-ease), toastOut var(--yj-m-mid) var(--yj-ease) 1.8s forwards;
}
body .copy-toast .yj-ic { color: var(--yj-yuja-500); }

/* ── 휴대폰 ──────────────────────────────────────────── */
@media (max-width: 768px) {
    body .top-nav { padding: 0 var(--yj-s2) 0 var(--yj-s4); }
    body .nav-logo { font-size: 17px; }
    body .nav-logo img { height: 28px; }

    body .hero-section { padding: var(--yj-s5) var(--yj-s4) var(--yj-s4); }
    body .hero-desc { font-size: 17px; }

    body .main-content { padding: var(--yj-s3) var(--yj-s4) var(--yj-s7); }
    body .pt-filter { flex-direction: column; align-items: stretch; margin-bottom: var(--yj-s5); }
    body .pt-search { width: 100%; order: -1; }

    body .apps-grid { grid-template-columns: 1fr; gap: var(--yj-s3); }
    /* 휴대폰 카드: 그림 80 왼쪽 + 이름·설명 오른쪽, 배지 줄은 아래 */
    body .app-card {
        display: grid;
        grid-template-columns: 80px 1fr;
        align-items: center;
        gap: var(--yj-s2) var(--yj-s4);
        padding: var(--yj-s4) var(--yj-s4) var(--yj-s1);
    }
    body .card-visual-wrapper {
        width: 80px;
        height: 80px;
        border: 0;
        border-radius: var(--yj-r-sm);
    }
    body .card-visual-img { height: 60px; }
    /* 배너 카드는 왼쪽 칸을 16:9 로 넓힌다 */
    body .app-card:has(.yj-card-banner) { grid-template-columns: 128px 1fr; }
    body .card-visual-wrapper.yj-card-banner { width: 128px; height: auto; }
    body .yj-card-banner .yj-card-banner__img { height: 100%; }
    body .card-info { min-width: 0; padding: 0; }
    body .card-title { font-size: 18px; font-weight: 700; }
    body .card-description { min-height: 0; font-size: 15px; line-height: 1.5; }
    body .card-meta-row {
        grid-column: 1 / -1;
        padding: 0;
        border-top: 1px solid var(--yj-line);
    }
    body .category-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    body .reveal-on-scroll,
    body .app-card,
    body .card-visual-img { transition: none; transform: none; }
}

/* ============================================================
   개인정보처리방침 (privacy.html) — 캔버스 위 원고 카드 한 장(최대 760)
   ============================================================ */
body.pt-privacy {
    background: var(--yj-canvas);
    color: var(--yj-ink);
    padding: 0 var(--yj-safe-r) var(--yj-safe-b) var(--yj-safe-l);
}
body.pt-privacy .header {
    padding: var(--yj-s6) var(--yj-s4) var(--yj-s5);
    background: transparent;
    color: var(--yj-ink-deep);
}
body.pt-privacy .header h1 {
    margin-bottom: var(--yj-s2);
    font-family: var(--yj-font-serif);
    font-size: clamp(28px, 4.4vw, 34px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.4;
    color: var(--yj-ink-deep);
}
body.pt-privacy .header p {
    font-size: 15px;
    opacity: 1;
    color: var(--yj-sub);
}
body.pt-privacy .header::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin: var(--yj-s4) auto 0;
    border-radius: var(--yj-r-full);
    background: var(--yj-yuja-500);
}
body.pt-privacy .container {
    max-width: 760px;
    margin: 0 auto var(--yj-s7);
    padding: var(--yj-s6) var(--yj-s6) var(--yj-s5);
    background: var(--yj-card);
    border: 1px solid var(--yj-line);
    border-radius: var(--yj-r-lg);
    box-shadow: var(--yj-sh-1);
}
body.pt-privacy .intro-box {
    margin-bottom: var(--yj-s6);
    padding: var(--yj-s4) var(--yj-s5);
    background: var(--yj-yuja-50);
    border: 0;
    border-left: 2px solid var(--yj-yuja-500);
    border-radius: var(--yj-r-lg);
    color: var(--yj-ink);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;
}
/* 조항은 카드 안 글 — 따로 띄우지 않고 1px 선으로 나눈다 */
body.pt-privacy .section {
    margin: 0;
    padding: var(--yj-s5) 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--yj-line);
    border-radius: 0;
    box-shadow: none;
}
body.pt-privacy .section h2 {
    margin-bottom: var(--yj-s3);
    padding-bottom: 0;
    border-bottom: 0;
    font-family: var(--yj-font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.45;
    color: var(--yj-ink-deep);
}
body.pt-privacy .section p,
body.pt-privacy .section li {
    font-size: 17px;
    line-height: 1.9;
    color: var(--yj-ink);
}
body.pt-privacy .section strong { color: var(--yj-ink-deep); }
body.pt-privacy table { font-size: 15px; }
body.pt-privacy th,
body.pt-privacy td { border-color: var(--yj-line); }
body.pt-privacy th {
    background: var(--yj-canvas);
    color: var(--yj-ink-deep);
    border-bottom-color: var(--yj-yuja-600);
}
body.pt-privacy .section p[style] {
    font-size: 15px !important;
    color: var(--yj-sub) !important;
    line-height: 1.8;
}
body.pt-privacy .contact-link { color: var(--yj-ink-deep); text-decoration: underline; text-decoration-color: var(--yj-yuja-600); text-underline-offset: 3px; }
body.pt-privacy .date-note {
    padding: var(--yj-s5) 0 0;
    border-top: 1px solid var(--yj-line);
    color: var(--yj-sub);
    font-size: 15px;
}
/* 돌아가기 — 보조 버튼(유자 100 + 유자 글자) */
body.pt-privacy .back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--yj-s2);
    height: 44px;
    margin-top: var(--yj-s4);
    padding: 0 var(--yj-s5);
    background: var(--yj-yuja-100);
    border-radius: var(--yj-r-sm);
    color: var(--yj-yuja-ink);
    font-size: 15px;
    font-weight: 700;
    transition: background-color var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease);
}
body.pt-privacy .back-link:hover { opacity: 1; background: var(--yj-yuja-200); color: var(--yj-ink-deep); }
@media (max-width: 639px) {
    body.pt-privacy .container { margin-inline: var(--yj-s3); padding: var(--yj-s5) var(--yj-s4) var(--yj-s4); }
    body.pt-privacy table { display: block; overflow-x: auto; }
}

/* ============================================================
   썸네일 관제탑 (thumbnail-tower.html) — 내부 관제 도구
   상단바 56 미색 · 캔버스 · 미색 카드 · 배지 4종 · 버튼은 보조·외곽선
   ============================================================ */
body.pt-tower {
    min-height: 100dvh;
    background: var(--yj-canvas);
    color: var(--yj-ink);
}
body.pt-tower .site-header {
    z-index: 40;
    height: 56px;
    padding: 0 max(var(--yj-s4), calc((100% - 1400px) / 2 + var(--yj-s6)));
    background: var(--yj-card);
    border-bottom: 1px solid var(--yj-line);
    box-shadow: none;
    color: var(--yj-ink-deep);
}
body.pt-tower .header-left { gap: var(--yj-s2); min-width: 0; }
body.pt-tower .header-logo img { width: 28px; height: 28px; }
body.pt-tower .header-title { display: flex; align-items: baseline; gap: var(--yj-s3); min-width: 0; }
body.pt-tower .header-title h1 {
    font-family: var(--yj-font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: nowrap;
}
body.pt-tower .header-title p {
    overflow: hidden;
    margin: 0;
    color: var(--yj-sub);
    font-size: 13px;
    opacity: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.pt-tower .badge-version {
    background: transparent;
    border: 1px solid var(--yj-line-strong);
    color: var(--yj-sub);
    font-size: 13px;
    font-weight: 500;
}
body.pt-tower .btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 var(--yj-s3);
    background: transparent;
    border: 0;
    border-radius: var(--yj-r-sm);
    color: var(--yj-sub);
    font-size: 15px;
    font-weight: 600;
    transition: background-color var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease);
}
body.pt-tower .btn-refresh:hover { background: var(--yj-yuja-50); color: var(--yj-ink-deep); }

body.pt-tower .stats-bar {
    max-width: 1400px;
    margin: var(--yj-s5) auto 0;
    padding: var(--yj-s3) var(--yj-s6);
    background: transparent;
    border: 0;
}
body.pt-tower .stat-dot.v2 { background: var(--yj-leaf); }
body.pt-tower .stat-dot.v1 { background: var(--yj-yuja-500); }
body.pt-tower .stat-dot.none { background: var(--yj-faint); }
body.pt-tower .stat-label { color: var(--yj-sub); font-size: 15px; font-weight: 600; }
body.pt-tower .stat-count { color: var(--yj-ink-deep); font-family: var(--yj-font-disp); font-variant-numeric: tabular-nums; }
body.pt-tower .stats-divider { background: var(--yj-line-strong); }

body.pt-tower .main-wrap { padding: var(--yj-s4) var(--yj-s6) var(--yj-s7); }
/* 범례 — 안내 상자(유자 50 + 왼쪽 2px 선) */
body.pt-tower .legend-box {
    background: var(--yj-yuja-50);
    border: 0;
    border-left: 2px solid var(--yj-yuja-500);
    border-radius: var(--yj-r-lg);
}
body.pt-tower .legend-box h3 { color: var(--yj-yuja-ink); font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; }
body.pt-tower .legend-row { color: var(--yj-ink); font-size: 15px; font-weight: 500; }
body.pt-tower .section-title { font-family: var(--yj-font-disp); font-size: 22px; font-weight: 800; color: var(--yj-ink-deep); }
body.pt-tower .section-subtitle { color: var(--yj-sub); font-size: 15px; font-weight: 500; }

body.pt-tower .apps-grid { gap: var(--yj-s5); }
body.pt-tower .app-card {
    background: var(--yj-card);
    border: 1px solid var(--yj-line);
    border-radius: var(--yj-r-lg);
    box-shadow: var(--yj-sh-1);
    transition: box-shadow var(--yj-m-mid) var(--yj-ease), transform var(--yj-m-mid) var(--yj-ease);
}
body.pt-tower .app-card:hover { box-shadow: var(--yj-sh-2); transform: translateY(-2px); }
body.pt-tower .thumb-preview { background: var(--yj-canvas); }
body.pt-tower .thumb-preview .no-thumb { color: var(--yj-sub); }
/* 사진 위 떠 있는 알약 대신 글자 줄 배지 — 여기서는 자리만 두고 블러를 걷는다 */
body.pt-tower .thumb-status-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--yj-line-strong);
    font-size: 12px;
}
body.pt-tower .thumb-status-badge.v2,
body.pt-tower .legend-badge.v2 { background: var(--yj-card-hi); color: var(--yj-leaf-ink); }
body.pt-tower .thumb-status-badge.v1,
body.pt-tower .legend-badge.v1 { background: var(--yj-yuja-100); color: var(--yj-ink-deep); border-color: transparent; }
body.pt-tower .thumb-status-badge.none,
body.pt-tower .legend-badge.none { background: var(--yj-card-hi); color: var(--yj-sub); }
body.pt-tower .card-name { font-family: var(--yj-font-disp); font-size: 20px; font-weight: 700; color: var(--yj-ink-deep); }
body.pt-tower .card-url { color: var(--yj-sub); font-size: 13px; }
/* 분류 표식 — 외곽선 배지 하나로 통일, 출력 있음만 유자 배지 */
body.pt-tower .meta-pill {
    padding: 2px 10px;
    border: 1px solid var(--yj-line-strong);
    border-radius: var(--yj-r-full);
    background: transparent;
    color: var(--yj-sub);
    font-size: 12px;
    font-weight: 600;
}
body.pt-tower .meta-pill.print-yes { background: var(--yj-yuja-100); border-color: transparent; color: var(--yj-ink-deep); }
/* 카드 버튼 — 배너 생성기 = 보조(유자 100), 나머지 = 외곽선 */
body.pt-tower .card-actions .btn {
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--yj-line-strong);
    border-radius: var(--yj-r-sm);
    background: var(--yj-card);
    color: var(--yj-ink);
    font-size: 15px;
    font-weight: 600;
    transition: background-color var(--yj-m-fast) var(--yj-ease), border-color var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease);
}
body.pt-tower .card-actions .btn:hover { background: var(--yj-yuja-50); border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
body.pt-tower .card-actions .btn-banner { background: var(--yj-yuja-100); border-color: transparent; color: var(--yj-yuja-ink); }
body.pt-tower .card-actions .btn-banner:hover { background: var(--yj-yuja-200); color: var(--yj-ink-deep); }
body.pt-tower .btn-cta {
    min-height: 44px;
    border: 1px dashed var(--yj-line-strong);
    border-radius: var(--yj-r-sm);
    background: transparent;
    color: var(--yj-sub);
    font-size: 15px;
}
body.pt-tower .btn-cta:hover { border-color: var(--yj-yuja-600); background: var(--yj-yuja-50); color: var(--yj-ink-deep); }
body.pt-tower .site-footer {
    border-top: 1px solid var(--yj-line);
    color: var(--yj-sub);
    font-size: 15px;
    font-weight: 500;
}
body.pt-tower .site-footer a { color: var(--yj-sub); }
body.pt-tower .site-footer a:hover { color: var(--yj-ink-deep); text-decoration: underline; }
@media (max-width: 768px) {
    body.pt-tower .header-title p { display: none; }
    body.pt-tower .stats-bar { padding: var(--yj-s3) var(--yj-s4); gap: var(--yj-s4); }
    body.pt-tower .main-wrap { padding: var(--yj-s4) var(--yj-s4) var(--yj-s7); }
    body.pt-tower .apps-grid { grid-template-columns: 1fr; }
}

/* 문의 메일 복사 툴팁 — 누른 자리 위(화면 위쪽이면 아래)에 잠깐 뜬다 */
.yj-copy-tip {
    position: fixed;
    z-index: 2000;
    transform: translate(-50%, -100%);
    padding: var(--yj-s2) var(--yj-s3);
    border-radius: var(--yj-r-sm);
    background: var(--yj-ink);
    color: var(--yj-on-ink);
    font-family: var(--yj-font-ui);
    font-size: var(--yj-t-small);
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: var(--yj-sh-toast);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--yj-m-fast) var(--yj-ease);
}
.yj-copy-tip.is-below { transform: translate(-50%, 0); }
.yj-copy-tip.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .yj-copy-tip { transition: none; }
}
