/* ==========================================================================
   Jivestar — Design System
   베이스: 화이트, 다크 그레이, 연한 그레이, 조금 짙은 그레이.
   포인트만: 연한 주황, 연한 노랑, 약한 노랑, 오렌지. (눈이 아프면 안 됨, 오래 봐도 됨)
   다크모드도 동일 원칙 — 눈 피로 최소화.
   ========================================================================== */

/* 테마 전환 시 transition 즉시 끄기 */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition: none !important;
}

/* --------------------------------------------------------------------------
   1. Design tokens (spacing, radius, shadows, typography, colors)
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
    --background: oklch(0.98 0.01 95.10);
    --foreground: oklch(0.34 0.03 95.72);
    --card: oklch(0.98 0.01 95.10);
    --card-foreground: oklch(0.19 0.00 106.59);
    --popover: oklch(1.00 0 0);
    --popover-foreground: oklch(0.27 0.02 98.94);
    --primary: oklch(0.62 0.14 39.04);
    --primary-foreground: oklch(1.00 0 0);
    --secondary: oklch(0.92 0.01 92.99);
    --secondary-foreground: oklch(0.43 0.02 98.60);
    --muted: oklch(0.93 0.02 90.24);
    --muted-foreground: oklch(0.61 0.01 97.42);
    --accent: oklch(0.92 0.01 92.99);
    --accent-foreground: oklch(0.27 0.02 98.94);
    --destructive: oklch(0.19 0.00 106.59);
    --border: oklch(0.88 0.01 97.36);
    --input: oklch(0.76 0.02 98.35);
    --ring: oklch(0.59 0.17 253.06);
    --chart-1: oklch(0.56 0.13 43.00);
    --chart-2: oklch(0.69 0.16 290.41);
    --chart-3: oklch(0.88 0.03 93.13);
    --chart-4: oklch(0.88 0.04 298.18);
    --chart-5: oklch(0.56 0.13 42.06);
    --sidebar: oklch(0.97 0.01 98.88);
    --sidebar-foreground: oklch(0.36 0.01 106.65);
    --sidebar-primary: oklch(0.62 0.14 39.04);
    --sidebar-primary-foreground: oklch(0.99 0 0);
    --sidebar-accent: oklch(0.92 0.01 92.99);
    --sidebar-accent-foreground: oklch(0.33 0 0);
    --sidebar-border: oklch(0.94 0 0);
    --sidebar-ring: oklch(0.77 0 0);
    --radius: 0.5rem;
    --bs-body-bg: var(--background);
    --bs-body-color: var(--foreground);
    --jivestar-bg: var(--background);
    --jivestar-bg-elevated: var(--card);
    --jivestar-card: var(--card);
    --jivestar-border: var(--border);
    --jivestar-border-subtle: var(--border);
    --jivestar-text: var(--foreground);
    --jivestar-text-secondary: var(--muted-foreground);
    --jivestar-text-muted: var(--muted-foreground);
    --jivestar-accent: var(--primary);
    --jivestar-accent-hover: var(--chart-1);
    --jivestar-accent-light: var(--accent);
    --jivestar-accent-soft: var(--secondary);
    --jivestar-accent-yellow-soft: var(--chart-3);
    --jivestar-accent-yellow-weaker: var(--muted);
    --jivestar-input-bg: var(--input);
    --jivestar-input-bg-focus: var(--popover);
    --jivestar-log-bg: var(--muted);
    /* Spacing scale (4px base) */
    --jivestar-space-1: 0.25rem;   /* 4px */
    --jivestar-space-2: 0.5rem;    /* 8px */
    --jivestar-space-3: 0.75rem;   /* 12px */
    --jivestar-space-4: 1rem;      /* 16px */
    --jivestar-space-5: 1.25rem;   /* 20px */
    --jivestar-space-6: 1.5rem;    /* 24px */
    --jivestar-space-8: 2rem;      /* 32px */
    --jivestar-space-10: 2.5rem;   /* 40px */
    /* Radius */
    --jivestar-radius-sm: 6px;
    --jivestar-radius: 10px;
    --jivestar-radius-lg: 12px;
    /* Shadows (soft, subtle) */
    --jivestar-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --jivestar-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --jivestar-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --bs-blue: var(--primary);
    --bs-primary: var(--primary);
    --bs-primary-rgb: 226, 123, 61;
    --bs-cyan: var(--secondary);
    --bs-info: var(--secondary);
    --bs-info-rgb: 232, 225, 217;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-color: var(--primary-foreground);
    --bs-btn-hover-bg: var(--chart-1);
    --bs-btn-hover-border-color: var(--chart-1);
    --bs-btn-hover-color: var(--primary-foreground);
    --bs-btn-focus-shadow-rgb: 226, 123, 61;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem color-mix(in oklch, var(--primary) 35%, transparent);
    --bs-btn-active-bg: var(--chart-1);
    --bs-btn-active-border-color: var(--chart-1);
    --bs-btn-active-color: var(--primary-foreground);
    /* Untitled UI — Button tokens (https://www.untitledui.com/react/components/buttons) */
    --jivestar-btn-radius: 0.5rem;
    --jivestar-btn-shadow-xs: 0 1px 2px rgba(10, 13, 18, 0.05);
    --jivestar-btn-secondary-bg: var(--card);
    --jivestar-btn-secondary-border: var(--border);
    --jivestar-btn-secondary-text: var(--foreground);
    --jivestar-btn-secondary-hover-bg: var(--secondary);
    --jivestar-btn-tertiary-text: var(--muted-foreground);
    --jivestar-btn-tertiary-hover-bg: var(--muted);
    --jivestar-btn-destructive-bg: var(--destructive);
    --jivestar-btn-destructive-hover: var(--destructive);
    --jivestar-btn-disabled-bg: var(--muted);
    --jivestar-btn-disabled-text: var(--muted-foreground);
}

[data-bs-theme="dark"] {
    --background: oklch(0.27 0.00 106.64);
    --foreground: oklch(0.81 0.01 93.01);
    --card: oklch(0.27 0.00 106.64);
    --card-foreground: oklch(0.98 0.01 95.10);
    --popover: oklch(0.31 0.00 106.60);
    --popover-foreground: oklch(0.92 0.00 106.48);
    --primary: oklch(0.67 0.13 38.76);
    --primary-foreground: oklch(1.00 0 0);
    --secondary: oklch(0.98 0.01 95.10);
    --secondary-foreground: oklch(0.31 0.00 106.60);
    --muted: oklch(0.22 0.00 106.71);
    --muted-foreground: oklch(0.77 0.02 99.07);
    --accent: oklch(0.21 0.01 95.42);
    --accent-foreground: oklch(0.97 0.01 98.88);
    --destructive: oklch(0.64 0.21 25.33);
    --border: oklch(0.36 0.01 106.89);
    --input: oklch(0.43 0.01 100.22);
    --ring: oklch(0.59 0.17 253.06);
    --chart-1: oklch(0.56 0.13 43.00);
    --chart-2: oklch(0.69 0.16 290.41);
    --chart-3: oklch(0.21 0.01 95.42);
    --chart-4: oklch(0.31 0.05 289.32);
    --chart-5: oklch(0.56 0.13 42.06);
    --sidebar: oklch(0.24 0.00 67.71);
    --sidebar-foreground: oklch(0.81 0.01 93.01);
    --sidebar-primary: oklch(0.33 0 0);
    --sidebar-primary-foreground: oklch(0.99 0 0);
    --sidebar-accent: oklch(0.17 0.00 106.62);
    --sidebar-accent-foreground: oklch(0.81 0.01 93.01);
    --sidebar-border: oklch(0.94 0 0);
    --sidebar-ring: oklch(0.77 0 0);
    --bs-blue: var(--primary);
    --bs-primary: var(--primary);
    --bs-primary-rgb: 231, 138, 80;
    --bs-cyan: var(--secondary);
    --bs-info: var(--secondary);
    --bs-info-rgb: 244, 240, 236;
    --bs-border-color: var(--border);
    --bs-body-bg: var(--background);
    --bs-body-color: var(--foreground);
    --jivestar-bg: var(--background);
    --jivestar-bg-elevated: var(--card);
    --jivestar-card: var(--card);
    --jivestar-border: var(--border);
    --jivestar-border-subtle: var(--border);
    --jivestar-text: var(--foreground);
    --jivestar-text-secondary: var(--muted-foreground);
    --jivestar-text-muted: var(--muted-foreground);
    --jivestar-accent: var(--primary);
    --jivestar-accent-hover: var(--chart-1);
    --jivestar-accent-light: var(--accent);
    --jivestar-accent-soft: var(--secondary);
    --jivestar-accent-yellow-soft: var(--chart-1);
    --jivestar-accent-yellow-weaker: var(--muted);
    --jivestar-input-bg: var(--input);
    --jivestar-input-bg-focus: var(--popover);
    --jivestar-log-bg: var(--background);
    --jivestar-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --jivestar-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --jivestar-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-color: var(--primary-foreground);
    --bs-btn-hover-bg: var(--chart-1);
    --bs-btn-hover-border-color: var(--chart-1);
    --bs-btn-hover-color: var(--primary-foreground);
    --bs-btn-focus-shadow-rgb: 231, 138, 80;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem color-mix(in oklch, var(--primary) 35%, transparent);
    --bs-btn-active-bg: var(--chart-1);
    --bs-btn-active-border-color: var(--chart-1);
    --bs-btn-active-color: var(--primary-foreground);
    --jivestar-btn-secondary-bg: var(--jivestar-bg-elevated);
    --jivestar-btn-secondary-border: var(--jivestar-border);
    --jivestar-btn-secondary-text: var(--jivestar-text);
    --jivestar-btn-secondary-hover-bg: var(--secondary);
    --jivestar-btn-tertiary-text: var(--jivestar-text-secondary);
    --jivestar-btn-tertiary-hover-bg: var(--accent);
    --jivestar-btn-disabled-bg: var(--muted);
    --jivestar-btn-disabled-text: var(--jivestar-text-muted);
    --jivestar-btn-destructive-bg: var(--destructive);
    --jivestar-btn-destructive-hover: var(--destructive);
}

/* --------------------------------------------------------------------------
   UI 토큰 (글로벌: 오렌지·블랙·다크그레이·그레이만 사용. 보라·파랑 미사용)
   -------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
    --ui-spacing: 0.25rem;
    --ui-font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --ui-text-xs: 0.75rem;
    --ui-text-sm: 0.875rem;
    --ui-text-md: 1rem;
    --ui-radius-md: 0.375rem;
    --ui-radius-xl: 0.75rem;
    --ui-radius-full: 9999px;
    --ui-shadow-sm: 0px 1px 3px rgba(10, 13, 18, 0.1), 0px 1px 2px -1px rgba(10, 13, 18, 0.1);
    --ui-gray-25: var(--popover);
    --ui-gray-50: var(--background);
    --ui-gray-100: var(--muted);
    --ui-gray-200: var(--border);
    --ui-gray-400: var(--input);
    --ui-gray-500: var(--muted-foreground);
    --ui-gray-600: var(--secondary-foreground);
    --ui-gray-800: var(--foreground);
    --ui-gray-900: var(--card-foreground);
    --ui-gray-950: var(--card-foreground);
    --ui-success-50: rgb(246 254 249);
    --ui-success-400: rgb(71 205 137);
    --ui-success-600: rgb(7 148 85);
    --ui-text-primary: var(--foreground);
    --ui-text-tertiary: var(--muted-foreground);
    --ui-bg-primary: var(--background);
    --ui-bg-secondary: var(--card);
    --ui-bg-active: var(--accent);
    --ui-bg-tertiary: var(--muted);
    --ui-border-secondary: var(--ui-gray-200);
    --ui-shadow-xs: 0px 1px 2px rgba(10, 13, 18, 0.05);
    --ui-text-quaternary: var(--ui-gray-500);
    --ui-max-w-container: 1280px;
    --ui-text-lg: 1.125rem;
    --ui-bg-brand-solid: var(--jivestar-accent);
    --ui-bg-brand-solid-hover: var(--jivestar-accent-hover);
    --ui-bg-quaternary: var(--ui-gray-200);
    --ui-slider-handle-bg: var(--popover);
    --ui-slider-handle-border: var(--jivestar-border);
}
[data-bs-theme="dark"] {
    --ui-gray-200: var(--muted-foreground);
    --ui-gray-300: var(--input);
    --ui-gray-400: var(--muted-foreground);
    --ui-gray-600: var(--foreground);
    --ui-gray-700: var(--border);
    --ui-gray-800: var(--popover);
    --ui-gray-900: var(--card);
    --ui-gray-950: var(--background);
    --ui-text-primary: var(--foreground);
    --ui-text-tertiary: var(--muted-foreground);
    --ui-bg-primary: var(--background);
    --ui-bg-secondary: var(--card);
    --ui-bg-tertiary: var(--popover);
    --ui-bg-active: var(--accent);
    --ui-border-secondary: var(--border);
    --ui-shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.2);
    --ui-shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.3);
    --ui-text-quaternary: var(--ui-gray-500);
    --ui-bg-quaternary: var(--ui-gray-700);
    --ui-slider-handle-bg: var(--ui-bg-secondary);
    --ui-slider-handle-border: var(--ui-border-secondary);
}

/* .mb-4 margin-bottom 오버라이드 */
.mb-4 {
    margin-bottom: 0.8rem !important;
}

/* --------------------------------------------------------------------------
   2. Base (body, typography hierarchy)
   -------------------------------------------------------------------------- */
/* 전역: 좌우 스크롤 방지, 위·아래 스크롤만 허용 (모바일 터치 무빙 방지) */
html {
    overflow-x: hidden;
    width: 100%;
    touch-action: pan-y;
    overscroll-behavior-y: none;
}
body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    touch-action: pan-y;
    overscroll-behavior-y: none;
}
body {
    background-color: var(--ui-bg-primary, var(--jivestar-bg));
    color: var(--ui-text-primary, var(--jivestar-text));
    font-family: var(--ui-font-body, "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: var(--ui-text-md, 1rem);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Dashboard wrapper — 데모와 동일 배경 */
.dashboard-wrapper {
    background-color: var(--ui-bg-primary);
}

/* Dashboard main — Untitled UI: max-width container, padding */
.dashboard-content {
    background-color: var(--ui-bg-primary);
    max-width: var(--ui-max-w-container, 1280px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem;
}
@media (min-width: 768px) {
    .dashboard-content {
        padding: 2rem 2rem;
    }
}

/* Page / section titles — 데모와 동일 (font-semibold text-primary text-lg / text-md) */
.jivestar-page-title {
    font-size: var(--ui-text-lg, 1.125rem);
    font-weight: 500;
    color: var(--ui-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.jivestar-section-title {
    font-size: var(--ui-text-md, 1rem);
    font-weight: 500;
    color: var(--ui-text-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--jivestar-space-2);
}

/* 페이지 설명 — 데모 text-sm text-tertiary */
.dashboard-content > p.jivestar-text-muted,
.dashboard-content .jivestar-text-muted.mb-4 {
    font-size: var(--ui-text-sm, 0.875rem);
    color: var(--ui-text-tertiary);
}

/* Content block — 데모 카드: rounded-xl bg-primary shadow-xs ring-1 ring-secondary */
.content-block {
    box-sizing: border-box;
    background-color: var(--ui-bg-primary);
    border-radius: var(--ui-radius-xl, 0.75rem);
    box-shadow: var(--ui-shadow-xs);
    border: 1px solid var(--ui-border-secondary);
    padding: 1.125rem 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
    .content-block {
        padding: 1.25rem 1.5rem;
    }
}

/* 본문 영역 버튼 — Untitled UI primary/secondary (사이드바·상단바는 기존 유지) */
.dashboard-content .btn-primary {
    background-color: var(--ui-bg-brand-solid);
    border-color: var(--ui-bg-brand-solid);
    color: #fff;
    box-shadow: var(--ui-shadow-xs);
}
.dashboard-content .btn-primary:hover {
    background-color: var(--ui-bg-brand-solid-hover);
    border-color: var(--ui-bg-brand-solid-hover);
    color: #fff;
}
.dashboard-content .btn-outline-secondary {
    background-color: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
    color: var(--ui-text-primary);
}
.dashboard-content .btn-outline-secondary:hover {
    background-color: var(--ui-bg-secondary);
    border-color: var(--ui-border-secondary);
    color: var(--ui-text-primary);
}
[data-bs-theme="dark"] .dashboard-content .btn-primary {
    background-color: #cb6441;
    border-color: #cb6441;
    color: #fff;
}
[data-bs-theme="dark"] .dashboard-content .btn-primary:hover {
    background-color: #d87757;
    border-color: #d87757;
    color: #fff;
}
[data-bs-theme="dark"] .dashboard-content .btn-outline-secondary {
    background-color: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
    color: var(--ui-text-primary);
}
[data-bs-theme="dark"] .dashboard-content .btn-outline-secondary:hover {
    background-color: var(--ui-bg-secondary);
}

/* Public policy layout (회사소개 / 개인정보처리방침 / 서비스 약관) */
.policy-shell {
    background-color: var(--jivestar-bg);
    min-height: 100vh;
}
.policy-topbar {
    border-bottom: 1px solid var(--jivestar-border-subtle);
    background-color: var(--jivestar-bg-elevated);
}
.policy-topbar a {
    color: var(--jivestar-text-secondary);
    text-decoration: none;
}
.policy-topbar a:hover {
    color: var(--jivestar-text);
    text-decoration: underline;
}
.policy-sidebar {
    background-color: var(--jivestar-card);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    padding: var(--jivestar-space-4);
    font-size: 0.875rem;
}
.policy-sidebar a {
    display: block;
    padding: 0.25rem 0;
    color: var(--jivestar-text-secondary);
    text-decoration: none;
}
.policy-sidebar a.active {
    font-weight: 500;
    color: var(--jivestar-text);
}
.policy-sidebar a:hover {
    color: var(--jivestar-text);
}
.company-page {
    max-width: 100%;
    margin: 0;
}
.policy-page,
.terms-page {
    max-width: 820px;
    margin: 0;
}
.policy-page p,
.policy-page ul,
.terms-page p,
.terms-page ul {
    font-size: 0.9375rem;
    line-height: 1.7;
}
.policy-page h2,
.terms-page h2 {
    font-size: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.policy-page h3,
.terms-page h3 {
    font-size: 0.9375rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.policy-page p,
.policy-page ul,
.terms-page p,
.terms-page ul {
    font-size: 0.9375rem;
}

/* 개인정보처리방침·서비스약관 본문: 상단 여백(space-6)과 동일하게 좌측 여백 맞춤 */
.dashboard-content .content-block.policy-doc {
    padding-left: var(--jivestar-space-6);
    padding-right: var(--jivestar-space-6);
}

/* Company page specific — content-block에 radius·카드 형태, band만 어둡고 아래는 하양 */
.company-content {
    border-radius: var(--jivestar-radius);
    box-shadow: var(--jivestar-shadow-sm);
    border: 1px solid var(--jivestar-border-subtle);
    background-color: var(--jivestar-card);
    padding: 0;
    overflow: hidden;
}
.company-intro {
    margin-bottom: 0;
    padding-left: var(--jivestar-space-2);
    padding-right: var(--jivestar-space-2);
}
.company-intro-kicker {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--jivestar-text-muted);
    margin-bottom: 0.75rem;
}
.company-intro p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.85rem;
}
.company-intro p:last-child {
    margin-bottom: 0;
}
.company-summary .summary-box {
    background-color: var(--jivestar-bg-elevated);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    padding: var(--jivestar-space-4);
    margin-top: 0.75rem;
    max-width: 520px;
}
.company-summary .summary-box p {
    margin-bottom: 0.25rem;
}
.company-services-band {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--jivestar-radius) var(--jivestar-radius) 0 0;
    padding: 0;
    background: radial-gradient(circle at top left, rgba(230, 122, 59, 0.25), transparent 55%),
                linear-gradient(135deg, #1c1c1e, #262626 65%);
    color: #f9fafb;
}
.company-services-inner {
    padding: 2rem var(--jivestar-space-8) 2.5rem;
}
@media (min-width: 768px) {
    .company-services-inner {
        padding: 2.5rem var(--jivestar-space-8) 3rem;
    }
}
.company-services-header {
    max-width: 520px;
    margin: 0 auto 2rem;
}
.company-services-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249, 250, 251, 0.7);
    margin-bottom: 0.25rem;
}
.company-services-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}
.company-services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    border-left: 1px solid rgba(148, 163, 184, 0.2);
}
.company-service-item {
    padding: 1.5rem 1.75rem;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.company-service-item h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.company-service-item p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.9);
}
@media (min-width: 768px) {
    .company-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .company-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Company section headers (기능 구성, 운영 방향, 운영 정보) */
.company-section-header {
    margin-bottom: 1.25rem;
}
.company-section-kicker {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jivestar-text-muted);
    margin-bottom: 0.25rem;
}
.company-section-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.02em;
}

.company-content .service-blocks,
.company-content .company-note,
.company-content .contact-box {
    padding-left: var(--jivestar-space-8);
    padding-right: var(--jivestar-space-8);
}
.company-content .service-blocks {
    padding-top: 0;
}
.service-blocks {
    margin-top: 2rem;
}
.feature-blocks-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
}
@media (min-width: 768px) {
    .feature-blocks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .feature-blocks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.feature-block {
    background-color: var(--jivestar-bg-elevated);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    padding: 1rem 1.25rem;
    border-left: 3px solid #e67a3b;
}
.feature-block h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0 0 0.35rem 0;
}
.feature-block p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    color: var(--jivestar-text-muted);
}

.company-note,
.contact-box {
    background-color: var(--jivestar-bg-elevated);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    padding: 1.25rem 1.5rem;
}
.company-note {
    margin-top: 2rem;
}
.company-note p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}
.contact-box {
    margin-top: 1.25rem;
}
.company-info-list {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.company-info-list dt {
    font-weight: 500;
    color: var(--jivestar-text);
    margin: 0;
}
.company-info-list dd {
    margin: 0;
    color: var(--jivestar-text-muted);
}
.company-info-list dd a {
    color: #e67a3b;
    text-decoration: none;
}
.company-info-list dd a:hover {
    color: #d45a12;
    text-decoration: underline;
}
.service-card h3 {
    margin-bottom: 0.5rem;
}

.jivestar-text-muted {
    color: var(--jivestar-text-muted);
    font-size: 0.875rem;
}
.content-block .jivestar-text-muted {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 749.98px) {
    .content-block .jivestar-text-muted {
        -webkit-line-clamp: 2;
    }
}
/* card-body 배경 (라이트/다크) */
#jivestar-shortcuts-block .card-body {
    background-color: rgb(253, 253, 253) !important;
    border-radius: 10px;
}
[data-bs-theme="dark"] #jivestar-shortcuts-block .card-body {
    background-color: #201e1885 !important;
    border-radius: 10px;
}

/* 빠른 접근 카드 문구: AI 메모·요약 등 본문(.jivestar-text-muted)과 동일 톤 */
#jivestar-shortcuts-block .jivestar-shortcut-link .card-title {
    color: var(--jivestar-text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}
#jivestar-shortcuts-block .jivestar-shortcut-link:hover .card-title,
#jivestar-shortcuts-block .jivestar-shortcut-link:focus-visible .card-title {
    color: var(--jivestar-text-muted);
}

/* --------------------------------------------------------------------------
   3. Cards & panels
   -------------------------------------------------------------------------- */
.card,
.jivestar-card {
    box-sizing: border-box;
    background-color: var(--jivestar-card);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    box-shadow: var(--jivestar-shadow-sm);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jivestar-card-body {
    padding: var(--jivestar-space-6);
}

/* Content blocks inside dashboard — 가로 전체 사용 반응형 (패딩·전환: 블록 과대·점프 완화) */
.dashboard-content .content-block {
    background-color: var(--jivestar-card);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    box-shadow: var(--jivestar-shadow-sm);
    padding: 1.125rem 1.25rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
    .dashboard-content .content-block {
        padding: 1.25rem 1.5rem;
    }
}

/* 라디오/체크박스/토글 — Bootstrap 파랑 제거, fcbb94 통일 */
.form-check-input:checked,
.form-switch .form-check-input:checked {
    background-color: #fcbb94 !important;
    border-color: #fcbb94 !important;
}
.form-check-input:focus,
.form-switch .form-check-input:focus {
    border-color: rgba(252, 187, 148, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(252, 187, 148, 0.25) !important;
}
.form-check-input:focus-visible,
.form-switch .form-check-input:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(252, 187, 148, 0.25) !important;
}

/* Bootstrap 진행 바 채움색 — 사이트 공통 */
.progress .progress-bar {
    background-color: #cb6441 !important;
}

/* 콘텐츠·사이트맵·참고문헌 링크 — 액센트 */
.dashboard-content .content-block a:not(.btn) {
    color: var(--jivestar-accent);
}
.dashboard-content .content-block a:not(.btn):hover {
    color: var(--jivestar-accent-hover);
}

/* 계정 하단 링크 — 블록 밖, 저장 버튼과 좌측 정렬(같은 padding) */
.jivestar-account-footer-links {
    font-size: 0.75rem;
    text-align: left;
    margin-top: -0.5rem;
    padding-left: var(--jivestar-space-6);
}
.jivestar-account-footer-links a {
    color: #7e7e7e;
    text-decoration: none;
}
.jivestar-account-footer-links a:hover {
    color: #1c1c1e;
    text-decoration: underline;
}
.jivestar-account-footer-sep {
    margin: 0 0.5rem;
    color: #7e7e7e;
    user-select: none;
}
[data-bs-theme="dark"] .jivestar-account-footer-links a {
    color: #7e7e7e;
}
[data-bs-theme="dark"] .jivestar-account-footer-links a:hover {
    color: #e2e2e2;
    text-decoration: underline;
}
[data-bs-theme="dark"] .jivestar-account-footer-sep {
    color: #7e7e7e;
}

/* 구독관리 결제 이력 하단 — 테이블·페이지네이션과 분리(별도 블록 + 여백), /account/info 링크와 동일 좌측 여백 */
#subscription-billing-history-card .jivestar-pagination-minimal {
    margin-bottom: 0;
}

main#jivestar-main-content .jivestar-subscription-billing-footer-outer {
    margin-top: 0.75rem !important;
    padding-top: 0 !important;
    border-top: none !important;
    clear: both;
}

.jivestar-subscription-billing-footer-outer .jivestar-subscription-billing-footer-links.jivestar-account-footer-links {
    margin-top: 0 !important;
    padding-top: 0;
    border-top: none;
    padding-left: var(--jivestar-space-6);
}

/*
 * 구독관리 전용: .jivestar-account-footer-links 기본 margin-top: -0.5rem 이
 * 테이블·간격 블록 아래 링크를 위로 당김 → 이 페이지에서만 음수 마진 무력화 + 여유 확보
 */
main#jivestar-main-content[data-current-page="subscription-manage"] .jivestar-subscription-billing-footer-outer nav.jivestar-account-footer-links {
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

/* 구독관리: 페이지 제목 아래 요약 카드 — 위·안쪽 여백 확보 */
main#jivestar-main-content[data-current-page="subscription-manage"] .content-block.jivestar-subscription-manage-plan-panel {
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
}

/* 구독관리 상단 한 줄: 뱃지 → 요금제 문구 → 구독기간 → 버튼 */
.jivestar-subscription-manage-summary-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0;
}
.jivestar-subscription-manage-summary-row .jivestar-subscription-manage-summary-plan {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.jivestar-subscription-manage-summary-row .jivestar-subscription-manage-summary-period {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: 0.4rem;
    margin-right: 0.4rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
@media (min-width: 768px) {
    .jivestar-subscription-manage-summary-row .jivestar-subscription-manage-summary-period {
        margin-left: 0.55rem;
        margin-right: 0.55rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }
}

/* 플랜 변경 — 대시보드 .btn 규칙보다 우선 */
main#jivestar-main-content .content-block .jivestar-subscription-plan-change-btn.btn.btn-primary {
    flex: 0 0 auto;
    padding: 0.22rem 0.55rem !important;
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    border-radius: 0.3rem !important;
    font-weight: 600;
}

/* 사이드바 선택 메뉴 — 글로벌 팔레트 */
.dashboard-sidebar .nav-link.active {
    background-color: rgba(230, 122, 59, 0.12);
    color: var(--jivestar-accent);
}
[data-bs-theme="light"] .dashboard-sidebar .nav-link.active {
    background-color: rgba(230, 122, 59, 0.12);
    color: var(--jivestar-accent);
}
.dashboard-sidebar-group-btn.active {
    background-color: rgba(230, 122, 59, 0.06) !important;
    color: var(--jivestar-accent) !important;
}

/* --------------------------------------------------------------------------
   4. Buttons — Untitled UI 참조 (https://www.untitledui.com/react/components/buttons)
   Primary / Secondary / Tertiary / Destructive / Link, sizes sm/md/lg/xl
   -------------------------------------------------------------------------- */
/* Base: inline-flex, rounded-lg, font-semibold, transition 100ms, focus-visible ring */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-sizing: border-box;
    border-radius: var(--jivestar-btn-radius);
    font-weight: 500;
    font-size: inherit;
    line-height: 1.2;
    white-space: nowrap;
    min-height: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:focus,
.btn:active {
    box-shadow: none;
}
.btn:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
/* Icon in button (data-icon or .btn with svg) */
.btn [data-icon],
.btn .btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    pointer-events: none;
}
/* Sizes — Untitled UI sm/md/lg/xl */
.btn-sm {
    padding: 0.4375rem 0.6875rem;
    font-size: 0.8125rem;
    line-height: 1.2;
}
.btn-sm[data-icon-only],
.btn-sm.btn-icon-only {
    padding: 0.4375rem;
}
.btn-md,
.btn:not(.btn-sm):not(.btn-lg) {
    padding: 0.5rem 0.8125rem;
    font-size: 0.875rem;
    line-height: 1.2;
}
.btn-md[data-icon-only],
.btn-md.btn-icon-only,
.btn:not(.btn-sm):not(.btn-lg)[data-icon-only] {
    padding: 0.5rem;
}
.btn-lg {
    padding: 0.5625rem 0.9375rem;
    font-size: 0.9375rem;
    line-height: 1.2;
}
.btn-lg[data-icon-only],
.btn-lg.btn-icon-only {
    padding: 0.625rem;
}
.btn-xl {
    padding: 0.625rem 1rem;
    font-size: 1rem;
    line-height: 1.2;
}
.btn-xl[data-icon-only],
.btn-xl.btn-icon-only {
    padding: 0.75rem;
}

/* Primary — Untitled UI primary: solid brand, shadow-xs, white text */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active {
    --bs-btn-bg: #e67a3b;
    --bs-btn-border-color: #e67a3b;
    --bs-btn-hover-bg: #d45a12;
    --bs-btn-hover-border-color: #d45a12;
    --bs-btn-focus-shadow-rgb: 249, 115, 22;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(230, 122, 59, 0.5);
    --bs-btn-active-bg: #d45a12;
    --bs-btn-active-border-color: #d45a12;
    --bs-btn-disabled-bg: #e67a3b;
    --bs-btn-disabled-border-color: #e67a3b;
    background-color: #e67a3b;
    border-color: #e67a3b;
    color: #fff;
    box-shadow: var(--jivestar-btn-shadow-xs);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active {
    --bs-btn-border-color: #d45a12;
    background-color: #d45a12;
    border-color: #d45a12;
    color: #fff;
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}
/* Secondary — Untitled UI secondary: light bg, border, gray text (Stage for publish) */
.btn-secondary {
    background-color: var(--jivestar-btn-secondary-bg);
    border: 1px solid var(--jivestar-btn-secondary-border);
    color: var(--jivestar-btn-secondary-text);
    box-shadow: var(--jivestar-btn-shadow-xs);
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-secondary:active {
    background-color: var(--jivestar-btn-secondary-hover-bg);
    border-color: var(--jivestar-btn-secondary-border);
    color: var(--jivestar-btn-secondary-text);
}
.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
[data-bs-theme="dark"] .btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
/* Tertiary — Untitled UI tertiary: ghost, text only, hover bg */
.btn-tertiary {
    background-color: transparent;
    border-color: transparent;
    color: var(--jivestar-btn-tertiary-text);
}
.btn-tertiary:hover,
.btn-tertiary:focus,
.btn-tertiary:focus-visible,
.btn-tertiary:active {
    background-color: var(--jivestar-btn-tertiary-hover-bg);
    border-color: transparent;
    color: var(--jivestar-text);
}
/* Primary destructive — Untitled UI primary-destructive (Delete project) */
.btn-danger,
.btn-primary-destructive {
    background-color: var(--jivestar-btn-destructive-bg);
    border-color: var(--jivestar-btn-destructive-bg);
    color: #fff;
    box-shadow: var(--jivestar-btn-shadow-xs);
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:focus-visible,
.btn-danger:active,
.btn-primary-destructive:hover,
.btn-primary-destructive:focus,
.btn-primary-destructive:focus-visible,
.btn-primary-destructive:active {
    background-color: var(--jivestar-btn-destructive-hover);
    border-color: var(--jivestar-btn-destructive-hover);
    color: #fff;
}
.btn-danger:focus-visible,
.btn-primary-destructive:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}
/* Secondary destructive */
.btn-secondary-destructive {
    background-color: var(--jivestar-btn-secondary-bg);
    border: 1px solid #fecaca;
    color: #dc2626;
}
.btn-secondary-destructive:hover,
.btn-secondary-destructive:focus,
.btn-secondary-destructive:focus-visible,
.btn-secondary-destructive:active {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
[data-bs-theme="dark"] .btn-secondary-destructive {
    border-color: rgba(220, 38, 38, 0.4);
    color: #f87171;
}
[data-bs-theme="dark"] .btn-secondary-destructive:hover,
[data-bs-theme="dark"] .btn-secondary-destructive:focus,
[data-bs-theme="dark"] .btn-secondary-destructive:active {
    background-color: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}
/* Tertiary destructive */
.btn-tertiary-destructive {
    background-color: transparent;
    border-color: transparent;
    color: #dc2626;
}
.btn-tertiary-destructive:hover,
.btn-tertiary-destructive:focus,
.btn-tertiary-destructive:active {
    background-color: #fef2f2;
    color: #b91c1c;
}
[data-bs-theme="dark"] .btn-tertiary-destructive {
    color: #f87171;
}
[data-bs-theme="dark"] .btn-tertiary-destructive:hover,
[data-bs-theme="dark"] .btn-tertiary-destructive:focus,
[data-bs-theme="dark"] .btn-tertiary-destructive:active {
    background-color: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}
/* Link gray / Link color — Untitled UI link-gray, link-color */
.btn-link-gray {
    background: none;
    border: none;
    padding-left: 0;
    padding-right: 0;
    color: var(--jivestar-btn-tertiary-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
}
.btn-link-gray:hover,
.btn-link-gray:focus,
.btn-link-gray:active {
    background: none;
    border: none;
    color: var(--jivestar-text);
    text-decoration-color: currentColor;
}
.btn-link-color {
    background: none;
    border: none;
    padding-left: 0;
    padding-right: 0;
    color: var(--jivestar-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
}
.btn-link-color:hover,
.btn-link-color:focus,
.btn-link-color:active {
    background: none;
    border: none;
    color: var(--jivestar-accent-hover);
    text-decoration-color: currentColor;
}

/* Loading — Untitled UI isLoading: spinner, non-interactive */
.btn-loading,
.btn[data-loading="true"] {
    pointer-events: none;
    position: relative;
}
.btn-loading > *:not(.btn-spinner),
.btn[data-loading="true"] > *:not(.btn-spinner) {
    visibility: hidden;
}
.btn-loading .btn-spinner,
.btn[data-loading="true"] .btn-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -0.625rem 0 0 -0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: jivestar-btn-spin 0.6s linear infinite;
    visibility: visible;
}
@keyframes jivestar-btn-spin {
    to { transform: rotate(360deg); }
}

/* 가입자 관리: 저장 중… 버튼 ACTIVE 시 메인 포인트 컬러(오렌지) */
.jivestar-save-btn.jivestar-save-loading,
.jivestar-save-loading {
    background-color: #e67a3b !important;
    border-color: #e67a3b !important;
    color: #fff !important;
}

/* 가입자 관리 '편집' 버튼: 베이스 다크그레이+흰글씨, active 시에만 주황 */
.jivestar-edit-btn {
    background-color: #323232;
    border-color: #323232;
    color: #fff;
    box-shadow: none;
}
.jivestar-edit-btn:hover,
.jivestar-edit-btn:focus,
.jivestar-edit-btn:focus-visible {
    background-color: #262626;
    border-color: #262626;
    color: #fff;
    box-shadow: none;
}
.jivestar-edit-btn:active,
.jivestar-edit-btn.active {
    background-color: #e67a3b;
    border-color: #e67a3b;
    color: #fff;
    box-shadow: none;
}
/* 다크모드: 반전 — 밝은 배경 + 어두운 글씨 */
[data-bs-theme="dark"] .jivestar-edit-btn {
    background-color: #e2e2e2;
    border-color: #e2e2e2;
    color: #1c1c1e;
}
[data-bs-theme="dark"] .jivestar-edit-btn:hover,
[data-bs-theme="dark"] .jivestar-edit-btn:focus,
[data-bs-theme="dark"] .jivestar-edit-btn:focus-visible {
    background-color: #e2e2e2;
    border-color: #e2e2e2;
    color: #1c1c1e;
    box-shadow: none;
}
[data-bs-theme="dark"] .jivestar-edit-btn:active,
[data-bs-theme="dark"] .jivestar-edit-btn.active {
    background-color: #e67a3b;
    border-color: #e67a3b;
    color: #fff;
    box-shadow: none;
}

/* Outline secondary — Untitled UI secondary와 동일 톤, 기존 마크업 호환 (테마 전환 스무스) */
.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--jivestar-btn-secondary-border);
    color: var(--jivestar-btn-secondary-text);
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
    background-color: var(--jivestar-btn-secondary-hover-bg);
    border-color: var(--jivestar-border);
    color: var(--jivestar-text);
    box-shadow: none;
}
.btn-outline-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
/* Disabled — Untitled UI disabled */
.btn:disabled.btn-primary,
.btn.disabled.btn-primary {
    background-color: var(--jivestar-btn-disabled-bg);
    border-color: var(--jivestar-btn-disabled-bg);
    color: var(--jivestar-btn-disabled-text);
}
.btn:disabled.btn-secondary,
.btn:disabled.btn-outline-secondary,
.btn.disabled.btn-secondary,
.btn.disabled.btn-outline-secondary {
    background-color: var(--jivestar-btn-disabled-bg);
    border-color: var(--jivestar-border-subtle);
    color: var(--jivestar-btn-disabled-text);
}

.btn-outline-primary {
    --bs-btn-color: #e67a3b;
    --bs-btn-border-color: #e67a3b;
    --bs-btn-hover-bg: rgba(230, 122, 59, 0.08);
    --bs-btn-hover-border-color: #d45a12;
    --bs-btn-hover-color: #d45a12;
    --bs-btn-focus-shadow-rgb: 249, 115, 22;
    --bs-btn-active-bg: rgba(230, 122, 59, 0.12);
    --bs-btn-active-border-color: #d45a12;
    --bs-btn-active-color: #d45a12;
    border-color: var(--jivestar-accent);
    color: var(--jivestar-accent);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    border-color: var(--jivestar-accent-hover);
    color: var(--jivestar-accent-hover);
    box-shadow: none;
}
.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
}

[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #fcbb94;
    --bs-btn-border-color: #e67a3b;
    --bs-btn-hover-bg: rgba(230, 122, 59, 0.15);
    --bs-btn-hover-border-color: #e67a3b;
    --bs-btn-hover-color: #fcbb94;
    --bs-btn-active-bg: rgba(230, 122, 59, 0.2);
    --bs-btn-active-border-color: #e67a3b;
    --bs-btn-active-color: #fcbb94;
    border-color: var(--jivestar-accent);
    color: #fcbb94;
}
[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:focus-visible,
[data-bs-theme="dark"] .btn-outline-primary:active,
[data-bs-theme="dark"] .btn-outline-primary.active {
    background-color: rgba(230, 122, 59, 0.15);
    border-color: var(--jivestar-accent-light);
    color: #fcbb94;
    box-shadow: none;
}
[data-bs-theme="dark"] .btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(230, 122, 59, 0.35);
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: var(--jivestar-text-muted);
    color: var(--jivestar-text-secondary);
}
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:focus-visible,
[data-bs-theme="dark"] .btn-outline-secondary:active,
[data-bs-theme="dark"] .btn-outline-secondary.active {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--jivestar-text-secondary);
    color: var(--jivestar-text);
    box-shadow: none;
}
[data-bs-theme="dark"] .btn-outline-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Primary 다크모드 — 브랜드 톤 (#cb6441 / hover #d87757) */
[data-bs-theme="dark"] .btn-primary {
    --bs-btn-bg: #cb6441;
    --bs-btn-border-color: #cb6441;
    --bs-btn-hover-bg: #d87757;
    --bs-btn-hover-border-color: #d87757;
    --bs-btn-focus-shadow-rgb: 203, 100, 65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(203, 100, 65, 0.35);
    --bs-btn-active-bg: #d87757;
    --bs-btn-active-border-color: #d87757;
    --bs-btn-disabled-bg: #cb6441;
    --bs-btn-disabled-border-color: #cb6441;
    background-color: #cb6441;
    border-color: #cb6441;
    color: #fff;
}
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus,
[data-bs-theme="dark"] .btn-primary:focus-visible,
[data-bs-theme="dark"] .btn-primary:active,
[data-bs-theme="dark"] .btn-primary.active {
    --bs-btn-border-color: #d87757;
    background-color: #d87757;
    border-color: #d87757;
    color: #fff;
}
[data-bs-theme="dark"] .btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(203, 100, 65, 0.35);
}

/* Danger outline: 포커스 링만 그레이 계열로 */
.btn-outline-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(58, 58, 60, 0.2);
}
[data-bs-theme="dark"] .btn-outline-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   5. Form inputs
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
    border-radius: var(--jivestar-radius-sm);
    border-color: var(--jivestar-border);
    background-color: var(--jivestar-bg-elevated);
    color: var(--jivestar-text);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--jivestar-input-bg, var(--jivestar-bg-elevated));
    border-color: var(--jivestar-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--jivestar-accent);
    box-shadow: 0 0 0 3px rgba(58, 58, 60, 0.15);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: var(--jivestar-input-bg-focus, var(--jivestar-bg-elevated));
    box-shadow: 0 0 0 3px rgba(92, 92, 94, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--jivestar-text-secondary);
    margin-bottom: var(--jivestar-space-1);
}

/* 실행 로그 영역: 블루 톤 없이 블랙 계열 그레이 */
.jivestar-execution-log {
    background-color: #e2e2e2;
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-execution-log {
    background-color: var(--jivestar-log-bg);
    color: var(--jivestar-text);
}

/* --------------------------------------------------------------------------
   6. Alerts
   -------------------------------------------------------------------------- */
.alert {
    border-radius: var(--jivestar-radius-sm);
    border: 1px solid transparent;
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.2);
    color: #d70015;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(255, 69, 58, 0.15);
    border-color: rgba(255, 69, 58, 0.3);
    color: #ff6b6b;
}

/* --------------------------------------------------------------------------
   7. Login & verify pages
   -------------------------------------------------------------------------- */
/* Login page: 고정 뷰포트, 스크롤 없음 (모바일 대응) */
body:has(.login-wrap) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

html:has(.login-wrap) {
    overflow: hidden;
}

.login-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--jivestar-space-4);
    background-color: var(--jivestar-bg);
    background-image: url('/assets/images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.login-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.login-wrap .login-card {
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card .card {
    padding: var(--jivestar-space-8);
    box-shadow: var(--jivestar-shadow-md);
    border-radius: var(--jivestar-radius-lg);
}

.login-card .card .jivestar-login-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--jivestar-text);
    margin-bottom: var(--jivestar-space-6);
}

/* 모바일: 로그인 카드 축소해 한 화면에 맞춤 */
@media (max-width: 575.98px) {
    .login-wrap {
        padding: var(--jivestar-space-3);
    }
    .login-card .card {
        padding: var(--jivestar-space-5);
    }
    .login-card .card .jivestar-login-title {
        font-size: 1.25rem;
        margin-bottom: var(--jivestar-space-4);
    }
    .login-card .form-control,
    .login-card .btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.875rem;
    }
    .login-card .mb-4 {
        margin-bottom: var(--jivestar-space-3) !important;
    }
}

@media (max-height: 600px) {
    .login-wrap {
        padding: var(--jivestar-space-2);
        align-items: flex-start;
        padding-top: var(--jivestar-space-4);
    }
    .login-card .card {
        padding: var(--jivestar-space-4);
    }
    .login-card .card .jivestar-login-title {
        font-size: 1.125rem;
        margin-bottom: var(--jivestar-space-3);
    }
    .login-card .mb-4 {
        margin-bottom: var(--jivestar-space-2) !important;
    }
}

.login-card .form-control,
.login-card .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
}

/* 로그인 페이지 전용: 업로드 스타일 베이스 — 다크 그레이 밴드 톤(거의 검정 → 톤다운 그레이) */
.login-card .form-control:focus,
.login-card .form-control:focus-visible {
    border-color: #323232;
    box-shadow: 0 0 0 0.2rem rgba(64, 64, 64, 0.35);
    outline: 0;
}
.login-card .btn-primary,
.login-card .btn-primary:focus,
.login-card .btn-primary:focus-visible {
    padding: 0.625rem 1rem;
    font-weight: 500;
    background-color: #262626;
    border-color: #252525;
    color: #fff;
    box-shadow: none;
}
.login-card .btn-primary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(37, 37, 37, 0.5);
}
.login-card .btn-primary:hover {
    background-color: #323232;
    border-color: #323232;
    color: #fff;
}
.login-card .btn-primary:active,
.login-card .btn-primary.active {
    background-color: #262626;
    border-color: #262626;
    color: #fff;
}

/* 다크모드: 로그인/이메일인증 카드 확인 버튼이 배경에 묻히지 않도록 브랜드 톤 */
[data-bs-theme="dark"] .login-card .btn-primary,
[data-bs-theme="dark"] .login-card .btn-primary:focus,
[data-bs-theme="dark"] .login-card .btn-primary:focus-visible {
    background-color: #cb6441;
    border-color: #cb6441;
    color: #fff;
}
[data-bs-theme="dark"] .login-card .btn-primary:hover {
    background-color: #d87757;
    border-color: #d87757;
    color: #fff;
}
[data-bs-theme="dark"] .login-card .btn-primary:active,
[data-bs-theme="dark"] .login-card .btn-primary.active {
    background-color: #d87757;
    border-color: #d87757;
    color: #fff;
}
[data-bs-theme="dark"] .login-card .btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(203, 100, 65, 0.35);
}

/* 로그인 카드 하단 링크 — 카드 아래 세로 배치, 배경이 짙으므로 연한 회색/흰색 */
.jivestar-login-footer {
    margin-top: var(--jivestar-space-6);
    text-align: center;
    font-size: 0.8125rem;
    position: relative;
    z-index: 1;
}
.jivestar-login-footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}
.jivestar-login-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.jivestar-login-footer-sep {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
}
[data-bs-theme="light"] .login-wrap .jivestar-login-footer a {
    color: rgba(255, 255, 255, 0.92);
}
[data-bs-theme="light"] .login-wrap .jivestar-login-footer a:hover {
    color: #fff;
}
[data-bs-theme="light"] .login-wrap .jivestar-login-footer-sep {
    color: rgba(255, 255, 255, 0.6);
}

/* Logo inline (favicon/star) next to text */
.jivestar-logo-inline {
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
}

.jivestar-logo-topbar {
    width: 1.1em;
    height: 1.1em;
}

/* 테마 전환 버튼: 파비콘 로고, 버튼 블록 내에만 표시 */
.jivestar-theme-toggle-icon {
    width: 1rem;
    height: 1rem;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    display: block;
}

/* Floating menu button (mobile: reopen sidebar from bottom-left) */
.jivestar-floating-menu-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--jivestar-border);
    background-color: var(--jivestar-bg-elevated);
    box-shadow: var(--jivestar-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--jivestar-text);
}

.jivestar-floating-menu-btn:hover,
.jivestar-floating-menu-btn:active,
.jivestar-floating-menu-btn:focus:hover {
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-floating-menu-btn:hover,
[data-bs-theme="dark"] .jivestar-floating-menu-btn:active,
[data-bs-theme="dark"] .jivestar-floating-menu-btn:focus:hover {
    background-color: var(--jivestar-border-subtle) !important;
    border-color: var(--jivestar-border-subtle) !important;
}
.jivestar-floating-menu-btn:focus,
.jivestar-floating-menu-btn:focus-visible {
    outline: none;
    border-color: #fcbb94;
    box-shadow: 0 0 0 2px rgba(252, 187, 148, 0.35);
}

.jivestar-floating-menu-btn.d-lg-none {
    display: flex !important;
}

@media (min-width: 992px) {
    .jivestar-floating-menu-btn.d-lg-none {
        display: none !important;
    }
}

.login-card .form-label {
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   8. Dashboard — topbar
   -------------------------------------------------------------------------- */
.dashboard-topbar {
    flex-shrink: 0;
    background-color: var(--jivestar-bg-elevated) !important;
    border-bottom: 1px solid var(--jivestar-border-subtle);
    min-height: 52px;
}

.dashboard-topbar .d-flex {
    min-height: 52px;
    padding-left: var(--jivestar-space-4);
    padding-right: var(--jivestar-space-4);
}

.dashboard-topbar a.fw-semibold {
    font-size: 1rem;
    font-weight: 500;
    color: var(--jivestar-text);
    letter-spacing: -0.02em;
}

.dashboard-topbar .navbar-toggler {
    padding: var(--jivestar-space-2);
}

.dashboard-topbar .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.dashboard-topbar .btn-outline-secondary,
.dashboard-topbar .btn-link {
    font-size: 0.8125rem;
}

/* 상단바 버튼(Apps, Admin, Report, Account, 로그아웃 등)
   - 라이트 모드: 그레이 계열 하이라이트
   - 다크 모드: 브랜드 오렌지 계열 하이라이트 */
.dashboard-topbar .btn-outline-secondary:hover,
.dashboard-topbar .btn-outline-secondary:focus,
.dashboard-topbar .btn-outline-secondary:focus-visible,
.dashboard-topbar .btn-outline-secondary:active,
.dashboard-topbar .btn-outline-secondary.active {
    background-color: #f9fafb;
    border-color: #d4d4d8;
    color: #4b5563;
}
.dashboard-topbar .btn-outline-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.4);
}
[data-bs-theme="dark"] .dashboard-topbar .btn-outline-secondary:hover,
[data-bs-theme="dark"] .dashboard-topbar .btn-outline-secondary:focus,
[data-bs-theme="dark"] .dashboard-topbar .btn-outline-secondary:focus-visible,
[data-bs-theme="dark"] .dashboard-topbar .btn-outline-secondary:active,
[data-bs-theme="dark"] .dashboard-topbar .btn-outline-secondary.active {
    background-color: rgba(230, 122, 59, 0.2);
    border-color: #e67a3b;
    color: #fcbb94;
}
[data-bs-theme="dark"] .dashboard-topbar .btn-outline-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(230, 122, 59, 0.35);
}
.jivestar-topbar-nav-select .jivestar-topbar-menu-select {
    min-width: 100px;
    max-width: 140px;
    font-size: 0.8125rem;
    height: 2rem;
}

/* 상단바 우측 버튼들(Apps, Admin, Account, 테마, 로그아웃) 높이·정렬 통일 */
.dashboard-topbar .d-flex.align-items-center.gap-2 .btn-sm,
.dashboard-topbar .d-flex.align-items-center.gap-2 #jivestar-theme-toggle {
    height: 2rem;
    min-height: 2rem;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}
.dashboard-topbar #jivestar-theme-toggle .jivestar-theme-toggle-icon {
    flex-shrink: 0;
}

.dashboard-topbar .small.text-muted {
    font-size: 0.8125rem;
    color: var(--jivestar-text-muted);
}
[data-bs-theme="dark"] .text-muted {
    color: var(--jivestar-text-muted) !important;
}
[data-bs-theme="dark"] .dashboard-topbar .small.text-muted {
    color: var(--jivestar-text-muted) !important;
}

/* 상단바: 오늘 날짜 + 아날로그 시계 (Asia/Seoul, wordpress-clock 구조 반영) — 배경 없음 */
.jivestar-topbar-datetime {
    align-items: center;
    gap: var(--jivestar-space-3);
}
.jivestar-topbar-date {
    color: var(--jivestar-text);
    letter-spacing: 0.02em;
    font-size: 0.8125rem;
}
.jivestar-analog-clock {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
}
.jivestar-clock-face {
    width: 100%;
    height: 100%;
    border: 2px solid var(--jivestar-text-muted);
    border-radius: 50%;
    position: relative;
    background: transparent;
    box-sizing: border-box;
}
.jivestar-clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    border-radius: 2px;
    transition: transform 0.05s linear;
    background: currentColor;
    color: var(--jivestar-text);
}
.jivestar-clock-hour {
    width: 3px;
    height: 25%;
    margin-left: -1.5px;
    opacity: 0.95;
}
.jivestar-clock-minute {
    width: 2px;
    height: 35%;
    margin-left: -1px;
    color: var(--jivestar-text-secondary);
    opacity: 0.95;
}
.jivestar-clock-second {
    width: 1px;
    height: 40%;
    margin-left: -0.5px;
    color: #e67a3b;
}
.jivestar-clock-center {
    position: absolute;
    width: 6px;
    height: 6px;
    left: 50%;
    top: 50%;
    margin-left: -3px;
    margin-top: -3px;
    border-radius: 50%;
    background: currentColor;
    color: var(--jivestar-text);
    z-index: 10;
    pointer-events: none;
}
.jivestar-clock-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* 가로 400px 미만: 시계·날짜 영역 숨김 */
@media (max-width: 399px) {
    .jivestar-topbar-datetime {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   9. Dashboard — sidebar
   -------------------------------------------------------------------------- */
.dashboard-sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--jivestar-bg-elevated) !important;
    border-right: 1px solid var(--jivestar-border-subtle);
}

[data-bs-theme="light"] .dashboard-sidebar {
    background-color: #f2f1eda3 !important;
}

[data-bs-theme="dark"] .dashboard-sidebar {
    background-color: #201e1885 !important;
}

.dashboard-sidebar .offcanvas-header {
    flex-shrink: 0;
    padding: var(--jivestar-space-3) var(--jivestar-space-2);
}

.dashboard-sidebar .offcanvas-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    /* Bootstrap .offcanvas-body 기본 padding-x — 스크롤 영역(.dashboard-sidebar-nav-scroll) 폭을 좁힘.
       좌우 여백은 .dashboard-sidebar-nav .nav / .nav-link 규칙으로만 둔다. */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.dashboard-sidebar .offcanvas-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--jivestar-text);
}

.dashboard-sidebar-nav .nav {
    padding: var(--jivestar-space-2) var(--jivestar-space-2);
}

.dashboard-sidebar .nav-item {
    width: 100%;
}

.dashboard-sidebar .nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: var(--jivestar-space-2) var(--jivestar-space-2);
    margin-bottom: var(--jivestar-space-1);
    border-radius: var(--jivestar-radius-sm);
    font-size: 0.875rem;
    color: var(--jivestar-text-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dashboard-sidebar .nav-link:hover {
    background-color: var(--jivestar-border-subtle);
    color: var(--jivestar-text);
}

.dashboard-sidebar .nav-link.active {
    background-color: rgba(230, 122, 59, 0.12);
    color: #e67a3b;
    font-weight: 500;
}

[data-bs-theme="light"] .dashboard-sidebar .nav-link.active {
    background-color: rgba(230, 122, 59, 0.12);
    color: #e67a3b;
}

[data-bs-theme="dark"] .dashboard-sidebar .nav-link.active {
    background-color: rgba(230, 122, 59, 0.1);
    color: #fcbb94;
}

/* Sidebar: 메뉴 스크롤 + 하단 로고 고정 (GPT 계정 영역처럼) */
.dashboard-sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-sidebar-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

.dashboard-sidebar-nav-scroll > .nav {
    width: 100%;
    box-sizing: border-box;
}

.dashboard-sidebar-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--jivestar-space-2);
    padding: var(--jivestar-space-3) var(--jivestar-space-2);
    border-top: 1px solid var(--jivestar-border-subtle);
    width: 100%;
    box-sizing: border-box;
}

.jivestar-sidebar-footer-icon {
    flex-shrink: 0;
    opacity: 0.75;
    vertical-align: middle;
}

.jivestar-sidebar-footer-text {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--jivestar-text-muted);
}

.dashboard-sidebar-group {
    margin-bottom: var(--jivestar-space-2);
}

.dashboard-sidebar-group .nav {
    padding-left: 0;
}

.jivestar-nav-group {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jivestar-text-muted);
    padding: var(--jivestar-space-2) var(--jivestar-space-3) var(--jivestar-space-1);
    margin-top: var(--jivestar-space-2);
    border-bottom: 1px solid var(--jivestar-border-subtle);
}

.jivestar-nav-group:first-child {
    margin-top: 0;
}

/* Apps sidebar: 최상위 메뉴 + 접기/펼치기 그룹 */
.dashboard-sidebar-group-wrap {
    margin-bottom: var(--jivestar-space-1);
}

.dashboard-sidebar-group-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: var(--jivestar-space-2) var(--jivestar-space-2) !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    color: var(--jivestar-text-secondary) !important;
    cursor: pointer;
}

.dashboard-sidebar-group-btn > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar-group-btn:hover {
    background-color: var(--jivestar-border-subtle) !important;
    color: var(--jivestar-text) !important;
}

.dashboard-sidebar-group-btn.active {
    background-color: rgba(230, 122, 59, 0.06) !important;
    color: var(--jivestar-accent) !important;
}
[data-bs-theme="dark"] .dashboard-sidebar-group-btn.active {
    background-color: rgba(230, 122, 59, 0.08) !important;
    color: #fcbb94 !important;
}

.dashboard-sidebar-chevron {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: none !important;
    flex-shrink: 0;
    margin-left: var(--jivestar-space-2);
}

.dashboard-sidebar-group-btn[aria-expanded="true"] .dashboard-sidebar-chevron {
    transform: rotate(180deg);
}

/* collapse: 트랜지션 없음 — 펼침/접힘 즉시 */
.dashboard-sidebar-group-wrap .collapse,
.dashboard-sidebar-group-wrap .collapsing {
    transition: none !important;
}

/* 부트스트랩 collapse 토글 시 인라인 height 계산으로 생기는 '출렁임' 제거 */
.dashboard-sidebar-group-wrap .collapsing {
    height: auto !important;
    overflow: hidden;
}
.dashboard-sidebar-group-wrap .collapse.show {
    height: auto !important;
}

.dashboard-sidebar-group-wrap .collapse .nav {
    position: relative;
    padding-left: var(--jivestar-space-2);
    padding-right: 0;
}

.dashboard-sidebar-group-wrap .collapse .nav::before {
    content: "";
    position: absolute;
    left: calc(var(--jivestar-space-2) + 0.2rem);
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background-color: var(--jivestar-border-subtle);
    opacity: 0.55;
    pointer-events: none;
}

.dashboard-sidebar-group-wrap .collapse .nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: var(--jivestar-space-1) var(--jivestar-space-2) var(--jivestar-space-1) calc(var(--jivestar-space-2) + 0.55rem);
    margin-bottom: 0;
}

.dashboard-sidebar.offcanvas-lg {
    position: static;
    transform: none;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .dashboard-sidebar.offcanvas-lg {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1045;
        visibility: hidden;
        transform: translateX(-100%);
        box-shadow: var(--jivestar-shadow-md);
        transition: transform 0.2s ease, visibility 0.2s ease;
    }
    .dashboard-sidebar.offcanvas-lg.show {
        visibility: visible;
        transform: translateX(0);
    }
    /* 좁은 화면 오프캔버: 대시보드 사이드바 배경(라이트/다크) */
    [data-bs-theme="dark"] .dashboard-sidebar.offcanvas-lg {
        background-color: #201e18 !important;
    }
    [data-bs-theme="light"] .dashboard-sidebar.offcanvas-lg {
        background-color: #f2f1ed !important;
    }
    /* 오프캔버 모드: BS가 넣는 상하 패딩이 유틸보다 먼저 먹는 경우 대비 — 본문 nav에 여백 두지 않음 */
    .dashboard-sidebar .offcanvas-body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   10. Dashboard — content area
   -------------------------------------------------------------------------- */
.dashboard-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: auto;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    padding: var(--jivestar-space-6) var(--jivestar-space-8);
    background-color: var(--jivestar-bg);
}

/* 대시보드 우측: 나의 캘린더 + 빠른접근 */
.jivestar-dashboard-weekly-calendar {
    min-width: 0;
}

/*
 * 가로 1450px 미만·2열(md) 구간: row stretch 로 우측 열 높이가 좌측과 맞춰지며
 * .jdc-days{height:100%} 등이 주(week) 행 세로를 과하게 키우는 경우 방지
 * — 우측 열은 내용 높이만 쓰고, 요일 행은 인라인 스타일 유지·날짜 주만 고정 높이 강제
 */
@media (max-width: 1449.98px) and (min-width: 768px) {
    .jivestar-apps-dashboard-row > .jivestar-dashboard-weekly-calendar {
        align-self: flex-start;
    }
    .jivestar-dashboard-calendar-block .jdc-week {
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        flex: 0 0 auto;
    }
    .jivestar-dashboard-calendar-block .jdc-days {
        height: 100% !important;
        max-height: 96px !important;
    }
}
.jivestar-dashboard-calendar-iframe {
    display: block;
}
/* 좌측 블록 여백 통일 */
.dashboard-content .content-block.mb-4 {
    margin-bottom: 1.5rem !important;
}
/* 빠른접근: 넓은 화면은 캘린더 아래(desktop 래퍼), 좁은 화면만 하단 mobile 래퍼(중복 DOM) */
.jivestar-dashboard-shortcuts-mobile {
    display: none;
}
.jivestar-dashboard-shortcuts-desktop {
    display: block;
}
@media (max-width: 767.98px) {
    .jivestar-dashboard-shortcuts-desktop {
        display: none !important;
    }
    .jivestar-dashboard-shortcuts-mobile {
        display: block;
    }
}

/* Apps 대시보드 상단: Live Chat + 날짜·시계 한 줄 (Bootstrap .flex-wrap 덮어쓰기) */
@media (max-width: 767.98px) {
    .jivestar-apps-dashboard-title-row {
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-start;
        gap: 0.35rem 0.5rem;
        margin-bottom: 0.9rem !important;
    }
    .jivestar-apps-dashboard-title-row__ticker-wrap {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        justify-content: flex-start;
    }
    .jivestar-apps-dashboard-title-row .jivestar-page-title-right {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-end;
        margin-left: auto;
        align-self: center;
    }
    .jivestar-apps-dashboard-title-row .jivestar-topbar-datetime {
        gap: 0.35rem;
    }
    .jivestar-apps-dashboard-title-row .jivestar-topbar-date {
        font-size: 0.78rem;
        line-height: 1.25;
    }
    /* chat-ticker.css 의 576px 중앙·90% 보다 우선 — 제목 줄 안에서는 왼쪽·전체 너비(랩퍼 기준) */
    .jivestar-apps-dashboard-title-row #jivestar-apps-chat-ticker {
        max-width: 100% !important;
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-self: center !important;
    }
    .jivestar-apps-dashboard-title-row #jivestar-apps-chat-ticker.jivestar-apps-chat-ticker--primary {
        font-size: 0.9375rem;
    }
    /* 티커 라벨·텍스트가 한 줄에 더 잘 들어가도록 */
    .jivestar-apps-dashboard-title-row .jivestar-apps-chat-ticker-inner {
        gap: 0.25rem;
    }
    .jivestar-apps-dashboard-title-row .jivestar-apps-chat-ticker__label {
        font-size: 0.95rem !important;
    }
    /* AI 메모: 상단 줄과 카드 사이 (전체 세로 압축과 균형) */
    .jivestar-apps-dashboard-row .jivestar-dash-slot--memo {
        margin-top: 0.75rem;
    }
    .jivestar-apps-dashboard-title-row .jivestar-analog-clock {
        width: 34px;
        height: 34px;
    }
}

/* Apps 대시보드: 767px 이하에서 블록 순서 고정 (DOM은 2열용, 좁은 화면에서만 order 재배치) */
@media (max-width: 767.98px) {
    .jivestar-apps-dashboard-row {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        margin-left: 0 !important;
        margin-right: 0 !important;
        row-gap: 0.65rem;
    }
    .jivestar-apps-dashboard-row > .jivestar-dash-main-col,
    .jivestar-apps-dashboard-row > .jivestar-dashboard-weekly-calendar {
        display: contents;
    }
    .jivestar-apps-dashboard-row .jivestar-dash-slot.content-block {
        margin-bottom: 0 !important;
    }
    .jivestar-apps-dashboard-row > .jivestar-dash-slot--shortcuts .content-block.mb-4 {
        margin-bottom: 0 !important;
    }
    .jivestar-apps-dashboard-row .jivestar-dash-slot,
    .jivestar-apps-dashboard-row > .jivestar-dash-slot--shortcuts {
        width: 100%;
        max-width: 100%;
    }
    /* 빠른 접근만 실제 col 이라 가로 패딩이 들어가 달력·메모보다 좁아짐 → 제거 */
    .jivestar-apps-dashboard-row > .jivestar-dash-slot--shortcuts.col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 1 AI 메모 → 2 달력 → 3 빠른 접근 → 4 데이터 블록 → 5 실시간 트렌드 → 6 요약 */
    .jivestar-dash-slot--memo { order: 1; }
    .jivestar-dash-slot--calendar { order: 2; }
    .jivestar-dash-slot--shortcuts { order: 3; }
    .jivestar-dash-slot--activity { order: 4; }
    .jivestar-dash-slot--trends { order: 5; }
    .jivestar-dash-slot--summary { order: 6; }
}

/* 좁은 모바일: 대시보드 블록 세로 간격 살짝 축소 */
@media (max-width: 576px) {
    .jivestar-apps-dashboard-row {
        row-gap: 0.55rem;
    }
}

/* Apps 대시보드만: 반응형에서 세로 길이 완화(빠른 접근 #jivestar-shortcuts-block 은 별도 규칙 유지) */
@media (max-width: 767.98px) {
    main#jivestar-main-content.dashboard-content[data-workspace="apps"][data-current-page="dashboard"] {
        padding: 1.1rem 0.85rem 1.15rem;
    }
    main#jivestar-main-content.dashboard-content[data-workspace="apps"][data-current-page="dashboard"]
        .jivestar-apps-dashboard-row .content-block.jivestar-dash-slot {
        padding: 0.8rem 1rem !important;
    }
    main#jivestar-main-content.dashboard-content[data-workspace="apps"][data-current-page="dashboard"]
        .jivestar-apps-dashboard-row .content-block.jivestar-dash-slot > h2.jivestar-section-title:first-child {
        margin-bottom: 0.35rem !important;
    }
}

/*
 * 대시보드 월간 미니 캘린더(page_placeholder 인라인 스타일 보완)
 * 요일 행(.jdc-weekdays)은 그대로 두고, 날짜 그리드·주 행 높이만 모바일에서 약 20% 세로 축소(×0.8)
 */
@media (max-width: 767.98px) {
    .jivestar-dashboard-calendar-block .jdc-week {
        height: 76.8px !important;
    }
    .jivestar-dashboard-calendar-block .jdc-day {
        padding: 4.8px 6.4px !important;
    }
    .jivestar-dashboard-calendar-block .jdc-day.today .jdc-num {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
    }
    .jivestar-dashboard-calendar-block .jdc-events {
        top: 27.2px !important;
        bottom: 3.2px !important;
        grid-auto-rows: 16px !important;
        row-gap: 3.2px !important;
    }
    .jivestar-dashboard-calendar-block .jdc-ev {
        padding: 1.6px 6.4px !important;
        font-size: 12px !important;
        line-height: 12.8px !important;
    }
}

/*
 * 모바일 전용 빠른 접근(.jivestar-dashboard-shortcuts-mobile) — flex 컬럼 안에서
 * 카드 h-100·과한 패딩으로 세로가 불필요하게 커지는 현상 완화
 */
@media (max-width: 767.98px) {
    .jivestar-dashboard-shortcuts-mobile.jivestar-dash-slot--shortcuts {
        flex: 0 0 auto;
        min-height: 0;
    }
    .jivestar-dashboard-shortcuts-mobile .content-block#jivestar-shortcuts-block {
        padding: 0.85rem 1rem 0.9rem;
    }
    .jivestar-dashboard-shortcuts-mobile #jivestar-shortcuts-block .jivestar-section-title {
        margin-top: 0 !important;
        margin-bottom: 0.4rem !important;
    }
    .jivestar-dashboard-shortcuts-mobile #jivestar-shortcuts-block > .d-flex.mb-2 {
        margin-bottom: 0.4rem !important;
    }
    .jivestar-dashboard-shortcuts-mobile #jivestar-dashboard-shortcuts.row {
        --bs-gutter-y: 0.5rem;
        --bs-gutter-x: 0;
    }
    .jivestar-dashboard-shortcuts-mobile .jivestar-shortcut-link .card.h-100 {
        height: auto !important;
        min-height: 0;
    }
    .jivestar-dashboard-shortcuts-mobile #jivestar-shortcuts-block .card-body {
        padding: 0.65rem 0.85rem !important;
    }
    /* 달력 바로 아래: row-gap 외에 살짝만 간격 */
    .jivestar-apps-dashboard-row .jivestar-dash-slot--shortcuts {
        margin-top: 0.15rem;
        margin-bottom: 0;
    }
}

/* 대시보드 최근 활동 테이블 — content-block 안에 들어가므로 중복 래핑 제거 */
.jivestar-dashboard-activity-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin: -1.125rem -1.25rem -1.125rem;
}
@media (min-width: 768px) {
    .jivestar-dashboard-activity-card {
        margin: -1.25rem -1.5rem -1.25rem;
    }
}
.jivestar-dashboard-activity-card .table thead th:first-child,
.jivestar-dashboard-activity-card .table tbody td:first-child {
    padding-left: 1.25rem;
}
.jivestar-dashboard-activity-card .table thead th:last-child,
.jivestar-dashboard-activity-card .table tbody td:last-child {
    padding-right: 1.25rem;
}
@media (min-width: 768px) {
    .jivestar-dashboard-activity-card .table thead th:first-child,
    .jivestar-dashboard-activity-card .table tbody td:first-child {
        padding-left: 1.5rem;
    }
    .jivestar-dashboard-activity-card .table thead th:last-child,
    .jivestar-dashboard-activity-card .table tbody td:last-child {
        padding-right: 1.5rem;
    }
}
.jivestar-dashboard-activity-card .table tbody tr:last-child td {
    border-bottom: none;
}

/* 대시보드 활동 구간: 콘텐츠생성｜자동화예약｜검색크롤링 — 3열 가로 배치, ｜ 구분만 */
.jivestar-dashboard-activity-by-cat {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 0 0.5rem;
    width: 100%;
}

/* 대시보드 최근 활동 — 3개 세로 섹션 + divider divider-horizontal */
.jivestar-dashboard-activity-wrap {
    margin: -1.125rem -1.25rem -1.125rem;
    padding: 1.125rem 1.25rem 1rem;
}
@media (min-width: 768px) {
    .jivestar-dashboard-activity-wrap {
        margin: -1.25rem -1.5rem -1.25rem;
        padding: 1.25rem 1.5rem 1rem;
    }
}

.jivestar-activity-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ui-text-quaternary, #86868b);
    margin-bottom: 0.4rem;
}

.jivestar-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.jivestar-activity-item-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.jivestar-activity-empty {
    font-size: 0.6875rem;
    color: var(--ui-text-tertiary, #5a5a5a);
    padding: 0.1rem 0;
}

/* FlyonUI divider-horizontal 스타일을 우리 블록에 맞춰 오버라이드 */
.jivestar-activity-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    margin: 0.75rem 0.5rem;
}

[data-bs-theme="dark"] .jivestar-activity-divider {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .jivestar-activity-section-title {
    color: var(--jivestar-text-secondary, #a1a1a6);
}

[data-bs-theme="dark"] .jivestar-activity-empty,
[data-bs-theme="dark"] .jivestar-activity-item-title {
    color: var(--jivestar-text-secondary, #a1a1a6);
}
.jivestar-activity-cat-divider {
    flex: 0 0 auto;
    color: var(--ui-text-quaternary, #86868b);
    font-size: 0.75rem;
    opacity: 0.7;
    padding: 0 0.35rem;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
}
.jivestar-activity-cat-segment {
    flex: 1 1 0%;
    min-width: 0;
}
.jivestar-activity-cat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ui-text-quaternary, #86868b);
    display: block;
    margin-bottom: 0.35rem;
}
.jivestar-activity-cat-list {
    font-size: 0.8125rem;
    color: var(--ui-text-tertiary, #5a5a5a);
}
.jivestar-activity-cat-item {
    padding: 0.15rem 0;
    border-bottom: none;
}
.jivestar-activity-item-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.jivestar-activity-cat-empty {
    padding: 0.15rem 0;
}
[data-bs-theme="dark"] .jivestar-activity-cat-label {
    color: var(--jivestar-text-secondary, #a1a1a6);
}
[data-bs-theme="dark"] .jivestar-activity-cat-list,
[data-bs-theme="dark"] .jivestar-activity-item-title {
    color: var(--jivestar-text-secondary, #a1a1a6);
}
[data-bs-theme="dark"] .jivestar-activity-cat-divider {
    color: var(--jivestar-text-secondary, #a1a1a6);
}

/* TOAST UI Calendar — 컬러톤 맞춤 래퍼 */
.jivestar-tui-calendar-wrap {
    background: var(--jivestar-bg-elevated);
    border-radius: var(--jivestar-radius);
    border: 1px solid var(--jivestar-border);
}
.jivestar-cal-view-btn.active {
    background-color: var(--jivestar-accent);
    color: #fff;
    border-color: var(--jivestar-accent);
}

/* FullCalendar — 참고 이미지: 왼쪽 포커스 날짜, 회색 버튼, 보라 + Add event, 얇은 그리드 */
.jivestar-fullcalendar-below-block {
    margin-top: 1rem;
}

/* 캘린더: 전체 감싸는 테두리 없음, 좌우 라인 없음, 가로 반응형 */
.jivestar-fullcalendar-wrap {
    font-family: var(--ui-font-body);
    background-color: #ffffff;
    border: none !important;
    border-radius: 10px;
    overflow: visible;
    transition: background-color 0.25s ease;
    box-shadow: none !important;
    width: 100%;
    max-width: 100%;
    min-height: 400px;
}
.jivestar-fullcalendar-wrap .fc-view-harness {
    height: auto !important;
}
.jivestar-fullcalendar-wrap .fc {
    width: 100% !important;
    max-width: 100%;
}
.jivestar-fullcalendar-wrap .fc-scrollgrid {
    table-layout: fixed;
    width: 100% !important;
}
.jivestar-fullcalendar-wrap .fc-scrollgrid th:first-child,
.jivestar-fullcalendar-wrap .fc-scrollgrid td:first-child {
    border-left: none !important;
}
.jivestar-fullcalendar-wrap .fc-scrollgrid th:last-child,
.jivestar-fullcalendar-wrap .fc-scrollgrid td:last-child {
    border-right: none !important;
}
/* 달력 가장 아래: 마지막 행·테이블·뷰 하단 라인 완전 제거 */
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table tr:last-child td,
.jivestar-fullcalendar-wrap .fc-daygrid-body tr:last-child td,
.jivestar-fullcalendar-wrap .fc-daygrid-body tr:last-child .fc-daygrid-day,
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table,
.jivestar-fullcalendar-wrap .fc-daygrid-body,
.jivestar-fullcalendar-wrap .fc-view-harness,
.jivestar-fullcalendar-wrap .fc-scrollgrid-sync-inner,
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}
.jivestar-fullcalendar-wrap .fc-theme-standard .fc-daygrid-body tr:last-child td {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}
.jivestar-fullcalendar-wrap .fc .fc-scrollgrid-sync-inner,
.jivestar-fullcalendar-wrap .fc-scrollgrid,
.jivestar-fullcalendar-wrap .fc-view-harness,
.jivestar-fullcalendar-wrap .fc-view-harness-active {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
}
.jivestar-fullcalendar-wrap .fc,
.jivestar-fullcalendar-wrap .fc > div {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}
/* FC 테마가 td에 주는 하단 보더 덮어쓰기: 마지막 행만 */
.jivestar-fullcalendar-wrap .fc-daygrid .fc-daygrid-body table tbody tr:last-child td,
.jivestar-fullcalendar-wrap .fc-daygrid .fc-daygrid-body table tr:last-child td {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}
/* 테이블/tbody 자체 하단 라인 제거 (FC가 table에 border 줄 수 있음) */
.jivestar-fullcalendar-wrap .fc-daygrid-body table,
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table,
.jivestar-fullcalendar-wrap .fc-daygrid-body tbody {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}
/* 최종 하단 라인 가리기: 1px 덮어씌움(FC 인라인/테마 우선 시 대비) */
.jivestar-fullcalendar-wrap::after {
    content: '';
    display: block;
    height: 1px;
    background: #ffffff;
    position: relative;
    margin-top: -1px;
    z-index: 1;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap::after {
    background: var(--jivestar-bg-elevated);
}
/* 툴바·그리드가 같은 흰 배경으로 이어지도록 (이중 레이어 느낌 제거) */
.jivestar-fullcalendar-wrap .fc,
.jivestar-fullcalendar-wrap .fc-toolbar {
    background-color: transparent;
}
.jivestar-fullcalendar-wrap .fc-scrollgrid {
    border: none !important;
}

/* 툴바: 좌측 포커스 블록 — 우측 여백 없음, 3월 그레이 연하게, 15 가로 중앙 */
.jivestar-fullcalendar-wrap .jivestar-fc-focus-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-right: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    min-width: 2.75rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    font-family: var(--ui-font-body);
}
.jivestar-fullcalendar-wrap .jivestar-fc-focus-label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #7e7e7e;
    line-height: 1.25;
    background: #f9fafb;
    padding: 0.2rem 0.5rem;
}
.jivestar-fullcalendar-wrap .jivestar-fc-focus-date {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--jivestar-accent);
    line-height: 1.25;
    margin: 0;
    padding: 0.25rem 0.5rem;
    box-sizing: border-box;
}
/* 툴바: 타이틀·Week 배지·날짜 범위 — 좌측 여백 없음, 폰트 상속 */
.jivestar-fullcalendar-wrap .jivestar-fc-title-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex: 1 1 0%;
    min-width: 0;
    margin-left: 0;
    padding-left: 0;
    font-family: var(--ui-font-body);
}
.jivestar-fullcalendar-wrap .jivestar-fc-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.jivestar-fullcalendar-wrap .jivestar-fc-title {
    font-size: 1.3125rem;
    font-weight: 500;
    color: var(--jivestar-text);
    line-height: 1.3;
    margin: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-week-badge {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--jivestar-text-secondary);
    padding: 0.125rem 0.5rem;
    background: transparent;
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: 9999px;
}
.jivestar-fullcalendar-wrap .jivestar-fc-range {
    font-size: 0.875rem;
    color: var(--jivestar-text-muted);
    line-height: 1.3;
    margin: 0;
}

.jivestar-fullcalendar-wrap .fc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
}
.jivestar-fullcalendar-wrap .jivestar-fc-focus-block {
    flex-shrink: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-toolbar-right {
    flex-shrink: 0;
}
.jivestar-fullcalendar-wrap .fc-toolbar-title {
    display: none;
}
/* 이전/오늘/다음 기본 청크 숨김(커스텀 nav만 사용) */
.jivestar-fullcalendar-wrap .fc-toolbar .fc-toolbar-chunk:has(.fc-prev-button) {
    display: none !important;
}
/* FC 기본 타이틀(center) 청크 숨김 — 빈 네 칸 제거 */
.jivestar-fullcalendar-wrap .fc-toolbar .fc-toolbar-chunk:has(.fc-toolbar-title) {
    display: none !important;
}
.jivestar-fullcalendar-wrap .fc-toolbar .fc-toolbar-chunk:last-child {
    margin-left: auto;
}
.jivestar-fullcalendar-wrap .jivestar-fc-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled {
    margin-right: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-add-event-btn {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: var(--jivestar-accent);
    border: 1px solid var(--jivestar-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}
.jivestar-fullcalendar-wrap .jivestar-fc-add-event-btn:hover {
    background: var(--jivestar-accent-hover);
    border-color: var(--jivestar-accent-hover);
    color: #fff;
}
.jivestar-fullcalendar-wrap .jivestar-fc-add-event-btn:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
/* 뷰 선택 드롭다운 (Untitled UI Dropdown 스타일) */
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown {
    position: relative;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 0.75rem 0 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1c1c1e;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-trigger:hover {
    background: #f9fafb;
    border-color: #e2e2e2;
    color: #1c1c1e;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-trigger-icon {
    font-size: 0.65em;
    opacity: 0.8;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 100%;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    z-index: 50;
    display: none;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-menu.is-open {
    display: block;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1c1c1e;
    background: 0;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-item:hover {
    background: #f3f4f6;
    color: #1c1c1e;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-item:first-child {
    border-radius: 4px 4px 0 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-item:last-child {
    border-radius: 0 0 4px 4px;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-trigger:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
/* 수집기록관리 행 펼치기 드롭다운 (데스크톱 — 스타일 가이드) */
.jivestar-per-dropdown {
    position: relative;
}
.jivestar-per-dropdown-trigger {
    min-height: 31px;
    line-height: 1;
}
.jivestar-per-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 100%;
    padding: 4px 0;
    background: var(--jivestar-bg-elevated, #fff);
    border: 1px solid var(--jivestar-border-subtle, #e2e2e2);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    z-index: 50;
}
.jivestar-per-dropdown-menu[hidden] {
    display: none !important;
}
.jivestar-per-dropdown-menu:not([hidden]) {
    display: block;
}
.jivestar-per-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jivestar-text, #1c1c1e);
    background: 0;
    border: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.jivestar-per-dropdown-item:hover,
.jivestar-per-dropdown-item.active {
    background: var(--jivestar-bg-active, #f3f4f6);
    color: var(--jivestar-text, #1c1c1e);
}
.jivestar-per-dropdown-item:first-child { border-radius: 6px 6px 0 0; }
.jivestar-per-dropdown-item:last-child { border-radius: 0 0 6px 6px; }
.jivestar-per-dropdown-trigger:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
[data-bs-theme="dark"] .jivestar-per-dropdown-menu {
    background: #262626;
    border-color: #2d2d2d;
}
[data-bs-theme="dark"] .jivestar-per-dropdown-item {
    color: #e2e2e2;
}
[data-bs-theme="dark"] .jivestar-per-dropdown-item:hover,
[data-bs-theme="dark"] .jivestar-per-dropdown-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f7;
}
/* Untitled UI Button group: nav(prev/today/next) */
/* Untitled UI 스타일: 이전 | 오늘 | 다음 버튼 그룹 (월/주/일 버튼 왼쪽) */
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled {
    display: inline-flex;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1c1c1e;
    background: #fff;
    border: 1px solid #e2e2e2;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn:hover {
    background: #f9fafb;
    color: #1c1c1e;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn:first-child {
    border-radius: 8px 0 0 8px;
    margin-right: -1px;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn:last-child {
    border-radius: 0 8px 8px 0;
    margin-left: -1px;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn:not(:first-child):not(:last-child) {
    margin-left: -1px;
    border-radius: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-group,
.jivestar-fullcalendar-wrap .jivestar-fc-view-group {
    display: flex;
    align-items: center;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-group .fc-button {
    margin-left: -1px;
    border-radius: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-group .fc-button:first-child {
    border-radius: 6px 0 0 6px;
    margin-left: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-nav-group .fc-button:last-child {
    border-radius: 0 6px 6px 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-group .fc-button:not(.jivestar-add-event-btn) {
    margin-left: -1px;
    border-radius: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-group .fc-button:not(.jivestar-add-event-btn):first-child {
    border-radius: 6px 0 0 6px;
    margin-left: 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-group .fc-button:not(.jivestar-add-event-btn):nth-child(4) {
    border-radius: 0 6px 6px 0;
}
.jivestar-fullcalendar-wrap .jivestar-fc-view-group .fc-button.jivestar-add-event-btn {
    margin-left: 0.5rem;
    border-radius: 6px;
}
.jivestar-fullcalendar-wrap {
    --fc-border-color: rgba(0, 0, 0, 0.06);
    --fc-button-bg-color: #ffffff;
    --fc-button-border-color: #e2e2e2;
    --fc-button-hover-bg-color: #f5f5f5;
    --fc-button-hover-border-color: #e2e2e2;
    --fc-button-active-bg-color: var(--jivestar-accent);
    --fc-button-active-border-color: var(--jivestar-accent);
    --fc-button-active-text-color: #fff;
    --fc-today-bg-color: rgba(230, 122, 59, 0.08);
    --fc-event-bg-color: var(--jivestar-accent-light);
    --fc-event-border-color: var(--jivestar-accent);
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: #ffffff;
    --fc-neutral-border-color: rgba(0, 0, 0, 0.06);
}
.jivestar-fullcalendar-wrap .fc-daygrid-day-frame,
.jivestar-fullcalendar-wrap .fc-timegrid-slot {
    background-color: #ffffff;
    background-image: none;
}
/* 캘린더 내 링크/텍스트 언더라인 제거 */
.jivestar-fullcalendar-wrap a,
.jivestar-fullcalendar-wrap .fc-daygrid-day-number {
    text-decoration: none !important;
}
/* 날짜 그리드: 요일 제외 일자 행 세로 8rem(처음부터 넓게) */
.jivestar-fullcalendar-wrap .fc-daygrid-day {
    height: 8rem !important;
    min-height: 8rem !important;
    max-height: 8rem !important;
    vertical-align: top;
}
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table tr {
    height: 8rem !important;
    min-height: 8rem !important;
}
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table td {
    height: 8rem !important;
    min-height: 8rem !important;
    overflow: visible !important;
}
/* 연속 일정: 셀 밖으로 바가 이어지도록 overflow visible, 스크롤바 금지(overflow 아님) */
.jivestar-fullcalendar-wrap .fc-daygrid-day-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    max-height: 100%;
    overflow: visible !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day-frame::-webkit-scrollbar {
    display: none;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day-events {
    overflow: visible !important;
    flex: 1;
    min-height: 0;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day-events::-webkit-scrollbar {
    display: none;
}
.jivestar-fullcalendar-wrap .fc-daygrid-event-harness-abs {
    z-index: 2;
}
.jivestar-fullcalendar-wrap .fc-daygrid-body,
.jivestar-fullcalendar-wrap .fc-scrollgrid-section-liquid {
    overflow: visible !important;
}
/* 스크롤바 미표시(연속 일정은 그대로 표기, overflow 아님) */
.jivestar-fullcalendar-wrap .fc-daygrid-body table,
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table,
.jivestar-fullcalendar-wrap .fc-daygrid-body tbody {
    overflow: visible !important;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day-top {
    display: flex !important;
    align-self: flex-start;
    width: 100%;
    justify-content: flex-start !important;
    padding: 0 0 0 0.25rem;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame,
.jivestar-fullcalendar-wrap .fc-timegrid-col.fc-day-today {
    background-color: rgba(230, 122, 59, 0.06);
    background-image: none;
}
.jivestar-fullcalendar-wrap .fc-theme-standard td,
.jivestar-fullcalendar-wrap .fc-theme-standard th {
    border-color: rgba(0, 0, 0, 0.06);
}
.fc .fc-timegrid-divider {
    padding: 0px 0px 1px;
}
.fc .fc-cell-shaded,
.fc .fc-day-disabled {
    background: #5a5a5a;
}
.jivestar-fullcalendar-wrap .fc .fc-button {
    font-weight: 500;
    text-transform: none;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    color: #1c1c1e;
    padding: 0.375rem 0.75rem;
    min-height: 2rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.jivestar-fullcalendar-wrap .fc .fc-button .fc-button-content {
    color: inherit;
    opacity: 1;
    visibility: visible;
    font-size: inherit;
    padding: 0;
    white-space: nowrap;
}
.jivestar-fullcalendar-wrap .fc .fc-button .fc-icon {
    display: inline-block;
    opacity: 1;
    visibility: visible;
    font-size: 1em;
    vertical-align: middle;
}
/* 이전/다음 버튼 아이콘 미표시 시 fallback(테마 폰트 미로드 등) */
.jivestar-fullcalendar-wrap .fc .fc-prev-button .fc-icon:empty,
.jivestar-fullcalendar-wrap .fc .fc-prev-button .fc-icon:not([class*="fc-icon-"]) {
    font-style: normal;
}
.jivestar-fullcalendar-wrap .fc .fc-prev-button .fc-icon::before {
    content: '\2039';
    font-weight: 500;
}
.jivestar-fullcalendar-wrap .fc .fc-next-button .fc-icon::before {
    content: '\203A';
    font-weight: 500;
}
.jivestar-fullcalendar-wrap .fc .fc-button:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #e2e2e2;
    color: #1c1c1e;
}
.jivestar-fullcalendar-wrap .fc .fc-button-primary:not(:disabled):active,
.jivestar-fullcalendar-wrap .fc .fc-button-primary.fc-button-active {
    background: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
    color: #fff;
}
.jivestar-fullcalendar-wrap .fc .fc-button.jivestar-add-event-btn {
    background: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
    color: #fff;
}
.jivestar-fullcalendar-wrap .fc .fc-button.jivestar-add-event-btn:hover {
    background: var(--jivestar-accent-hover);
    border-color: var(--jivestar-accent-hover);
    color: #fff;
}
/* 요일 헤더: 사이드바 메뉴 기본 컬러, 언더라인 없음. 요일 아래 라인만 1px(다른 그리드와 동일) */
.jivestar-fullcalendar-wrap .fc-col-header .fc-col-header-cell,
.jivestar-fullcalendar-wrap .fc-col-header-cell {
    background-color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--jivestar-text-secondary);
    text-decoration: none !important;
    padding: 0.35rem 0;
    max-height: 2.5rem;
    line-height: 1.25;
    border: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
/* 주간/일간 보기: 시간 슬롯 높이 고정(월간 8rem 적용 방지, 영역 비정상 확대 방지) */
.jivestar-fullcalendar-wrap .fc-timegrid .fc-timegrid-slot {
    min-height: 2.5rem !important;
    height: 2.5rem !important;
}
.jivestar-fullcalendar-wrap .fc-timegrid .fc-timegrid-slot-label {
    vertical-align: top;
}
.jivestar-fullcalendar-wrap .fc-timegrid-slot-label,
.jivestar-fullcalendar-wrap .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label,
.fc .fc-timegrid-axis-cushion {
    color: #5a5a5a !important;
}
/* 요일과 첫 번째 날짜 행 사이 중복 라인 제거 → 1px만 보이게 */
.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table tr:first-child td {
    border-top: none !important;
}
.jivestar-fullcalendar-wrap .fc-col-header .fc-col-header-cell a,
.jivestar-fullcalendar-wrap .fc-col-header-cell a {
    color: inherit !important;
    text-decoration: none !important;
}
.jivestar-fullcalendar-wrap .fc-col-header .fc-col-header-cell:last-child,
.jivestar-fullcalendar-wrap .fc-col-header-cell:last-child {
    border-right: none !important;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day-number {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
    min-height: 1.75rem !important;
    max-width: 1.75rem !important;
    max-height: 1.75rem !important;
    aspect-ratio: 1;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: #7e7e7e;
    margin: 0.25rem 0 0 0.25rem !important;
    margin-right: auto !important;
    flex: 0 0 1.75rem;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 !important;
    text-align: center;
    /* 숫자를 원 안에서 왼쪽·위로 살짝 이동 */
    transform: translate(-1px, -1px);
}
.jivestar-fullcalendar-wrap .fc-day-other .fc-daygrid-day-number {
    color: var(--jivestar-text-muted, #7e7e7e);
}
.jivestar-fullcalendar-wrap .fc-day-today .fc-daygrid-day-number {
    background: var(--jivestar-accent);
    color: #fff;
}
/* 날짜 셀: 선택(파랑) 제거, 호버 시에만 연한 그레이 */
.jivestar-fullcalendar-wrap .fc-highlight {
    background: transparent !important;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day:hover .fc-daygrid-day-frame {
    background-color: #f3f4f6;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day.fc-day-today:hover .fc-daygrid-day-frame {
    background-color: rgba(230, 122, 59, 0.08);
}
/* 날짜 셀 내 플러스 버튼 — 호버 시에만 표시, 원형·그레이 톤 */
.jivestar-fullcalendar-wrap .fc-daygrid-day-frame {
    position: relative;
}
.jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 50%;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    color: #7e7e7e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: opacity 0.2s ease, background-color 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}
.jivestar-fullcalendar-wrap .fc-daygrid-day:hover .jivestar-fc-day-add-btn {
    opacity: 1;
    pointer-events: auto;
}
.jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn:hover {
    background-color: #7e7e7e;
    border-color: #7e7e7e;
    color: #fff;
}
.jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn:active {
    background-color: #7e7e7e;
    border-color: #7e7e7e;
    color: #fff;
}
.jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
.jivestar-fullcalendar-wrap .fc-timegrid-now-indicator-line {
    border-color: var(--jivestar-accent);
    border-width: 2px;
}
.jivestar-fullcalendar-wrap .fc-timegrid-now-indicator-arrow {
    border-color: var(--jivestar-accent);
}
.jivestar-fullcalendar-wrap .fc-event {
    border-radius: 10px;
    border: none;
    padding: 4px 8px;
    font-size: 0.8125rem;
}
.jivestar-fullcalendar-wrap tr[data-date] {
    border-radius: 10px;
}
.jivestar-fullcalendar-wrap .fc-daygrid-event {
    min-height: 1.75rem;
}
.jivestar-fullcalendar-wrap .fc-daygrid-event-harness {
    min-height: 1.75rem;
}
.jivestar-fullcalendar-wrap .fc-daygrid-event-harness-abs .fc-daygrid-event {
    min-height: 1.75rem;
}
.jivestar-fullcalendar-wrap .fc-event-main {
    border-radius: 6px;
    color: #5a5a5a;
}
.jivestar-fullcalendar-wrap .fc-event-desc {
    font-size: 0.75rem;
    color: var(--jivestar-text-muted, #7e7e7e);
    margin-top: 0.25rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}
.jivestar-fullcalendar-wrap .fc-event .fc-event-time {
    color: #7e7e7e;
    font-size: 0.75rem;
}
/* 일정 색상 — 글로벌 팔레트(오렌지 계열 단계) */
.jivestar-fullcalendar-wrap .fc-event.pastel-amber { background: #e67a3b; color: #ffffff; }
.jivestar-fullcalendar-wrap .fc-event.pastel-pink { background: #fcbb94; color: #1c1c1e; }
.jivestar-fullcalendar-wrap .fc-event.pastel-green { background: #ffd5b3; color: #1c1c1e; }
.jivestar-fullcalendar-wrap .fc-event.pastel-gray { background: #e2e2e2; color: #1c1c1e; }
/* 더보기 링크(+N개) 파란색 제거, 우리 컬러로 */
.jivestar-fullcalendar-wrap .fc-daygrid-more-link {
    color: var(--jivestar-text-secondary, #7e7e7e) !important;
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 500;
}
.jivestar-fullcalendar-wrap .fc-daygrid-more-link:hover {
    color: var(--jivestar-accent, #e67a3b) !important;
    text-decoration: none !important;
}
.jivestar-fullcalendar-wrap .fc-event.pastel-cream { background: #fdede0; color: #1c1c1e; }

/* ===== 목록 보기 (listWeek) ===== */
.jivestar-fullcalendar-wrap .fc-list {
    border: none !important;
}
.jivestar-fullcalendar-wrap .fc-list-day-cushion {
    background: transparent !important;
    padding: 0.75rem 1rem !important;
}
.jivestar-fullcalendar-wrap .fc-list-day-text,
.jivestar-fullcalendar-wrap .fc-list-day-side-text {
    color: #5a5a5a !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.jivestar-fullcalendar-wrap .fc-list-day-text:hover,
.jivestar-fullcalendar-wrap .fc-list-day-side-text:hover {
    text-decoration: none !important;
}
.jivestar-fullcalendar-wrap .fc-list-event {
    cursor: pointer;
}
.jivestar-fullcalendar-wrap .fc-list-event:hover td {
    background: transparent !important;
}
.jivestar-fullcalendar-wrap .fc-list-event-time {
    color: var(--jivestar-text-secondary, #7e7e7e) !important;
}
.jivestar-fullcalendar-wrap .fc-list-event-title a {
    color: #5a5a5a !important;
    text-decoration: none !important;
}
.jivestar-fullcalendar-wrap .fc-list-event-title a:hover {
    text-decoration: none !important;
}

/* ===== 일간/주간 보기 (timeGrid) ===== */
.jivestar-fullcalendar-wrap .fc-timegrid-event .fc-event-main {
    padding-left: 0.5rem !important;
}
.jivestar-fullcalendar-wrap .fc-timegrid-event .fc-event-title {
    color: inherit !important;
}
/* 일정 내용(description) 숨기기 - 목록보기/일간보기/월간보기 전체 */
.jivestar-fullcalendar-wrap .fc-timegrid-event .fc-event-desc,
.jivestar-fullcalendar-wrap .fc-timegrid-event .fc-event-description,
.jivestar-fullcalendar-wrap .fc-list-event .fc-event-desc,
.jivestar-fullcalendar-wrap .fc-list-event .fc-event-description,
.jivestar-fullcalendar-wrap .fc-daygrid-event .fc-event-desc,
.jivestar-fullcalendar-wrap .fc-daygrid-event .fc-event-description,
.jivestar-fullcalendar-wrap .fc-event .fc-event-desc,
.jivestar-fullcalendar-wrap .fc-event .fc-event-description {
    display: none !important;
}
/* 일정 dot 색상 수정 (일정 고유 색상 유지) */
.jivestar-fullcalendar-wrap .fc-list-event-dot {
    border-color: currentColor !important;
}
.jivestar-fullcalendar-wrap .fc-timegrid-event-dot {
    display: none;
}

/* 모바일(폭 750px 미만) 반응형 캘린더 */
@media (max-width: 750px) {
    /* 테두리 완전 제거 */
    .jivestar-fullcalendar-wrap .fc-theme-standard td,
    .jivestar-fullcalendar-wrap .fc-theme-standard th,
    .fc-theme-standard td,
    .fc-theme-standard th,
    .jivestar-fullcalendar-wrap .fc-scrollgrid td,
    .jivestar-fullcalendar-wrap .fc-scrollgrid th,
    .jivestar-fullcalendar-wrap .fc-list-table td,
    .jivestar-fullcalendar-wrap .fc-list-table th,
    .jivestar-fullcalendar-wrap table td,
    .jivestar-fullcalendar-wrap table th {
        border: none !important;
        border-width: 0 !important;
    }
    .jivestar-time-picker-trigger {
        display: none;
    }
    .jivestar-time-input-wrap .jivestar-form-input {
        padding-right: 0.75rem;
    }
    .jivestar-fullcalendar-wrap .fc-toolbar {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 0.875rem;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-focus-block {
        display: none !important;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-title-block {
        order: 1;
        flex: 1 1 0%;
        min-width: 0;
        margin-left: 0;
        padding-left: 0;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-title-row {
        gap: 0.375rem;
        align-items: center;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-title {
        font-size: 1.125rem;
        line-height: 1.2;
        margin: 0;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-week-badge {
        font-size: 0.75rem;
        padding: 0.125rem 0.45rem;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-range {
        font-size: 0.8125rem;
        line-height: 1.35;
        margin-top: 0.125rem;
    }
    /* 날짜 셀을 더 정사각형에 가깝게 축소 */
    /* ===== MOBILE LAYOUT (< 750px) =====
       JS에서 nav를 toolbar 직접 자식으로 이동시킴.
       1행: titleBlock(좌) + toolbarRight(우, dropdown만 남음)
       2행: nav (전체 폭)
    */
    .jivestar-fullcalendar-wrap .fc-header-toolbar {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .jivestar-fullcalendar-wrap #jivestar-fc-title-block {
        flex: 1 1 0%;
        min-width: 0;
        order: 1;
    }
    .jivestar-fullcalendar-wrap #jivestar-fc-toolbar-right {
        flex: 0 0 auto;
        margin-left: auto;
        order: 2;
    }
    /* nav가 toolbar 직접 자식일 때: 새 줄로, 전체 폭 */
    .jivestar-fullcalendar-wrap .fc-header-toolbar > #jivestar-fc-nav-untitled {
        flex: 0 0 100%;
        width: 100%;
        order: 3;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-title-row {
        flex-wrap: nowrap;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    /* FullCalendar 기본 청크 숨김 */
    .jivestar-fullcalendar-wrap .fc-header-toolbar .fc-toolbar-chunk {
        display: none !important;
    }
    /* ===== END MOBILE LAYOUT ===== */

    #jivestar-fullcalendar.jivestar-fullcalendar-wrap .fc-daygrid-day {
        height: 4.4rem !important;
        min-height: 4.4rem !important;
        max-height: 4.4rem !important;
    }
    #jivestar-fullcalendar.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table tr,
    #jivestar-fullcalendar.jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table td {
        height: 4.4rem !important;
        min-height: 4.4rem !important;
    }
    .jivestar-fullcalendar-wrap .fc-daygrid-day-frame {
        align-items: flex-start;
    }

    /* 월간/주간 보기에서 일정은 색상 원(dot)만 표시, 제목 숨김 */
    .jivestar-fullcalendar-wrap .fc-daygrid-day .fc-event,
    .jivestar-fullcalendar-wrap .fc-timegrid .fc-event {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        margin: 0.1rem 0;
    }
    .jivestar-fullcalendar-wrap .fc-event-main.fc-event-dot-only {
        display: flex !important;
        align-items: center;
    }
    .jivestar-fullcalendar-wrap .fc-daygrid-day .fc-event-main:not(.fc-event-dot-only),
    .jivestar-fullcalendar-wrap .fc-timegrid .fc-event-main:not(.fc-event-dot-only) {
        display: none;
    }
    .jivestar-fullcalendar-wrap .fc-event:has(.fc-event-dot-only)::before {
        display: none !important;
    }
    .jivestar-fullcalendar-wrap .fc-daygrid-day .fc-event:not(:has(.fc-event-dot-only))::before {
        content: '';
        display: inline-block;
        width: 0.45rem;
        height: 0.45rem;
        border-radius: 9999px;
        background-color: var(--jivestar-accent, #e67a3b);
        margin-right: 0.35rem;
        flex-shrink: 0;
    }
    /* fc-event 좌우 여백 */
    .jivestar-fullcalendar-wrap .fc-event {
        padding: 0.25rem 0.5rem !important;
    }
    .jivestar-fullcalendar-wrap .fc-dayGridMonth-view .fc-daygrid-day-events,
    .jivestar-fullcalendar-wrap .fc-dayGridMonth-view .fc-daygrid-day-bottom {
        display: none !important;
    }
    .jivestar-fullcalendar-wrap .fc-dayGridMonth-view .fc-daygrid-day-frame {
        position: relative;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-mobile-day-dots {
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        top: 2.2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem;
        align-items: flex-start;
        pointer-events: none;
        max-width: calc(100% - 1rem);
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-mobile-day-dot {
        width: 0.38rem;
        height: 0.38rem;
        border-radius: 9999px;
        flex: 0 0 0.38rem;
    }
    /* 점 3개까지만 한 줄, 이후 숨김 또는 다음 줄 */
    .jivestar-fullcalendar-wrap .jivestar-fc-mobile-day-dot:nth-child(n+4) {
        display: none;
    }
    .jivestar-fullcalendar-wrap .fc-daygrid-more-link {
        display: block;
        margin-top: 0.1rem;
        font-size: 0.7rem;
        color: #7e7e7e;
    }

    /* 이전/오늘/다음: 요일 위에 별도 행으로 배치 */
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-row-above-weekdays {
        display: flex;
        width: 100%;
        padding: 0 1rem 0.5rem;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        border-bottom: none;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-row-above-weekdays .jivestar-fc-nav-untitled {
        display: flex;
        flex: 1;
        min-width: 0;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled {
        display: flex;
        width: 100%;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn {
        justify-content: center;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-prev,
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-next {
        flex: 0 0 3.25rem;
    }
    .jivestar-fullcalendar-wrap .jivestar-fc-nav-today {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    /* 월간/주간: 일정을 색상 원(dot)만 표시 */
    .jivestar-fullcalendar-wrap .fc-daygrid-day .fc-event-dot-only {
        min-height: 0 !important;
    }
    .jivestar-fullcalendar-wrap .fc-event-dot {
        display: inline-block;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 9999px;
        flex-shrink: 0;
    }

    /* 모바일 오늘 일정: 블럭 color bar 타입 */
    .jivestar-mobile-today-events-bars {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .jivestar-mobile-today-events-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        min-height: 2.5rem;
    }
    .jivestar-mobile-today-events-bar-title {
        flex: 1;
        font-weight: 500;
        color: #5a5a5a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 0.5rem;
    }
    .jivestar-mobile-today-events-bar-time {
        flex-shrink: 0;
        font-size: 0.8125rem;
        color: rgba(0, 0, 0, 0.6);
    }

    /* 모바일 오늘 일정 영역 */
    .jivestar-mobile-today-events {
        margin-top: 0.75rem;
        padding: 0.75rem 1rem 1rem;
        border-radius: 8px;
        border: 1px solid var(--jivestar-border-subtle, #e2e2e2);
        background: #ffffff;
        font-size: 0.875rem;
        display: none;
    }
    .jivestar-mobile-today-events-title {
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: var(--jivestar-text-secondary, #5a5a5a);
    }
    .jivestar-mobile-today-events-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .jivestar-mobile-today-events-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0;
    }
    .jivestar-mobile-today-events-dot {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 9999px;
        flex-shrink: 0;
    }
    .jivestar-mobile-today-events-text {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* 목록보기 요일 텍스트 색상 (검정 → 덜 진한 색) */
    .jivestar-fullcalendar-wrap .fc-list-day-text,
    .jivestar-fullcalendar-wrap .fc-list-day-side-text {
        color: #5a5a5a !important;
    }
    /* 목록보기 일정 제목/내용 텍스트 색상 (검정 → 덜 진한 색) */
    .jivestar-fullcalendar-wrap .fc-event-main,
    .jivestar-fullcalendar-wrap .fc-list-event-title a,
    .jivestar-fullcalendar-wrap .fc-list-event-title {
        color: #5a5a5a !important;
    }
}
/* 일정 마우스 오버 시 hover(select) 표시 */
.jivestar-fullcalendar-wrap .fc-event:hover {
    filter: brightness(0.96);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
/* 다크 모드 */
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap {
    background-color: var(--jivestar-bg-elevated);
    border-color: rgba(255, 255, 255, 0.06);
    --fc-page-bg-color: #262626;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-list-day-text,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-list-day-side-text {
    color: #e2e2e2 !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-list-day-cushion {
    background: #262626 !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-focus-block {
    background: var(--jivestar-bg-elevated);
    border-color: var(--jivestar-border-subtle);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-focus-label {
    background: rgba(255, 255, 255, 0.08);
    color: var(--jivestar-text-muted);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-range {
    color: var(--jivestar-text-muted);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-title {
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-week-badge {
    color: var(--jivestar-text-secondary);
    border-color: var(--jivestar-border-subtle);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn {
    background: #262626;
    border-color: #2d2d2d;
    color: #e2e2e2;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-nav-untitled-btn:hover {
    background: #262626;
    color: #f5f5f7;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-trigger {
    background: #262626;
    border-color: #2d2d2d;
    color: #e2e2e2;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-trigger:hover {
    background: #262626;
    color: #f5f5f7;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-menu {
    background: #262626;
    border-color: #2d2d2d;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-item {
    color: #e2e2e2;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-view-dropdown-item:hover {
    background: #262626;
    color: #f5f5f7;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-nav-row-above-weekdays {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}
[data-bs-theme="dark"] .jivestar-mobile-today-events {
    background: var(--ui-bg-elevated, #1f1f1f);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .jivestar-mobile-today-events-title {
    color: #e2e2e2;
}
[data-bs-theme="dark"] .jivestar-mobile-today-events-text {
    color: rgba(236, 236, 241, 0.86);
}
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-primary,
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-primary:focus,
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-primary:focus-visible {
    background: #cb6441 !important;
    border-color: #cb6441 !important;
    color: #fff !important;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-primary:hover,
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-primary:active {
    background: #d87757 !important;
    border-color: #d87757 !important;
    color: #fff !important;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-outline-secondary,
[data-bs-theme="dark"] .jivestar-sitekit-connect-block .btn-outline-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--jivestar-text-muted);
    color: var(--jivestar-text-secondary);
}
[data-bs-theme="dark"] .jivestar-calendar-sync-btn-wrap .btn-outline-secondary:hover,
[data-bs-theme="dark"] .jivestar-sitekit-connect-block .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--jivestar-text-secondary);
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-sitekit-connect-block strong {
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-shortcuts-actions-pc .btn-outline-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--jivestar-text-muted);
    color: var(--jivestar-text-secondary);
}
[data-bs-theme="dark"] .jivestar-shortcuts-actions-pc .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--jivestar-text-secondary);
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-add-event-btn {
    background: #cb6441 !important;
    border-color: #cb6441 !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-add-event-btn:hover {
    background: #d87757 !important;
    border-color: #d87757 !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-daygrid-day-frame,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-timegrid-slot {
    background-color: var(--jivestar-bg-elevated);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-timegrid-col.fc-day-today {
    background-color: rgba(255, 255, 255, 0.035);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-daygrid-day:hover .fc-daygrid-day-frame {
    background-color: rgba(255, 255, 255, 0.03);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-daygrid-day.fc-day-today:hover .fc-daygrid-day-frame {
    background-color: rgba(255, 255, 255, 0.055);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn {
    background: var(--jivestar-bg-elevated);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--jivestar-text-muted);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn:hover {
    background: #fcbb94;
    border-color: #fcbb94;
    color: #1c1c1e;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .jivestar-fc-day-add-btn:active {
    background: #ffd5b3;
    border-color: #ffd5b3;
    color: #1c1c1e;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc .fc-button {
    background-color: var(--jivestar-bg-elevated);
    border-color: var(--jivestar-border);
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc .fc-button .fc-button-content,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc .fc-button .fc-icon {
    color: inherit;
    opacity: 1;
    visibility: visible;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-theme-standard td,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-theme-standard th,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-scrollgrid td,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-scrollgrid th {
    border-color: rgba(255, 255, 255, 0.18) !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-daygrid-body .fc-scrollgrid-sync-table tr:first-child td {
    border-top: none !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-toolbar {
    background-color: transparent;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-col-header .fc-col-header-cell,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-col-header-cell {
    background-color: var(--jivestar-bg-elevated);
    color: var(--jivestar-text-secondary);
    text-decoration: none !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-col-header .fc-col-header-cell:last-child,
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-col-header-cell:last-child {
    border-right: none !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-daygrid-day-number {
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-day-other .fc-daygrid-day-number {
    color: var(--jivestar-text-muted);
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-day-today .fc-daygrid-day-number {
    background: rgba(230, 122, 59, 0.12);
    color: #fcbb94;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-event.pastel-amber {
    background: #e67a3b;
    color: #ffffff;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-event.pastel-gray {
    background: #e2e2e2 !important;
    color: #1c1c1e;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-event.pastel-pink {
    background: #fcbb94;
    color: #1c1c1e;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-event.pastel-green {
    background: #ffd5b3;
    color: #1c1c1e;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-event.pastel-cream {
    background: #fdede0;
    color: #1c1c1e;
}
/* 다크모드 목록 보기 */
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-list-event:hover td {
    background: transparent !important;
}
[data-bs-theme="dark"] .jivestar-fullcalendar-wrap .fc-list-event-title a {
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .jivestar-event-color-amber { background: #e67a3b; }
[data-bs-theme="dark"] .jivestar-event-color-gray { background: #e2e2e2; }
[data-bs-theme="dark"] .jivestar-event-color-pink { background: #fcbb94; }
[data-bs-theme="dark"] .jivestar-event-color-green { background: #ffd5b3; }
[data-bs-theme="dark"] .jivestar-event-color-cream { background: #fdede0; }
[data-bs-theme="dark"] .jivestar-event-color-pill input:checked + .jivestar-event-color-dot {
    box-shadow: 0 0 0 2px #e67a3b;
}

/* 일정 추가 모달 — 화면 중앙 팝업, radius 10px, 그레이/화이트 톤 */
.jivestar-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.jivestar-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.jivestar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.jivestar-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 2rem);
    background: var(--jivestar-bg-elevated, #fff);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--jivestar-border, #e2e2e2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.jivestar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--jivestar-border-subtle, #f3f4f6);
    flex-shrink: 0;
}
.jivestar-modal-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--jivestar-text, #1c1c1e);
    margin: 0;
}
.jivestar-modal-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--jivestar-text-muted, #7e7e7e);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.jivestar-modal-close:hover {
    background: #f3f4f6;
    color: var(--jivestar-text, #1c1c1e);
}
[data-bs-theme="dark"] .jivestar-modal-close:hover,
[data-bs-theme="dark"] .jivestar-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--jivestar-text);
}
.jivestar-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.jivestar-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--jivestar-border-subtle, #f3f4f6);
    flex-shrink: 0;
}
.jivestar-form-group {
    margin-bottom: 1rem;
}
.jivestar-form-group:last-child {
    margin-bottom: 0;
}
.jivestar-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jivestar-text-secondary, #1c1c1e);
    margin-bottom: 0.375rem;
}
.jivestar-form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--jivestar-text, #1c1c1e);
    background: #fff;
    border: 1px solid var(--jivestar-border, #e2e2e2);
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.jivestar-form-input::placeholder {
    color: var(--jivestar-text-muted, #7e7e7e);
}
.jivestar-form-input:focus {
    outline: none;
    border-color: var(--jivestar-accent);
    box-shadow: 0 0 0 3px rgba(232, 107, 30, 0.15);
}
.jivestar-time-input-wrap {
    position: relative;
}
.jivestar-time-input-wrap .jivestar-form-input {
    padding-right: 2.75rem;
}
.jivestar-time-picker-trigger {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 9999px;
    background: #f9fafb;
    color: #7e7e7e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.jivestar-time-picker-trigger svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}
.jivestar-time-picker-trigger:hover {
    background: #fff7ed;
    color: #e67a3b;
}
.jivestar-time-picker-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 107, 30, 0.15);
}
.jivestar-form-textarea {
    min-height: 4.5rem;
    resize: vertical;
}
.jivestar-event-color-options {
    display: flex;
    gap: 0.5rem;
}

/* 뉴스 수집 상단 툴바 — 1150px 미만에서 뱃지 2개를 아래 줄로 이동 */
.news-collect-toolbar-wrap {
    overflow-x: auto;
}
@media (max-width: 1149.98px) {
    .news-collect-toolbar {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    .news-collect-badges {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }
}
/* 크롤링 테이블 카드 헤더 버튼: 데이터이동·CSV·행 펼치기 공통 컴팩트 규격 */
#news-collect-table-card .news-collect-toolbar-btn,
#news-collect-table-card .jivestar-table-card-header-right .btn.btn-sm,
#collection-manage-table-card .jivestar-table-card-header-right .btn.btn-sm {
    min-height: 31px;
    height: 31px;
    padding: 0 0.75rem;
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 8px;
}
#news-collect-table-card .jivestar-table-card-header-right .jivestar-table-filter-input,
#collection-manage-table-card .jivestar-table-card-header-right .jivestar-table-filter-input {
    min-height: 31px;
    height: 31px;
    padding-top: 0;
    padding-bottom: 0;
}
/* 뉴스 수집 API 뱃지 — 다크모드 반전 (09 색상 가이드: #262626, #323232, #e2e2e2) */
[data-bs-theme="dark"] .news-collect-api-badge {
    background-color: #262626 !important;
    border-color: #323232 !important;
    color: var(--jivestar-text, #e2e2e2);
}
[data-bs-theme="dark"] .news-collect-api-badge .text-body {
    color: inherit;
}
[data-bs-theme="dark"] .news-collect-api-badge .rounded-circle.bg-success {
    background-color: #4a7c59 !important;
}
[data-bs-theme="dark"] .news-collect-api-badge .rounded-circle.bg-danger {
    background-color: #8b4545 !important;
}
.jivestar-event-color-pill {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.jivestar-event-color-pill input {
    appearance: none;
    -webkit-appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
}
.jivestar-event-color-dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 9999px;
    display: block;
}
.jivestar-event-color-amber { background: #e67a3b; color: #ffffff; }
.jivestar-event-color-gray { background: #e2e2e2; color: #1c1c1e; }
.jivestar-event-color-pink { background: #fcbb94; color: #1c1c1e; }
.jivestar-event-color-green { background: #ffd5b3; color: #1c1c1e; }
.jivestar-event-color-cream { background: #fdede0; color: #1c1c1e; }
.jivestar-event-color-pill input:checked + .jivestar-event-color-dot {
    box-shadow: 0 0 0 2px #e67a3b;
}
.jivestar-form-row {
    display: flex;
    gap: 0.75rem;
}
.jivestar-form-row .jivestar-form-group {
    flex: 1;
}
.jivestar-form-check-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.jivestar-form-check {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--jivestar-accent, #e67a3b);
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--jivestar-border, #e2e2e2);
    border-radius: 0.25rem;
    background: var(--jivestar-bg-elevated, #fff);
    cursor: pointer;
    flex-shrink: 0;
}
.jivestar-form-check:checked {
    background-color: var(--jivestar-accent, #e67a3b);
    border-color: var(--jivestar-accent, #e67a3b);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.28 2.28L3.99 8.57 1.72 6.3 1 7.02l2.99 2.99 6.99-6.99z'/%3E%3C/svg%3E");
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}
.jivestar-form-check:focus-visible {
    outline: 2px solid var(--jivestar-accent);
    outline-offset: 2px;
}
.jivestar-form-check-label {
    font-size: 0.875rem;
    color: var(--jivestar-text-secondary, #7e7e7e);
    cursor: pointer;
    margin: 0;
}
[data-bs-theme="dark"] .jivestar-form-check {
    background: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
}
[data-bs-theme="dark"] .jivestar-form-check:checked {
    background-color: var(--jivestar-accent, #e67a3b);
    border-color: var(--jivestar-accent, #e67a3b);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M10.28 2.28L3.99 8.57 1.72 6.3 1 7.02l2.99 2.99 6.99-6.99z'/%3E%3C/svg%3E");
}
.jivestar-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    border: 1px solid transparent;
}
.jivestar-btn-secondary {
    background: #f3f4f6;
    border-color: #e2e2e2;
    color: #1c1c1e;
}
.jivestar-btn-secondary:hover {
    background: #e2e2e2;
    color: #1c1c1e;
}
.jivestar-btn-primary {
    background: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
    color: #fff;
}
.jivestar-btn-primary:hover {
    background: var(--jivestar-accent-hover);
    border-color: var(--jivestar-accent-hover);
    color: #fff;
}

/* Flatpickr 날짜 선택기 — 깔끔한 카드 스타일 (XP 네이티브 대체), 7요일 전부 표시 */
.flatpickr-calendar {
    font-family: var(--ui-font-body), system-ui, sans-serif !important;
    background: var(--jivestar-bg-elevated, #fff) !important;
    border: 1px solid var(--jivestar-border, #e2e2e2) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 0.75rem !important;
    min-width: 21rem !important;
    width: 21rem !important;
}
.flatpickr-innerContainer {
    width: 100% !important;
}
.flatpickr-days,
.flatpickr-dayContainer {
    width: 100% !important;
    max-width: 100% !important;
}
/* 요일 행 — 7등분 그리드로 열 정렬 */
.flatpickr-weekdays,
.flatpickr-rwd {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.flatpickr-weekday {
    flex: 0 0 calc(100% / 7) !important;
    width: calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
.flatpickr-weeks {
    width: 100% !important;
}
/* 날짜 그리드 — 요일과 동일한 7등분으로 세로 열 맞춤 */
.flatpickr-dayContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}
.flatpickr-calendar .flatpickr-dayContainer {
    box-sizing: border-box;
}
.flatpickr-calendar.open {
    z-index: 10050 !important;
}
.flatpickr-months {
    margin-bottom: 0.5rem;
}
.flatpickr-current-month {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--jivestar-text, #1c1c1e) !important;
    padding: 0.25rem 0 !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
    color: var(--jivestar-text-muted, #7e7e7e) !important;
    fill: currentColor !important;
    padding: 0.35rem !important;
    border-radius: 6px !important;
    transition: background 0.15s, color 0.15s;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: #f3f4f6 !important;
    color: var(--jivestar-text, #1c1c1e) !important;
}
.flatpickr-weekday {
    color: var(--jivestar-text-secondary, #7e7e7e) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}
.flatpickr-day {
    font-size: 0.875rem !important;
    color: var(--jivestar-text, #1c1c1e) !important;
    border-radius: 6px !important;
    flex: 0 0 calc(100% / 7) !important;
    width: calc(100% / 7) !important;
    max-width: calc(100% / 7) !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 2.25rem !important;
    height: 2.25rem !important;
}
.flatpickr-day:hover {
    background: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
    color: var(--jivestar-text, #1c1c1e) !important;
}
/* 선택/오늘 날짜 — 그레이 톤다운 (이질감 완화) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #e2e2e2 !important;
    border-color: #e2e2e2 !important;
    color: #1c1c1e !important;
    font-weight: 500;
}
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #e2e2e2 !important;
    border-color: #7e7e7e !important;
    color: #1c1c1e !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--jivestar-text-muted, #e2e2e2) !important;
}
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    color: var(--jivestar-text-secondary, #7e7e7e) !important;
}
.flatpickr-months .flatpickr-month {
    background: transparent !important;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
}
.jivestar-form-input.jivestar-date-input {
    cursor: pointer;
}
.flatpickr-calendar.hasTime.noCalendar {
    min-width: 13.5rem !important;
    width: 13.5rem !important;
    padding: 0.5rem !important;
}
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time {
    border-top: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center;
    border-radius: 8px;
    background: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
}
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time .numInputWrapper {
    height: 3rem !important;
}
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time input,
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time .flatpickr-am-pm {
    color: #1c1c1e !important;
    font-weight: 500 !important;
    background: transparent !important;
}
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time input:hover,
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time .flatpickr-am-pm:hover {
    background: #f3f4f6 !important;
}
.flatpickr-calendar.hasTime.noCalendar .flatpickr-time .numInputWrapper span {
    display: none !important;
}
[data-bs-theme="dark"] .flatpickr-calendar {
    background: var(--jivestar-bg-elevated) !important;
    border-color: var(--jivestar-border) !important;
}
[data-bs-theme="dark"] .flatpickr-current-month {
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-next-month {
    color: var(--jivestar-text-muted) !important;
}
[data-bs-theme="dark"] .flatpickr-prev-month:hover,
[data-bs-theme="dark"] .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-day {
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-day:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay {
    color: var(--jivestar-text-muted) !important;
}
[data-bs-theme="dark"] .flatpickr-day.selected,
[data-bs-theme="dark"] .flatpickr-day.startRange,
[data-bs-theme="dark"] .flatpickr-day.endRange {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-day.selected:hover,
[data-bs-theme="dark"] .flatpickr-day.startRange:hover,
[data-bs-theme="dark"] .flatpickr-day.endRange:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-calendar.hasTime.noCalendar .flatpickr-time {
    background: var(--jivestar-bg-elevated) !important;
    border-color: var(--jivestar-border) !important;
}
[data-bs-theme="dark"] .flatpickr-calendar.hasTime.noCalendar .flatpickr-time input,
[data-bs-theme="dark"] .flatpickr-calendar.hasTime.noCalendar .flatpickr-time .flatpickr-am-pm {
    color: var(--jivestar-text) !important;
}
[data-bs-theme="dark"] .flatpickr-calendar.hasTime.noCalendar .flatpickr-time input:hover,
[data-bs-theme="dark"] .flatpickr-calendar.hasTime.noCalendar .flatpickr-time .flatpickr-am-pm:hover,
[data-bs-theme="dark"] .flatpickr-calendar.hasTime.noCalendar .flatpickr-time .numInputWrapper span:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .jivestar-modal-box {
    background: var(--jivestar-bg-elevated);
    border-color: var(--jivestar-border);
}
[data-bs-theme="dark"] .jivestar-modal-header,
[data-bs-theme="dark"] .jivestar-modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .jivestar-form-input {
    background: var(--jivestar-bg-elevated);
    border-color: var(--jivestar-border);
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-form-input::placeholder {
    color: var(--jivestar-text-muted, #7e7e7e);
}
[data-bs-theme="dark"] .jivestar-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--jivestar-border);
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-content .content-block p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   본문: 위키피디아 수준 좌우정렬 (boardcocojian 기준 전역)
   - 메뉴·헤더·버튼 제외, 콘텐츠 블록·정책/약관/회사소개 본문에만 적용
   - text-align: justify, text-align-last: left, text-justify: inter-character
   - line-height 1.7, letter-spacing, word-break/overflow-wrap
   -------------------------------------------------------------------------- */
.dashboard-content .content-block p,
.dashboard-content .content-block li,
.policy-page p,
.policy-page ul li,
.terms-page p,
.terms-page ul li,
.company-intro p,
.company-note p,
.feature-block p,
.company-info-list dd {
    line-height: 1.7;
    letter-spacing: 0.02em;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-character;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.policy-page p,
.policy-page ul,
.terms-page p,
.terms-page ul {
    word-spacing: 0.02em;
}

.dashboard-content .content-block img,
.policy-page img,
.terms-page img,
.company-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dashboard-content .content-block table,
.policy-page table,
.terms-page table {
    max-width: 100%;
    overflow-x: auto;
}

/* API 키 관리: 버튼 전부 Untitled UI Button sm 커스텀 — 더 작게, 라이닝·텍스트 톤다운 */
.jivestar-page-api-keys .btn,
.jivestar-page-api-keys a.btn,
.jivestar-page-api-keys button.btn {
    gap: 0.2rem !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    min-height: auto !important;
    line-height: 1.25 !important;
}
/* 아웃라인 버튼: 보더·텍스트 다크그레이 톤다운 */
.jivestar-page-api-keys .btn-outline-secondary,
.jivestar-page-api-keys a.btn-outline-secondary {
    border-color: #e2e2e2 !important;
    color: #7e7e7e !important;
}
.jivestar-page-api-keys .btn-outline-secondary:hover,
.jivestar-page-api-keys a.btn-outline-secondary:hover {
    border-color: #7e7e7e !important;
    color: #4b5563 !important;
    background-color: #f9fafb !important;
}
.jivestar-page-api-keys .btn-outline-primary {
    border-color: #e2e2e2 !important;
    color: #7e7e7e !important;
}
.jivestar-page-api-keys .btn-outline-primary:hover {
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.06) !important;
}
.jivestar-page-api-keys .btn-outline-danger {
    border-color: #e2e2e2 !important;
    color: #7e7e7e !important;
}
.jivestar-page-api-keys .btn-outline-danger:hover {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.06) !important;
}
/* 다크모드: 외부 키 콘솔·행 추가·추가 후 저장 — 컬러 밸런스 정리 */
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-outline-secondary,
[data-bs-theme="dark"] .jivestar-page-api-keys a.btn-outline-secondary {
    border-color: #52525b !important;
    color: #a1a1aa !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-outline-secondary:hover,
[data-bs-theme="dark"] .jivestar-page-api-keys a.btn-outline-secondary:hover {
    border-color: #71717a !important;
    color: #d4d4d8 !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-outline-primary {
    border-color: #52525b !important;
    color: #a1a1aa !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-outline-primary:hover {
    background-color: rgba(230, 122, 59, 0.18) !important;
    border-color: rgba(230, 122, 59, 0.35) !important;
    color: #e67a3b !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-outline-danger {
    border-color: #52525b !important;
    color: #a1a1aa !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-outline-danger:hover {
    border-color: #f87171 !important;
    color: #fca5a5 !important;
    background-color: rgba(248, 113, 113, 0.12) !important;
}

/* API 키 관리 다크모드: 체크박스·저장 버튼 = 사이드바 .nav-link.active 와 동일 (rgba(249,115,22,0.18) + #e67a3b) */
[data-bs-theme="dark"] .form-check-input:checked,
[data-bs-theme="dark"] .form-switch .form-check-input:checked {
    background-color: #fcbb94 !important;
    border-color: #fcbb94 !important;
}
[data-bs-theme="dark"] .form-check-input:focus,
[data-bs-theme="dark"] .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(252, 187, 148, 0.25) !important;
}
[data-bs-theme="dark"] .jivestar-floating-menu-btn:focus,
[data-bs-theme="dark"] .jivestar-floating-menu-btn:focus-visible {
    border-color: #fcbb94;
    box-shadow: 0 0 0 2px rgba(252, 187, 148, 0.35);
}
[data-bs-theme="dark"] .jivestar-page-api-keys .form-check-input:checked {
    background-color: rgba(252, 187, 148, 0.4) !important;
    border-color: #fcbb94 !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .form-check-input:focus {
    border-color: rgba(252, 187, 148, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(252, 187, 148, 0.2) !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary,
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary:focus,
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary:focus-visible {
    background-color: #cb6441 !important;
    border-color: #cb6441 !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary:hover {
    background-color: #d87757 !important;
    border-color: #d87757 !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary:active,
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary.active {
    background-color: #d87757 !important;
    border-color: #d87757 !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .jivestar-page-api-keys .btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(203, 100, 65, 0.35) !important;
}

/* 계정정보(이메일·비밀번호): 버튼·입력 필드 api-keys와 동일하게 작게 */
.jivestar-page-email-password .btn,
.jivestar-page-email-password a.btn,
.jivestar-page-email-password button.btn {
    gap: 0.2rem !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    min-height: auto !important;
    line-height: 1.25 !important;
}
.jivestar-page-email-password .form-control,
.jivestar-page-email-password .form-control-sm {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
}

/* 위키피디아: 저장·실행 버튼 email-password와 동일한 작은 규격 */
.jivestar-page-draft-wikipedia .btn,
.jivestar-page-draft-wikipedia a.btn,
.jivestar-page-draft-wikipedia button.btn {
    gap: 0.2rem !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    min-height: auto !important;
    line-height: 1.25 !important;
}

/* 초대 목록: 버튼 api-keys와 동일한 작은 스타일 (초대 취소 등) */
.jivestar-page-invite-list .btn,
.jivestar-page-invite-list button.btn {
    gap: 0.2rem !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    min-height: auto !important;
    line-height: 1.25 !important;
}
.jivestar-page-invite-list .btn-outline-danger {
    border-color: #e2e2e2 !important;
    color: #7e7e7e !important;
}
.jivestar-page-invite-list .btn-outline-danger:hover {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.06) !important;
}
[data-bs-theme="dark"] .jivestar-page-invite-list .btn-outline-danger {
    border-color: #52525b !important;
    color: #a1a1aa !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="dark"] .jivestar-page-invite-list .btn-outline-danger:hover {
    border-color: #f87171 !important;
    color: #fca5a5 !important;
    background-color: rgba(248, 113, 113, 0.12) !important;
}

/* 연동계정: 버튼 api-keys와 동일한 작은 스타일 + Untitled UI social button 참고(rounded, 톤다운) */
.jivestar-page-linked-accounts .btn,
.jivestar-page-linked-accounts a.btn,
.jivestar-page-linked-accounts button.btn {
    gap: 0.2rem !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    min-height: auto !important;
    line-height: 1.25 !important;
}
.jivestar-page-linked-accounts .btn-outline-secondary,
.jivestar-page-linked-accounts a.btn-outline-secondary {
    border-color: #e2e2e2 !important;
    color: #7e7e7e !important;
}
.jivestar-page-linked-accounts .btn-outline-secondary:hover,
.jivestar-page-linked-accounts a.btn-outline-secondary:hover {
    border-color: #7e7e7e !important;
    color: #4b5563 !important;
    background-color: #f9fafb !important;
}
.jivestar-page-linked-accounts .btn-primary,
.jivestar-page-linked-accounts a.btn-primary {
    border-radius: 0.5rem !important;
}
[data-bs-theme="dark"] .jivestar-page-linked-accounts .btn-outline-secondary,
[data-bs-theme="dark"] .jivestar-page-linked-accounts a.btn-outline-secondary {
    border-color: #52525b !important;
    color: #a1a1aa !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="dark"] .jivestar-page-linked-accounts .btn-outline-secondary:hover,
[data-bs-theme="dark"] .jivestar-page-linked-accounts a.btn-outline-secondary:hover {
    border-color: #71717a !important;
    color: #d4d4d8 !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
/* 연동계정: Google 이름 + 이메일 한 줄 */
.jivestar-connected-account-name-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}
.jivestar-connected-account-name-line .jivestar-connected-account-name {
    margin-bottom: 0;
}
.jivestar-connected-account-name-line .jivestar-connected-account-email {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--jivestar-text-muted);
}
.jivestar-connected-account-sublist {
    margin-top: 0.5rem;
}
.jivestar-connected-account-sublist .jivestar-connected-account-sublist-email {
    font-size: 0.875rem;
    color: var(--jivestar-text-muted);
}

/* 연동계정: 화면 맨 아래 라인 + 연동 추가 드롭다운 오른쪽 */
.jivestar-connected-accounts-divider-bottom {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.jivestar-connected-account-add-row {
    padding: 0.5rem 0 1rem;
    margin-left: 0;
}
.jivestar-connected-account-add-row .jivestar-btn-add-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.jivestar-page-linked-accounts .dropdown-menu {
    border-radius: 0.5rem;
}
.jivestar-page-linked-accounts .dropdown-item {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

/* API 키 관리: 헤더·행 열 너비 일치, 블록 전체 가로 사용 */
.api-key-block .api-key-header,
.api-key-block .api-key-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}
.api-key-block .api-key-col {
    box-sizing: border-box;
    min-width: 0;
}
/* API ID: 가로 절반 수준으로 축소 (키/메모보다 짧게) */
.api-key-block .api-key-col-id {
    flex: 0.5 1 0;
    min-width: 90px;
    max-width: 220px;
}
/* API 키 / 메모(클라이언트 ID): 가로 규격 균일 */
.api-key-block .api-key-col-key,
.api-key-block .api-key-col-notes {
    flex: 1 1 0;
    min-width: 120px;
}
.api-key-block .api-key-col-actions {
    flex: 0 0 auto;
    min-width: 160px;
}
.api-key-block .api-key-col .form-control {
    width: 100%;
    box-sizing: border-box;
}
.api-key-block .api-key-col-actions .btn-outline-primary {
    min-width: 100%;
    box-sizing: border-box;
}
/* API 키 블록 제목 옆 안내(툴팁) 트리거 */
.jivestar-api-key-help-trigger {
    line-height: 1;
    opacity: 0.7;
    background: transparent !important;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.jivestar-api-key-help-trigger:hover,
.jivestar-api-key-help-trigger:focus {
    opacity: 1;
    color: var(--bs-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
}
.jivestar-api-key-help-icon {
    display: block;
}
/* 툴팁(팝오버) 내용: 다크그레이 70%, 저장 버튼과 동일 폰트 크기 */
.jivestar-api-key-popover .popover-body,
.jivestar-api-key-help-popover-body {
    font-size: 0.875rem;
    color: rgba(55, 65, 81, 0.85);
}
/* 호버 툴팁: 동일 스타일, 링크 등 HTML 지원 (Tooltip용) */
.jivestar-api-key-tooltip .tooltip-inner {
    font-size: 0.875rem;
    color: rgba(55, 65, 81, 0.85);
    max-width: 360px;
    text-align: left;
}
.jivestar-api-key-tooltip .tooltip-inner a {
    color: var(--bs-primary);
}
/* Popover 호버 안내: 우측 표시, 본문 스타일 */
.jivestar-api-key-tooltip.popover .popover-header {
    display: none;
}
.jivestar-api-key-tooltip.popover .popover-body {
    font-size: 0.875rem;
    color: rgba(55, 65, 81, 0.85);
    max-width: 360px;
    text-align: left;
}
.jivestar-api-key-tooltip.popover .popover-body a {
    color: var(--bs-primary);
}

/* 커스텀 툴팁: API 블록 안내 (호버 시 우측 표시) */
.jivestar-api-key-custom-tooltip {
    position: fixed;
    z-index: 1070;
    max-width: 360px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #7e7e7e;
    text-align: left;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: var(--bs-border-radius, 0.375rem);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.jivestar-api-key-custom-tooltip .jivestar-api-key-help-popover-body {
    color: #7e7e7e;
}
.jivestar-api-key-custom-tooltip.jivestar-api-key-custom-tooltip-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.jivestar-api-key-custom-tooltip a,
.jivestar-api-key-custom-tooltip code {
    color: #fcbb94;
}
[data-bs-theme="dark"] .jivestar-api-key-custom-tooltip {
    color: #7e7e7e;
    background: rgba(30, 30, 32, 0.96);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.4);
}
[data-bs-theme="dark"] .jivestar-api-key-custom-tooltip .jivestar-api-key-help-popover-body {
    color: #7e7e7e;
}
[data-bs-theme="dark"] .jivestar-api-key-custom-tooltip a,
[data-bs-theme="dark"] .jivestar-api-key-custom-tooltip code {
    color: #fcbb94;
}

/* 대시보드 빠른 접근: 테마 전환 스무스 */
#jivestar-shortcuts-block .card,
.jivestar-shortcuts-actions-pc .btn {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
/* 대시보드 빠른 접근: 순서변경 버튼은 1000px 이상에서만 표시 */
@media (max-width: 999px) {
    .jivestar-shortcuts-actions-pc {
        display: none !important;
    }
}

/* 대시보드 빠른 접근: 순서변경 편집 모드 — 변경 가능한 카드 시각 강조 */
.jivestar-shortcuts-editing .jivestar-shortcut-col .card {
    border: 2px dashed var(--jivestar-border);
    background-color: rgba(var(--bs-primary-rgb), 0.04);
    cursor: grab;
}
.jivestar-shortcuts-editing .jivestar-shortcut-col.jivestar-shortcut-dragging .card {
    opacity: 0.75;
    box-shadow: var(--jivestar-shadow-md);
    cursor: grabbing;
}
.jivestar-shortcuts-editing .jivestar-shortcut-col.jivestar-shortcut-drag-over .card {
    border-color: var(--bs-primary);
    border-style: solid;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
}

/* 다크모드: 편집 모드 카드 색상 */
[data-bs-theme="dark"] .jivestar-shortcuts-editing .jivestar-shortcut-col .card {
    border-color: var(--jivestar-border);
    background-color: rgba(255, 255, 255, 0.04);
}
[data-bs-theme="dark"] .jivestar-shortcuts-editing .jivestar-shortcut-col.jivestar-shortcut-drag-over .card {
    border-color: var(--bs-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 구글 계정 연동 버튼 (로그인 버튼 스타일) */
.jivestar-google-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1c1c1e;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.jivestar-google-connect-btn:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #1c1c1e;
}
.jivestar-google-connect-btn:active,
.jivestar-google-connect-btn:focus-visible {
    background: #d45a12;
    border-color: #d45a12;
    color: #fff;
}
.jivestar-google-connect-btn .jivestar-google-g {
    flex-shrink: 0;
}
.jivestar-google-g-inline {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.jivestar-google-g-inline svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* 로그인 페이지: _buttons / 글로벌 버튼 변수보다 우선 적용 */
.login-card .jivestar-google-connect-btn {
    background-color: #262626 !important;
    border-color: #252525 !important;
    color: #ffffff !important;
    --bs-btn-active-bg: #262626;
    --bs-btn-active-border-color: #262626;
    --bs-btn-active-color: #ffffff;
}

.login-card .jivestar-google-connect-btn:hover {
    background-color: #323232 !important;
    border-color: #323232 !important;
    color: #ffffff !important;
}

.login-card .jivestar-google-connect-btn:active,
.login-card .jivestar-google-connect-btn:focus-visible {
    background-color: #262626 !important;
    border-color: #262626 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .login-card .jivestar-google-connect-btn {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

/* bootstrap btn-primary가 같이 붙는 로그인 페이지에서, base 스타일(.jivestar-google-connect-btn background:#fff)을 강제로 덮기 */
.login-card .jivestar-google-connect-btn.btn-primary {
    background-color: #262626 !important;
    border-color: #252525 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .login-card .jivestar-google-connect-btn:hover {
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
    color: var(--bs-btn-hover-color) !important;
}

[data-bs-theme="dark"] .login-card .jivestar-google-connect-btn:active,
[data-bs-theme="dark"] .login-card .jivestar-google-connect-btn:focus-visible {
    background-color: var(--bs-btn-active-bg) !important;
    border-color: var(--bs-btn-active-border-color) !important;
    color: var(--bs-btn-active-color) !important;
}

[data-bs-theme="dark"] .login-card .jivestar-google-connect-btn.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

/* G사이트킷 — 가로 전체 반응형 */
#google_dashboard_widget.googlesitekit-plugin,
#google_dashboard_widget .googlesitekit-widget-context {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* G사이트킷 요약 카드 — 플러그인(googlesitekit) 디자인 값 참고: padding 24px, chart 270px, primary #3c7251, up #46732b, down #ac4220 */
.jivestar-sitekit-summary-card {
    background: var(--jivestar-card);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    padding: var(--jivestar-space-4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
@media (min-width: 960px) {
    .jivestar-sitekit-summary-card {
        padding: 24px;
    }
}
.jivestar-sitekit-chart-wrap {
    min-height: 270px;
}
.jivestar-sitekit-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jivestar-space-4);
}
.jivestar-sitekit-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.jivestar-sitekit-kpi-value {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--jivestar-fg);
}
.jivestar-sitekit-kpi-change {
    font-size: 0.8rem;
}
.jivestar-sitekit-kpi-change.up {
    color: var(--bs-success, #198754);
}
.jivestar-sitekit-kpi-change.down {
    color: var(--bs-danger, #dc3545);
}
.jivestar-sitekit-big-number {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--jivestar-fg);
}
.jivestar-sitekit-chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jivestar-bg);
    border: 1px dashed var(--jivestar-border-subtle);
    border-radius: 6px;
    color: var(--jivestar-muted);
    font-size: 0.875rem;
}
.jivestar-sitekit-source {
    margin-top: 0.5rem;
}
/* 다크모드: 블록명·속성값 — 애드센스 블럭과 동일 컬러톤 #d1d1d6 */
[data-bs-theme="dark"] #google_dashboard_widget .content-block h2.jivestar-section-title {
    color: #d1d1d6 !important;
}
[data-bs-theme="dark"] #google_dashboard_widget .content-block .d-flex.mb-3 > span.small.text-muted,
[data-bs-theme="dark"] #google_dashboard_widget .content-block .d-flex.flex-wrap.gap-2.mb-3 > span.small.text-muted {
    color: #d1d1d6 !important;
}
/* 다크모드: All Visitors·총 노출수/클릭수/검색 유입 클릭·채널 탭 → #a1a1a6 */
[data-bs-theme="dark"] #google_dashboard_widget .content-block .col-md-5 > p.small.text-muted,
[data-bs-theme="dark"] #google_dashboard_widget .googlesitekit-data-block__title,
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-ga-breakdown-tabs .nav-link {
    color: #a1a1a6 !important;
}
/* 다크모드: 전체 방문자 데이터 숫자(큰 숫자) → #F5F5F7 */
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-sitekit-big-number {
    color: #F5F5F7 !important;
}
/* 다크모드: Source: 텍스트 #d1d1d6 (다른 .text-muted 등에 덮이지 않도록 구체화) */
[data-bs-theme="dark"] .jivestar-sitekit-source.small.text-muted {
    color: #d1d1d6 !important;
}
[data-bs-theme="dark"] .jivestar-adsense-block .d-flex.mb-3 > span.small.text-muted {
    color: #d1d1d6 !important;
}
.jivestar-sitekit-source .jivestar-source-link {
    color: #e67a3b;
    text-decoration: none;
}
.jivestar-sitekit-source .jivestar-source-link:hover {
    text-decoration: underline;
    color: #d45a12;
}
.jivestar-sitekit-source .jivestar-source-ext-icon {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0.1rem;
    stroke: currentColor;
}
.jivestar-sitekit-table {
    font-size: 0.875rem;
}
.jivestar-sitekit-table th {
    font-weight: 500;
    color: var(--jivestar-muted);
}
.nav-tabs-sm .nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
}
/* 전체 방문자 — 채널/국가/기기별 탭: 중앙 정렬, 하단 라인 제거 */
#google_dashboard_widget .jivestar-ga-breakdown-tabs.nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: none;
    margin-bottom: 0.5rem;
}
#google_dashboard_widget .jivestar-ga-breakdown-tabs .nav-link {
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--jivestar-text-muted, #6c757d);
}
#google_dashboard_widget .jivestar-ga-breakdown-tabs .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--jivestar-fg);
}
#google_dashboard_widget .jivestar-ga-breakdown-tabs .nav-link.active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--jivestar-fg);
    font-weight: 500;
}
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-ga-breakdown-tabs .nav-link:hover,
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-ga-breakdown-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--jivestar-fg);
}
/* 도넛 차트 영역 높이 300px (위젯 인라인으로 지정, 래퍼 보조) */
#google_dashboard_widget .jivestar-ga-donut-wrap {
    height: 300px;
}
/* 모바일(770px 미만): 본문 하단 여백 — 상단은 기본 .dashboard-content 패딩 사용 */
@media (max-width: 770px) {
    .dashboard-content {
        padding-bottom: 35px !important;
    }
}

/* 575px 미만: 좌우 여백 축소 (본문·콘텐츠블록·헤더) — 살짝 여백 확대 */
@media (max-width: 574.98px) {
    .dashboard-content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .content-block {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .dashboard-topbar .d-flex {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    /* 모바일: 우측 세로 스크롤바 숨김 (스크롤은 가능) */
    html, body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html::-webkit-scrollbar, body::-webkit-scrollbar {
        display: none;
    }
}

/* G사이트킷 상단: 구글 연동 + 속성 선택 행 — 1줄, 동일 너비 select, 동기화 우측 */
.jivestar-sitekit-connect-block .border-bottom {
    border-color: var(--jivestar-border-subtle, #dee2e6) !important;
}
.jivestar-sitekit-apply-form {
    min-width: 0;
}
.jivestar-sitekit-apply-form .jivestar-sitekit-attr-holder {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* 속성 select: 서비스별 개별 클래스 + 동일 규격 — 홀더가 균등 분할, select는 홀더 폭 100% */
.jivestar-sitekit-apply-form .jivestar-sitekit-select-ga,
.jivestar-sitekit-apply-form .jivestar-sitekit-select-sc,
.jivestar-sitekit-apply-form .jivestar-sitekit-select-adsense {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
/* 동기화 버튼: 좌측 헤더(select) 세로 규격에 맞춘 작은 버튼 */
.jivestar-sitekit-apply-form .btn {
    height: 31px;
    min-height: 31px;
    padding: 0 0.625rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.jivestar-sitekit-apply-form .btn-primary:hover,
.jivestar-sitekit-apply-form .btn-primary:active,
.jivestar-sitekit-apply-form .btn-primary.active {
    background-color: #d45a12;
    border-color: #d45a12;
}

/* 키워드 수집: 수집 실행 버튼 — 좌측 입력란(form-control-sm) 세로 규격에 맞춘 작은 버튼 */
#keyword-collect-form .btn {
    height: 31px;
    min-height: 31px;
    padding: 0 0.625rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 애드센스 영역 — 계정 영역과 동일 스타일, 가로 최대값 반응형 */
.jivestar-adsense-block {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
[data-bs-theme="dark"] .jivestar-adsense-block h2.jivestar-section-title {
    color: var(--jivestar-text-secondary);
}
/* 다크모드: 상위검색·상위콘텐츠·연동사이트 제목 — 애드센스와 동일 폰트 색 */
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-table-card .jivestar-table-card-title {
    color: var(--jivestar-text-secondary);
}
.jivestar-adsense-block .wrap_box {
    max-width: 100%;
    box-sizing: border-box;
}
/* 애드센스 블록 전체·연동 사이트 테이블 가로 꽉 채움 (상위검색/상위콘텐츠와 동일) */
.jivestar-adsense-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.jivestar-adsense-block .jivestar-table-card {
    width: 100%;
    max-width: 100%;
}
.jivestar-adsense-block .jivestar-table-card .table-responsive {
    width: 100%;
}
.jivestar-adsense-block .jivestar-table-card .table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}
/* 티스토리형 애드센스 영역: wrap_box wrap_box_type2 */
.jivestar-adsense-block .jivestar-adsense-summary.wrap_box.wrap_box_type2 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    max-width: 100%;
    width: 100%;
}
/* 6개 카드(오늘~잔고) 한 줄로 가로 균등 분배 */
.jivestar-adsense-block .jivestar-adsense-summary-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}
.jivestar-adsense-block .jivestar-adsense-summary-row > .count_revenue {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
@media (max-width: 767px) {
    .jivestar-adsense-block .jivestar-adsense-summary-row {
        flex-wrap: wrap;
    }
    .jivestar-adsense-block .jivestar-adsense-summary-row > .count_revenue {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
    }
}
.jivestar-adsense-block .jivestar-adsense-summary .count_revenue {
    margin: 0;
}
/* 금액 위 라벨 — 볼드 제거, 폰트 축소 */
.jivestar-adsense-block .jivestar-adsense-summary .tit_revenue {
    font-size: 0.95rem;
    font-weight: normal;
    color: var(--jivestar-text-muted, #6c757d);
    margin-bottom: 0.25rem;
}
.jivestar-adsense-block .jivestar-adsense-summary .revenue_cont {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}
/* 금액 값: 1.5배 크기 (중간 정도 가독성) */
.jivestar-adsense-block .jivestar-adsense-summary .revenue_val .num_g {
    font-weight: 500;
    font-size: 2.0625rem;
}
/* 검색 트래픽(총 노출수/총 클릭수/검색 유입 클릭) 숫자 — 애드센스 금액과 동일 스타일 */
#google_dashboard_widget .googlesitekit-wp-dashboard-stats .googlesitekit-data-block .googlesitekit-data-block__datapoint {
    font-weight: 500;
    font-size: 2.0625rem;
    line-height: 1.2;
    margin: 0;
    color: var(--jivestar-fg, #161618);
}
[data-bs-theme="dark"] #google_dashboard_widget .googlesitekit-wp-dashboard-stats .googlesitekit-data-block .googlesitekit-data-block__datapoint {
    color: #F5F5F7;
}
.jivestar-adsense-block .jivestar-adsense-summary .revenue_val .txt_g {
    font-size: 0.95rem;
    color: var(--jivestar-text-muted, #6c757d);
    margin-left: 0.15rem;
}
.jivestar-adsense-block .jivestar-adsense-summary .revenue_chg {
    font-size: 0.95rem;
}
.jivestar-adsense-block .jivestar-adsense-summary .revenue_chg .num_up { color: var(--bs-success, #198754); }
.jivestar-adsense-block .jivestar-adsense-summary .revenue_chg .num_down { color: var(--bs-danger, #dc3545); }
.jivestar-adsense-block .jivestar-adsense-summary .revenue_chg .ico_blog { font-size: 1.125rem; margin-left: 0.15rem; }
.jivestar-adsense-block .jivestar-adsense-summary .link_g {
    color: var(--bs-primary);
    text-decoration: none;
}
.jivestar-adsense-block .jivestar-adsense-summary .link_g:hover { text-decoration: underline; }

/* 애드센스·상위콘텐츠 테이블 — 가로 꽉 참, 헤더 그레이·radius. 표가 블록 안에만 있고, 스크롤은 표 하단에만 */
#google_dashboard_widget .jivestar-adsense-block .jivestar-adsense-table.wrap_tbl,
#google_dashboard_widget .jivestar-sitekit-summary-card .jivestar-adsense-table.wrap_tbl,
.jivestar-adsense-block .jivestar-adsense-table.wrap_tbl,
.jivestar-sitekit-summary-card .jivestar-adsense-table.wrap_tbl {
    margin-left: -4rem;
    margin-right: -4rem;
    width: calc(100% + 8rem);
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    padding-left: 4rem;
    padding-right: 4rem;
    border-radius: var(--jivestar-radius, 8px);
}
/* 좁은 화면: 블록 세션 안에만 표 유지, 표 하단에만 가로 스크롤 */
@media (max-width: 991px) {
    #google_dashboard_widget .content-block.googlesitekit-widget-context.jivestar-sitekit-summary-card {
        overflow-x: hidden;
    }
    #google_dashboard_widget .jivestar-adsense-block .jivestar-adsense-table.wrap_tbl,
    #google_dashboard_widget .jivestar-sitekit-summary-card .jivestar-adsense-table.wrap_tbl,
    .jivestar-adsense-block .jivestar-adsense-table.wrap_tbl,
    .jivestar-sitekit-summary-card .jivestar-adsense-table.wrap_tbl {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        -webkit-overflow-scrolling: touch;
    }
}
/* 테이블: auto 레이아웃으로 첫 열 공간 확보, 창 좁을 땐 가로 스크롤 */
#google_dashboard_widget .jivestar-adsense-table.wrap_tbl .table,
#google_dashboard_widget .jivestar-adsense-table.wrap_tbl .tbl_tistory_type2,
.jivestar-adsense-block .jivestar-adsense-table.wrap_tbl .table,
.jivestar-adsense-block .jivestar-adsense-table.wrap_tbl .tbl_tistory_type2,
.jivestar-sitekit-summary-card .jivestar-adsense-table.wrap_tbl .table,
.jivestar-sitekit-summary-card .jivestar-adsense-table.wrap_tbl .tbl_tistory_type2 {
    margin-bottom: 0;
    min-width: 100%;
    width: max-content;
    border-collapse: collapse;
    table-layout: auto;
}
/* 첫 번째 열: 최소 너비 확보, 줄바꿈 없음 → 옆으로 밀어지는 효과 + 겹침 방지 */
#google_dashboard_widget .jivestar-adsense-table .table th:first-child,
#google_dashboard_widget .jivestar-adsense-table .table td:first-child,
.jivestar-adsense-block .jivestar-adsense-table .table th:first-child,
.jivestar-adsense-block .jivestar-adsense-table .table td:first-child,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table th:first-child,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table td:first-child {
    min-width: 18rem;
    white-space: nowrap;
}
#google_dashboard_widget .jivestar-adsense-table .table th,
#google_dashboard_widget .jivestar-adsense-table .table td,
.jivestar-adsense-block .jivestar-adsense-table .table th,
.jivestar-adsense-block .jivestar-adsense-table .table td,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table th,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}
/* 테이블 세로줄 */
#google_dashboard_widget .jivestar-adsense-table .table th,
#google_dashboard_widget .jivestar-adsense-table .table td,
.jivestar-adsense-block .jivestar-adsense-table .table th,
.jivestar-adsense-block .jivestar-adsense-table .table td,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table th,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table td {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}
#google_dashboard_widget .jivestar-adsense-table .table th:last-child,
#google_dashboard_widget .jivestar-adsense-table .table td:last-child,
.jivestar-adsense-block .jivestar-adsense-table .table th:last-child,
.jivestar-adsense-block .jivestar-adsense-table .table td:last-child,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table th:last-child,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table td:last-child {
    border-right: none;
}
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table th,
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table td,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table th,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table td,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table th,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table td {
    border-right-color: var(--jivestar-border-subtle, #2d2d2d);
}
/* 헤더: 폰트 #86868b, 그레이 배경, 전체 중앙정렬 */
#google_dashboard_widget .jivestar-adsense-table .table thead th,
.jivestar-adsense-block .jivestar-adsense-table .table thead th,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table thead th {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #86868b;
    background: #f0f0f0;
    border-bottom: 1px solid var(--jivestar-border-subtle, #dee2e6);
    text-align: center !important;
}
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table thead th,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table thead th,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table thead th {
    color: #3f3f3f;
    background: #d1d1d1;
}
/* 본문: 라이트는 배경 없음, 다크모드는 짙은 배경 */
#google_dashboard_widget .jivestar-adsense-table .table tbody td,
#google_dashboard_widget .jivestar-adsense-table .table tbody tr,
.jivestar-adsense-block .jivestar-adsense-table .table tbody td,
.jivestar-adsense-block .jivestar-adsense-table .table tbody tr,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table tbody td,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table tbody tr {
    background: transparent !important;
}
#google_dashboard_widget .jivestar-adsense-table .table tbody td,
.jivestar-adsense-block .jivestar-adsense-table .table tbody td,
.jivestar-sitekit-summary-card .jivestar-adsense-table .table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table tbody td,
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table tbody tr,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table tbody td,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table tbody tr,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table tbody td,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table tbody tr {
    background: #252527 !important;
}
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table tbody td,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table tbody td,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table tbody td {
    border-bottom-color: var(--jivestar-border-subtle);
}
#google_dashboard_widget .jivestar-adsense-table .th_row.td_total,
.jivestar-adsense-block .jivestar-adsense-table .th_row.td_total,
.jivestar-sitekit-summary-card .jivestar-adsense-table .th_row.td_total { font-weight: 500; }

/* 초대 목록 테이블 — 애드센스 블록과 동일 표 서식 (admin), 우선순위 확보 */
.dashboard-content .content-block .jivestar-invite-list-table.wrap_tbl,
.jivestar-invite-list-table.wrap_tbl {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: auto;
    border-radius: var(--jivestar-radius, 8px);
}
.dashboard-content .content-block .jivestar-invite-list-table .table,
.dashboard-content .content-block .jivestar-invite-list-table .tbl_tistory_type2,
.jivestar-invite-list-table .table,
.jivestar-invite-list-table .tbl_tistory_type2 {
    margin-bottom: 0;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.dashboard-content .content-block .jivestar-invite-list-table .table th,
.dashboard-content .content-block .jivestar-invite-list-table .table td,
.jivestar-invite-list-table .table th,
.jivestar-invite-list-table .table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.dashboard-content .content-block .jivestar-invite-list-table .table th:last-child,
.dashboard-content .content-block .jivestar-invite-list-table .table td:last-child,
.jivestar-invite-list-table .table th:last-child,
.jivestar-invite-list-table .table td:last-child {
    border-right: none;
}
.dashboard-content .content-block .jivestar-invite-list-table .table thead th,
.jivestar-invite-list-table .table thead th {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #86868b !important;
    background: #f0f0f0 !important;
    border-bottom: 1px solid var(--jivestar-border-subtle, #dee2e6);
    text-align: center !important;
}
.dashboard-content .content-block .jivestar-invite-list-table .table tbody td,
.dashboard-content .content-block .jivestar-invite-list-table .table tbody tr,
.jivestar-invite-list-table .table tbody td,
.jivestar-invite-list-table .table tbody tr {
    background: transparent !important;
}
.dashboard-content .content-block .jivestar-invite-list-table .table tbody td,
.jivestar-invite-list-table .table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-bs-theme="dark"] .dashboard-content .content-block .jivestar-invite-list-table .table th,
[data-bs-theme="dark"] .dashboard-content .content-block .jivestar-invite-list-table .table td,
[data-bs-theme="dark"] .jivestar-invite-list-table .table th,
[data-bs-theme="dark"] .jivestar-invite-list-table .table td {
    border-right-color: var(--jivestar-border-subtle, #2d2d2d);
}
[data-bs-theme="dark"] .dashboard-content .content-block .jivestar-invite-list-table .table thead th,
[data-bs-theme="dark"] .jivestar-invite-list-table .table thead th {
    color: #3f3f3f !important;
    background: #d1d1d1 !important;
}
[data-bs-theme="dark"] .dashboard-content .content-block .jivestar-invite-list-table .table tbody td,
[data-bs-theme="dark"] .dashboard-content .content-block .jivestar-invite-list-table .table tbody tr,
[data-bs-theme="dark"] .jivestar-invite-list-table .table tbody td,
[data-bs-theme="dark"] .jivestar-invite-list-table .table tbody tr {
    background: #252527 !important;
}
[data-bs-theme="dark"] .dashboard-content .content-block .jivestar-invite-list-table .table tbody td,
[data-bs-theme="dark"] .jivestar-invite-list-table .table tbody td {
    border-bottom-color: var(--jivestar-border-subtle);
}

/* 다크모드: 애드센스 금액·상위콘텐츠 숫자 #F5F5F7 */
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-summary .revenue_val .num_g,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-summary .revenue_val .txt_g,
[data-bs-theme="dark"] #google_dashboard_widget .jivestar-adsense-table .table td.text-end,
[data-bs-theme="dark"] .jivestar-adsense-block .jivestar-adsense-table .table td.text-end,
[data-bs-theme="dark"] .jivestar-sitekit-summary-card .jivestar-adsense-table .table td.text-end {
    color: #F5F5F7;
}

/* 연동계정: 서비스별 블록 */
.jivestar-linked-services .jivestar-linked-service-item:last-child {
    border-bottom: none !important;
}
.jivestar-linked-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}
.jivestar-linked-service-icon-google {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='24' height='24'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.54-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
    border: 1px solid var(--jivestar-border-subtle);
}

/* 연동계정: Connected Accounts 스타일 (참고 UI) */
.jivestar-connected-accounts {
    margin-top: 0.5rem;
}
.jivestar-connected-accounts-divider {
    height: 1px;
    background-color: var(--jivestar-border-subtle);
    margin-bottom: 0;
}
.jivestar-connected-account-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--jivestar-border-subtle);
}
.jivestar-connected-account-item:last-child {
    border-bottom: none;
}
.jivestar-connected-account-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}
.jivestar-connected-account-icon-google {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='24' height='24'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.54-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
    border: 1px solid var(--jivestar-border-subtle);
}
/* WordPress / Blogger: 동일 규격 — 40×40 슬롯, 이미지 36×36·contain (연동 계정 행) */
.jivestar-connected-account-icon.jivestar-connected-account-icon-wordpress,
.jivestar-connected-account-icon.jivestar-connected-account-icon-blogger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    background-image: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
/* 연동 계정 서비스 로고: WordPress·Blogger 동일 클래스(jivestar-wp-connected-logo)로 픽셀 규격 통일 */
.jivestar-connected-account-icon.jivestar-connected-account-icon-wordpress img,
.jivestar-connected-account-icon.jivestar-connected-account-icon-blogger img,
img.jivestar-wp-connected-logo {
    display: block;
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    object-fit: contain;
}
.jivestar-page-account-info .jivestar-account-info-slot-empty {
    margin-top: 1rem;
    min-height: auto;
    border: 0;
    background-color: var(--jivestar-bg-elevated, #fff);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.jivestar-page-account-info .jivestar-account-service-bundle-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--jivestar-border-subtle);
}
.jivestar-connected-account-body {
    flex: 1;
    min-width: 0;
}
.jivestar-connected-account-name {
    font-weight: 500;
    color: var(--jivestar-text);
    margin-bottom: 0.25rem;
}
.jivestar-connected-account-detail {
    font-size: 0.875rem;
    color: var(--jivestar-text-muted);
}
.jivestar-connected-account-action {
    flex-shrink: 0;
    align-self: center;
}
.jivestar-btn-disconnect {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}
.jivestar-btn-disconnect:hover {
    background-color: #dee2e6;
    color: #212529;
    border-color: #ced4da;
}
[data-bs-theme="dark"] .jivestar-btn-disconnect {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-bs-theme="dark"] .jivestar-btn-disconnect:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Optional: list/table block styling for future use */
.jivestar-list-block,
.jivestar-table-block {
    background-color: var(--jivestar-card);
    border: 1px solid var(--jivestar-border-subtle);
    border-radius: var(--jivestar-radius);
    overflow: hidden;
    box-shadow: var(--jivestar-shadow-sm);
}

.jivestar-list-block .list-group-item,
.jivestar-table-block .table {
    border-color: var(--jivestar-border-subtle);
}

/* 시트 방식 테이블 (작업 내역, 발행 내역) */
.jivestar-sheet-table {
    font-size: 0.875rem;
}
.jivestar-sheet-th {
    font-weight: 500;
    white-space: nowrap;
    padding: var(--jivestar-space-2) var(--jivestar-space-3);
}
.jivestar-sheet-cell {
    padding: var(--jivestar-space-2) var(--jivestar-space-3);
    vertical-align: middle;
}

/* 스타일 규정 페이지 (Untitled UI 스타일 이식: 카드 헤더, 구분선 테이블, 교차 행) */
.jivestar-style-guide-card {
    background: var(--jivestar-bg-elevated, #fff);
    border: 1px solid var(--jivestar-border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: var(--jivestar-radius, 10px);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--jivestar-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}
.jivestar-style-guide-card-header {
    margin-bottom: 1rem;
}
.jivestar-style-guide-table {
    font-size: 0.875rem;
    border-collapse: collapse;
    width: 100%;
}
.jivestar-style-guide-th {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--jivestar-text-muted, #7e7e7e);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--jivestar-border-subtle, rgba(0, 0, 0, 0.08));
    background: var(--jivestar-bg-subtle, #f9fafb);
}
.jivestar-style-guide-cell {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--jivestar-border-subtle, rgba(0, 0, 0, 0.06));
}
.jivestar-style-guide-table tbody tr:last-child .jivestar-style-guide-cell {
    border-bottom: none;
}
/* Alternating row background (Untitled UI style) */
.jivestar-style-guide-table-alt tbody tr:nth-child(even) {
    background: var(--jivestar-bg-subtle, rgba(0, 0, 0, 0.02));
}
.jivestar-style-guide-table-alt tbody tr:nth-child(even) .jivestar-style-guide-cell {
    border-bottom-color: var(--jivestar-border-subtle, rgba(0, 0, 0, 0.06));
}
[data-bs-theme="dark"] .jivestar-style-guide-th {
    color: #7e7e7e;
    background: var(--jivestar-bg-elevated);
}
[data-bs-theme="dark"] .jivestar-style-guide-table-alt tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* --------------------------------------------------------------------------
   테이블 규정 (Untitled UI Divider line 01 / Team members 스타일)
   -------------------------------------------------------------------------- */
/* 테이블 카드 — 데모 TableCard.Root: overflow-hidden rounded-xl bg-primary shadow-xs ring-1 ring-secondary */
.jivestar-table-card {
    background: var(--ui-bg-primary);
    border: 1px solid var(--ui-border-secondary);
    border-radius: var(--ui-radius-xl, 0.75rem);
    box-shadow: var(--ui-shadow-xs);
    overflow: hidden;
}
[data-bs-theme="dark"] .jivestar-table-card {
    background: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
}
/* 카드 박스 제거 — 테이블 스타일만 적용 (수집기록관리·구독관리 결제이력 등) */
.jivestar-table-card.jivestar-table-no-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
[data-bs-theme="dark"] .jivestar-table-card.jivestar-table-no-card {
    background: transparent;
    border-color: transparent;
}
.jivestar-table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ui-border-secondary);
    background: var(--ui-bg-primary);
}
@media (min-width: 768px) {
    .jivestar-table-card-header {
        padding: 1.25rem 1.5rem;
    }
}
.jivestar-table-card-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.jivestar-table-card-header-right {
    flex-shrink: 0;
}
.jivestar-table-card-title {
    font-size: var(--ui-text-lg, 1.125rem);
    font-weight: 500;
    color: var(--ui-text-primary);
    margin: 0;
}
.jivestar-table-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: var(--ui-text-xs, 0.75rem);
    font-weight: 500;
    border-radius: var(--ui-radius-full, 9999px);
    border: 1px solid rgba(230, 122, 59, 0.4);
    background: rgba(230, 122, 59, 0.08);
    color: var(--jivestar-accent);
}
[data-bs-theme="dark"] .jivestar-table-card-badge {
    border-color: rgba(230, 122, 59, 0.4);
    background: rgba(230, 122, 59, 0.15);
    color: #fcbb94;
}
/* 다크모드 — 테이블 카드 헤더 */
[data-bs-theme="dark"] .jivestar-table-card-header {
    border-bottom-color: #262626;
    background: #262626;
}
/* 다크모드 — API 뱃지 공통 */
.jivestar-api-badge {
    background-color: #fafafa;
    border-color: var(--bs-border-color, #dee2e6) !important;
}
[data-bs-theme="dark"] .jivestar-api-badge {
    background-color: #262626 !important;
    border-color: #323232 !important;
    color: var(--jivestar-text, #e2e2e2);
}
/* 필터: 헤더 우측 상단, 연한 회색 테두리, 타이핑 시 배경 변화 없음 */
.jivestar-table-filter-input {
    width: 100%;
    min-width: 12rem;
    max-width: 16rem;
    font-size: var(--ui-text-sm);
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border-secondary);
    background-color: var(--ui-bg-primary);
    color: var(--ui-text-primary);
    padding: 0.375rem 0.75rem;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
}
.jivestar-table-filter-input::placeholder {
    color: var(--ui-text-tertiary);
}
.jivestar-table-filter-input:hover {
    border-color: var(--ui-border-secondary);
}
.jivestar-table-filter-input:focus,
.jivestar-table-filter-input.form-control:focus {
    background-color: var(--ui-bg-primary) !important;
    outline: none;
}
/* 라이트 모드: 서치바 테두리 아주 연한 회색, 플레이스홀더 더 연하게 */
[data-bs-theme="light"] .jivestar-table-filter-input {
    border-color: rgba(0, 0, 0, 0.14);
}
[data-bs-theme="light"] .jivestar-table-filter-input::placeholder {
    color: #7e7e7e;
}
[data-bs-theme="light"] .jivestar-table-filter-input:hover {
    border-color: rgba(0, 0, 0, 0.2);
}
[data-bs-theme="light"] .jivestar-table-filter-input:focus,
[data-bs-theme="light"] .jivestar-table-filter-input.form-control:focus {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="dark"] .jivestar-table-filter-input:focus,
[data-bs-theme="dark"] .jivestar-table-filter-input.form-control:focus {
    background-color: var(--ui-bg-primary) !important;
}
/* 테이블 래퍼: 행 전체가 같이 가로 스크롤 */
.jivestar-table-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.jivestar-table-card .table {
    font-size: var(--ui-text-sm, 0.875rem);
    margin-bottom: 0;
    --bs-table-bg: transparent;
    min-width: max-content;
}
.jivestar-table-card .table > thead {
    vertical-align: middle;
}
.jivestar-table-card .table > tbody > tr > td,
.jivestar-table-card .table > thead > tr > th {
    border-top: none;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.jivestar-table-card .table tbody td {
    color: var(--ui-text-tertiary);
}
.jivestar-table-card .table thead th {
    font-weight: 500;
    font-size: var(--ui-text-xs, 0.75rem);
    color: var(--ui-text-quaternary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ui-border-secondary);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    background: var(--ui-bg-secondary);
    vertical-align: middle;
}
@media (min-width: 768px) {
    .jivestar-table-card .table thead th {
        padding: 0.75rem 1.5rem;
    }
}
[data-bs-theme="dark"] .jivestar-table-card .table thead th {
    color: var(--ui-text-quaternary);
    background: var(--ui-bg-secondary);
    border-bottom-color: var(--ui-border-secondary);
}
/* 본문: 데모와 동일 — 기본 bg-primary, 호버 bg-secondary, 선택된 행 bg-secondary (테마 전환 즉시 반영 위해 transition 제거) */
.jivestar-table-card .table tbody tr {
    background: var(--ui-bg-primary);
}
.jivestar-table-card .table tbody tr:hover {
    background: var(--ui-bg-secondary);
}
[data-bs-theme="dark"] .jivestar-table-card .table tbody tr {
    background: var(--ui-bg-primary);
}
[data-bs-theme="dark"] .jivestar-table-card .table tbody tr:hover {
    background: var(--ui-bg-secondary);
}
.jivestar-table-card .table tbody tr.jivestar-row-selected {
    background: var(--ui-bg-active, var(--jivestar-bg-subtle, #f3f4f6));
}
[data-bs-theme="dark"] .jivestar-table-card .table tbody tr.jivestar-row-selected {
    background: var(--ui-bg-tertiary, rgba(255, 255, 255, 0.06));
}
.jivestar-table-card .table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ui-border-secondary);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    vertical-align: middle;
}
@media (min-width: 768px) {
    .jivestar-table-card .table tbody td {
        padding: 0.75rem 1.5rem;
    }
}
[data-bs-theme="dark"] .jivestar-table-card .table tbody td {
    border-bottom-color: var(--ui-border-secondary);
}
/* 라이트 모드: thead·tbody 행 구분선만 그레이로 (카드/헤더 보더 건드리지 않음, 마지막 행 포함) */
[data-bs-theme="light"] .jivestar-table-card .table thead th {
    border-bottom: 1px solid #e2e2e2 !important;
}
[data-bs-theme="light"] .jivestar-table-card .table tbody td {
    border-bottom: 1px solid #e2e2e2 !important;
}

/* 화재데이터 fire-data — 접이식 패널·표·bg-white 등을 라이트/다크 UI 변수에 맞춤 */
.jivestar-fire-dashboard {
    font-family: var(--ui-font-body, inherit);
    color: var(--ui-text-primary);
}
.jivestar-fire-dashboard .bg-white {
    background-color: var(--ui-bg-secondary, var(--jivestar-card)) !important;
}
.jivestar-fire-dashboard .bg-light {
    background-color: var(--ui-bg-tertiary, var(--muted)) !important;
}
.jivestar-fire-dashboard .border {
    border-color: var(--ui-border-secondary) !important;
}
.jivestar-fire-dashboard .border-primary {
    border-color: var(--jivestar-accent) !important;
}
.jivestar-fire-dashboard .border-secondary {
    border-color: var(--ui-border-secondary) !important;
}
.jivestar-fire-dashboard .text-secondary {
    color: var(--ui-text-tertiary) !important;
}
.jivestar-fire-dashboard .text-muted {
    color: var(--ui-text-quaternary, var(--ui-text-tertiary)) !important;
}
.jivestar-fire-dashboard pre.border,
.jivestar-fire-dashboard pre.bg-white {
    background-color: var(--ui-bg-primary) !important;
    color: var(--ui-text-primary);
    border-color: var(--ui-border-secondary) !important;
}
.jivestar-fire-dashboard [id$="-shell"] > .d-flex.border-bottom,
.jivestar-fire-dashboard #fire-pipeline-runs-section > .d-flex.border-bottom {
    background: var(--ui-bg-secondary);
}
.jivestar-fire-dashboard .table {
    color: var(--ui-text-primary);
    --bs-table-bg: transparent;
    --bs-table-color: var(--ui-text-primary);
}
.jivestar-fire-dashboard .table-bordered > :not(caption) > * > * {
    border-color: var(--ui-border-secondary);
}
.jivestar-fire-dashboard .table thead th {
    background: var(--ui-bg-secondary);
    color: var(--ui-text-quaternary, var(--ui-text-tertiary));
    font-size: var(--ui-text-xs, 0.75rem);
    border-color: var(--ui-border-secondary);
}
.jivestar-fire-dashboard .table tbody td {
    color: var(--ui-text-tertiary);
    border-color: var(--ui-border-secondary);
}
.jivestar-fire-dashboard .table tbody tr {
    background: var(--ui-bg-primary);
}
[data-bs-theme="dark"] .jivestar-fire-dashboard .table tbody tr {
    background: var(--ui-bg-primary);
}
.jivestar-fire-dashboard .form-control,
.jivestar-fire-dashboard .form-select {
    background-color: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
    color: var(--ui-text-primary);
}
.jivestar-fire-dashboard .form-control::placeholder {
    color: var(--ui-text-quaternary, var(--ui-text-tertiary));
    opacity: 1;
}

/* 좌측 셀렉트 체크박스: 크기·스타일·선택 시 보라 */
.jivestar-table-col-checkbox {
    width: 2.75rem;
    vertical-align: middle;
}
.jivestar-table-card .table .jivestar-table-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
    border-radius: 0.25rem;
    border: 1px solid var(--ui-border-secondary, #e2e2e2);
    background-color: var(--ui-bg-primary, #fff);
}
.jivestar-table-card .table .jivestar-table-checkbox:checked {
    background-color: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
}
.jivestar-table-card .table .jivestar-table-checkbox:indeterminate {
    background-color: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
}
[data-bs-theme="dark"] .jivestar-table-card .table .jivestar-table-checkbox {
    background-color: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
}
[data-bs-theme="dark"] .jivestar-table-card .table .jivestar-table-checkbox:checked,
[data-bs-theme="dark"] .jivestar-table-card .table .jivestar-table-checkbox:indeterminate {
    background-color: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
}
.jivestar-table-col-actions {
    width: 6rem;
}

/* 뉴스 수집·수집기록관리 테이블 — 체크박스 / NO / 기사 제목 컬럼 간격 축소 */
#news-collect-table-card .table thead th,
#news-collect-table-card .table tbody td,
#collection-manage-table-card .table thead th,
#collection-manage-table-card .table tbody td {
    padding-left: 1rem;
    padding-right: 0.5rem;
}
#collection-manage-table-card .table {
    table-layout: fixed;
}
#news-collect-table-card .jivestar-table-col-checkbox,
#coupang-collect-table-card .jivestar-table-col-checkbox,
#collection-manage-table-card .jivestar-table-col-checkbox,
#market-collection-table-card .jivestar-table-col-checkbox {
    width: 2.25rem;
}
/* 수집기록관리 — 사용완료 열(왼쪽 여백 살짝 더)·체크박스 열 */
#news-collect-table-card th.jivestar-table-col-checkbox,
#news-collect-table-card td.jivestar-table-col-checkbox,
#coupang-collect-table-card th.jivestar-table-col-checkbox,
#coupang-collect-table-card td.jivestar-table-col-checkbox,
#blog-collect-table-card th.jivestar-table-col-checkbox,
#blog-collect-table-card td.jivestar-table-col-checkbox,
#collection-manage-table-card th.jivestar-table-col-checkbox,
#collection-manage-table-card td.jivestar-table-col-checkbox,
#market-collection-table-card th.jivestar-table-col-checkbox,
#market-collection-table-card td.jivestar-table-col-checkbox {
    width: 2.25rem;
    min-width: 2.25rem;
    max-width: 2.25rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    text-align: center;
    vertical-align: middle;
}
#news-collect-table-card th.jivestar-table-col-used,
#news-collect-table-card td.jivestar-table-col-used,
#coupang-collect-table-card th.jivestar-table-col-used,
#coupang-collect-table-card td.jivestar-table-col-used,
#blog-collect-table-card th.jivestar-table-col-used,
#blog-collect-table-card td.jivestar-table-col-used,
#collection-manage-table-card th.jivestar-table-col-used,
#collection-manage-table-card td.jivestar-table-col-used,
#market-collection-table-card th.jivestar-table-col-used,
#market-collection-table-card td.jivestar-table-col-used {
    width: 2.25rem;
    min-width: 2.25rem;
    max-width: 2.25rem;
    padding-left: 0.85rem !important;
    padding-right: 0.5rem !important;
    text-align: center;
    vertical-align: middle;
}
#news-collect-table-card th:nth-child(3),
#news-collect-table-card td:nth-child(3),
#coupang-collect-table-card th:nth-child(3),
#coupang-collect-table-card td:nth-child(3),
#market-collection-table-card th:nth-child(3),
#market-collection-table-card td:nth-child(3) {
    width: 3.5rem;
    white-space: nowrap;
}
#collection-manage-table-card th:nth-child(3),
#collection-manage-table-card td:nth-child(3) {
    width: 3.5rem;
    white-space: nowrap;
}
#collection-manage-table-card th:nth-child(5),
#collection-manage-table-card td:nth-child(5) {
    padding-left: 0.25rem;
}
#collection-manage-table-card th:nth-child(4),
#collection-manage-table-card td:nth-child(4) {
    width: 4.75rem;
    min-width: 4.75rem;
    white-space: nowrap;
}
#collection-manage-table-card th:nth-child(6),
#collection-manage-table-card td:nth-child(6) {
    width: 8.5rem;
    min-width: 8.5rem;
    white-space: nowrap;
}
#collection-manage-table-card th:nth-child(7),
#collection-manage-table-card td:nth-child(7) {
    width: 11rem;
    min-width: 11rem;
}
#collection-manage-table-card td:nth-child(5),
#collection-manage-table-card td:nth-child(7) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#collection-manage-table-card .jivestar-table-col-actions-secondary {
    width: 3rem;
}
#news-collect-table-card th:nth-child(5),
#news-collect-table-card td:nth-child(5) {
    padding-left: 0.25rem;
}
#news-collect-table-card .jivestar-table-col-actions-secondary,
#blog-collect-table-card .jivestar-table-col-actions-secondary {
    width: 3rem;
}
/* 블로그 수집 — 테이블 컬럼 간격 (뉴스 수집과 동일) */
#blog-collect-table-card .table thead th,
#blog-collect-table-card .table tbody td {
    padding-left: 1rem;
    padding-right: 0.5rem;
}
#blog-collect-table-card .jivestar-table-col-checkbox {
    width: 2.25rem;
}
#blog-collect-table-card th:nth-child(3),
#blog-collect-table-card td:nth-child(3) {
    width: 3.5rem;
    white-space: nowrap;
}
#blog-collect-table-card th:nth-child(5),
#blog-collect-table-card td:nth-child(5) {
    padding-left: 0.25rem;
}
/* 뉴스 수집 — 추가/삭제 칼럼: 고정폭(헤더 버튼 시 레이아웃 흔들림 방지), 본문 중앙 */
#news-collect-table-card th.news-collect-col-add,
#news-collect-table-card td.news-collect-col-add,
#coupang-collect-table-card th.news-collect-col-add,
#coupang-collect-table-card td.news-collect-col-add,
#blog-collect-table-card th.news-collect-col-add,
#blog-collect-table-card td.news-collect-col-add,
#subject-recent-table-card th.news-collect-col-add,
#subject-recent-table-card td.news-collect-col-add {
    width: 4.85rem;
    min-width: 4.85rem;
    max-width: 5.25rem;
    text-align: center !important;
    vertical-align: middle;
    padding-left: 0.28rem !important;
    padding-right: 0.28rem !important;
}
#news-collect-table-card th.news-collect-col-del,
#news-collect-table-card td.news-collect-col-del,
#coupang-collect-table-card th.news-collect-col-del,
#coupang-collect-table-card td.news-collect-col-del,
#blog-collect-table-card th.news-collect-col-del,
#blog-collect-table-card td.news-collect-col-del {
    width: 4.85rem;
    min-width: 4.85rem;
    max-width: 5.25rem;
    text-align: center !important;
    vertical-align: middle;
    padding-left: 0.28rem !important;
    padding-right: 0.28rem !important;
}
#news-collect-table-card .news-collect-col-add .jivestar-btn-utility,
#news-collect-table-card .news-collect-col-del .jivestar-btn-utility,
#news-collect-table-card .news-collect-col-del a.jivestar-btn-utility,
#coupang-collect-table-card .news-collect-col-add .jivestar-btn-utility,
#coupang-collect-table-card .news-collect-col-del .jivestar-btn-utility,
#coupang-collect-table-card .news-collect-col-del a.jivestar-btn-utility,
#blog-collect-table-card .news-collect-col-add .jivestar-btn-utility,
#blog-collect-table-card .news-collect-col-del .jivestar-btn-utility,
#blog-collect-table-card .news-collect-col-del a.jivestar-btn-utility,
#subject-recent-table-card .news-collect-col-add .jivestar-btn-utility {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}
/* 선택추가/선택삭제 — 수집실행과 동일 primary, 소형 */
#news-collect-table-card .news-collect-bulk-header-btn,
#coupang-collect-table-card .news-collect-bulk-header-btn,
#blog-collect-table-card .news-collect-bulk-header-btn {
    font-size: 0.625rem;
    padding: 0.1rem 0.24rem;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
#subject-recent-table-card .jivestar-table-col-actions-secondary {
    width: 3rem;
}
[data-bs-theme="dark"] #news-collect-table-card .news-collect-bulk-header-btn,
[data-bs-theme="dark"] #coupang-collect-table-card .news-collect-bulk-header-btn,
[data-bs-theme="dark"] #blog-collect-table-card .news-collect-bulk-header-btn {
    color: #1c1c1e;
}
[data-bs-theme="dark"] #news-collect-table-card .news-collect-bulk-header-btn:hover,
[data-bs-theme="dark"] #news-collect-table-card .news-collect-bulk-header-btn:focus-visible,
[data-bs-theme="dark"] #coupang-collect-table-card .news-collect-bulk-header-btn:hover,
[data-bs-theme="dark"] #coupang-collect-table-card .news-collect-bulk-header-btn:focus-visible,
[data-bs-theme="dark"] #blog-collect-table-card .news-collect-bulk-header-btn:hover,
[data-bs-theme="dark"] #blog-collect-table-card .news-collect-bulk-header-btn:focus-visible {
    color: #1c1c1e;
}
/* 수집기록관리·발행 내역 — 메모·삭제 칼럼 중앙, 선택삭제 버튼 */
#collection-manage-table-card th.collection-manage-col-memo,
#collection-manage-table-card td.collection-manage-col-memo,
#collection-manage-table-card th.collection-manage-col-del-head,
#collection-manage-table-card td.collection-manage-col-del,
#market-collection-table-card th.collection-manage-col-memo,
#market-collection-table-card td.collection-manage-col-memo,
#market-collection-table-card th.collection-manage-col-del-head,
#market-collection-table-card td.collection-manage-col-del,
#posting-published-table-card th.collection-manage-col-memo,
#posting-published-table-card td.collection-manage-col-memo,
#posting-published-table-card th.collection-manage-col-del-head,
#posting-published-table-card td.collection-manage-col-del,
#subject-bank-card .subject-div-th.collection-manage-col-memo,
#subject-bank-card .subject-div-td.collection-manage-col-memo {
    width: 4.85rem;
    min-width: 4.85rem;
    max-width: 5.25rem;
    text-align: center !important;
    vertical-align: middle;
    padding-left: 0.28rem !important;
    padding-right: 0.28rem !important;
}
#collection-manage-table-card .collection-manage-col-memo .jivestar-btn-utility,
#collection-manage-table-card .collection-manage-col-del .jivestar-btn-utility,
#market-collection-table-card .collection-manage-col-memo .jivestar-btn-utility,
#market-collection-table-card .collection-manage-col-del .jivestar-btn-utility,
#posting-published-table-card .collection-manage-col-memo .jivestar-btn-utility,
#posting-published-table-card .collection-manage-col-del .jivestar-btn-utility,
#subject-bank-card .collection-manage-col-memo .jivestar-btn-utility {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}
#collection-manage-table-card .collection-manage-bulk-del-btn,
#market-collection-table-card .collection-manage-bulk-del-btn {
    font-size: 0.625rem;
    padding: 0.1rem 0.24rem;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
[data-bs-theme="dark"] #collection-manage-table-card .collection-manage-bulk-del-btn,
[data-bs-theme="dark"] #market-collection-table-card .collection-manage-bulk-del-btn {
    color: #1c1c1e;
}
[data-bs-theme="dark"] #collection-manage-table-card .collection-manage-bulk-del-btn:hover,
[data-bs-theme="dark"] #collection-manage-table-card .collection-manage-bulk-del-btn:focus-visible,
[data-bs-theme="dark"] #market-collection-table-card .collection-manage-bulk-del-btn:hover,
[data-bs-theme="dark"] #market-collection-table-card .collection-manage-bulk-del-btn:focus-visible {
    color: #1c1c1e;
}

/* 수집기록관리·뉴스·블로그 수집 — 사용 완료(조용한 토글·텍스트 톤만) */
#collection-manage-table-card,
#news-collect-table-card,
#blog-collect-table-card {
    --jvs-coll-used-text: #7e7e7e;
    --jvs-coll-used-link: #7e7e7e;
    --jvs-coll-used-strike: rgba(126, 126, 126, 0.45);
    --jvs-coll-used-border: rgba(126, 126, 126, 0.28);
}
[data-bs-theme="dark"] #collection-manage-table-card,
[data-bs-theme="dark"] #news-collect-table-card,
[data-bs-theme="dark"] #blog-collect-table-card {
    --jvs-coll-used-text: #7e7e7e;
    --jvs-coll-used-link: #7e7e7e;
    --jvs-coll-used-strike: rgba(126, 126, 126, 0.5);
    --jvs-coll-used-border: rgba(126, 126, 126, 0.32);
}
#coupang-collect-table-card,
#market-collection-table-card {
    --jvs-coll-used-text: #7e7e7e;
    --jvs-coll-used-link: #7e7e7e;
    --jvs-coll-used-strike: rgba(126, 126, 126, 0.45);
    --jvs-coll-used-border: rgba(126, 126, 126, 0.28);
}
[data-bs-theme="dark"] #coupang-collect-table-card,
[data-bs-theme="dark"] #market-collection-table-card {
    --jvs-coll-used-text: #7e7e7e;
    --jvs-coll-used-link: #7e7e7e;
    --jvs-coll-used-strike: rgba(126, 126, 126, 0.5);
    --jvs-coll-used-border: rgba(126, 126, 126, 0.32);
}
/* 사용완료·체크박스 셀: 동일 수직·수평 기준 (flex) */
#collection-manage-table-card .jivestar-collection-manage-cell-control,
#news-collect-table-card .jivestar-collection-manage-cell-control,
#blog-collect-table-card .jivestar-collection-manage-cell-control {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.125rem;
}
#coupang-collect-table-card .jivestar-collection-manage-cell-control,
#market-collection-table-card .jivestar-collection-manage-cell-control {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.125rem;
}
#collection-manage-table-card thead .jivestar-collection-used-head-icon,
#news-collect-table-card thead .jivestar-collection-used-head-icon,
#blog-collect-table-card thead .jivestar-collection-used-head-icon,
#coupang-collect-table-card thead .jivestar-collection-used-head-icon,
#market-collection-table-card thead .jivestar-collection-used-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    color: var(--ui-text-quaternary);
    pointer-events: none;
    user-select: none;
}
[data-bs-theme="dark"] #collection-manage-table-card thead .jivestar-collection-used-head-icon,
[data-bs-theme="dark"] #news-collect-table-card thead .jivestar-collection-used-head-icon,
[data-bs-theme="dark"] #blog-collect-table-card thead .jivestar-collection-used-head-icon,
[data-bs-theme="dark"] #coupang-collect-table-card thead .jivestar-collection-used-head-icon,
[data-bs-theme="dark"] #market-collection-table-card thead .jivestar-collection-used-head-icon {
    color: var(--ui-text-quaternary);
}
#collection-manage-table-card thead .jivestar-collection-used-head-check,
#news-collect-table-card thead .jivestar-collection-used-head-check,
#blog-collect-table-card thead .jivestar-collection-used-head-check,
#coupang-collect-table-card thead .jivestar-collection-used-head-check,
#market-collection-table-card thead .jivestar-collection-used-head-check {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
    flex-shrink: 0;
    overflow: visible;
}
/* 헤더 장식 체크: thead 텍스트 톤 (--ui-text-quaternary) */
#collection-manage-table-card thead .jivestar-collection-used-head-path,
#news-collect-table-card thead .jivestar-collection-used-head-path,
#blog-collect-table-card thead .jivestar-collection-used-head-path {
    stroke: currentColor;
    stroke-width: 1px;
}
#coupang-collect-table-card thead .jivestar-collection-used-head-path,
#market-collection-table-card thead .jivestar-collection-used-head-path {
    stroke: currentColor;
    stroke-width: 1px;
}
/* 본문 동그라미: 네모 테두리와 동일. 완료 시 안쪽 체크: 헤더 장식 체크와 동일 (--ui-text-quaternary) */
#collection-manage-table-card tbody .jivestar-collection-used-ring,
#news-collect-table-card tbody .jivestar-collection-used-ring,
#blog-collect-table-card tbody .jivestar-collection-used-ring {
    stroke: var(--ui-border-secondary, #e2e2e2);
    stroke-width: 1px;
    fill: none;
}
[data-bs-theme="dark"] #collection-manage-table-card tbody .jivestar-collection-used-ring,
[data-bs-theme="dark"] #news-collect-table-card tbody .jivestar-collection-used-ring,
[data-bs-theme="dark"] #blog-collect-table-card tbody .jivestar-collection-used-ring {
    stroke: var(--ui-border-secondary);
}
#coupang-collect-table-card tbody .jivestar-collection-used-ring,
#market-collection-table-card tbody .jivestar-collection-used-ring {
    stroke: var(--ui-border-secondary, #e2e2e2);
    stroke-width: 1px;
    fill: none;
}
[data-bs-theme="dark"] #coupang-collect-table-card tbody .jivestar-collection-used-ring,
[data-bs-theme="dark"] #market-collection-table-card tbody .jivestar-collection-used-ring {
    stroke: var(--ui-border-secondary);
}
#collection-manage-table-card tbody .jivestar-collection-used-mark,
#news-collect-table-card tbody .jivestar-collection-used-mark,
#blog-collect-table-card tbody .jivestar-collection-used-mark {
    stroke: var(--ui-text-quaternary);
    stroke-width: 1px;
    fill: none;
}
[data-bs-theme="dark"] #collection-manage-table-card tbody .jivestar-collection-used-mark,
[data-bs-theme="dark"] #news-collect-table-card tbody .jivestar-collection-used-mark,
[data-bs-theme="dark"] #blog-collect-table-card tbody .jivestar-collection-used-mark {
    stroke: var(--ui-text-quaternary);
}
#coupang-collect-table-card tbody .jivestar-collection-used-mark,
#market-collection-table-card tbody .jivestar-collection-used-mark {
    stroke: var(--ui-text-quaternary);
    stroke-width: 1px;
    fill: none;
}
[data-bs-theme="dark"] #coupang-collect-table-card tbody .jivestar-collection-used-mark,
[data-bs-theme="dark"] #market-collection-table-card tbody .jivestar-collection-used-mark {
    stroke: var(--ui-text-quaternary);
}
#collection-manage-table-card .jivestar-collection-used-toggle,
#news-collect-table-card .jivestar-collection-used-toggle,
#blog-collect-table-card .jivestar-collection-used-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    min-height: 1.125rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.12s ease;
}
#coupang-collect-table-card .jivestar-collection-used-toggle,
#market-collection-table-card .jivestar-collection-used-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    min-height: 1.125rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.12s ease;
}
#collection-manage-table-card .jivestar-collection-used-toggle:hover:not(:disabled),
#news-collect-table-card .jivestar-collection-used-toggle:hover:not(:disabled),
#blog-collect-table-card .jivestar-collection-used-toggle:hover:not(:disabled) {
    opacity: 0.82;
}
#coupang-collect-table-card .jivestar-collection-used-toggle:hover:not(:disabled),
#market-collection-table-card .jivestar-collection-used-toggle:hover:not(:disabled) {
    opacity: 0.82;
}
#collection-manage-table-card .jivestar-collection-used-toggle:focus-visible,
#news-collect-table-card .jivestar-collection-used-toggle:focus-visible,
#blog-collect-table-card .jivestar-collection-used-toggle:focus-visible {
    outline: 2px solid var(--ui-border-focus, var(--jivestar-accent, #6366f1));
    outline-offset: 1px;
}
#coupang-collect-table-card .jivestar-collection-used-toggle:focus-visible,
#market-collection-table-card .jivestar-collection-used-toggle:focus-visible {
    outline: 2px solid var(--ui-border-focus, var(--jivestar-accent, #6366f1));
    outline-offset: 1px;
}
#collection-manage-table-card .jivestar-collection-used-toggle:disabled,
#news-collect-table-card .jivestar-collection-used-toggle:disabled,
#blog-collect-table-card .jivestar-collection-used-toggle:disabled {
    opacity: 0.55;
    cursor: pointer;
}
#coupang-collect-table-card .jivestar-collection-used-toggle:disabled,
#market-collection-table-card .jivestar-collection-used-toggle:disabled {
    opacity: 0.55;
    cursor: pointer;
}
#collection-manage-table-card .jivestar-collection-used-svg,
#news-collect-table-card .jivestar-collection-used-svg,
#blog-collect-table-card .jivestar-collection-used-svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    overflow: visible;
}
#coupang-collect-table-card .jivestar-collection-used-svg,
#market-collection-table-card .jivestar-collection-used-svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    overflow: visible;
}
#collection-manage-table-card .jivestar-collection-used-toggle .jivestar-collection-used-svg--done,
#news-collect-table-card .jivestar-collection-used-toggle .jivestar-collection-used-svg--done,
#blog-collect-table-card .jivestar-collection-used-toggle .jivestar-collection-used-svg--done {
    display: none;
}
#coupang-collect-table-card .jivestar-collection-used-toggle .jivestar-collection-used-svg--done,
#market-collection-table-card .jivestar-collection-used-toggle .jivestar-collection-used-svg--done {
    display: none;
}
#collection-manage-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--empty,
#news-collect-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--empty,
#blog-collect-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--empty {
    display: none;
}
#coupang-collect-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--empty,
#market-collection-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--empty {
    display: none;
}
#collection-manage-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--done,
#news-collect-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--done,
#blog-collect-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--done {
    display: block;
}
#coupang-collect-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--done,
#market-collection-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--done {
    display: block;
}
#collection-manage-table-card tbody tr.jivestar-collection-row--used > td,
#news-collect-table-card tbody tr.jivestar-collection-row--used > td,
#blog-collect-table-card tbody tr.jivestar-collection-row--used > td {
    color: var(--jvs-coll-used-text);
}
#coupang-collect-table-card tbody tr.jivestar-collection-row--used > td,
#market-collection-table-card tbody tr.jivestar-collection-row--used > td {
    color: var(--jvs-coll-used-text);
}
#collection-manage-table-card tbody tr.jivestar-collection-row--used:hover > td,
#collection-manage-table-card tbody tr.jivestar-collection-row--used.jivestar-row-selected > td,
#news-collect-table-card tbody tr.jivestar-collection-row--used:hover > td,
#news-collect-table-card tbody tr.jivestar-collection-row--used.jivestar-row-selected > td,
#blog-collect-table-card tbody tr.jivestar-collection-row--used:hover > td,
#blog-collect-table-card tbody tr.jivestar-collection-row--used.jivestar-row-selected > td {
    color: var(--jvs-coll-used-text);
}
#coupang-collect-table-card tbody tr.jivestar-collection-row--used:hover > td,
#coupang-collect-table-card tbody tr.jivestar-collection-row--used.jivestar-row-selected > td,
#market-collection-table-card tbody tr.jivestar-collection-row--used:hover > td,
#market-collection-table-card tbody tr.jivestar-collection-row--used.jivestar-row-selected > td {
    color: var(--jvs-coll-used-text);
}
#collection-manage-table-card tbody tr.jivestar-collection-row--used > td a,
#news-collect-table-card tbody tr.jivestar-collection-row--used > td a,
#blog-collect-table-card tbody tr.jivestar-collection-row--used > td a {
    color: var(--jvs-coll-used-link);
}
#coupang-collect-table-card tbody tr.jivestar-collection-row--used > td a,
#market-collection-table-card tbody tr.jivestar-collection-row--used > td a {
    color: var(--jvs-coll-used-link);
}
#collection-manage-table-card tbody tr.jivestar-collection-row--used .jivestar-collection-used-strike,
#news-collect-table-card tbody tr.jivestar-collection-row--used .jivestar-collection-used-strike,
#blog-collect-table-card tbody tr.jivestar-collection-row--used .jivestar-collection-used-strike {
    text-decoration: line-through;
    text-decoration-color: var(--jvs-coll-used-strike);
    text-decoration-thickness: 1px;
}
#coupang-collect-table-card tbody tr.jivestar-collection-row--used .jivestar-collection-used-strike,
#market-collection-table-card tbody tr.jivestar-collection-row--used .jivestar-collection-used-strike {
    text-decoration: line-through;
    text-decoration-color: var(--jvs-coll-used-strike);
    text-decoration-thickness: 1px;
}
#collection-manage-table-card tbody tr.jivestar-collection-row--used > td,
#news-collect-table-card tbody tr.jivestar-collection-row--used > td,
#blog-collect-table-card tbody tr.jivestar-collection-row--used > td {
    border-bottom-color: var(--jvs-coll-used-border);
}

/* 화재데이터 블록2 — 사용 완료 UI (수집·뉴스·블로그와 동일 토큰) */
#fire-data-block2-table-card {
    --jvs-coll-used-text: #7e7e7e;
    --jvs-coll-used-link: #7e7e7e;
    --jvs-coll-used-strike: rgba(126, 126, 126, 0.45);
    --jvs-coll-used-border: rgba(126, 126, 126, 0.28);
}
[data-bs-theme="dark"] #fire-data-block2-table-card {
    --jvs-coll-used-text: #7e7e7e;
    --jvs-coll-used-link: #7e7e7e;
    --jvs-coll-used-strike: rgba(126, 126, 126, 0.5);
    --jvs-coll-used-border: rgba(126, 126, 126, 0.32);
}
#fire-data-block2-table-card .jivestar-collection-manage-cell-control {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.125rem;
}
#fire-data-block2-table-card thead .jivestar-collection-used-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    color: var(--ui-text-quaternary);
    pointer-events: none;
    user-select: none;
}
[data-bs-theme="dark"] #fire-data-block2-table-card thead .jivestar-collection-used-head-icon {
    color: var(--ui-text-quaternary);
}
#fire-data-block2-table-card thead .jivestar-collection-used-head-check {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
    flex-shrink: 0;
    overflow: visible;
}
#fire-data-block2-table-card thead .jivestar-collection-used-head-path {
    stroke: currentColor;
    stroke-width: 1px;
}
#fire-data-block2-table-card tbody .jivestar-collection-used-ring {
    stroke: var(--ui-border-secondary, #e2e2e2);
    stroke-width: 1px;
    fill: none;
}
[data-bs-theme="dark"] #fire-data-block2-table-card tbody .jivestar-collection-used-ring {
    stroke: var(--ui-border-secondary);
}
#fire-data-block2-table-card tbody .jivestar-collection-used-mark {
    stroke: var(--ui-text-quaternary);
    stroke-width: 1px;
    fill: none;
}
[data-bs-theme="dark"] #fire-data-block2-table-card tbody .jivestar-collection-used-mark {
    stroke: var(--ui-text-quaternary);
}
#fire-data-block2-table-card .jivestar-collection-used-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    min-height: 1.125rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    line-height: 0;
    transition: opacity 0.12s ease;
}
#fire-data-block2-table-card .jivestar-collection-used-toggle:hover:not(:disabled) {
    opacity: 0.82;
}
#fire-data-block2-table-card .jivestar-collection-used-toggle:focus-visible {
    outline: 2px solid var(--ui-border-focus, var(--jivestar-accent, #6366f1));
    outline-offset: 1px;
}
#fire-data-block2-table-card .jivestar-collection-used-toggle:disabled {
    opacity: 0.55;
    cursor: pointer;
}
#fire-data-block2-table-card .jivestar-collection-used-svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    overflow: visible;
}
#fire-data-block2-table-card .jivestar-collection-used-toggle .jivestar-collection-used-svg--done {
    display: none;
}
#fire-data-block2-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--empty {
    display: none;
}
#fire-data-block2-table-card .jivestar-collection-used-toggle.is-done .jivestar-collection-used-svg--done {
    display: block;
}
#fire-data-block2-table-card tbody tr.jivestar-collection-row--used > td {
    color: var(--jvs-coll-used-text);
}
#fire-data-block2-table-card tbody tr.jivestar-collection-row--used:hover > td,
#fire-data-block2-table-card tbody tr.jivestar-collection-row--used.jivestar-row-selected > td {
    color: var(--jvs-coll-used-text);
}
#fire-data-block2-table-card tbody tr.jivestar-collection-row--used > td a {
    color: var(--jvs-coll-used-link);
}
#fire-data-block2-table-card tbody tr.jivestar-collection-row--used .jivestar-collection-used-strike {
    text-decoration: line-through;
    text-decoration-color: var(--jvs-coll-used-strike);
    text-decoration-thickness: 1px;
}
#fire-data-block2-table-card tbody tr.jivestar-collection-row--used > td {
    border-bottom-color: var(--jvs-coll-used-border);
}

/* 화재데이터 블록2 — 좌측 used·체크·NO·기준일 정렬, 우측 메모·삭제 축소 */
#fire-data-block2-table-card .table {
    table-layout: fixed;
}
#fire-data-block2-table-card .table thead th,
#fire-data-block2-table-card .table tbody td {
    padding-left: 0.65rem;
    padding-right: 0.45rem;
}
#fire-data-block2-table-card th.jivestar-table-col-used,
#fire-data-block2-table-card td.jivestar-table-col-used {
    width: 2.25rem;
    min-width: 2.25rem;
    max-width: 2.25rem;
    padding-left: 0.65rem !important;
    padding-right: 0.35rem !important;
    text-align: center;
    vertical-align: middle;
}
#fire-data-block2-table-card.fire-data-block2--admin th.jivestar-table-col-checkbox,
#fire-data-block2-table-card.fire-data-block2--admin td.jivestar-table-col-checkbox {
    width: 2.25rem;
    min-width: 2.25rem;
    max-width: 2.25rem;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    text-align: center;
    vertical-align: middle;
}
#fire-data-block2-table-card th.fire-b2-col-no,
#fire-data-block2-table-card td.fire-b2-col-no {
    width: 2.65rem;
    min-width: 2.5rem;
    max-width: 3rem;
    white-space: nowrap;
}
#fire-data-block2-table-card th.fire-b2-col-base-date,
#fire-data-block2-table-card td.fire-b2-col-base-date {
    width: 5.25rem;
    min-width: 4.75rem;
    max-width: 6rem;
    white-space: nowrap;
}
/* 지역·관서: 우측 패딩 동일, 지역 폭 축소(관서 좌측 이동), 관서 폭 확대(장소유형과 간격) */
#fire-data-block2-table-card th.fire-b2-col-region,
#fire-data-block2-table-card td.fire-b2-col-region {
    width: 3.65rem;
    min-width: 3rem;
    max-width: 4.15rem;
    padding-right: 0.8rem !important;
    vertical-align: middle;
}
#fire-data-block2-table-card td.fire-b2-col-region .jivestar-collection-used-strike {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
#fire-data-block2-table-card th.fire-b2-col-station,
#fire-data-block2-table-card td.fire-b2-col-station {
    width: 7rem;
    min-width: 5.75rem;
    max-width: 8.25rem;
    padding-right: 0.8rem !important;
    vertical-align: middle;
}
#fire-data-block2-table-card td.fire-b2-col-station .jivestar-collection-used-strike {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
#fire-data-block2-table-card th.fire-b2-col-memo,
#fire-data-block2-table-card td.fire-b2-col-memo,
#fire-data-block2-table-card th.fire-b2-col-del,
#fire-data-block2-table-card td.fire-b2-col-del {
    width: 2.85rem;
    min-width: 2.75rem;
    max-width: 3.1rem;
    padding-left: 0.18rem !important;
    padding-right: 0.18rem !important;
    text-align: center !important;
    vertical-align: middle;
}
#fire-data-block2-table-card .fire-b2-col-memo .jivestar-btn-utility,
#fire-data-block2-table-card .fire-b2-col-del .jivestar-btn-utility {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}
#fire-data-block2-table-card #fire-data-block2-bulk-del-btn {
    font-size: 0.625rem;
    padding: 0.1rem 0.22rem;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* 수집기록관리 — 상세 정보 블록 (모달) */
.jivestar-collection-detail-block {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--jivestar-border-subtle, #e2e2e2);
    background: var(--jivestar-bg-elevated, #fafafa);
}
[data-bs-theme="dark"] .jivestar-collection-detail-block {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--jivestar-border-subtle, #2d2d2d);
}
.jivestar-collection-detail-head {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--jivestar-text-muted, #6b7280);
    margin-bottom: 0.65rem;
    letter-spacing: 0.02em;
}
.jivestar-collection-detail-dl {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}
.jivestar-collection-detail-dl dt {
    margin: 0;
    color: var(--jivestar-text-muted, #6b7280);
    font-weight: 500;
}
.jivestar-collection-detail-dl dd {
    margin: 0;
    word-break: break-word;
    color: var(--jivestar-text, #1c1c1e);
}
[data-bs-theme="dark"] .jivestar-collection-detail-dl dd {
    color: var(--jivestar-text, #e2e2e2);
}
/* 아바타 (Team members Name 컬럼) */
.jivestar-avatar-md {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}
/* 아바타 없을 때 이니셜 원 (데모 동일) */
.jivestar-avatar-placeholder {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 9999px;
    background: var(--ui-bg-secondary, #f3f4f6);
    color: var(--ui-text-tertiary, #7e7e7e);
    font-size: 0.875rem;
}
[data-bs-theme="dark"] .jivestar-avatar-placeholder {
    background: var(--ui-bg-tertiary);
    color: var(--ui-text-tertiary);
}
.jivestar-table-card .table .jivestar-cell-name {
    white-space: nowrap;
}
.jivestar-cell-name .jivestar-name-primary {
    font-size: var(--ui-text-sm);
    font-weight: 500;
    color: var(--ui-text-primary);
}
.jivestar-cell-name .jivestar-name-secondary {
    font-size: var(--ui-text-sm);
    color: var(--ui-text-tertiary);
}
/* 상태 배지 (Active / BadgeWithDot) */
.jivestar-badge-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: var(--ui-text-xs, 0.75rem);
    font-weight: 500;
    border-radius: var(--ui-radius-full, 9999px);
    border: 1px solid rgba(23, 178, 106, 0.4);
    background: var(--ui-success-50, rgba(34, 197, 94, 0.1));
    color: var(--ui-success-600, #16a34a);
}
.jivestar-badge-dot::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: var(--ui-radius-full, 9999px);
    background: currentColor;
}
[data-bs-theme="dark"] .jivestar-badge-dot {
    border-color: rgba(71, 205, 137, 0.4);
    background: rgba(23, 178, 106, 0.15);
    color: var(--ui-success-400, #4ade80);
}
/* 팀 배지 (Teams 컬럼) — 액센트 오렌지, +N은 회색 */
.jivestar-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: var(--ui-text-xs, 0.75rem);
    font-weight: 500;
    border-radius: var(--ui-radius-full, 9999px);
    border: 1px solid rgba(230, 122, 59, 0.4);
    background: rgba(230, 122, 59, 0.08);
    color: var(--jivestar-accent);
    margin-right: 0.25rem;
    margin-bottom: 0.125rem;
}
[data-bs-theme="dark"] .jivestar-badge-pill {
    border-color: rgba(230, 122, 59, 0.4);
    background: rgba(230, 122, 59, 0.15);
    color: var(--jivestar-accent-light);
}
.jivestar-badge-pill-gray {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
}
/* Teams 컬럼: 줄바꿈만 방지. 스크롤은 테이블 래퍼에서 → 행 전체가 같이 가로 스크롤 */
.jivestar-table-cell-teams {
    white-space: nowrap;
}
.jivestar-cell-teams {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
}
.jivestar-cell-teams .jivestar-badge-pill,
.jivestar-cell-teams .jivestar-badge-pill-gray {
    flex-shrink: 0;
}
[data-bs-theme="dark"] .jivestar-badge-pill-gray {
    background: rgba(156, 163, 175, 0.2);
    color: #7e7e7e;
}
/* 행 액션 버튼 (Delete / Edit) */
.jivestar-btn-utility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: var(--ui-radius-md, 0.375rem);
    background: transparent;
    color: var(--ui-text-tertiary, #7e7e7e);
    cursor: pointer;
}
.jivestar-btn-utility:hover {
    background: var(--ui-bg-secondary, rgba(0, 0, 0, 0.06));
    color: var(--ui-text-primary);
}
[data-bs-theme="dark"] .jivestar-btn-utility:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.jivestar-btn-utility svg {
    width: 1.25rem;
    height: 1.25rem;
}
/* 정렬 가능 헤더 (Name 등) */
.jivestar-table-sort-th {
    cursor: pointer;
    user-select: none;
}
.jivestar-table-sort-th:hover {
    color: var(--ui-text-primary);
}
.jivestar-table-sort-th .jivestar-table-sort-icon {
    display: inline-flex;
    transition: transform 0.15s ease;
}
.jivestar-table-sort-th.jivestar-table-sort-desc .jivestar-table-sort-icon {
    transform: rotate(180deg);
}
/* 정렬 아이콘 (헤더) */
.jivestar-table-sort-icon {
    margin-left: 0.25rem;
    opacity: 0.6;
}
.jivestar-table-sort-icon svg {
    width: 1rem;
    height: 1rem;
}
/* 페이지네이션 (Untitled UI PaginationButtonGroup / PaginationPageMinimalCenter) — 완성 캡처 기준 */
.jivestar-pagination-minimal {
    border-top: 1px solid var(--ui-border-secondary);
    padding: 0.75rem 1rem;
}
@media (min-width: 768px) {
    .jivestar-pagination-minimal {
        padding: 0.75rem 1.5rem;
    }
}
.jivestar-pagination-minimal-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}
.jivestar-pagination-prev,
.jivestar-pagination-next {
    flex-shrink: 0;
}
.jivestar-pagination-center {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}
.jivestar-pagination-info {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ui-text-tertiary);
}
/* Prev/Next 버튼 — Button secondary sm (테마 전환 즉시 반영 위해 transition 제거) */
.jivestar-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ui-text-primary);
    background: var(--ui-bg-primary);
    border: 1px solid var(--ui-border-secondary);
    border-radius: var(--ui-radius-md, 0.5rem);
    text-decoration: none;
    cursor: pointer;
}
.jivestar-pagination-btn-icon {
    display: none;
}
.jivestar-pagination-btn-text {
    display: inline;
}
.jivestar-pagination-btn:hover:not(:disabled),
.jivestar-pagination-btn:focus-visible {
    background: var(--ui-bg-secondary);
    border-color: var(--ui-border-secondary);
    color: var(--ui-text-primary);
    outline: none;
}
.jivestar-pagination-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--ui-border-secondary);
}
.jivestar-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* 700px 미만: 이전/다음 반응형 버튼(아이콘만 정사각형) */
@media (max-width: 699px) {
    .jivestar-pagination-btn-icon {
        display: inline;
    }
    .jivestar-pagination-btn-text {
        display: none;
    }
    .jivestar-pagination-btn {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        padding: 0;
        font-size: 1rem;
    }
}
[data-bs-theme="dark"] .jivestar-pagination-btn {
    background: var(--ui-bg-primary);
    border-color: var(--ui-border-secondary);
    color: var(--ui-text-primary);
}
[data-bs-theme="dark"] .jivestar-pagination-btn:hover:not(:disabled),
[data-bs-theme="dark"] .jivestar-pagination-btn:focus-visible {
    background: var(--ui-bg-secondary);
}
/* 페이지 번호 — size-10, rounded-lg, 폰트 약간 축소 */
.jivestar-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.jivestar-pagination-pages li {
    margin: 0;
    display: flex;
    align-items: center;
}
.jivestar-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ui-text-tertiary);
    background: transparent;
    border: none;
    border-radius: var(--ui-radius-md, 0.5rem);
    text-decoration: none;
    cursor: pointer;
}
.jivestar-pagination-page:hover,
.jivestar-pagination-page:focus-visible {
    background: var(--ui-bg-secondary);
    color: var(--ui-text-primary);
    outline: none;
}
.jivestar-pagination-page.is-current,
.jivestar-pagination-page[aria-current="page"] {
    background: var(--ui-bg-secondary);
    color: var(--ui-text-primary);
    cursor: default;
}
/* 말줄임(…) — 배경만 제거, 나머지는 숫자와 동일(display:flex로 한 줄 정렬 유지) */
.jivestar-pagination-pages li.jivestar-pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ui-text-tertiary);
    background: transparent !important;
    border-radius: var(--ui-radius-md, 0.5rem);
    pointer-events: none;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .jivestar-pagination-pages li.jivestar-pagination-ellipsis {
    background: transparent !important;
    color: var(--ui-text-tertiary);
}
[data-bs-theme="dark"] .jivestar-pagination-page:hover,
[data-bs-theme="dark"] .jivestar-pagination-page:focus-visible,
[data-bs-theme="dark"] .jivestar-pagination-page.is-current,
[data-bs-theme="dark"] .jivestar-pagination-page[aria-current="page"] {
    background: var(--ui-bg-secondary);
    color: var(--ui-text-primary);
}
@media (max-width: 767.98px) {
    .jivestar-pagination-center .jivestar-pagination-pages {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   슬라이더 (Untitled UI Slider — https://untitledui.com/react/components/sliders)
   -------------------------------------------------------------------------- */
.jivestar-slider {
    width: 100%;
    max-width: 20rem;
}
.jivestar-slider-label {
    display: block;
    font-size: var(--ui-text-sm);
    font-weight: 500;
    color: var(--ui-text-primary);
    margin-bottom: 0.5rem;
}
.jivestar-slider-wrap {
    position: relative;
    height: 1.5rem;
    display: flex;
    align-items: center;
}
.jivestar-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    border-radius: var(--ui-radius-full);
    background: var(--ui-bg-quaternary);
    accent-color: var(--ui-bg-brand-solid);
    outline: none;
}
.jivestar-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--ui-radius-full);
    background: var(--ui-slider-handle-bg);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    cursor: grab;
}
.jivestar-slider-input::-webkit-slider-thumb {
    box-shadow: 0 0 0 2px var(--ui-slider-handle-border) inset, 0 1px 3px rgba(0, 0, 0, 0.12);
}
.jivestar-slider-input::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--ui-radius-full);
    background: var(--ui-slider-handle-bg);
    border: none;
    box-shadow: 0 0 0 2px var(--ui-slider-handle-border) inset, 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: grab;
}
.jivestar-slider-input:active::-webkit-slider-thumb,
.jivestar-slider-input:active::-moz-range-thumb {
    cursor: grabbing;
}
.jivestar-slider-input::-webkit-slider-runnable-track {
    height: 0.5rem;
    border-radius: var(--ui-radius-full);
    background: var(--ui-bg-quaternary);
}
.jivestar-slider-input::-moz-range-track {
    height: 0.5rem;
    border-radius: var(--ui-radius-full);
    background: var(--ui-bg-quaternary);
}
.jivestar-slider-value {
    font-size: var(--ui-text-sm);
    font-weight: 500;
    color: var(--ui-text-tertiary);
    margin-left: 0.5rem;
    min-width: 2.5rem;
}
.jivestar-slider-value-bottom {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--ui-text-xs);
    font-weight: 500;
    color: var(--ui-text-tertiary);
}

/* --------------------------------------------------------------------------
   11. Legacy / compatibility
   -------------------------------------------------------------------------- */
.dashboard-nav {
    border-bottom: 1px solid var(--jivestar-border-subtle);
}

.dashboard-main {
    flex: 1;
}

.dashboard-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

/* 넓은 화면: 대시보드 전체를 뷰포트 높이로 고정 → 사이드바 하단 푸터 고정, 메뉴만 스크롤 (작은 화면과 동일) */
@media (min-width: 992px) {
    body:has(.dashboard-wrapper) {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .dashboard-wrapper {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    .dashboard-sidebar.offcanvas-lg {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .dashboard-sidebar.offcanvas-lg .offcanvas-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .dashboard-sidebar.offcanvas-lg .dashboard-sidebar-nav {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .dashboard-sidebar.offcanvas-lg .dashboard-sidebar-nav-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior-y: none;
    }
    .dashboard-sidebar.offcanvas-lg .dashboard-sidebar-footer {
        flex-shrink: 0;
    }
}

/* --------------------------------------------------------------------------
   나의 메모: 스티키 노트 보드 (plain text only, drag/resize/autosave)
   -------------------------------------------------------------------------- */
.jivestar-memo-board {
    padding-bottom: 3rem;
    overflow: hidden;
}
.jivestar-memo-widget {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: #fef9c3;
    border: 1px solid #e2e2e2;
    border-radius: var(--jivestar-radius-sm, 6px);
    box-shadow: var(--jivestar-shadow-sm, 0 1px 2px rgba(0,0,0,0.06));
    overflow: hidden;
}
.jivestar-memo-head {
    padding: 0.25rem 0.5rem;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    cursor: move;
    background: rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.jivestar-memo-add-inhead {
    margin-right: auto;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--jivestar-text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}
.jivestar-memo-add-inhead:hover {
    color: var(--jivestar-text);
    background: rgba(0,0,0,0.06);
}
.jivestar-memo-close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--jivestar-text-muted);
    padding: 0 0.35rem;
    border-radius: 4px;
}
.jivestar-memo-close:hover {
    color: var(--jivestar-text);
    background: rgba(0,0,0,0.08);
}
.jivestar-memo-body {
    flex: 1;
    min-height: 0;
    padding: 0.5rem;
}
.jivestar-memo-body textarea {
    width: 100%;
    height: 100%;
    min-height: 80px;
    border: none;
    background: transparent;
    resize: none;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--jivestar-text);
    padding: 0;
}
.jivestar-memo-body textarea:focus {
    outline: none;
}
.jivestar-memo-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.12) 50%);
}
.jivestar-memo-resize:hover {
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.2) 50%);
}
/* 나의 메모 PC: 상담 FAB 위 스택 + z-index 상위 (캘린더 일정추가와 동일 수식) */
#jivestar-memo-add-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100000;
}
@media (min-width: 768px) {
    #jivestar-memo-add-wrap {
        --jvs-memo-stack-fab: 48px;
        --jvs-chat-guide-edge-right: 2rem;
        --jvs-chat-guide-edge-bottom: 0.75rem;
        --jvs-memo-stack-m: max(var(--jvs-chat-guide-edge-bottom), env(safe-area-inset-bottom, 0px));
        right: max(var(--jvs-chat-guide-edge-right), env(safe-area-inset-right, 0px));
        bottom: calc(var(--jvs-memo-stack-m) + var(--jvs-memo-stack-fab) + (2 * var(--jvs-memo-stack-m)));
        z-index: 100000;
    }
}
/* 캘린더 전용: 상담 FAB와 right 동일, 세로는 FAB(48px) 위에 하단여백의 2배 간격 */
#jivestar-calendar-add-wrap {
    position: fixed;
    --jvs-calendar-stack-fab: 48px;
    --jvs-chat-guide-edge-right: 2rem;
    --jvs-chat-guide-edge-bottom: 0.75rem;
    --jvs-calendar-stack-m: max(var(--jvs-chat-guide-edge-bottom), env(safe-area-inset-bottom, 0px));
    right: max(var(--jvs-chat-guide-edge-right), env(safe-area-inset-right, 0px));
    bottom: calc(var(--jvs-calendar-stack-m) + var(--jvs-calendar-stack-fab) + (2 * var(--jvs-calendar-stack-m)));
    z-index: 1000;
}
@media (max-width: 767.98px) {
    #jivestar-calendar-add-wrap {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}
.jivestar-memo-add-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--jivestar-accent);
    background: var(--jivestar-accent);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--jivestar-shadow, 0 2px 8px rgba(0,0,0,0.06));
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
/* 일정추가: 상담 FAB(48)보다 살짝 크게, + 는 글리프 광학 중심 보정 */
.jivestar-calendar-add-btn {
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: none;
    background: var(--jivestar-accent);
    color: #fff;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.jivestar-calendar-add-btn__plus {
    display: block;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1;
    /* Pretendard 등에서 + 가 기하학적 중심보다 아래로 보이는 현상 보정 */
    transform: translateY(-0.09em);
}
.jivestar-memo-add-btn:hover {
    background: var(--jivestar-accent-hover);
    border-color: var(--jivestar-accent-hover);
    color: #fff;
}
.jivestar-calendar-add-btn:hover {
    background: var(--jivestar-accent-hover);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}

/* 계정 채팅상담/안내: 로고 이미지 자체가 버튼(주황 원 없음). Note/Chat처럼 별도 z-index */
.jivestar-account-chat-guide-wrap {
    /* 우측은 유지, 하단만 줄여 FAB을 화면 아래로 */
    --jvs-chat-guide-edge-right: 2rem;
    --jvs-chat-guide-edge-bottom: 0.75rem;
    position: fixed;
    bottom: max(var(--jvs-chat-guide-edge-bottom), env(safe-area-inset-bottom, 0px));
    right: max(var(--jvs-chat-guide-edge-right), env(safe-area-inset-right, 0px));
    z-index: 99971;
}
.jivestar-account-chat-guide-wrap.jivestar-account-chat-guide-wrap--panel-open {
    display: none !important;
}
@media (max-width: 767.98px) {
    .jivestar-account-chat-guide-wrap,
    .jivestar-account-chat-guide-panel {
        display: none !important;
    }
}
.jivestar-account-chat-guide-fab {
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.14));
}
.jivestar-account-chat-guide-fab:hover {
    transform: scale(1.06);
    opacity: 0.92;
}
.jivestar-account-chat-guide-fab:focus-visible {
    outline: 2px solid var(--jivestar-accent, #e67a3b);
    outline-offset: 3px;
    border-radius: 10px;
}
.jivestar-account-chat-guide-fab-img {
    display: block;
    width: 48px;
    height: 48px;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
    object-fit: contain;
}

.jivestar-account-chat-guide-panel {
    display: none;
    position: fixed;
    z-index: 99972;
    width: min(400px, calc(100vw - 24px));
    min-height: 240px;
    max-height: min(560px, calc(100vh - 32px));
    height: auto;
    flex-direction: column;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    font-size: 14px;
}
.jivestar-account-chat-guide-panel.jivestar-account-chat-guide-panel--open {
    display: flex;
}
.jivestar-account-chat-guide-panel-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    cursor: grab;
    user-select: none;
    touch-action: none;
}
body.jivestar-account-chat-guide-dragging .jivestar-account-chat-guide-panel-header {
    cursor: grabbing;
}
.jivestar-account-chat-guide-panel-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}
.jivestar-account-chat-guide-panel-close {
    border: none;
    background: transparent;
    padding: 4px 8px;
    line-height: 1;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
    opacity: 0.65;
    border-radius: 6px;
}
.jivestar-account-chat-guide-panel-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}
.jivestar-account-chat-guide-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px 12px;
}
.jivestar-account-chat-guide-msg-row {
    display: flex;
    margin-bottom: 12px;
}
.jivestar-account-chat-guide-msg-row:last-child {
    margin-bottom: 0;
}
.jivestar-account-chat-guide-msg-row--ai {
    justify-content: flex-start;
}
.jivestar-account-chat-guide-msg-row--user {
    justify-content: flex-end;
}
.jivestar-account-chat-guide-msg-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 88%;
    min-width: 0;
}
.jivestar-account-chat-guide-msg-row--user .jivestar-account-chat-guide-msg-stack {
    align-items: flex-end;
}
.jivestar-account-chat-guide-msg-who {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bs-secondary-color, #6c757d);
    padding: 0 2px;
}
.jivestar-account-chat-guide-bubble {
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.45;
    font-size: 13px;
    word-break: break-word;
}
.jivestar-account-chat-guide-msg-row--ai .jivestar-account-chat-guide-bubble {
    background: var(--bs-tertiary-bg, #f1f3f5);
    color: var(--bs-body-color, #212529);
    border-bottom-left-radius: 4px;
}
.jivestar-account-chat-guide-msg-row--user .jivestar-account-chat-guide-bubble {
    background: var(--jivestar-accent, #e67a3b);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.jivestar-account-chat-guide-panel-footer {
    flex-shrink: 0;
    padding: 0 10px;
    background: var(--bs-body-bg, #fff);
}
.jivestar-account-chat-guide-compose {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
}
.jivestar-account-chat-guide-compose-logo.jivestar-account-chat-guide-fab-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-self: center;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}
.jivestar-account-chat-guide-compose-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    max-height: 120px;
    resize: vertical;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: 10px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}
.jivestar-account-chat-guide-compose-input:focus {
    outline: none;
    border-color: var(--jivestar-accent, #e67a3b);
    box-shadow: 0 0 0 2px rgba(230, 122, 59, 0.2);
}
/* textarea 슬롯(44px)과 세로 맞춤 — .btn-sm 패딩 덮어씀 */
.jivestar-account-chat-guide-send.btn.btn-sm {
    flex-shrink: 0;
    align-self: center;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-sizing: border-box;
    min-width: 3.875rem;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 11px;
    line-height: 1;
    background: var(--jivestar-accent, #e67a3b);
    border: 1px solid var(--jivestar-accent, #e67a3b);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    /* Bootstrap .btn 배경/테두리 전환으로 idle↔로딩 시 주황이 스며드는 잔상 방지 */
    transition: none !important;
}
/* Untitled UI dot-circle (loading-indicator.tsx type="dot-circle"), primary 컬러 = currentColor */
.jivestar-account-chat-guide-send__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.jivestar-account-chat-guide-send__spinner .jivestar-ui-loading-dot-circle {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--jivestar-accent, #e67a3b);
    animation: jivestar-concierge-send-spin 1s linear infinite;
}
/* 레이아웃은 라벨이 유지하고 스피너만 겹쳐서 박스 크기·위치가 전환 시 변하지 않음 */
.jivestar-account-chat-guide-send--loading .jivestar-account-chat-guide-send__label {
    visibility: hidden;
}
.jivestar-account-chat-guide-send--loading .jivestar-account-chat-guide-send__spinner {
    visibility: visible;
    opacity: 1;
}
/* 로딩 중에는 주황 박스만 즉시 제거 (크기·패딩은 idle과 동일) */
.jivestar-account-chat-guide-send--loading.btn:disabled,
.jivestar-account-chat-guide-send--loading,
.jivestar-account-chat-guide-send:disabled.jivestar-account-chat-guide-send--loading {
    opacity: 1 !important;
    cursor: wait;
    background: transparent !important;
    border-color: transparent !important;
    color: var(--jivestar-accent, #e67a3b);
    box-shadow: none !important;
    filter: none;
}
@keyframes jivestar-concierge-send-spin {
    to {
        transform: rotate(360deg);
    }
}
.jivestar-account-chat-guide-send.btn.btn-sm:hover:not(:disabled):not(.jivestar-account-chat-guide-send--loading) {
    filter: brightness(1.05);
}
.jivestar-account-chat-guide-send.btn.btn-sm:disabled:not(.jivestar-account-chat-guide-send--loading) {
    opacity: 0.55;
    cursor: not-allowed;
}
.jivestar-account-chat-guide-panel-resize {
    flex-shrink: 0;
    height: 10px;
    margin: 0 8px 6px;
    border-radius: 6px;
    cursor: ns-resize;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        var(--bs-border-color, #dee2e6) 40%,
        var(--bs-border-color, #dee2e6) 60%,
        transparent 60%
    );
    touch-action: none;
}
.jivestar-account-chat-guide-panel-resize:hover {
    background-color: rgba(230, 122, 59, 0.12);
}
body.jivestar-account-chat-guide-vresize {
    cursor: ns-resize !important;
    user-select: none;
}
[data-bs-theme="dark"] .jivestar-account-chat-guide-panel-resize {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        var(--bs-border-color, #495057) 40%,
        var(--bs-border-color, #495057) 60%,
        transparent 60%
    );
}
[data-bs-theme="dark"] .jivestar-account-chat-guide-msg-row--ai .jivestar-account-chat-guide-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: var(--bs-body-color, #e9ecef);
}
[data-bs-theme="dark"] .jivestar-account-chat-guide-panel-footer {
    background: var(--bs-body-bg, #212529);
    border-top-color: var(--bs-border-color, #495057);
}
[data-bs-theme="dark"] .jivestar-account-chat-guide-compose-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--bs-border-color, #495057);
    color: var(--bs-body-color, #e9ecef);
}
[data-bs-theme="dark"] .jivestar-account-chat-guide-fab {
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}
[data-bs-theme="dark"] .jivestar-account-chat-guide-panel-close:hover {
    background: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .jivestar-memo-widget {
    background: #1a1a1a;
    border-color: #2d2d2d;
}
[data-bs-theme="dark"] .jivestar-memo-head {
    background: rgba(255,255,255,0.04);
}
[data-bs-theme="dark"] .jivestar-memo-body textarea {
    color: var(--jivestar-text);
}
[data-bs-theme="dark"] .jivestar-memo-add-btn {
    background: var(--jivestar-accent);
    border-color: var(--jivestar-accent);
    color: #fff;
}
[data-bs-theme="dark"] .jivestar-calendar-add-btn {
    background: var(--jivestar-accent);
    color: #fff;
}
[data-bs-theme="dark"] .jivestar-memo-add-btn:hover {
    background: var(--jivestar-accent-hover);
    border-color: var(--jivestar-accent-hover);
    color: #fff;
}
[data-bs-theme="dark"] .jivestar-calendar-add-btn:hover {
    background: var(--jivestar-accent-hover);
    color: #fff;
}

/* Bootstrap font-weight 오버라이드 — 최대 500 제한 */
b, strong { font-weight: 500; }
.fw-semibold { font-weight: 500 !important; }
.fw-bold { font-weight: 500 !important; }
.fw-bolder { font-weight: 500 !important; }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 500; }

/* --------------------------------------------------------------------------
   Company workspace — 전면 랜딩 (/company · /subscription · /payment)
   - page_placeholder.php 가 main 에 .jivestar-main--company-fullbleed 부여(결제 페이지 누락 방지).
   - data-current-page 보조 셀렉터 유지(구버전 HTML·디버깅 호환).
   - 10. Dashboard .dashboard-content(2049행) 변수 패딩·max-width 무효화.
   -------------------------------------------------------------------------- */
main#jivestar-main-content.dashboard-content.jivestar-main--company-fullbleed,
main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="company"],
main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="subscription"],
main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="payment"] {
    max-width: none;
    padding: 0 !important;
    margin: 0;
    background-color: #050a14;
    box-sizing: border-box;
}

@media (max-width: 770px) {
    main#jivestar-main-content.dashboard-content.jivestar-main--company-fullbleed,
    main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="company"],
    main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="subscription"],
    main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="payment"] {
        padding-bottom: 0 !important;
    }
}
@media (max-width: 574.98px) {
    main#jivestar-main-content.dashboard-content.jivestar-main--company-fullbleed,
    main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="company"],
    main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="subscription"],
    main#jivestar-main-content.dashboard-content[data-workspace="company"][data-current-page="payment"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 구독 랜딩 배경 — 원본 3648×5472 PNG, 표시 최장변 ~1500px 가정 시 cover=center 크롭 후 고해상도 다운스케일 */
.jivestar-subscription-landing {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    min-height: min(100vh, 1600px);
    min-height: min(100dvh, 1600px);
    padding: 2.5rem 1.25rem 3.5rem;
    color: #f2f6ff;
    background-color: transparent;
}

.jivestar-subscription-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #050a14;
    background-repeat: no-repeat;
}

.jivestar-subscription-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.jivestar-subscription-landing__inner,
.jivestar-company-landing__inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

/* (1) 기본: 가로 770px 이상 — 3648×5472 원본, 센터+cover(최장변~1500px급 뷰에서도 과확대 없이 다운스케일) */
@media (min-width: 770px) {
    .jivestar-subscription-landing::before {
        background-image: url("/assets/images/subscription-bg-default.webp");
        background-position: center center;
        background-size: cover;
    }
    .jivestar-subscription-landing::after {
        background: rgba(4, 10, 22, 0.42);
    }
}

/* (2) 770px 미만 & 575px 이상 — 별도 프레이밍(세로 중심 약간 상단) */
@media (max-width: 769.98px) and (min-width: 575px) {
    .jivestar-subscription-landing::before {
        background-image: url("/assets/images/subscription-bg-770.webp");
        background-position: center 26%;
        background-size: cover;
    }
    .jivestar-subscription-landing::after {
        background: rgba(4, 10, 22, 0.36);
    }
}

/* (3) 575px 미만 — 모바일 전용 프레이밍 + 본문 좌우 여백 + 합성 비용 절감(배경 레이어·글래스) */
@media (max-width: 574.98px) {
    .jivestar-subscription-landing {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
    }
    .jivestar-subscription-landing::before {
        background-image: url("/assets/images/subscription-bg-575.webp");
        background-position: center 18%;
        background-size: cover;
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .jivestar-subscription-landing::after {
        background: rgba(4, 10, 22, 0.32);
    }
    /* backdrop-filter 가 배경과 이중 샘플링되며 번짐·지연 유발 → 모바일만 제거 후 불투명도로 대체 */
    .jivestar-subscription-landing .jivestar-subscription-glass,
    .jivestar-company-landing .jivestar-subscription-glass {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(18, 24, 40, 0.82);
    }
}

@media (max-width: 770px) {
    .jivestar-subscription-landing {
        padding-bottom: 1.25rem;
    }
}

.jivestar-subscription-hero__title {
    font-size: clamp(1.35rem, 3.8vw, 2rem);
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.jivestar-subscription-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ui-radius-xl, 0.75rem);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.35rem;
}

.jivestar-subscription-glass--hero {
    max-width: 36rem;
    text-align: center;
}

.jivestar-subscription-founding {
    font-size: 1.0625rem;
    color: #fff;
}

.jivestar-subscription-deadline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.jivestar-subscription-section {
    margin-top: 2.5rem;
}

.jivestar-subscription-section--compact {
    margin-top: 2rem;
}

.jivestar-subscription-section--refund {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.jivestar-subscription-h2 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.jivestar-subscription-h2-note {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}

.jivestar-subscription-h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.75rem;
}

.jivestar-subscription-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9375rem;
}

.jivestar-subscription-price-list li:last-child {
    border-bottom: none;
}

.jivestar-subscription-price-term {
    color: rgba(255, 255, 255, 0.78);
}

.jivestar-subscription-note,
.jivestar-subscription-bank {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.jivestar-subscription-landing a,
.jivestar-company-landing a {
    color: #a8d4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jivestar-subscription-landing a:hover,
.jivestar-company-landing a:hover {
    color: #d4e9ff;
}

.jivestar-subscription-mono {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.02em;
}

.jivestar-subscription-rule {
    border: 0;
    height: 1px;
    margin: 2.5rem 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    opacity: 1;
}

.jivestar-subscription-plans-lead,
.jivestar-subscription-badges-lead {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* 전용 배지 혜택 상단 문구 변경 전 크기(본문 상속) — 하단 안내에만 사용 */
.jivestar-subscription-badge-footnote {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.jivestar-subscription-code {
    font-size: 0.8em;
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e8f0ff;
}

.jivestar-subscription-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .jivestar-subscription-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .jivestar-subscription-plan-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.jivestar-subscription-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.jivestar-subscription-plan-name {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.35rem;
}

.jivestar-subscription-plan-price {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.jivestar-subscription-plan-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin-left: 0.2em;
}

.jivestar-subscription-plan-desc,
.jivestar-subscription-plan-footnote {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    flex: 1;
}

.jivestar-subscription-plan-footnote {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
}

.jivestar-subscription-cta {
    margin-top: auto;
    align-self: flex-start;
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.jivestar-subscription-cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 구독 플랜 카드 «결제하기» — 파랑 링크 스타일 제거, hover #f5f5f5 / #323232 */
.jivestar-subscription-landing a.jivestar-subscription-plan-paybtn {
    display: inline-block;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.jivestar-subscription-landing a.jivestar-subscription-plan-paybtn:hover {
    color: #323232 !important;
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
}

/* /payment 월간 «구독서비스» 카드와 동일 아웃라인 버튼 (앵커 .jivestar-subscription-plan-paybtn 과 대응) */
.jivestar-subscription-landing button.jivestar-payment-monthly-subscribe-btn {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
.jivestar-subscription-landing button.jivestar-payment-monthly-subscribe-btn:hover {
    color: #323232 !important;
    background-color: #f5f5f5 !important;
    border-color: #f5f5f5 !important;
}
.jivestar-payment-inline-row--monthly .jivestar-subscription-cta {
    margin-top: 0;
}

.jivestar-subscription-muted {
    color: rgba(255, 255, 255, 0.62);
}

.jivestar-subscription-badge-panel {
    padding: 1.25rem 1rem 1.35rem;
}

.jivestar-subscription-badge-row {
    gap: 0.5rem 0.45rem;
}

.jivestar-subscription-update-list li {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    padding-left: 0.5rem;
    border-left: 3px solid rgba(168, 212, 255, 0.5);
}

.jivestar-subscription-glass--legal {
    padding: 1rem 1.15rem;
}

.jivestar-subscription-legal {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

/* 구독 결제 블록 (/subscription 앵커 — 동일 페이지, 고정 레이아웃 유지) */
.jivestar-subscription-pay {
    scroll-margin-top: 5.75rem;
    padding: 1.35rem 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

/* Trial·Life Time: 세로선 없음 · 열 폭은 Star split 과 동일 · 금액은 연간 블록(.action-block--yearly) 패딩 기준 왼쪽 정렬 + 동일 .pay__amount 타입 */
.jivestar-subscription-pay--once-plan-tight {
    padding-top: 1.15rem;
    padding-bottom: 0.85rem;
}
.jivestar-payment-once-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.jivestar-payment-once-layout__text {
    flex: 1 1 220px;
    min-width: 0;
    padding-right: 0.5rem;
}
.jivestar-payment-once-layout__spacer {
    flex: 0 0 auto;
    width: 2rem;
    align-self: stretch;
}
.jivestar-payment-once-layout__right {
    flex: 1 1 240px;
    min-width: 0;
    padding-left: 0.5rem;
}
/* 연간 금액 행과 동일 시작 위치 — .jivestar-payment-action-block--yearly 의 좌패딩(1.1rem) 과 맞춤 */
.jivestar-payment-once-yearly-align {
    padding-left: 1.1rem;
    box-sizing: border-box;
}
.jivestar-payment-inline-row--once-pay .jivestar-subscription-pay__amount {
    margin-bottom: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
}
/* Trial 행에 --monthly 가 같이 붙으므로, 아래 7600대 규칙보다 특이성 높게: monthly+once-pay 체인 사용 */
.jivestar-payment-inline-row--monthly.jivestar-payment-inline-row--once-pay .jivestar-payment-launch {
    flex: 0 0 auto;
    width: auto !important;
    white-space: nowrap;
    /* Trial·Life Time: «지금 결제하기» 가로 약 1.5배 (넓은 화면) */
    min-width: 14.25rem;
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
    box-sizing: border-box;
}
/* 1185px 미만: «월간 구독하기» 와 동일한 콤팩트 가로 규격 */
@media (max-width: 1184.98px) {
    .jivestar-payment-inline-row--monthly.jivestar-payment-inline-row--once-pay .jivestar-payment-launch {
        min-width: 0;
        width: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.jivestar-subscription-pay__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.jivestar-subscription-pay__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.jivestar-subscription-pay__cycles {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.jivestar-subscription-pay__cycle-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.jivestar-subscription-pay__cycle-btn:hover {
    color: rgba(255, 255, 255, 0.92);
}

.jivestar-subscription-pay__cycle-btn.is-active {
    color: #0b1220;
    background: linear-gradient(135deg, #a8d4ff 0%, #e8f4ff 100%);
    box-shadow: 0 1px 8px rgba(100, 180, 255, 0.35);
}

.jivestar-subscription-pay__badge-save {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #2a1204;
    background: linear-gradient(135deg, #e8a088 0%, #cb6441 100%);
    border-radius: 999px;
    vertical-align: middle;
}

.jivestar-subscription-pay__panel {
    display: none;
}

.jivestar-subscription-pay__panel.is-active {
    display: block;
}

.jivestar-subscription-pay__compare {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.jivestar-subscription-pay__amount {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #e8f4ff;
    line-height: 1.2;
}

.jivestar-subscription-pay__amount-suffix {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.85;
}

.jivestar-subscription-pay__equiv {
    font-size: 0.8rem;
    color: #fdede0;
    margin-top: 0.35rem;
}

/* 플랜 좌측 안내 박스(.callout 등) — /payment Star·Pro·Ultra */
.jivestar-subscription-pay-callouts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.jivestar-subscription-pay-secure,
.jivestar-subscription-pay-callout {
    border-radius: 0.5rem;
    border: 1px solid rgba(168, 212, 255, 0.28);
    background: rgba(4, 14, 28, 0.45);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.jivestar-subscription-pay-secure {
    margin-bottom: 1rem;
}

.jivestar-subscription-pay-callouts .jivestar-subscription-pay-secure {
    margin-bottom: 0;
}

.jivestar-subscription-pay-secure strong,
.jivestar-subscription-pay-callout strong {
    color: rgba(255, 255, 255, 0.9);
}

/* 기능 안내 박스: 보안과 동일 톤 · 테두리만 살짝 구분 */
.jivestar-subscription-pay-callout {
    border-color: rgba(168, 212, 255, 0.2);
}

.jivestar-subscription-pay__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

/* /payment 플랜 블록: 좌 설명 | 구분선 | 우 결제(상하 스택) */
.jivestar-payment-plan-split {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.jivestar-payment-plan-split__left {
    flex: 1 1 220px;
    min-width: 0;
    padding-right: 0.5rem;
}

.jivestar-payment-plan-split__right {
    flex: 1 1 240px;
    min-width: 0;
    padding-left: 0.5rem;
}

.jivestar-payment-plan-split__rule {
    flex: 0 0 auto;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

/* 세로선 — 상·하 끝이 페이드(전체 높이 미만) */
.jivestar-payment-plan-split__vbar {
    display: block;
    width: 1px;
    height: 72%;
    min-height: 5.5rem;
    max-height: 14rem;
    margin: auto;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 14%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.22) 86%,
        transparent 100%
    );
}

@media (max-width: 769.98px) {
    .jivestar-payment-plan-split {
        row-gap: 0.35rem;
    }
    .jivestar-payment-plan-split__rule {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0.75rem 0;
        order: 2;
    }
    .jivestar-payment-plan-split__vbar {
        width: 55%;
        max-width: 12rem;
        height: 1px;
        min-height: 0;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.22) 12%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.22) 88%,
            transparent 100%
        );
    }
    .jivestar-payment-plan-split__left {
        flex: 1 1 100%;
        padding-right: 0;
        order: 1;
    }
    .jivestar-payment-plan-split__right {
        flex: 1 1 100%;
        padding-left: 0;
        order: 3;
    }
    /* Star·Pro·Ultra: 좌우 구분선(세로→가로로 바뀐 룰) 숨김 — Trial·Life Time 제외 */
    .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-payment-plan-split__rule {
        display: none !important;
    }
}

.jivestar-payment-plan-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jivestar-payment-action-block--yearly {
    padding: 1rem 1.1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(203, 100, 65, 0.45);
    background: rgba(203, 100, 65, 0.1);
}

/* 월간: 가격(좌) · 결제 버튼(우) 한 행 */
.jivestar-payment-inline-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}
.jivestar-payment-inline-row .jivestar-subscription-pay__amount {
    margin-bottom: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
}
.jivestar-payment-inline-row--monthly .jivestar-payment-monthly-price-line {
    margin-bottom: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
}
/* 월간: «월간 결제시»는 보조 톤 · 금액은 옆 «월간 구독하기» 글자색과 동일 계열 */
.jivestar-payment-monthly-price-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    line-height: 1.35;
}
.jivestar-payment-monthly-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: -0.01em;
}
.jivestar-payment-monthly-figure {
    font-size: 1.375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
/* Trial·Life Time 등 1회 금액 — 월/연 대형 가격과 구분되는 박스형 */
.jivestar-payment-once-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.jivestar-payment-once-price__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.jivestar-payment-once-price__won {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.58);
}
/* Trial·Life Time: 가격 박스 + 주황 결제하기 한 행 */
.jivestar-payment-inline-row--once {
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem 0.85rem;
}
.jivestar-payment-inline-row--once .jivestar-payment-once-price {
    margin-bottom: 0 !important;
    flex: 0 1 auto;
    align-self: center;
    min-width: 0;
}
.jivestar-payment-inline-row--once .jivestar-payment-launch {
    flex: 1 1 9rem;
    width: auto !important;
    min-width: 7.5rem;
    white-space: nowrap;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jivestar-payment-inline-row--monthly .jivestar-payment-launch {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
}
.jivestar-payment-action-block--yearly > .jivestar-payment-inline-row--yearly {
    margin-bottom: 0.75rem;
}
/* 연간: 연 가격(좌) · 월 환산 안내(우) 한 행 */
.jivestar-payment-inline-row--yearly .jivestar-subscription-pay__equiv {
    flex: 1 1 11rem;
    min-width: min(100%, 10.5rem);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: right;
    line-height: 1.35;
    align-self: center;
}
@media (max-width: 479.98px) {
    .jivestar-payment-inline-row--monthly {
        flex-direction: column;
        align-items: stretch;
    }
    .jivestar-payment-inline-row--monthly .jivestar-payment-launch {
        width: 100% !important;
        white-space: normal;
    }
    .jivestar-payment-inline-row--once {
        flex-direction: column;
        align-items: stretch;
    }
    .jivestar-payment-inline-row--once .jivestar-payment-launch {
        flex: 1 1 auto;
        width: 100% !important;
        min-width: 0;
    }
    .jivestar-payment-inline-row--yearly .jivestar-subscription-pay__equiv {
        text-align: left;
        flex: 1 1 100%;
    }
}

/*
 * 770px 미만 — Trial·Life Time (파일 하단 배치: 위의 .inline-row--monthly .launch 가 덮어쓰지 않도록)
 * 행에 monthly+once-pay 동시 부여 시 특이성: .inline-row.inline-row--once-pay > .inline-row--monthly.once-pay .launch
 */
@media (max-width: 769.98px) {
    /* /payment 플랜 카드 전반 — 세로 여백 축소 */
    #jivestar-payment-page .jivestar-subscription-pay {
        padding: 0.75rem 1rem 0.8rem;
    }
    #jivestar-payment-page .jivestar-subscription-pay.mb-4 {
        margin-bottom: 0.75rem !important;
    }
    /* Star·Pro·Ultra: 제목·부가설명·월간/연간 스택 간격 */
    #jivestar-payment-page .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-payment-plan-split__left .jivestar-subscription-pay__title.mb-2 {
        margin-bottom: 0.2rem !important;
    }
    #jivestar-payment-page .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-payment-plan-split__left .small.jivestar-subscription-muted.mb-3 {
        margin-bottom: 0.35rem !important;
    }
    #jivestar-payment-page .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-payment-plan-actions {
        gap: 0.55rem;
    }
    #jivestar-payment-page .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-payment-action-block--yearly {
        padding: 0.65rem 0.85rem;
    }
    #jivestar-payment-page .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-payment-inline-row {
        gap: 0.5rem 0.65rem;
    }
    #jivestar-payment-page .jivestar-subscription-pay:not(.jivestar-subscription-pay--once-plan-tight) .jivestar-subscription-pay__compare.mb-1 {
        margin-bottom: 0.15rem !important;
    }
    /* Trial·Life Time: 카드 높이 — column 일 때 flex-basis(220px/240px)가 '높이'로 잡혀 중간이 비는 문제 제거 */
    .jivestar-subscription-pay--once-plan-tight {
        padding: 0.62rem 0.9rem 0.65rem !important;
    }
    .jivestar-subscription-pay--once-plan-tight.mb-4 {
        margin-bottom: 0.78rem !important;
    }
    .jivestar-payment-once-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0.42rem;
    }
    .jivestar-subscription-pay--once-plan-tight .jivestar-payment-once-layout__text,
    .jivestar-subscription-pay--once-plan-tight .jivestar-payment-once-layout__right {
        flex: 0 1 auto;
        min-height: 0;
    }
    .jivestar-payment-once-layout__spacer {
        display: none;
    }
    .jivestar-payment-once-layout__text {
        padding-right: 0;
    }
    .jivestar-payment-once-layout__text .jivestar-subscription-pay__title.mb-2 {
        margin-bottom: 0.2rem !important;
    }
    .jivestar-payment-once-layout__right {
        padding-left: 0;
    }
    .jivestar-payment-once-yearly-align {
        padding-left: 0;
    }
    .jivestar-payment-inline-row.jivestar-payment-inline-row--once-pay {
        flex-direction: column;
        align-items: stretch;
        gap: 0.42rem;
        justify-content: flex-start;
    }
    .jivestar-payment-inline-row--monthly.jivestar-payment-inline-row--once-pay .jivestar-payment-launch {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: none;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        white-space: normal;
    }
}

/* Star·Pro·Ultra 월간 버튼 배경 (Trial 제외) */
.jivestar-payment-btn-monthly-peach {
    --bs-btn-bg: #fdede0;
    --bs-btn-border-color: rgba(50, 50, 50, 0.12);
    --bs-btn-color: #323232;
    --bs-btn-hover-bg: #f5e0d2;
    --bs-btn-hover-border-color: rgba(50, 50, 50, 0.18);
    --bs-btn-hover-color: #1f1f1f;
    --bs-btn-active-bg: #edd5c8;
    --bs-btn-active-color: #1a1a1a;
    background-color: #fdede0 !important;
    color: #323232 !important;
    border-color: rgba(50, 50, 50, 0.12) !important;
    font-weight: 600;
}
.jivestar-payment-btn-monthly-peach:hover {
    background-color: #f5e0d2 !important;
    color: #1f1f1f !important;
}

/* 연간·1회 결제 — 브랜드 톤 (#cb6441 / hover #d87757) */
.jivestar-payment-btn-yearly-orange {
    --bs-btn-bg: #cb6441;
    --bs-btn-border-color: #cb6441;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #d87757;
    --bs-btn-hover-border-color: #d87757;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #c25a38;
    --bs-btn-active-border-color: #c25a38;
    background-color: #cb6441 !important;
    border-color: #cb6441 !important;
    color: #fff !important;
    font-weight: 600;
}
.jivestar-payment-btn-yearly-orange:hover {
    background-color: #d87757 !important;
    border-color: #d87757 !important;
    color: #fff !important;
}
.jivestar-payment-btn-yearly-orange:active,
.jivestar-payment-btn-yearly-orange.active {
    background-color: #c25a38 !important;
    border-color: #c25a38 !important;
    color: #fff !important;
}

.jivestar-payment-badge-orange {
    background: linear-gradient(135deg, #e8a088 0%, #cb6441 100%) !important;
    color: #2a1204 !important;
    font-weight: 700;
}

.jivestar-payment-badge-inline {
    display: inline-block;
    margin: 0 0.15rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.75em;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Company landing (/company)
   - 구독 랜딩과 동일 패턴: .jivestar-company-landing ::before/::after, 본문은 구독과 공유 클래스 재사용
   - 배경 원본 3648×5472, 뷰 최장변 ~1500px 가정 — cover + center 로 다운스케일 선명도 유지
   -------------------------------------------------------------------------- */
.jivestar-company-landing {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    min-height: min(100vh, 1600px);
    min-height: min(100dvh, 1600px);
    padding: 2.5rem 1.25rem 3.5rem;
    color: #f2f6ff;
    background-color: transparent;
}

.jivestar-company-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #050a14;
    background-repeat: no-repeat;
}

.jivestar-company-landing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 770px) {
    .jivestar-company-landing::before {
        background-image: url("/assets/images/company-bg-default.webp");
        background-position: center center;
        background-size: cover;
    }
    .jivestar-company-landing::after {
        background: rgba(4, 10, 22, 0.42);
    }
}

@media (max-width: 769.98px) and (min-width: 575px) {
    .jivestar-company-landing::before {
        background-image: url("/assets/images/company-bg-770.webp");
        background-position: center 26%;
        background-size: cover;
    }
    .jivestar-company-landing::after {
        background: rgba(4, 10, 22, 0.36);
    }
}

@media (max-width: 574.98px) {
    .jivestar-company-landing {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
    }
    .jivestar-company-landing::before {
        background-image: url("/assets/images/company-bg-575.webp");
        background-position: center 18%;
        background-size: cover;
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .jivestar-company-landing::after {
        background: rgba(4, 10, 22, 0.32);
    }
}

@media (max-width: 770px) {
    .jivestar-company-landing {
        padding-bottom: 1.25rem;
    }
}

.jivestar-company-section-kicker {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.25rem;
}

.jivestar-company-info-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.jivestar-company-info-list dt {
    margin: 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
}

.jivestar-company-info-list dd {
    margin: 0;
}

/* 회사 페이지: 575px 미만에서 상단 첫 본문 섹션(히어로 바로 아래) margin-top만 조정 */
@media (max-width: 574.98px) {
    .jivestar-company-landing .jivestar-subscription-hero + .jivestar-subscription-section {
        margin-top: 1.5rem;
    }
}

/* 회사 페이지 본문: 초기 페인트·레이아웃 비용 완화(히어로·첫 소개 블록은 제외해 LCP 유지) */
.jivestar-company-landing__inner > .jivestar-subscription-section ~ .jivestar-subscription-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
}

.jivestar-company-landing .jivestar-subscription-plan-card {
    contain: layout style;
}

/* Admin billing-history */
.jivestar-admin-billing-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jivestar-admin-billing-top-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.jivestar-admin-billing-key-box {
    background: rgba(255, 255, 255, 0.03);
}

.jivestar-admin-billing-links a {
    text-decoration: none;
}

.jivestar-admin-billing-links a:hover {
    text-decoration: underline;
}

.jivestar-admin-billing-table-head {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(24, 159, 114, 0.08);
}

.jivestar-admin-billing-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: auto;
}

.jivestar-admin-billing-table {
    margin-bottom: 0;
    min-width: 1120px;
    font-size: 13px;
}

.jivestar-admin-billing-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef2f6;
    white-space: nowrap;
    border-bottom: 1px solid #d7dee6;
}

.jivestar-admin-billing-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.018);
}

.jivestar-admin-billing-table td,
.jivestar-admin-billing-table th {
    vertical-align: middle;
}

.jivestar-admin-billing-cancel-form {
    max-width: 12rem;
}

@media (max-width: 1199.98px) {
    .jivestar-admin-billing-top-grid {
        grid-template-columns: 1fr;
    }
}

