/* 공통 CSS 스타일 - Dark + Orange 테마 (입체감) */

/* 폰트 설정 — font/에이투지체-2ExtraLight.ttf 전역 적용 */
@font-face {
    font-family: '에이투지체-2ExtraLight';
    src: url('../font/에이투지체-2ExtraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 테마 변수: 검정 + 주황 */
:root {
    --font-app: '에이투지체-2ExtraLight', -apple-system, BlinkMacSystemFont, sans-serif;
    --theme-bg: #000000;
    --theme-bg-elevated: #1a1a1a;
    --theme-bg-card: #1e1e1e;
    --theme-card-bg: var(--theme-bg-card);
    --theme-bg-input: #252525;
    /* 브랜드 키 컬러 — #fe5800 대비 톤 다운(덜 밝게) */
    --theme-accent: #bd4e14;
    --theme-accent-hover: #d46228;
    --theme-accent-glow: rgba(189, 78, 20, 0.22);
    --theme-text: #ffffff;
    --theme-text-secondary: #b0b0b0;
    --theme-text-muted: #808080;
    --theme-border: rgba(255, 255, 255, 0.08);
    --theme-border-strong: rgba(255, 255, 255, 0.12);
    --theme-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --theme-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --theme-radius: 12px;
    --theme-radius-sm: 8px;
    /* 기존 1.3 대비 약간 축소 — 글자·아이콘 calc(Npx * …) 전역 배수 */
    --ui-font-scale: 1.18;
}

[hidden] {
    display: none !important;
}

/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-app);
}

html {
    height: 100%;
    color-scheme: dark;
    background-color: #000000;
}

body {
    height: 100%;
    margin: 0;
    background-color: #000000;
    color: var(--theme-text);
    font-family: var(--font-app);
    font-size: calc(14px * var(--ui-font-scale));
    line-height: 1.6;
    overflow: hidden;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* 문서 전체가 스크롤되는 경우(레이아웃 폴백)에도 동일한 스크롤바 톤 */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(189, 78, 20, 0.45);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 웹 로그인 대기(폴링)·프로필 반영까지 메인 창 안내 */
.desktop-login-wait-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
}

.desktop-login-wait-panel {
    width: min(400px, 100%);
    padding: 22px 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-elevated);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.desktop-login-wait-title {
    margin: 0 0 10px;
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.desktop-login-wait-intro {
    margin: 0 0 16px;
}

.desktop-login-wait-intro .desktop-login-wait-text {
    margin: 0;
}

.desktop-login-wait-intro .desktop-login-wait-text + .desktop-login-wait-text {
    margin-top: 1em;
}

.desktop-login-wait-text {
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.55;
    color: var(--theme-text-secondary);
}

.desktop-login-wait-foot {
    margin: 14px 0 0;
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.4;
    color: var(--theme-text-muted);
}

.desktop-login-wait-progress {
    height: 5px;
    border-radius: 3px;
    background: var(--theme-border);
    overflow: hidden;
}

.desktop-login-wait-progress-bar {
    height: 100%;
    width: 38%;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--theme-accent),
        var(--theme-accent-hover, #d46228)
    );
    animation: desktop-login-wait-indeterminate 1.25s ease-in-out infinite;
}

@keyframes desktop-login-wait-indeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(280%);
    }
}

.loading-spinner {
    text-align: center;
    color: var(--theme-text);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--theme-border);
    border-top: 4px solid var(--theme-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.loading-text {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 500;
    color: var(--theme-text-secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 로딩 플레이스홀더 */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: calc(16px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    background: var(--theme-bg-card);
    border: 2px dashed var(--theme-border-strong);
    border-radius: var(--theme-radius-sm);
    margin: 20px;
    box-shadow: var(--theme-shadow);
}

/* 곧 추가될 예정 페이지 */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 40px 20px;
    background: var(--theme-bg-card);
    border-radius: var(--theme-radius);
    margin: 20px;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
}

.coming-soon-icon {
    font-size: calc(64px * var(--ui-font-scale));
    margin-bottom: 24px;
    opacity: 0.7;
}

.coming-soon h3,
.coming-soon .coming-soon-heading {
    font-size: calc(24px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 12px;
}

.coming-soon .coming-soon-heading {
    margin-top: 0;
}

.coming-soon p {
    font-size: calc(16px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.coming-soon--task {
    margin: 0 20px 24px;
}

.coming-soon--embedded {
    margin: 0;
    padding: 24px 20px;
}

.coming-soon--embedded .coming-soon-icon {
    font-size: calc(48px * var(--ui-font-scale));
    margin-bottom: 16px;
}

/* 대시보드 */
.dashboard-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 20px 28px;
}

.dashboard-wrap--workbench {
    max-width: 100%;
    padding: 8px 12px 12px;
}

.dashboard-top-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    align-items: stretch;
}

.dashboard-top-row__left {
    min-width: 0;
}

/* 공지·업데이트 통합 카드 (좌측 열) */
.dashboard-info-card--combined {
    border-color: color-mix(in srgb, var(--theme-border-strong) 55%, rgba(189, 78, 20, 0.22) 45%);
    height: 100%;
    padding: 8px 10px 9px;
}

.dashboard-info-split {
    display: grid;
    grid-template-rows: 1fr 1fr;
    height: 100%;
}

.dashboard-info-split__row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 3px 2px;
}

.dashboard-info-split__row + .dashboard-info-split__row {
    border-top: 1px solid color-mix(in srgb, var(--theme-border) 78%, rgba(255, 255, 255, 0.08) 22%);
}

.dashboard-info-split__label-wrap {
    display: flex;
    align-items: center;
}

.dashboard-info-split__content {
    min-width: 0;
}

.dashboard-info-split__anim {
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: opacity, transform;
}

.dashboard-info-split__anim.is-changing {
    opacity: 0;
    transform: translateY(4px);
}

.dashboard-info-split__content > div:first-child {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.dashboard-info-table__date {
    margin-top: 2px;
    font-size: calc(10px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.dashboard-info-table__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.8em;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 700;
    border: 1px solid transparent;
}

.dashboard-info-table__tag--notice {
    color: #ffcba8;
    background: rgba(189, 78, 20, 0.2);
    border-color: rgba(189, 78, 20, 0.45);
}

.dashboard-info-table__tag--update {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.45);
}

/* 공지·업데이트 — 좌(공지) 우(업데이트) 입체 카드 */
.dashboard-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

/* 대시보드 — 단일 계정 (한 카드 · 가로 배치, settings.json 연동 예정) */
.dashboard-local-account-card {
    --dashboard-naver-green: #03a94d;
    --dashboard-naver-green-hover: #028f44;
    --dashboard-naver-green-bright: #32d078;
    --dashboard-naver-green-rgb: 3, 169, 77;

    min-width: 0;
    min-height: 164px;
    position: relative;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--theme-border-strong) 76%, var(--dashboard-naver-green) 24%);
    background: var(--theme-bg-card);
    box-shadow: var(--theme-shadow);
}

.dashboard-local-account-loading {
    position: absolute;
    inset: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.dashboard-local-account-loading.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dashboard-local-account-loading__label {
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--dashboard-naver-green);
    margin-bottom: 4px;
}

.dashboard-local-account-loading__track {
    position: relative;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--theme-border) 72%, rgba(255, 255, 255, 0.1) 28%);
}

.dashboard-local-account-loading__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--dashboard-naver-green) 0%,
        var(--dashboard-naver-green-bright) 55%,
        var(--dashboard-naver-green) 100%
    );
    animation: dashboard-login-loading 1.55s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 8px rgba(var(--dashboard-naver-green-rgb), 0.35);
}

@keyframes dashboard-login-loading {
    0% {
        transform: translateX(-120%);
    }
    62% {
        transform: translateX(195%);
    }
    100% {
        transform: translateX(195%);
    }
}

/* N사 로그인 스타일: 통합 입력 박스 + 전체 너비 로그인 버튼 */
.dashboard-local-account-form {
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-local-account-card.is-loading .dashboard-local-account-form {
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;
}

.dashboard-local-account-card.is-loading .dashboard-local-account-summary {
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    pointer-events: none;
}

.dashboard-local-account-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-local-account-fields {
    border: 1px solid color-mix(in srgb, var(--theme-border-strong) 75%, rgba(255, 255, 255, 0.12) 25%);
    border-radius: 10px;
    background: color-mix(in srgb, var(--theme-bg-input) 92%, transparent 8%);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-local-account-fields:focus-within {
    border-color: color-mix(in srgb, var(--dashboard-naver-green) 58%, var(--theme-border-strong) 42%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dashboard-naver-green) 34%, transparent 66%);
}

.dashboard-local-account-fields__divider {
    height: 1px;
    margin: 0;
    border: none;
    background: color-mix(in srgb, var(--theme-border) 80%, rgba(255, 255, 255, 0.08) 20%);
}

.dashboard-local-account-field-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--theme-text);
    font-size: calc(14px * var(--ui-font-scale));
    padding: 11px 14px;
    font-family: inherit;
    line-height: 1.35;
}

.dashboard-local-account-field-input::placeholder {
    color: color-mix(in srgb, var(--theme-text-muted) 82%, transparent 18%);
    opacity: 1;
}

.dashboard-local-account-field-input:focus {
    outline: none;
    background: color-mix(in srgb, rgba(255, 255, 255, 0.06) 100%, transparent 0%);
}

.dashboard-local-account-submit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: calc(15px * var(--ui-font-scale));
    font-weight: 700;
    color: #fff;
    background: var(--dashboard-naver-green);
    cursor: pointer;
    transition: background 0.15s ease, filter 0.15s ease;
}

.dashboard-local-account-submit:hover {
    background: var(--dashboard-naver-green-hover);
}

.dashboard-local-account-submit:active {
    filter: brightness(0.95);
}

.dashboard-local-account-submit:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--dashboard-naver-green) 80%, white 20%);
    outline-offset: 2px;
}

.dashboard-local-account-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 108px;
}

.dashboard-local-account-summary__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.dashboard-local-account-summary__label {
    flex-shrink: 0;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--dashboard-naver-green);
}

.dashboard-local-account-summary__id {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
    word-break: break-all;
    min-width: 0;
    max-width: 100%;
}

.dashboard-local-account-summary__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.dashboard-local-account-logout-btn {
    padding: 6px 12px;
    font-size: calc(12px * var(--ui-font-scale));
    min-width: 88px;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .dashboard-local-account-summary__actions {
        flex-direction: column;
    }

    .dashboard-local-account-logout-btn {
        width: 100%;
    }
}

/* 기본 창 너비(~910px)에서도 좌·우 2열 유지. 좁은 폭(모바일/초소형 창)에서만 세로 스택 */
@media (max-width: 640px) {
    .dashboard-top-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-info-card {
    min-width: 0;
    padding: 10px 12px 11px;
    border-radius: 12px;
    border: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-card);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

/* 앱 업데이트 배너 — 최신 버전 있을 때 상단 고정 */
.app-update-banner {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: linear-gradient(90deg, #1a3a2a 0%, #243d28 50%, #1a3324 100%);
    border-bottom: 1px solid rgba(110, 190, 130, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.app-update-banner[hidden] {
    display: none !important;
}
.app-update-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    max-width: 100%;
}
.app-update-banner__text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    min-width: 0;
    font-size: calc(12px * var(--ui-font-scale, 1));
    line-height: 1.4;
    color: #e8f5ec;
}
.app-update-banner__title {
    font-weight: 700;
    color: #9fe3b0;
}
.app-update-banner__detail {
    color: rgba(232, 245, 236, 0.88);
    word-break: keep-all;
}
.app-update-banner__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.app-update-banner__btn {
    padding: 6px 12px;
    font-size: calc(12px * var(--ui-font-scale, 1));
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(140, 220, 160, 0.45);
    background: rgba(70, 160, 100, 0.35);
    color: #f2fff5;
    cursor: pointer;
}
.app-update-banner__btn:hover {
    background: rgba(80, 180, 115, 0.5);
}
.app-update-banner__btn:disabled {
    opacity: 0.55;
    cursor: wait;
}
.app-update-banner__dismiss {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(232, 245, 236, 0.75);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.app-update-banner__dismiss:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dashboard-info-card__head {
    margin-bottom: 9px;
}

.dashboard-info-card__body {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    color: var(--theme-text-secondary);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.dashboard-info-card--notice {
    border-color: rgba(189, 78, 20, 0.35);
}

.dashboard-info-card--update {
    border-color: rgba(99, 102, 241, 0.35);
}

.dashboard-info-card--link {
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        border-color 0.12s ease;
}

.dashboard-info-card--link:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 14px 34px rgba(0, 0, 0, 0.5),
        0 3px 10px rgba(0, 0, 0, 0.32);
}

.dashboard-info-card--link:active {
    transform: translateY(0);
}

.dashboard-info-card--link:focus-visible {
    outline: 2px solid rgba(189, 78, 20, 0.55);
    outline-offset: 2px;
}

.dashboard-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.6em;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 2px 6px rgba(0, 0, 0, 0.35);
}

.dashboard-info-badge--notice {
    color: #ffcba8;
    background: rgba(189, 78, 20, 0.2);
    border-color: rgba(189, 78, 20, 0.45);
}

.dashboard-info-badge--update {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(129, 140, 248, 0.45);
}

.dashboard-readiness-board {
    margin-bottom: 8px;
    padding: 8px 11px 9px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-bg-card);
    box-shadow: var(--theme-shadow);
}

.dashboard-readiness-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.dashboard-readiness-head--actions-only {
    justify-content: flex-end;
    margin-bottom: 6px;
}

.dashboard-readiness-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-readiness-checklist .dashboard-readiness-row {
    padding: 5px 0;
}

.dashboard-readiness-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.dashboard-readiness-row__head .dashboard-readiness-name {
    flex: 1 1 auto;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.dashboard-readiness-row__head .dashboard-ready-pill {
    flex-shrink: 0;
}

.dashboard-readiness-name {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.dashboard-ready-pill {
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.dashboard-ready-pill--ok {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.dashboard-ready-pill--warn {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.dashboard-ready-pill--muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--theme-text-muted);
    border: 1px solid var(--theme-border);
}

.dashboard-ready-pill.dashboard-ready-pill--plan-hint {
    white-space: normal;
    max-width: min(11.5rem, 46vw);
    text-align: center;
    line-height: 1.25;
    padding: 4px 10px;
}

.dashboard-ready-pill--running {
    background: rgba(189, 78, 20, 0.18);
    color: #fdba74;
    border: 1px solid rgba(189, 78, 20, 0.4);
}

.dashboard-status-running-summary {
    margin: 0 0 6px 0;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-secondary);
    line-height: 1.35;
}

.dashboard-status-running-note {
    margin: 8px 0 0 0;
    font-size: calc(10px * var(--ui-font-scale));
    line-height: 1.35;
    color: var(--theme-text-muted);
}

.dashboard-run-opt-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--theme-text-secondary);
}

.dashboard-run-opt-label--inline {
    gap: 4px;
    font-size: calc(11px * var(--ui-font-scale));
}

.dashboard-run-opt-label input {
    accent-color: var(--theme-accent);
}

.dashboard-run-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-run-toolbar .btn:focus-visible {
    outline: 2px solid rgba(189, 78, 20, 0.45);
    outline-offset: 2px;
}

.dashboard-run-toolbar__batch {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-run-toolbar__batch-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.dashboard-run-toolbar__batch-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dashboard-run-toolbar__batch-wrap {
    width: 100%;
}

.dashboard-run-toolbar__stop-wrap {
    display: flex;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    box-sizing: border-box;
}

/* 기본 button / .btn 이 inline 성격이라 가로 100%가 안 먹는 경우 대비 */
.dashboard-run-toolbar__stop-btn {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 대시보드: 실행 옵션(작업 수·간격) — 상단 「작업 설정」 탭과 역할 구분 */
.dashboard-exec-options-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    flex-shrink: 0;
    margin: 0;
    padding: 0 0 2px;
}

.dashboard-exec-options-bar .btn.dashboard-exec-options-bar__btn {
    flex-shrink: 0;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 600;
    padding: 2px 8px;
    min-height: 0;
    height: auto;
    line-height: 1.3;
    border-radius: 6px;
    box-shadow: none;
}

.dashboard-exec-options-bar__hint {
    flex: 1 1 10rem;
    min-width: 0;
    margin: 0;
    font-size: calc(10px * var(--ui-font-scale));
    line-height: 1.35;
    color: var(--theme-text-muted);
    text-align: right;
}

#dashboard-run-hint.dashboard-run-hint--countdown-active {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0 0.25rem;
    max-width: 100%;
}

.dashboard-run-hint-countdown {
    color: var(--theme-accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-shadow: 0 0 1px color-mix(in srgb, var(--theme-accent) 35%, transparent);
    white-space: nowrap;
}

.dashboard-exec-options-lead {
    margin: 0 0 14px;
    font-size: calc(13px * var(--ui-font-scale));
    line-height: 1.5;
    color: var(--theme-text);
    opacity: 0.92;
}

.dashboard-exec-options-interval-lead {
    margin: 0 0 10px;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    color: var(--theme-text-secondary);
}

.dashboard-exec-options-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--theme-border);
}

.dashboard-exec-options-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.dashboard-exec-options-section__title {
    display: block;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
    opacity: 0.88;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.dashboard-exec-options-static {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.5;
    color: var(--theme-text-secondary);
}

.dashboard-exec-options-field__hint-inline {
    font-weight: 500;
    color: var(--theme-text-muted);
    font-size: calc(11px * var(--ui-font-scale));
}

.dashboard-exec-options-modal-body .dashboard-exec-options-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.dashboard-exec-options-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
    align-items: start;
}

.dashboard-exec-options-section .dashboard-exec-options-field {
    margin-bottom: 10px;
}

.dashboard-exec-options-section .dashboard-exec-options-row--2 .dashboard-exec-options-field {
    margin-bottom: 0;
}

.dashboard-exec-options-section .dashboard-exec-options-field:last-child {
    margin-bottom: 0;
}

.dashboard-exec-options-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.dashboard-exec-options-field--stack {
    min-width: 0;
}

.dashboard-exec-options-field--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 6.5rem);
    align-items: center;
    gap: 10px 20px;
}

.dashboard-exec-options-field--checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px 14px;
    grid-template-columns: unset;
}

.dashboard-exec-options-field--checkbox-row .dashboard-exec-options-field__lbl {
    flex: 1;
    line-height: 1.35;
}

.dashboard-exec-options-field--checkbox-row input[type='checkbox'] {
    margin-top: 0.15em;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.dashboard-exec-options-field__lbl {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    font-weight: 600;
}

.dashboard-exec-options-field__input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .dashboard-exec-options-row--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .dashboard-exec-options-field--inline {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dashboard-exec-options-field--inline .dashboard-exec-options-field__input {
        max-width: 12rem;
    }
}

/* 대시보드 카드: 소통 목표 댓글·좋아요 | 서이추 */
.dashboard-readiness-card-hit__metrics--split {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    width: 100%;
}

.dashboard-readiness-task-desc {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 500;
    line-height: 1.35;
    color: var(--theme-text-secondary);
    text-align: left;
}

.dashboard-task-dual-ratio {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
}

.dashboard-task-dual-ratio__sep {
    color: var(--theme-text-muted);
    font-weight: 400;
    font-size: calc(11px * var(--ui-font-scale));
    opacity: 0.75;
    user-select: none;
}

.dashboard-readiness-task-stats {
    display: flex;
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.dashboard-task-progress-ratio {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.dashboard-task-progress-ratio__done {
    color: rgba(34, 197, 94, 0.95);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dashboard-task-progress-ratio__slash {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 0 1px;
    user-select: none;
}

.dashboard-task-progress-ratio__goal {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dashboard-readiness-metric-skip {
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 500;
    color: var(--theme-text-muted);
    white-space: nowrap;
}

.dashboard-readiness-metric-skip strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-left: 3px;
    color: rgba(224, 108, 117, 0.95);
}

.modal-container.alert-modal .modal-body.dashboard-run-pick-modal-body {
    padding-top: 8px;
}

.dashboard-run-pick-modal-hint {
    margin: 0 0 14px;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    color: var(--theme-text-muted);
}

.dashboard-run-pick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-run-pick-row {
    margin: 0;
    padding: 0;
}

/* 네이티브 체크박스는 보이지 않게(스크린 리더·키보드는 유지) */
.dashboard-run-pick-card .dashboard-run-modal-opt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.dashboard-run-pick-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
    box-sizing: border-box;
}

.dashboard-run-pick-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-run-pick-card:has(.dashboard-run-modal-opt:checked) {
    border-color: var(--theme-accent);
    background: linear-gradient(
        135deg,
        rgba(189, 78, 20, 0.12) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    box-shadow: 0 0 0 1px rgba(189, 78, 20, 0.35);
}

.dashboard-run-pick-card:has(.dashboard-run-modal-opt:focus-visible) {
    outline: 2px solid var(--theme-accent);
    outline-offset: 2px;
}

/* 라디오형 원 + 선택 시 내부 점(복수 선택 가능한 체크박스) */
.dashboard-run-pick-radio {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.2);
    display: grid;
    place-items: center;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-run-pick-radio::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--theme-accent);
    transform: scale(0);
    opacity: 0;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.15s ease;
}

.dashboard-run-pick-card:has(.dashboard-run-modal-opt:checked) .dashboard-run-pick-radio {
    border-color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.15);
    box-shadow: 0 0 0 1px rgba(189, 78, 20, 0.4);
}

.dashboard-run-pick-card:has(.dashboard-run-modal-opt:checked) .dashboard-run-pick-radio::after {
    transform: scale(1);
    opacity: 1;
}

.dashboard-run-pick-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-run-pick-card__title {
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    line-height: 1.3;
}

.dashboard-run-pick-card__desc {
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.35;
    color: var(--theme-text-muted);
}

.dashboard-run-pick-row.is-plan-locked .dashboard-run-pick-card {
    cursor: not-allowed;
    opacity: 0.52;
    pointer-events: none;
}

.dashboard-readiness-row.is-plan-locked .dashboard-readiness-card-hit {
    opacity: 0.68;
}

/* 선택/전체 실행 — 동일 CTA */
.dashboard-run-toolbar__batch-actions .btn {
    padding: 10px 20px;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--theme-text);
    background: var(--theme-accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.dashboard-run-toolbar__batch-actions .btn:hover:not(:disabled) {
    background: var(--theme-accent-hover);
    box-shadow: 0 2px 8px var(--theme-accent-glow);
}

.dashboard-run-toolbar__batch-actions .btn:active:not(:disabled) {
    background: #94350c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.dashboard-run-toolbar__batch-actions .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn.btn-text {
    background: transparent;
    border: none;
    color: var(--theme-accent);
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 600;
    padding: 2px 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    box-shadow: none;
}

.btn.btn-text:hover {
    color: var(--theme-accent-hover, #d46228);
}

.dashboard-readiness-board--embedded {
    margin: 0;
    padding: 8px 10px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.14);
    box-shadow: none;
    min-width: 0;
}

/* gap + 행 하단 border가 겹치면 구분선 아래 빈 칸이 커져 어색함 — 패딩만으로 간격 */
.dashboard-readiness-board--embedded .dashboard-readiness-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-readiness-board--embedded
    .dashboard-readiness-checklist:not(.dashboard-readiness-checklist--cards)
    .dashboard-readiness-row {
    padding: 11px 8px;
    margin: 0;
}

/* 작업 카드: 항목마다 전체 너비 한 줄씩 세로 스택, 내부는 가로 정렬 */
.dashboard-readiness-board--embedded .dashboard-readiness-checklist.dashboard-readiness-checklist--cards {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* 전역 .dashboard-readiness-row 가 가로 flex라 카드 내부가 두 덩어리로 쪼개짐 → 세로 카드로 강제 */
.dashboard-readiness-board--embedded .dashboard-readiness-checklist--cards > .dashboard-readiness-row--card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border-bottom: none;
    min-width: 0;
    width: 100%;
    padding: 0;
}

.dashboard-readiness-board--embedded .dashboard-readiness-checklist--cards > .dashboard-readiness-row--card:last-of-type {
    border-bottom: none;
}

.dashboard-readiness-board--embedded .dashboard-readiness-row--card {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.dashboard-readiness-board--embedded .dashboard-readiness-row--card .dashboard-readiness-name {
    font-weight: 600;
    color: var(--theme-text);
}

.dashboard-readiness-meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px 12px;
}

.dashboard-readiness-meta__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    font-size: calc(10px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.dashboard-readiness-meta__lbl {
    flex-shrink: 0;
    color: var(--theme-text-muted);
    opacity: 0.95;
}

.dashboard-readiness-meta__item strong {
    flex: 1 1 auto;
    min-width: 0;
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-secondary);
    text-align: right;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.dashboard-readiness-meta__item strong.is-error {
    color: #ff6b6b;
}

/* 작업 카드 전체 클릭 — 제목·뱃지 + 목표·성공·스킵 */
.dashboard-readiness-card-hit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.3;
    text-align: left;
    color: inherit;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-readiness-card-hit:hover {
    background: rgba(189, 78, 20, 0.12);
    border-color: rgba(189, 78, 20, 0.32);
    box-shadow: 0 0 0 1px rgba(189, 78, 20, 0.12);
}

.dashboard-readiness-card-hit:focus-visible {
    outline: 2px solid rgba(189, 78, 20, 0.55);
    outline-offset: 2px;
}

.dashboard-readiness-card-hit__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.dashboard-readiness-card-hit__metrics {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 500;
    color: var(--theme-text-muted);
    line-height: 1.35;
}

.dashboard-readiness-metric {
    white-space: nowrap;
}

.dashboard-readiness-metric strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-left: 1px;
}

/* 진행 비율·스킵은 .dashboard-task-progress-ratio / .dashboard-readiness-metric-skip 에서 색 지정 */

.dashboard-readiness-metric__sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
    font-weight: 400;
}

/* 단일 패널 안 좌(실행)·우(로그) — 참고 UI처럼 한 덩어리 */
.dashboard-workbench {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    min-height: min(46.8vh, 390px);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-bg-card);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
}

.dashboard-workbench__exec {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
}

.dashboard-wb-hint {
    margin: 0;
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.35;
    color: var(--theme-text-muted);
}

.dashboard-workbench__log {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    height: 100%;
    background: #0a0a0a;
    border-top: 1px solid var(--theme-border);
}

.dashboard-log-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

/* 한 덩어리 세그먼트 — 우측 정렬·컴팩트 */
.dashboard-log-toolbar__btngroup {
    display: inline-flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* .btn / .btn-secondary 보다 구체성 확보 */
.dashboard-workbench__log .dashboard-log-toolbar__btngroup .btn.dashboard-log-toolbar__btn {
    padding: 3px 10px;
    min-height: 0;
    height: auto;
    margin: 0;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 600;
    line-height: 1.35;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 22, 0.92);
    color: rgba(245, 245, 245, 0.88);
    box-shadow: none;
    white-space: nowrap;
}

.dashboard-workbench__log .dashboard-log-toolbar__btngroup .btn.dashboard-log-toolbar__btn:last-child {
    border-right: none;
}

.dashboard-workbench__log .dashboard-log-toolbar__btngroup .btn.dashboard-log-toolbar__btn:hover {
    background: rgba(189, 78, 20, 0.14);
    color: #fdba74;
}

.dashboard-workbench__log .dashboard-log-toolbar__btngroup .btn.dashboard-log-toolbar__btn:focus-visible {
    outline: 2px solid rgba(189, 78, 20, 0.5);
    outline-offset: -2px;
    z-index: 1;
}

.log-area.log-area--workbench {
    flex: 1 1 0;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 8px 11px 10px;
    min-height: 0;
    max-height: none;
    width: 100%;
    box-sizing: border-box;
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.32;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #0a0a0a;
    color: #e8e8e8;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(0, 0, 0, 0.15);
}

.log-area.log-area--workbench::-webkit-scrollbar {
    width: 8px;
}

.log-area.log-area--workbench::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
}

.log-area.log-area--workbench::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* 터미널처럼 줄 사이 구분 없이 연속, 프롬프트 세그먼트만 색 구분 */
.log-area.log-area--workbench .log-entry {
    display: block;
    margin: 0;
    padding: 1px 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    word-wrap: break-word;
}

.log-area.log-area--workbench .log-entry__seg--time {
    color: #61afef;
    font-weight: 500;
}

.log-area.log-area--workbench .log-entry__chev {
    color: #5c6370;
    user-select: none;
}

.log-area.log-area--workbench .log-entry__msg {
    color: #e8e8e8;
}

.log-area.log-area--workbench .log-entry--system .log-entry__msg {
    color: #cbd5e1;
}

.log-area.log-area--workbench .log-entry--success .log-entry__msg {
    color: #98c379;
}

.log-area.log-area--workbench .log-entry--warn .log-entry__msg {
    color: #e5c07b;
}

.log-area.log-area--workbench .log-entry--error .log-entry__msg {
    color: #e06c75;
}

.log-area.log-area--workbench .log-entry--run .log-entry__msg {
    color: #d19a66;
}

.log-area.log-area--workbench .log-entry--info .log-entry__msg {
    color: #56b6c2;
}

@media (min-width: 640px) {
    .dashboard-workbench {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: min(52vh, 468px);
    }

    .dashboard-workbench__log {
        border-top: none;
        border-left: 1px solid var(--theme-border);
        min-height: 0;
    }

    .log-area.log-area--workbench {
        min-height: 0;
        max-height: none;
    }

    /* 좌측(실행) 열을 로그 열과 동일 높이로 채우고, 작업 카드가 남는 세로 공간을 나눠 가짐 */
    .dashboard-workbench__exec {
        align-self: stretch;
        min-height: 0;
        height: 100%;
    }

    /* 작업 카드: 로그 열과 맞춘 높이 안에서 세로로 균등 배분 (원래 대형 카드) */
    .dashboard-workbench__exec > .dashboard-readiness-board--embedded {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 10px 12px 12px;
    }

    .dashboard-workbench__exec .dashboard-readiness-board--embedded #dashboard-status-idle {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .dashboard-workbench__exec .dashboard-readiness-board--embedded .dashboard-readiness-checklist--cards {
        flex: 1 1 auto;
        min-height: 0;
        gap: 8px;
    }

    .dashboard-workbench__exec .dashboard-readiness-board--embedded .dashboard-readiness-checklist--cards > .dashboard-readiness-row--card {
        flex: 1 1 0;
        min-height: 4.75rem;
    }

    .dashboard-workbench__exec .dashboard-readiness-row--card .dashboard-readiness-card-hit {
        flex: 1 1 auto;
        min-height: 100%;
        padding: 12px 14px;
        gap: 10px;
        justify-content: center;
    }

    .dashboard-workbench__exec .dashboard-readiness-row--card .dashboard-readiness-name {
        font-size: calc(13px * var(--ui-font-scale));
    }

    .dashboard-workbench__exec .dashboard-readiness-card-hit__metrics {
        font-size: calc(12px * var(--ui-font-scale));
    }

    .dashboard-workbench__exec .dashboard-ready-pill {
        padding: 4px 10px;
        font-size: calc(11px * var(--ui-font-scale));
    }

    .dashboard-workbench__exec > .dashboard-run-toolbar {
        flex-shrink: 0;
        margin-top: auto;
    }
}

@media (max-width: 639px) {
    .dashboard-info-grid {
        grid-template-columns: 1fr;
    }

    .engage-settings__grid {
        grid-template-columns: 1fr;
    }

    .engage-inline-form {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .dashboard-readiness-meta__item {
        flex: 1 1 100%;
    }
}

.dashboard-header {
    margin-bottom: 20px;
}

.dashboard-title {
    margin: 0 0 8px 0;
    font-size: calc(22px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.dashboard-lead {
    margin: 0;
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.55;
    max-width: 720px;
}

.dashboard-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: var(--theme-shadow);
}

.dashboard-card-title {
    margin: 0 0 10px 0;
    font-size: calc(15px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.dashboard-card-sub {
    margin: -4px 0 14px 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    line-height: 1.45;
}

.dashboard-readiness-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-readiness-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--theme-border);
}

.dashboard-readiness-row:last-of-type {
    border-bottom: none;
}

.dashboard-readiness-label {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-secondary);
}

.dashboard-pill {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.dashboard-pill--ok {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.dashboard-pill--warn {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.dashboard-pill--muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--theme-text-muted);
    border: 1px solid var(--theme-border);
}

.dashboard-readiness-hint {
    margin: 10px 0 0 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-accent);
    line-height: 1.45;
    min-height: 1.2em;
}

.dashboard-inline-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.dashboard-module-card {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 148px;
}

.dashboard-module-card--accent {
    border-color: rgba(189, 78, 20, 0.35);
    background: rgba(189, 78, 20, 0.06);
}

.dashboard-module-title {
    margin: 0;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.dashboard-module-desc {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.45;
    flex: 1;
}

.dashboard-module-status {
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-muted);
}

.dashboard-module-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.dashboard-run-card .dashboard-run-hint {
    margin: 0 0 14px 0;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.5;
}

.dashboard-unified-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--theme-border);
}

.dashboard-subsection-title {
    margin: 0 0 6px 0;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.dashboard-subsection-lead {
    margin: 0 0 12px 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.45;
    max-width: 640px;
}

.dashboard-unified-cycle-placeholder {
    border: 1px dashed var(--theme-border);
    border-radius: 10px;
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 72px;
}

.dashboard-placeholder-text {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    line-height: 1.45;
}

.dashboard-run-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dashboard-run-note {
    margin: 12px 0 0 0;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.task-page-header {
    padding: 20px 24px 0;
    max-width: 960px;
    margin: 0 auto;
}

.task-page-header h2 {
    margin: 0 0 8px 0;
    font-size: calc(20px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.task-page-lead {
    margin: 0 0 8px 0;
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.5;
    max-width: 720px;
}

/* 작업 설정 (통합 탭) */
.work-settings-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 20px 32px;
}

.work-settings-header {
    margin-bottom: 24px;
}

.work-settings-title {
    margin: 0 0 8px 0;
    font-size: calc(22px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.work-settings-lead {
    margin: 0;
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.55;
    max-width: 720px;
}

.work-settings-section {
    scroll-margin-top: 16px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-card-bg);
    box-shadow: var(--theme-shadow);
}

.work-settings-section-title {
    margin: 0 0 6px 0;
    font-size: calc(17px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.work-settings-section-lead {
    margin: 0 0 14px 0;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    line-height: 1.45;
}

.work-settings-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--theme-border);
}

.work-settings-subtab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 12px;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    font-family: inherit;
    color: var(--theme-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.work-settings-subtab:hover {
    color: var(--theme-text);
    background: rgba(255, 255, 255, 0.06);
}

.work-settings-subtab.active {
    color: var(--theme-text);
    background: var(--theme-accent);
    border-color: rgba(189, 78, 20, 0.6);
    box-shadow: 0 2px 8px var(--theme-accent-glow);
}

.work-settings-subtab.is-plan-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.work-settings-subtab.is-plan-locked:hover {
    color: var(--theme-text-secondary);
    background: transparent;
}

.work-settings-panels {
    min-height: 0;
}

.work-settings-panel:not(.active) {
    display: none !important;
}

.work-settings-panel.active {
    display: block;
}

.work-settings-empty-space {
    min-height: 320px;
    width: 100%;
}

.work-settings-section {
    overflow: hidden;
}

/* 소통 작업 설정 UI */
.engage-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 작업 설정 > 이웃 관리 탭 — 소통과 동일한 세로 블록(ON/OFF + 펼침) */
.neighbor-settings.engage-settings {
    width: 100%;
}

.neighbor-settings-row--twocol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.neighbor-settings-row--twocol > * {
    min-width: 0;
}

@media (max-width: 639px) {
    .neighbor-settings-row--twocol {
        grid-template-columns: 1fr;
    }
}

.neighbor-group-login-gate strong {
    color: var(--theme-text);
    font-weight: 700;
}

#neighbor-buddy-invite-modal .modal-container.neighbor-buddy-invite-modal-container {
    box-sizing: border-box;
    max-width: min(720px, 94vw);
    width: min(720px, 94vw);
    max-height: min(85vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.neighbor-buddy-invite-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1 1 auto;
    max-height: min(62vh, 560px);
    overflow-y: auto;
}

.neighbor-buddy-invite-modal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.neighbor-buddy-invite-modal-meta {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    font-variant-numeric: tabular-nums;
}

.neighbor-buddy-invite-modal-empty {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.neighbor-buddy-invite-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.neighbor-buddy-invite-item {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.02);
    list-style: none;
}

.neighbor-buddy-invite-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.neighbor-buddy-invite-item__nick {
    margin: 0;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.neighbor-buddy-invite-item__id {
    margin: 0;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    font-family: ui-monospace, monospace;
}

.neighbor-buddy-invite-item__date {
    margin: 0;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    white-space: nowrap;
}

.neighbor-buddy-invite-item__msg {
    margin: 0;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.5;
    color: var(--theme-text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

#neighbor-group-modal .modal-container.neighbor-group-modal-container {
    box-sizing: border-box;
    max-width: min(600px, 62vw);
    width: min(600px, 62vw);
    max-height: min(62vh, 620px);
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#neighbor-group-modal .modal-body.neighbor-group-modal-body {
    max-height: min(44vh, 400px);
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 8px;
}

.neighbor-group-modal-status {
    margin: 0 0 8px;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.neighbor-group-modal-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.neighbor-group-modal-toolbar .neighbor-group-modal-create__input {
    flex: 1 1 8rem;
    min-width: 0;
}

#neighbor-group-modal #neighbor-group-add-btn {
    flex-shrink: 0;
    padding: 3px 8px;
    font-size: calc(10px * var(--ui-font-scale));
    min-height: 0;
    line-height: 1.3;
}

.neighbor-group-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.neighbor-group-modal-list-lead {
    margin-bottom: 8px !important;
}

.neighbor-group-modal-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--theme-border);
}

.neighbor-group-modal-row:last-child {
    border-bottom: none;
}

.neighbor-group-modal-row__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.neighbor-group-modal-row__actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.neighbor-group-modal-row__actions .btn {
    font-size: calc(10px * var(--ui-font-scale));
    padding: 2px 6px;
    min-height: 0;
    line-height: 1.25;
}

.neighbor-group-modal-row__pick {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.neighbor-group-modal-row__pick.neighbor-group-radio {
    position: relative;
}

#neighbor-group-modal .neighbor-group-radio__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#neighbor-group-modal .neighbor-group-radio__mark {
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid var(--theme-border-strong);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#neighbor-group-modal .neighbor-group-radio__input:focus-visible + .neighbor-group-radio__mark {
    outline: 2px solid var(--theme-accent);
    outline-offset: 2px;
}

#neighbor-group-modal .neighbor-group-radio__input:checked + .neighbor-group-radio__mark {
    border-color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.22);
    box-shadow: inset 0 0 0 1px rgba(189, 78, 20, 0.45);
}

#neighbor-group-modal .neighbor-group-radio__input:checked + .neighbor-group-radio__mark::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-accent);
}

.neighbor-group-modal-row__name {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    overflow-wrap: anywhere;
}

.neighbor-group-modal-row__meta {
    margin-left: 28px;
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.4;
    color: var(--theme-text-muted);
    font-variant-numeric: tabular-nums;
}

.neighbor-group-modal-empty {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    margin: 8px 0 0;
}

.engage-settings__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* 소통 작업 최상단: 댓글 방식 + AI·수동 설정 5:5 */
.engage-global-comment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 639px) {
    .engage-global-comment-row {
        grid-template-columns: 1fr;
    }
}

.engage-global-comment-row__mode {
    min-width: 0;
}

.engage-global-comment-row__settings {
    display: flex;
    min-width: 0;
    align-items: stretch;
}

.engage-global-comment-row__settings > .engage-card {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
}

.engage-card__head--compact {
    margin-bottom: 4px;
}

/* 댓글 작성 방식: 세그먼트 토글 (네이티브 라디오 숨김) */
.engage-segment {
    box-sizing: border-box;
}

.engage-comment-mode-segment {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 3px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--theme-border);
    gap: 2px;
}

.engage-segment__option {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.engage-segment__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    border: 0;
}

.engage-segment__label {
    display: block;
    padding: 9px 14px;
    text-align: center;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 500;
    line-height: 1.25;
    border-radius: 8px;
    color: var(--theme-text-secondary);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.engage-segment__option:hover .engage-segment__label {
    color: var(--theme-text);
}

.engage-segment__input:checked + .engage-segment__label {
    background: rgba(91, 141, 239, 0.28);
    color: var(--theme-text);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.engage-segment__input:focus-visible + .engage-segment__label {
    outline: 2px solid var(--theme-accent, #5b8def);
    outline-offset: 2px;
}

.engage-card__title-badge {
    display: inline-block;
    margin-left: 6px;
    font-weight: 500;
    font-size: 0.78em;
    opacity: 0.72;
    vertical-align: middle;
}

.engage-manual-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.engage-manual-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.engage-manual-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.engage-manual-tab.is-active {
    border-color: var(--theme-accent, #5b8def);
    background: rgba(91, 141, 239, 0.12);
    font-weight: 600;
}

.engage-manual-tab-hint {
    margin-bottom: 6px;
}

.engage-card {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    min-width: 0;
}

.engage-card.is-disabled {
    opacity: 0.55;
}

.engage-card.is-hidden {
    display: none;
}

.engage-ai-preset-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.engage-ai-preset-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.engage-ai-preset-row:hover {
    border-color: color-mix(in srgb, var(--theme-accent) 35%, var(--theme-border));
    background: rgba(255, 255, 255, 0.04);
}

.engage-ai-preset-row:has(input:focus-visible) {
    outline: none;
    border-color: color-mix(in srgb, var(--theme-accent) 55%, var(--theme-border));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent-glow) 45%, transparent);
}

.engage-ai-preset-row input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.engage-ai-preset-row__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.engage-ai-preset-row__title {
    font-weight: 600;
    font-size: calc(14px * var(--ui-font-scale));
}

.engage-ai-preset-row__credit {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-accent);
    font-weight: 500;
}

.engage-ai-preset-row__desc {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.45;
}

#engage-ai-comment-modal .engage-ai-settings-modal {
    max-width: min(600px, 96vw);
    width: min(600px, 96vw);
    max-height: min(88vh, 820px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#engage-ai-comment-modal .engage-ai-settings-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#engage-ai-comment-modal .modal-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.engage-ai-settings-modal__body {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: hidden;
    padding-bottom: 4px;
}

.engage-ai-modal-balance-banner {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.engage-ai-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    flex: 1;
    min-height: 0;
}

.engage-ai-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.engage-ai-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin: 0;
    padding: 6px 4px;
    min-height: 0;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.engage-ai-tab:hover {
    border-color: color-mix(in srgb, var(--theme-accent) 35%, var(--theme-border));
}

.engage-ai-tab:has(input:checked) {
    border-color: var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-accent) 40%, transparent);
}

.engage-ai-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.engage-ai-tab__label {
    font-weight: 600;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.25;
}

.engage-ai-tab__credit {
    font-size: calc(10px * var(--ui-font-scale));
    color: var(--theme-accent);
    font-weight: 500;
    line-height: 1.2;
}

#engage-ai-comment-modal .engage-ai-modal-balance-banner {
    margin-bottom: 6px;
    padding: 8px 12px;
    font-size: calc(12px * var(--ui-font-scale));
}

.engage-ai-tier-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
}

.engage-ai-preset-help {
    position: relative;
    flex-shrink: 0;
}

.engage-ai-tier-oneline {
    margin: 0;
    padding: 0 2px;
    flex: 1;
    min-width: 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.4;
}

.engage-ai-preset-help__btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text-secondary);
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.engage-ai-preset-help__btn:hover,
.engage-ai-preset-help__btn[aria-expanded="true"] {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
}

.engage-ai-preset-compare-popover {
    display: none;
    position: fixed;
    z-index: 10050;
    width: auto;
    max-width: min(580px, calc(100vw - 24px));
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.engage-ai-preset-compare-popover.is-open {
    display: block;
    pointer-events: auto;
}

.engage-ai-preset-compare-popover__inner {
    position: relative;
    overflow: visible;
    padding: 12px 14px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, var(--theme-border));
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--theme-bg-elevated) 88%, #fff 12%) 0%,
        var(--theme-bg-elevated) 48%,
        color-mix(in srgb, var(--theme-bg-elevated) 96%, #000 4%) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px color-mix(in srgb, var(--theme-accent) 12%, transparent),
        0 6px 14px rgba(0, 0, 0, 0.28),
        0 18px 40px rgba(0, 0, 0, 0.42),
        0 32px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
    animation: engage-ai-preset-tooltip-in 0.2s ease-out;
}

.engage-ai-preset-compare-popover__inner::before {
    content: "";
    position: absolute;
    top: var(--engage-ai-tooltip-arrow-top, 28px);
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 0 3px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--theme-accent) 22%, var(--theme-border));
    border-right: 1px solid color-mix(in srgb, var(--theme-accent) 22%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-bg-elevated) 88%, #fff 12%);
    box-shadow: 3px -3px 8px rgba(0, 0, 0, 0.18);
    transform: rotate(45deg);
    z-index: 1;
}

@keyframes engage-ai-preset-tooltip-in {
    from {
        opacity: 0;
        transform: translateX(10px) translateY(-2px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-2px) scale(1);
    }
}

.engage-ai-preset-compare-popover__title {
    margin: 0 0 10px;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--theme-text-primary);
}

.engage-ai-config-zone {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.engage-ai-config-scroll {
    flex: 1;
    min-height: 120px;
    max-height: none;
    overflow-y: auto;
    padding: 12px 14px;
}

.engage-ai-lite-panel__lead {
    margin: 0;
    padding: 8px 0;
    font-size: calc(13px * var(--ui-font-scale));
    line-height: 1.5;
    color: var(--theme-text-secondary);
    text-align: center;
}

.engage-ai-settings-section__hint--short {
    margin-bottom: 8px;
}

.engage-ai-chip-status {
    margin: 8px 0 0;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.45;
}

.engage-ai-chip-status.is-rotate {
    color: var(--theme-accent);
}

.engage-ai-ad-copy-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 88px;
    margin-bottom: 8px;
    resize: vertical;
    font-size: calc(13px * var(--ui-font-scale));
    line-height: 1.45;
    flex: none;
}

.engage-ai-field-full {
    display: block;
    width: 100%;
    box-sizing: border-box;
    flex: none;
}

.engage-ai-ad-copy-note {
    margin: 0;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.45;
}

.engage-ai-ad-copy-note code {
    font-size: calc(10px * var(--ui-font-scale));
    color: var(--theme-text-primary);
}

.engage-ai-lite-panel.is-hidden,
.engage-ai-settings-panel.is-hidden,
.engage-ai-settings-section.is-hidden,
.engage-ai-pro-only.is-hidden,
.engage-ai-subfield.is-hidden,
.engage-ai-persona-block.is-hidden {
    display: none !important;
}

.engage-ai-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.engage-ai-settings-section--pro-only .engage-ai-settings-section__title::after {
    content: "프로";
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 600;
    vertical-align: middle;
    color: var(--theme-accent);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 45%, transparent);
    background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
}

.engage-ai-preset-compare-popover .engage-ai-compare-table-wrap {
    overflow: visible;
}

.engage-ai-preset-compare-popover .engage-ai-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.35;
    table-layout: auto;
}

.engage-ai-preset-compare-popover .engage-ai-compare-table th,
.engage-ai-preset-compare-popover .engage-ai-compare-table td {
    padding: 7px 9px;
    border: 1px solid var(--theme-border);
    text-align: center;
    vertical-align: middle;
}

.engage-ai-preset-compare-popover .engage-ai-compare-table thead th {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    font-size: calc(12px * var(--ui-font-scale));
    white-space: nowrap;
}

.engage-ai-preset-compare-popover .engage-ai-compare-table tbody th[scope="row"] {
    text-align: left;
    font-weight: 600;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-primary);
    white-space: nowrap;
}

.engage-ai-preset-compare-popover .engage-ai-compare-table td {
    white-space: normal;
    word-break: keep-all;
    min-width: 72px;
}

.engage-ai-preset-compare-popover .engage-ai-compare-yes {
    color: var(--theme-accent);
    font-weight: 700;
    font-size: calc(13px * var(--ui-font-scale));
}

.engage-ai-preset-compare-popover .engage-ai-compare-no {
    color: var(--theme-text-secondary);
    opacity: 0.5;
    font-size: calc(13px * var(--ui-font-scale));
}

.engage-ai-preset-compare-popover[data-active-preset="lite"] .engage-ai-compare-table :is(th, td):nth-child(2),
.engage-ai-preset-compare-popover[data-active-preset="standard"] .engage-ai-compare-table :is(th, td):nth-child(3),
.engage-ai-preset-compare-popover[data-active-preset="pro"] .engage-ai-compare-table :is(th, td):nth-child(4) {
    background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 28%, transparent);
}

.engage-ai-settings-section {
    padding: 12px 0 0;
    border-top: 1px solid var(--theme-border);
}

.engage-ai-settings-section:first-child {
    border-top: none;
    padding-top: 0;
}

.engage-ai-settings-section__title {
    margin: 0 0 6px;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
}

.engage-ai-settings-section__hint {
    margin: 0 0 8px;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.4;
}

.engage-ai-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.engage-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.03);
    font-size: calc(13px * var(--ui-font-scale));
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.engage-ai-chip:hover {
    border-color: color-mix(in srgb, var(--theme-accent) 40%, var(--theme-border));
}

.engage-ai-chip:has(input:checked) {
    border-color: var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
}

.engage-ai-chip input {
    margin: 0;
    flex-shrink: 0;
}

.engage-ai-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.engage-ai-mode-row--wrap {
    gap: 8px 12px;
}

.engage-ai-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: calc(13px * var(--ui-font-scale));
    cursor: pointer;
}

.engage-ai-mode-option input {
    margin: 0;
}

.engage-ai-subfield {
    margin-top: 8px;
}

.engage-ai-subfield__label {
    display: block;
    margin-bottom: 6px;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
}

.engage-ai-subfield__select {
    width: 100%;
    max-width: 280px;
}

.engage-ai-radio-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engage-ai-radio-col .engage-ai-mode-option {
    padding: 4px 0;
}

.engage-ai-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    font-size: calc(13px * var(--ui-font-scale));
    cursor: pointer;
    line-height: 1.45;
}

.engage-ai-check-row input {
    margin-top: 3px;
    flex-shrink: 0;
}

.engage-ai-pro-only {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.engage-keyword-summary-wrap {
    margin: 0;
    min-width: 0;
}

.engage-keyword-summary-line {
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

.engage-keyword-summary-line--sub {
    margin-top: 5px;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
}

.engage-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.engage-block__head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.engage-block__head:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--theme-border);
}

.engage-block__head:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--theme-accent) 60%, white 40%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent-glow) 55%, transparent 45%);
}

.engage-block__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    max-height: 1200px;
    opacity: 1;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.engage-block__body.is-collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.engage-block .engage-card {
    background: rgba(255, 255, 255, 0.015);
}

/* 답방 블록: 안내 + 답방할 게시글 수 */
.engage-reply-block-hint {
    margin: 0 0 10px;
}

.engage-reply-count-field {
    margin: 0;
    max-width: 220px;
}

.engage-reply-range-field {
    max-width: none;
}

.engage-reply-range-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.engage-reply-range-hint {
    flex: 1 1 200px;
    min-width: min(100%, 12rem);
    max-width: 28rem;
    margin: 0;
    padding-bottom: 2px;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    line-height: 1.45;
    align-self: center;
}

.engage-reply-range-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.engage-reply-range-cell__label {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.engage-reply-range-cell .engage-input--number-sm {
    width: 5.5rem;
    max-width: 100%;
    flex: none;
}

#work-settings-tab .engage-input--range {
    font-variant-numeric: tabular-nums;
}

/* 소통 작업 > 답방·대댓글 본문: 좌우 5:5 */
.engage-block-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.engage-block-split__stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

@media (max-width: 640px) {
    .engage-block-split {
        grid-template-columns: 1fr;
    }
}

.engage-card__hint--sub {
    margin-top: 8px;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    line-height: 1.4;
}

.engage-input-number {
    width: 100%;
    max-width: 8rem;
    margin-top: 6px;
    padding: 8px 10px;
    font-size: calc(13px * var(--ui-font-scale));
    font-variant-numeric: tabular-nums;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-input);
    color: var(--theme-text);
    box-sizing: border-box;
}

.engage-input-number:focus-visible {
    outline: 2px solid rgba(189, 78, 20, 0.45);
    outline-offset: 2px;
}

/* 작업 설정 탭 전용: 대시보드 카드와 동일 톤의 배경 + 경계(테두리 + inset) */
#work-settings-tab .work-settings-section {
    background: var(--theme-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        var(--theme-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#work-settings-tab .work-settings-subtabs {
    background: var(--theme-card-bg);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#work-settings-tab .engage-card {
    background: var(--theme-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        var(--theme-shadow),
        0 1px 0 rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#work-settings-tab .engage-card.engage-block {
    border-color: rgba(255, 255, 255, 0.18);
}

#work-settings-tab .engage-block .engage-card {
    background: var(--theme-bg-input);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#work-settings-tab .engage-block__head:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.engage-block-toggle[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.engage-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.engage-card__title {
    margin: 0;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.engage-card__hint {
    margin: 8px 0 0;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.4;
}

.engage-radio-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.engage-radio,
.engage-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text);
    line-height: 1.35;
}

.engage-radio input,
.engage-check input {
    accent-color: var(--theme-accent);
}

.engage-radio span {
    color: var(--theme-text);
}

.engage-check {
    cursor: pointer;
}

.engage-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--theme-accent);
    flex-shrink: 0;
}

.engage-check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engage-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

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

.engage-field__label {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
}

.engage-keyword-search-options {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--theme-border);
    overflow: visible;
    position: relative;
}

/* 키워드 모달: 정렬·기간 블록과 키워드 입력 사이 간격(겹침 방지) */
#engage-keyword-modal .engage-keyword-modal-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    flex-shrink: 0;
}

/* 키워드 모달: 상단 블록 높이 = 내용만 (flex stretch로 생기던 하단 빈칸 제거) */
#engage-keyword-modal .engage-keyword-search-options {
    margin-bottom: 0;
    padding-bottom: 12px;
    width: 100%;
    min-height: 0;
    height: fit-content;
}

/* 키워드 모달 전용: 전역 flex와 클래스 충돌 없이 정렬·기간을 한 줄 상단 정렬 */
#engage-keyword-modal .engage-keyword-modal-options-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    overflow: visible;
    min-height: 0;
    height: fit-content;
    width: 100%;
}

@media (max-width: 560px) {
    #engage-keyword-modal .engage-keyword-modal-options-row {
        flex-wrap: wrap;
    }

    #engage-keyword-modal .engage-keyword-period-controls {
        flex-wrap: wrap;
    }
}

.engage-keyword-select-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: visible;
}

/* 키워드 모달: column flex가 자식을 세로로 늘리지 않도록 grid + 콘텐츠 높이만 */
#engage-keyword-modal .engage-keyword-select-cell {
    display: grid;
    grid-template-rows: auto auto;
    gap: 4px;
    align-content: start;
    justify-items: start;
    min-height: 0;
    height: fit-content;
    flex: 0 0 auto;
    align-self: start;
}

#engage-keyword-modal .engage-keyword-select-cell > .engage-keyword-select-label {
    grid-row: 1;
}

#engage-keyword-modal .engage-keyword-select-cell > .ui-custom-select,
#engage-keyword-modal .engage-keyword-select-cell > .engage-keyword-period-controls {
    grid-row: 2;
}

.engage-keyword-period-cell {
    flex: 1 1 auto;
    min-width: min(100%, 280px);
}

/* 모달 기간 열: 전역 .engage-keyword-period-cell(min-width 280px) 미적용 */
#engage-keyword-modal .engage-keyword-period-cell-modal {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.engage-keyword-period-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    overflow: visible;
}

/* 기간 셀렉트 + 날짜를 한 줄(가능한 범위) */
#engage-keyword-modal .engage-keyword-period-controls {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    height: fit-content;
    width: max-content;
    max-width: 100%;
}

#engage-keyword-modal .ui-custom-select.engage-keyword-control-unified {
    flex: none;
    height: fit-content;
    min-height: 0;
}

.engage-keyword-inline-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
}

.engage-keyword-inline-dates.is-hidden {
    display: none !important;
}

.engage-keyword-date-sep {
    color: var(--theme-text-muted);
    font-size: calc(12px * var(--ui-font-scale));
    flex-shrink: 0;
}

/* 키워드 모달: 한 줄 배치를 위해 너비 축소 (정렬·기간·날짜×2) */
#engage-keyword-modal .engage-keyword-control-unified {
    box-sizing: border-box;
    flex: 0 0 7.75rem;
    width: 7.75rem;
    min-width: 6.75rem;
    max-width: 8.5rem;
}

/* 공통 커스텀 셀렉트 (js/custom-select.js가 <select>를 래핑) */
.ui-custom-select {
    position: relative;
    z-index: 1;
}

.ui-custom-select.is-open {
    z-index: 10050;
}

.ui-custom-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.ui-custom-select__btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--theme-border-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text);
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.3;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.ui-custom-select__btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ui-custom-select.is-open .ui-custom-select__btn {
    outline: 2px solid var(--theme-accent);
    outline-offset: 1px;
}

.ui-custom-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-custom-select__chev {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--theme-text-secondary);
    transition: transform 0.15s ease;
}

.ui-custom-select.is-open .ui-custom-select__chev {
    transform: rotate(180deg);
}

.ui-custom-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border-strong);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    z-index: 10051;
    max-height: min(220px, 40vh);
    overflow-y: auto;
}

/* 열림 시 JS가 fixed 좌표 부여 (ui-custom-select__list--popout) */
.ui-custom-select__list.ui-custom-select__list--popout {
    right: auto;
}

.ui-custom-select__list[hidden] {
    display: none !important;
}

.ui-custom-select__list [role="option"] {
    padding: 9px 12px;
    cursor: pointer;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.35;
    color: var(--theme-text);
}

.ui-custom-select__list [role="option"]:hover,
.ui-custom-select__list [role="option"]:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.ui-custom-select__list [role="option"].is-selected {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.ui-custom-select--sm .ui-custom-select__btn {
    min-height: 30px;
    padding: 4px 8px;
    font-size: calc(11px * var(--ui-font-scale));
}

#engage-keyword-modal .engage-input--date-sm.engage-keyword-control-unified {
    padding: 4px 6px;
    min-height: 32px;
    font-size: calc(11px * var(--ui-font-scale));
    flex: 0 0 7.75rem;
    width: 7.75rem;
    min-width: 6.75rem;
    max-width: 8.5rem;
}

.engage-keyword-select-label {
    font-size: calc(10px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.2;
    white-space: nowrap;
}

.engage-select {
    border: 1px solid var(--theme-border-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--theme-text);
    font-size: calc(12px * var(--ui-font-scale));
    padding: 5px 8px;
    min-height: 28px;
    max-width: 100%;
    cursor: pointer;
    accent-color: var(--theme-accent);
}

.engage-select:focus {
    outline: 2px solid var(--theme-accent);
    outline-offset: 1px;
}

.engage-select--sm {
    font-size: calc(11px * var(--ui-font-scale));
    padding: 3px 6px;
    min-height: 26px;
    max-width: 11.5em;
}

.engage-inline-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.engage-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--theme-border-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text);
    font-size: calc(12px * var(--ui-font-scale));
    padding: 8px 10px;
}

.engage-input::placeholder {
    color: var(--theme-text-muted);
    opacity: 0.95;
}

.engage-mini-btn {
    padding: 4px 8px;
    font-size: calc(11px * var(--ui-font-scale));
    border-radius: 8px;
}

.engage-add-btn {
    flex-shrink: 0;
    padding: 6px 11px;
    font-size: calc(12px * var(--ui-font-scale));
}

.engage-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.engage-chip-list {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.engage-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--theme-text);
    font-size: calc(11px * var(--ui-font-scale));
}

.engage-chip--empty {
    border-style: dashed;
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--theme-text-muted);
}

.engage-chip__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.engage-chip__del {
    border: none;
    background: transparent;
    color: var(--theme-text-muted);
    cursor: pointer;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1;
    padding: 0;
}

/* 작업 설정 > 소통 작업 모달 공통 크기 (alert-modal + engage-post-picker-modal 조합) */
.modal-container.alert-modal.engage-post-picker-modal {
    box-sizing: border-box;
    max-width: min(880px, 96vw);
    width: min(880px, 96vw);
    max-height: min(90vh, 920px);
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#neighbor-newpost-exclude-modal .modal-container.alert-modal.engage-post-picker-modal {
    max-width: min(616px, 92vw);
    width: min(616px, 92vw);
}

.modal-container.alert-modal.neighbor-once-cleanup-modal {
    width: min(760px, 96vw);
    max-width: min(760px, 96vw);
}

.neighbor-inactive-cleanup-input-row {
    margin-top: 10px;
}

.neighbor-inactive-cleanup-preview-wrap {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    grid-template-columns: 220px minmax(280px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.neighbor-inactive-cleanup-preview-btn {
    height: 100%;
    min-height: 64px;
    white-space: normal;
}

.neighbor-inactive-cleanup-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
}

.neighbor-inactive-cleanup-stat {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    min-height: 62px;
}

.neighbor-inactive-cleanup-stat--highlight {
    border-color: rgba(229, 111, 13, 0.55);
    background: rgba(229, 111, 13, 0.14);
}

.neighbor-inactive-cleanup-stat__label {
    display: block;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    margin-bottom: 6px;
}

.neighbor-inactive-cleanup-stat__value {
    display: block;
    font-size: calc(22px * var(--ui-font-scale));
    line-height: 1;
    color: var(--theme-text);
}

.neighbor-inactive-cleanup-note {
    grid-column: 1 / -1;
    margin: 2px 0 0 !important;
}

#engage-post-picker-modal .modal-body {
    max-height: min(62vh, 560px);
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.engage-post-picker-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.engage-post-picker-row {
    padding: 10px 0;
}

.engage-post-picker-label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.engage-post-picker-row__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.engage-post-picker-row__title {
    font-size: calc(13px * var(--ui-font-scale));
    line-height: 1.35;
    color: var(--theme-text);
}

.engage-post-picker-row__stats {
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.4;
    color: var(--theme-text-muted);
    font-variant-numeric: tabular-nums;
}

.engage-post-picker-row__meta {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.engage-post-picker-empty {
    list-style: none;
    margin: 0;
    padding: 16px 12px;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    color: var(--theme-text-muted);
    text-align: center;
}

.engage-post-picker-row__preview {
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    color: var(--theme-text-secondary);
    overflow-wrap: anywhere;
}

/* 작업 진행 상세 모달 — 탭 + 테이블 */
#dashboard-task-progress-modal .modal-container.dashboard-task-progress-modal-container {
    width: min(720px, 94vw);
    max-width: min(720px, 94vw);
    height: auto;
    min-height: 0;
    max-height: min(640px, 90vh);
    display: flex;
    flex-direction: column;
    padding: 0;
}

#dashboard-task-progress-modal .modal-body.dashboard-task-progress-modal-body {
    flex: 1 1 auto;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#dashboard-task-progress-modal .modal-footer {
    padding: 12px 18px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#dashboard-task-progress-modal #dashboard-task-progress-modal-footer-close.btn {
    min-width: 64px;
    padding: 7px 14px;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--theme-text-secondary);
    box-shadow: none;
}

#dashboard-task-progress-modal #dashboard-task-progress-modal-footer-close.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--theme-text);
    border-color: rgba(255, 255, 255, 0.28);
}

.task-progress-modal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.03);
}

.task-progress-date-label {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-secondary);
    margin: 0;
}

.task-progress-date-select {
    min-width: 140px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--theme-radius-sm);
    border: 1px solid var(--theme-border);
    background: var(--theme-card-bg);
    color: var(--theme-text-primary);
    font-size: calc(13px * var(--ui-font-scale));
}

.task-progress-reset-btn {
    margin-left: auto;
}

.dashboard-task-progress-modal-lead {
    margin: 0 0 12px;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    color: var(--theme-text-muted);
    flex-shrink: 0;
}

.task-progress-detail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.task-progress-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--theme-border);
    flex-shrink: 0;
}

.task-progress-detail-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 12px;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    font-family: inherit;
    color: var(--theme-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.task-progress-detail-tab:hover {
    color: var(--theme-text);
    background: rgba(255, 255, 255, 0.06);
}

.task-progress-detail-tab.active {
    color: var(--theme-text);
    background: var(--theme-accent);
    border-color: rgba(189, 78, 20, 0.6);
    box-shadow: 0 2px 8px var(--theme-accent-glow);
}

.task-progress-detail-tab:focus-visible {
    outline: 2px solid rgba(189, 78, 20, 0.55);
    outline-offset: 2px;
}

.task-progress-detail-panels {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.task-progress-detail-panel {
    display: none;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.task-progress-detail-panel.active {
    display: flex;
}

.task-progress-table-wrap {
    flex: 1 1 auto;
    min-height: 180px;
    max-height: min(44vh, 380px);
    overflow: auto;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.task-progress-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.4;
}

.task-progress-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--theme-text);
    background: var(--theme-bg-elevated);
    border-bottom: 1px solid var(--theme-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.task-progress-table tbody td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    color: var(--theme-text-secondary);
    border-bottom: 1px solid var(--theme-border);
}

.task-progress-table tbody tr:last-child td {
    border-bottom: none;
}

.task-progress-table__col--narrow {
    width: 2.5rem;
    text-align: center;
}

.task-progress-table thead th.task-progress-table__col--narrow {
    text-align: center;
}

.task-progress-table tbody tr:nth-child(even):not(.task-progress-table__empty) td {
    background: rgba(255, 255, 255, 0.02);
}

.task-progress-table__empty td {
    text-align: center;
    color: var(--theme-text-muted);
    font-style: italic;
    padding: 28px 12px;
}

.task-progress-table__cell-title {
    max-width: 14rem;
    word-break: break-word;
}

.task-progress-table__link {
    color: var(--theme-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.task-progress-table__link:hover {
    color: var(--theme-accent-hover, var(--theme-accent));
}

#engage-manual-comment-modal .modal-container.alert-modal.engage-post-picker-modal {
    min-height: min(520px, 70vh);
}

#engage-keyword-modal .modal-container.alert-modal.engage-post-picker-modal {
    max-height: min(90vh, 920px);
    overflow: visible;
}

#engage-prefix-suffix-modal .modal-container {
    max-width: min(560px, 92vw);
    width: min(560px, 92vw);
}

.engage-ai-modal-balance-banner {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 28%, var(--theme-border));
    background: color-mix(in srgb, var(--theme-accent) 8%, rgba(255, 255, 255, 0.02));
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    line-height: 1.45;
    color: var(--theme-text);
    word-break: keep-all;
}

#engage-prefix-suffix-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.engage-field--modal-stack {
    margin-top: 8px;
}

.engage-modal-textarea--tall {
    min-height: 100px;
    max-height: min(40vh, 320px);
}

#engage-manual-comment-modal .modal-body,
#engage-exclude-keyword-modal .modal-body {
    flex: 1 1 auto;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 네이티브 <select> 드롭다운이 잘리지 않도록 · 내용 높이만큼만 (하단 빈 flex 성장 방지) */
#engage-keyword-modal .modal-body {
    flex: 0 1 auto;
    flex-grow: 0;
    max-height: none;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.engage-modal-textarea {
    width: 100%;
    min-height: 140px;
    max-height: 220px;
    resize: vertical;
    border: 1px solid var(--theme-border-strong);
    border-radius: 8px;
    background: var(--theme-bg-input);
    color: var(--theme-text);
    font-size: calc(12px * var(--ui-font-scale));
    padding: 10px 11px;
    line-height: 1.45;
}

.engage-modal-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.engage-modal-actions .engage-mini-btn {
    padding: 8px 14px;
    font-size: calc(12px * var(--ui-font-scale));
    border-radius: 8px;
}

.engage-modal-list {
    margin-top: 4px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    min-height: 200px;
    max-height: min(42vh, 380px);
    flex: 1 1 auto;
    overflow: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#engage-keyword-modal .engage-modal-list {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(40vh, 360px);
    margin-top: 2px;
}

#engage-keyword-modal #engage-keyword-textarea.engage-modal-textarea {
    min-height: 120px;
    max-height: 200px;
    flex: 0 0 auto;
    margin-top: 0;
    position: relative;
    z-index: 0;
}

#engage-keyword-modal .engage-modal-actions {
    margin-top: 0;
}

#engage-keyword-modal .modal-footer {
    padding-top: 10px;
    padding-bottom: 12px;
}

.engage-modal-list__row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.02);
}

.engage-modal-list__idx {
    color: var(--theme-text-muted);
    font-size: calc(11px * var(--ui-font-scale));
    line-height: 1.4;
    text-align: center;
    padding-top: 2px;
}

.engage-modal-list__text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    color: var(--theme-text-secondary);
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    font-family: inherit;
}

.engage-modal-list__del {
    padding: 6px 10px;
    min-width: 58px;
}

.engage-modal-list__empty {
    color: var(--theme-text-muted);
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.45;
    padding: 8px;
}

/* 사용 가이드 */
.user-guide-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 20px 36px;
}

.user-guide-header {
    margin-bottom: 22px;
}

.user-guide-title {
    margin: 0 0 8px 0;
    font-size: calc(22px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.user-guide-lead {
    margin: 0;
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.55;
}

.user-guide-section {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-card-bg);
    box-shadow: var(--theme-shadow);
}

.user-guide-section--note {
    background: rgba(189, 78, 20, 0.06);
    border-color: rgba(189, 78, 20, 0.25);
}

.user-guide-section-title {
    margin: 0 0 10px 0;
    font-size: calc(15px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
}

.user-guide-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.65;
}

.user-guide-list li {
    margin-bottom: 6px;
}

.user-guide-list li:last-child {
    margin-bottom: 0;
}

.user-guide-note {
    margin: 0;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.55;
}



/* 앱 컨테이너 */

#app-container {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100vh;
    width: 100vw;
    overflow: hidden;
}


/* 사이드바 공통 스타일 */

.sidebar {
    width: 100%;
    min-height: calc(64px * var(--ui-font-scale));
    background: var(--theme-bg-elevated);
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 사이드바 헤더 */
.sidebar-header {
    padding: 9px 16px;
    border-bottom: none;
    border-right: 1px solid var(--theme-border);
    background: var(--theme-bg-elevated);
    color: var(--theme-text);
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar-title-icon {
    width: calc(38px * var(--ui-font-scale));
    height: calc(38px * var(--ui-font-scale));
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    line-height: 1.15;
}

.sidebar-brand__name {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* 상단바 우측: 상태 + 라이선스 */
.sidebar-right-cluster {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
    padding-right: 10px;
    padding-left: 4px;
    min-width: 0;
    max-width: min(500px, 48vw);
}

.nav-status-pill {
    display: none;
}

.nav-status-pill .status-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.nav-status-pill .status-text {
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-secondary);
    white-space: nowrap;
    line-height: 1.2;
}

.nav-status-detail {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: right;
    line-height: 1.2;
    font-weight: 600;
}

.nav-status-detail[hidden] {
    display: none !important;
}

/* 사이드바 우측: 앱 로그인 — 래퍼는 시각적 박스 없이 버튼만 */
.app-login-section {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.app-login-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    min-width: 0;
    max-width: 100%;
}

.app-login-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    flex-shrink: 0;
}

.app-version-pill {
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.2px;
}

.app-version-pill-inline {
    transform: translateY(1px);
}

.app-login-btn {
    font-size: calc(12px * var(--ui-font-scale));
    padding: 7px 14px;
    line-height: 1.25;
}

.app-login-btn-compact {
    padding: 5px 12px;
    font-size: calc(11px * var(--ui-font-scale));
    min-height: 30px;
    border-radius: 999px;
    white-space: nowrap;
}

.app-login-user-block {
    text-align: right;
    width: auto;
    max-width: 100%;
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 2px 4px;
    min-width: 0;
    overflow: hidden;
}

.app-login-user-name {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.user-inline-segment {
    display: inline;
    vertical-align: middle;
}

.user-inline-separator {
    display: inline-block;
    margin: 0 5px;
    color: var(--theme-text-muted);
    font-weight: 600;
}

.user-inline-plan {
    color: #60a5fa;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.user-inline-coin {
    color: #f5f5f5;
    font-weight: 700;
}

.user-inline-coin-d {
    color: var(--theme-accent);
    font-weight: 900;
}

.user-inline-coin-value {
    color: #f5f5f5;
    font-weight: 700;
}

.user-inline-name {
    color: #ffffff;
    font-weight: 700;
}

.app-login-user-meta {
    display: none;
}

.my-page-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-card-bg);
    padding: 18px;
}

.my-page-logged-out-panel {
    padding: 12px 0 8px;
    margin-bottom: 8px;
}

.my-page-logged-out-text {
    margin: 0 0 14px 0;
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.5;
}

.my-page-wrap .mypage-login-btn {
    padding: 10px 22px;
    font-size: calc(14px * var(--ui-font-scale));
    line-height: 1.35;
    font-weight: 600;
    min-height: 40px;
    border-radius: var(--theme-radius-sm);
}

.my-page-title {
    margin: 0 0 16px 0;
    font-size: calc(18px * var(--ui-font-scale));
}

.my-page-profile-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.my-page-item {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 76px;
}

.my-page-label {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    margin-bottom: 6px;
}

.my-page-value {
    font-size: calc(24px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text-primary, #fff);
    line-height: 1.15;
}

.my-page-actions {
    margin-top: 14px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.my-page-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.my-page-actions .my-page-actions__refresh-end {
    margin-left: auto;
}

.my-page-device-alias-input {
    width: 280px;
    max-width: 46vw;
    height: 32px;
    font-size: calc(12px * var(--ui-font-scale));
}

.my-page-device-info {
    margin-top: 10px;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
}

.my-page-register-status {
    margin-top: 8px;
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-accent);
    font-weight: 600;
}

.my-page-device-list {
    margin-top: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.my-page-device-list-title {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    margin-bottom: 8px;
}

.my-page-device-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 7px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.my-page-device-row:first-of-type {
    border-top: none;
}

.my-page-device-name {
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-primary, #fff);
}

.my-page-device-meta {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

.my-page-current-badge {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text);
    background: var(--theme-accent);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
}

.my-page-device-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.my-page-rename-btn {
    padding: 4px 10px;
    font-size: calc(11px * var(--ui-font-scale));
}

.my-page-loading {
    margin-top: 10px;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.my-page-loading-bar {
    height: 100%;
    width: 35%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-accent), #c87648);
    animation: mypage-loading-slide 1s linear infinite;
}

@keyframes mypage-loading-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@media (max-width: 760px) {
    .my-page-profile-row {
        grid-template-columns: 1fr;
    }
}




.app-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 100%;
    max-width: 130px;
    height: auto;
    object-fit: contain;
}

/* 네비게이션 탭 */

.nav-tabs {
    flex: 1 1 auto;
    padding: 7px 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    min-height: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    align-items: center;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
    height: 5px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-tab {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    min-height: calc(40px * var(--ui-font-scale));
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
    margin: 0;
    border-radius: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nav-tab-with-guide {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 1px;
}

.nav-tab-guide-link {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 3px 6px;
    margin: 0;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--theme-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-tab-guide-link:hover {
    color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.12);
}

.nav-tab-guide-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent-glow) 50%, transparent);
    border-radius: 6px;
}

.nav-tab:hover {
    background: rgba(189, 78, 20, 0.15);
    color: var(--theme-accent);
}

.nav-tab.active {
    background: var(--theme-accent);
    color: var(--theme-text);
    font-weight: bold;
    box-shadow: 0 2px 8px var(--theme-accent-glow);
}

.tab-icon {
    width: calc(20px * var(--ui-font-scale));
    height: calc(20px * var(--ui-font-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-icon svg {
    width: calc(16px * var(--ui-font-scale));
    height: calc(16px * var(--ui-font-scale));
    fill: currentColor;
}

.nav-tab span {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-tab.active span {
    font-weight: 700;
}


/* 메인 콘텐츠 공통 스타일 */

.main-content {
    position: relative;
    flex: 1;
    min-height: 0;
    background-color: var(--theme-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 24px;
}

.app-session-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(5px);
}

.app-session-lock-overlay[hidden] {
    display: none !important;
}

.app-session-lock-panel {
    width: 100%;
    max-width: 420px;
    padding: 28px 26px;
    border-radius: 14px;
    border: 1px solid var(--theme-border);
    background: var(--theme-card-bg, var(--theme-bg-elevated));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.app-session-lock-title {
    margin: 0 0 12px;
    font-size: calc(17px * var(--ui-font-scale));
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.35;
    text-align: center;
}

.app-session-lock-desc {
    margin: 0 0 20px;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.6;
    text-align: left;
}

.app-session-lock-desc strong {
    color: var(--theme-text);
    font-weight: 700;
}

.app-session-lock-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.app-session-lock-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 10px 28px;
    border-radius: 999px;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--theme-accent) 55%, rgba(255, 255, 255, 0.12));
    background: color-mix(in srgb, var(--theme-accent) 92%, #1a0a04);
    color: var(--theme-text);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--theme-accent-glow) 35%, transparent);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.app-session-lock-login-btn:hover {
    background: var(--theme-accent-hover);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-accent-glow) 45%, transparent);
}

.app-session-lock-login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--theme-bg), 0 0 0 4px color-mix(in srgb, var(--theme-accent) 70%, transparent);
}

.app-session-lock-home-link {
    padding: 4px 8px;
    margin: 0;
    border: none;
    background: none;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-family: inherit;
}

.app-session-lock-home-link:hover {
    color: var(--theme-accent-hover);
}

.app-session-lock-home-link:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent) 45%, transparent);
}

.app-container.is-session-login-locked .nav-tabs {
    pointer-events: none;
    opacity: 0.48;
}

/* 강제 업데이트: 사이드바·탭·본문 전부 차단, 오버레이만 조작 가능 */
.app-container.is-session-force-update-locked .sidebar,
.app-container.is-session-force-update-locked .nav-tabs,
.app-container.is-session-force-update-locked .tab-content {
    pointer-events: none !important;
    user-select: none;
}

.app-container.is-session-force-update-locked .sidebar,
.app-container.is-session-force-update-locked .nav-tabs {
    opacity: 0.42;
}

.app-session-lock-overlay.is-force-update-mode {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

body.is-force-update-locked #desktop-login-wait-overlay {
    display: none !important;
}

body.is-force-update-locked #app-update-banner {
    display: none !important;
}

body.is-force-update-locked #loading-overlay {
    display: none !important;
}

.app-session-lock-secondary-btn {
    background: color-mix(in srgb, var(--theme-card-bg) 88%, var(--theme-accent) 12%) !important;
    border-color: var(--theme-border) !important;
    box-shadow: none !important;
}

.app-session-lock-secondary-btn:hover {
    background: color-mix(in srgb, var(--theme-card-bg) 82%, var(--theme-accent) 18%) !important;
}


/* 탭 콘텐츠 */

.tab-content {
    flex: 1;
    min-height: 0;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

.tab-content::-webkit-scrollbar {
    width: 10px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 4px 0;
}

.tab-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(189, 78, 20, 0.48);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.tab-content::-webkit-scrollbar-corner {
    background: transparent;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-header {
    margin-bottom: 30px;
    text-align: center;
}

.tab-header h2 {
    font-size: calc(28px * var(--ui-font-scale));
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 8px;
}

.tab-header p {
    font-size: calc(16px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    margin: 0;
}


/* 대시보드 그리드 */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    padding: 24px;
    box-shadow: var(--theme-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-hover);
    border-color: rgba(189, 78, 20, 0.3);
}

.dashboard-card .card-icon {
    font-size: calc(32px * var(--ui-font-scale));
    margin-bottom: 16px;
}

.dashboard-card .card-content h3 {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: bold;
    color: var(--theme-text);
    margin-bottom: 8px;
}

.dashboard-card .card-content p {
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    margin: 0;
}


/* 시스템 모니터 영역 */

.system-monitor {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--theme-bg-elevated);
    border-top: 1px solid var(--theme-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.system-monitor--log-only {
    height: 140px;
}

/* 대시보드 내 임베드: 고정 하단 해제, 카드 안에서만 스크롤 */
.system-monitor--dashboard {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.system-monitor--dashboard.system-monitor--log-only {
    height: auto;
}

.system-monitor--dashboard .monitor-content {
    padding: 0;
}

.system-monitor--dashboard .log-area {
    min-height: 140px;
    max-height: 220px;
}

.monitor-content {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.monitor-content--log-only {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 0;
}

.work-status-section {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
}

.work-info-cards {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex: 9;
    min-width: 0;
}

.info-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 6px 12px;
    gap: 8px;
    min-width: 0;
    box-shadow: var(--theme-shadow);
    transition: all 0.2s ease;
    height: 40px;
}

/* 계정 카드: 3/10 비율 */
.info-card:first-child {
    flex: 3;
}

/* 작업 카드: 6/10 비율 */
.info-card:last-child {
    flex: 6;
}

.info-card:hover {
    border-color: rgba(189, 78, 20, 0.4);
    box-shadow: var(--theme-shadow-hover);
}

.info-label {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.info-value {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.program-status-card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 6px 12px;
    margin: 0;
    flex: 1;
    min-width: 0;
    box-shadow: var(--theme-shadow);
    transition: all 0.2s ease;
    height: 40px;
}

.program-status-card:hover {
    border-color: rgba(189, 78, 20, 0.4);
    box-shadow: var(--theme-shadow-hover);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-text {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.log-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.log-area:not(.log-area--workbench) {
    flex: 1;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 12px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: calc(12px * var(--ui-font-scale));
    line-height: 1.4;
    min-height: 0;
    color: var(--theme-text-secondary);
}

.log-entry {
    margin-bottom: 4px;
    color: var(--theme-text-secondary);
    word-wrap: break-word;
}

.log-entry:last-child {
    margin-bottom: 0;
}


/* 프로그램 상태 카드 (작업 상태 영역용) */

.status-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme-text-muted);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--theme-border);
}

.status-indicator.waiting {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.status-indicator.running {
    background: var(--theme-accent);
    box-shadow: 0 0 0 2px var(--theme-accent-glow);
    animation: pulse 1.5s infinite;
}

.status-indicator.success {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.status-indicator.error {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.status-text {
    font-weight: bold;
    color: var(--theme-text);
}

.execute-btn {
    padding: 10px 20px;
    background: var(--theme-accent);
    color: var(--theme-text);
    border: none;
    border-radius: var(--theme-radius-sm);
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--theme-accent-glow);
}

.execute-btn:hover {
    background: var(--theme-accent-hover);
    color: var(--theme-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--theme-accent-glow);
}

.execute-btn:disabled {
    background: var(--theme-bg-input);
    color: var(--theme-text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* 로그 섹션 */

.log-section h4 {
    margin: 0 0 15px 0;
    font-size: calc(16px * var(--ui-font-scale));
    color: var(--theme-text);
}

.log-area:not(.log-area--workbench) {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    /* 6px -> 4px (70%) */
    padding: 10px;
    /* 15px -> 10px (70%) */
    max-height: 120px;
    /* 150px -> 105px (70%) */
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: calc(12px * var(--ui-font-scale));
    /* 원래 크기로 복원 */
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
}

.log-entry:last-child {
    border-bottom: none;
}


/* 탭 콘텐츠 플레이스홀더 */

.tab-content-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--theme-bg-card);
    border: 2px dashed var(--theme-border-strong);
    border-radius: var(--theme-radius-sm);
    margin: 20px;
}

.tab-content-placeholder p {
    font-size: calc(16px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    text-align: center;
}


/* 반응형 디자인 */


/* 계정 정보 */
.account-info {
    margin: 0 8px 16px 8px;
    padding: 16px;
    background: var(--theme-bg-card);
    border-radius: var(--theme-radius-sm);
    border: 1px solid var(--theme-border);
    flex: 0 0 auto;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--theme-bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--theme-border);
}

.user-avatar svg {
    width: 24px;
    height: 24px;
    fill: var(--theme-text-secondary);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: calc(10px * var(--ui-font-scale));
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(189, 78, 20, 0.2);
    color: var(--theme-accent);
}

.plan-badge.lite {
    background: rgba(189, 78, 20, 0.15);
    color: var(--theme-accent);
}

.plan-badge.pro {
    background: rgba(189, 78, 20, 0.25);
    color: var(--theme-accent);
}

/* 계정 통계 */
.account-stats {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--theme-border);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: calc(12px * var(--ui-font-scale));
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: calc(13px * var(--ui-font-scale));
    color: #333;
    font-weight: 600;
}

#remaining-credits {
    color: #28a745;
    font-weight: 700;
}

/* 시스템 모니터 (작업 상태 영역으로 변경됨) - 위쪽 스타일 사용 */

@media (max-width: 768px) {
    .sidebar {
        flex-wrap: wrap;
    }
    .sidebar-right-cluster {
        width: auto;
        justify-content: flex-end;
        padding: 0 8px 0 0;
        border-top: none;
    }
    .app-login-section {
        width: auto;
        justify-content: flex-end;
    }
    .app-login-inner {
        width: auto;
        min-width: 0;
        max-width: min(420px, 76vw);
    }
    .app-login-user-name {
        font-size: calc(12px * var(--ui-font-scale));
    }
    .user-inline-separator {
        margin: 0 6px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .system-monitor:not(.system-monitor--dashboard) {
        left: 0;
        height: 180px;
    }
    .system-monitor:not(.system-monitor--dashboard).system-monitor--log-only {
        height: 120px;
    }
    .system-monitor--dashboard .log-area {
        min-height: 120px;
        max-height: 180px;
    }
    .monitor-content {
        padding: 12px 14px;
        gap: 8px;
    }
    .work-status-section {
        gap: 8px;
    }
    .work-info-cards {
        gap: 8px;
    }
    .info-card {
        padding: 6px 12px;
    }
    .program-status-card {
        padding: 6px 12px;
        min-width: 100px;
    }
    
    /* AI 설정 반응형 */
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    /* AI 설정 레이아웃 반응형 */
    .ai-settings-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ai-info-cards {
        gap: 10px;
    }
    
    .info-card {
        padding: 10px;
    }
    
    .card-header {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .card-icon {
        font-size: calc(14px * var(--ui-font-scale));
        width: 20px;
        height: 20px;
    }
    
    .card-header h4 {
        font-size: calc(13px * var(--ui-font-scale));
    }
    
    .card-content p {
        font-size: calc(11px * var(--ui-font-scale));
    }
    
}

/* AI & 템플릿 페이지 스타일 */

/* AI 설정 레이아웃 */
.ai-settings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.ai-settings-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

/* AI 정보 카드 영역 */
.ai-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.card-icon {
    font-size: calc(16px * var(--ui-font-scale));
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    flex-shrink: 0;
}

.card-header h4 {
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-content {
    color: #555;
    line-height: 1.4;
}

.card-content p {
    font-size: calc(12px * var(--ui-font-scale));
    margin: 0;
    color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(189, 78, 20, 0.3);
    min-width: auto;
    text-align: center;
}



.section-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--theme-border);
}

.section-header h3 {
    font-size: calc(15px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    margin: 0 0 2px 0;
}

.section-header p {
    font-size: calc(11px * var(--ui-font-scale));
    color: #666;
    margin: 0;
}

.ai-model-section {
    margin-bottom: 12px;
}

.ai-model-section h4 {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

/* 인증 방식 선택 */
.auth-method-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.auth-option input[type="radio"] {
    margin: 0 12px 0 0;
    transform: scale(1.2);
}

.auth-option input[type="radio"]:checked + .option-content {
    color: #007bff;
}

.auth-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 600;
    font-size: calc(14px * var(--ui-font-scale));
    margin-bottom: 4px;
}

.option-desc {
    font-size: calc(12px * var(--ui-font-scale));
    color: #666;
}

/* API KEY 입력 */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: calc(13px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    margin-bottom: 6px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--theme-border-strong);
    border-radius: var(--theme-radius-sm);
    overflow: hidden;
    background: var(--theme-bg-input);
}

.form-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: calc(13px * var(--ui-font-scale));
    background: var(--theme-bg-input);
    color: var(--theme-text);
}

.toggle-password-btn {
    padding: 8px 12px;
    background: var(--theme-bg-card);
    border: none;
    border-left: 1px solid var(--theme-border);
    cursor: pointer;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    transition: background-color 0.2s ease;
}

.toggle-password-btn:hover {
    background: var(--theme-bg-elevated);
}

.form-help {
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
    margin-top: 2px;
}

/* AI 모델 선택 */
.model-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* 크레딧 정보 섹션 */
.credits-info-section {
    margin-bottom: 12px;
}

.credits-info {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    gap: 8px;
}

.credits-icon {
    font-size: calc(16px * var(--ui-font-scale));
    flex-shrink: 0;
}

.credits-text {
    flex: 1;
}

.credits-title {
    font-weight: 600;
    font-size: calc(13px * var(--ui-font-scale));
    color: #2d5a2d;
    margin-bottom: 1px;
}

.credits-desc {
    font-size: calc(11px * var(--ui-font-scale));
    color: #4a7c4a;
    line-height: 1.3;
}

.model-option {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.model-option input[type="radio"] {
    margin: 0 12px 0 0;
    transform: scale(1.2);
}

.model-option input[type="radio"]:checked + .model-content {
    color: #007bff;
}

.model-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.model-content {
    display: flex;
    flex-direction: column;
}

.model-name {
    font-weight: 600;
    font-size: calc(12px * var(--ui-font-scale));
    margin-bottom: 1px;
}

.model-desc {
    font-size: calc(10px * var(--ui-font-scale));
    color: #666;
}

/* 저장 버튼 */
.ai-settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 6px 14px;
    border: none;
    border-radius: var(--theme-radius-sm);
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 소통 작업 설정 버튼은 과도하게 크지 않게 고정 */
.engage-settings .btn.engage-mini-btn {
    padding: 4px 9px;
    font-size: calc(11px * var(--ui-font-scale));
    border-radius: 7px;
}

.engage-settings .btn.engage-add-btn {
    padding: 6px 11px;
    font-size: calc(12px * var(--ui-font-scale));
    border-radius: 8px;
}

/* 작업 실행 칸 정지 버튼 — .btn 이후에 두어 가로 전체 채움 유지 */
.dashboard-workbench__exec .dashboard-run-toolbar__stop-wrap .btn.dashboard-run-toolbar__stop-btn {
    width: 100%;
    max-width: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--theme-accent);
    color: var(--theme-text);
    box-shadow: 0 2px 8px var(--theme-accent-glow);
}

.btn-primary:hover {
    background: var(--theme-accent-hover);
    color: var(--theme-text);
    box-shadow: 0 4px 12px var(--theme-accent-glow);
}

/* 사이드바 로그인: .btn(하단)보다 뒤에 두어 크기·가독성 우선 */
.sidebar-right-cluster .app-login-section .btn.btn-primary.app-login-btn-compact {
    padding: 8px 16px;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    line-height: 1.3;
    min-height: 36px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--theme-accent-glow);
}

.sidebar-right-cluster .app-login-section .btn.btn-primary.app-login-btn-compact:hover {
    box-shadow: 0 3px 12px var(--theme-accent-glow);
}

.sidebar-right-cluster .app-login-section {
    padding: 0;
    align-self: center;
}

/* 템플릿 설정 섹션 */
.template-settings-section {
    background: var(--theme-bg-card);
    border-radius: var(--theme-radius-sm);
    padding: 16px;
    box-shadow: var(--theme-shadow);
    border: 1px solid var(--theme-border);
    margin-top: 8px;
}

/* 템플릿 카테고리 탭 */
.template-categories {
    margin-bottom: 20px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--theme-border);
    padding-bottom: 0;
}

.category-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 500;
    color: var(--theme-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.category-tab:hover {
    color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.08);
}

.category-tab.active {
    color: var(--theme-accent);
    border-bottom-color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.1);
}

.category-tab.disabled {
    color: var(--theme-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    background: transparent;
}

.category-tab.disabled:hover {
    color: var(--theme-text-muted);
    background: transparent;
    border-bottom-color: transparent;
}

/* 템플릿 목록 */
.template-list-container {
    margin-bottom: 20px;
}

.template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.template-item {
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.template-item:hover {
    border-color: var(--theme-accent);
    box-shadow: var(--theme-shadow-hover);
    transform: translateY(-4px);
}

.template-item.selected {
    border-color: var(--theme-accent);
    background: rgba(189, 78, 20, 0.08);
}

.template-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.template-item-title {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    margin: 0;
}

.template-item-category {
    background: var(--theme-bg-input);
    color: var(--theme-text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 500;
    border: 1px solid var(--theme-border);
}

.template-item-description {
    color: var(--theme-text-secondary);
    font-size: calc(14px * var(--ui-font-scale));
    line-height: 1.4;
    margin-bottom: 12px;
}

.template-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.template-tag {
    background: var(--theme-bg-input);
    color: var(--theme-text-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: calc(11px * var(--ui-font-scale));
}

.template-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.template-item-actions .btn {
    padding: 6px 12px;
    font-size: calc(12px * var(--ui-font-scale));
    flex-shrink: 0;
}

/* 템플릿 미리보기 팝업 */
.template-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
}

.template-preview-modal[hidden] {
    display: none !important;
}

.template-preview-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.preview-modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 98vw;
    height: 98vh;
    max-width: none;
    max-height: none;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9ff;
    flex-shrink: 0;
}

.preview-header h4 {
    margin: 0;
    color: #333;
    font-size: calc(20px * var(--ui-font-scale));
    font-weight: 600;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HTML 뷰어 컨테이너 */
.preview-viewer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    min-height: 0;
}

/* 툴바 */
.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.preview-toolbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.toolbar-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-icon {
    font-size: calc(14px * var(--ui-font-scale));
}

/* 뷰어 영역 */
.preview-viewer {
    flex: 1;
    overflow: auto;
    background: #ffffff;
    position: relative;
}

.preview-html-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
    font-size: calc(16px * var(--ui-font-scale));
    line-height: 1.6;
    transform-origin: top left;
    transition: transform 0.3s ease;
}

.preview-code-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #f8f9fa;
    padding: 0;
}

.preview-code-content pre {
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: calc(14px * var(--ui-font-scale));
    line-height: 1.5;
    color: #333;
    overflow: auto;
    height: 100%;
}

.preview-code-content code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* AI 편집 모달 */
.ai-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.ai-edit-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.ai-edit-modal .modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.ai-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: calc(14px * var(--ui-font-scale));
}

.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: calc(14px * var(--ui-font-scale));
    transition: border-color 0.2s ease;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .template-list {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .category-tab {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .preview-modal-container {
        width: 98vw;
        height: 98vh;
        max-width: none;
        max-height: none;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .ai-edit-modal .modal-container {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .preview-modal-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .preview-header {
        padding: 16px 20px;
    }
    
    .preview-actions {
        padding: 16px 20px;
    }
}

/* 커스텀 모달창 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    height: 95vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

/* Alert 및 Confirm 전용 모달 컨테이너 (작은 크기) */
.modal-container.alert-modal {
    max-width: 320px;
    width: auto;
    max-height: auto;
    height: auto;
    min-height: auto;
    padding: 0;
}

/* 닫기+확인(보조 버튼) 조합은 기본 작은 폭 — 실행 옵션은 제외 */
.modal-container:not(.engage-post-picker-modal):not(.dashboard-exec-options-modal):has(
        .modal-footer .btn-secondary
    ) {
    max-width: 320px;
    width: auto;
}

/* 실행 옵션: alert-modal·:has(320px)보다 우선 (오버레이 ID + 컨테이너 클래스) */
#dashboard-exec-options-modal.modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(12px, 3vh, 28px) clamp(10px, 2vw, 16px);
    overflow-y: auto;
    box-sizing: border-box;
}

#dashboard-exec-options-modal .modal-container.alert-modal.dashboard-exec-options-modal {
    max-width: min(560px, 94vw);
    width: min(560px, 94vw);
    max-height: min(88vh, 720px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

#dashboard-exec-options-modal .modal-header {
    flex-shrink: 0;
}

#dashboard-exec-options-modal .dashboard-exec-options-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 10px;
    padding-bottom: 12px;
}

#dashboard-exec-options-modal .modal-footer {
    flex-shrink: 0;
}

#dashboard-exec-options-modal .dashboard-exec-options-lead,
#dashboard-exec-options-modal .dashboard-exec-options-static,
#dashboard-exec-options-modal .dashboard-exec-options-interval-lead {
    overflow-wrap: break-word;
    word-break: keep-all;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--theme-border);
}

/* Alert/Confirm 모달 헤더 작게 */
.modal-container.alert-modal .modal-header {
    padding: 16px 20px 12px;
}

.modal-title {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    color: var(--theme-text);
    margin: 0;
}

/* Alert/Confirm 모달 제목 작게 */
.modal-container.alert-modal .modal-title {
    font-size: calc(16px * var(--ui-font-scale));
}

.modal-close {
    background: none;
    border: none;
    font-size: calc(24px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--theme-radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--theme-bg-input);
    color: var(--theme-accent);
}

.modal-body {
    padding: 20px 24px;
}

/* Alert/Confirm 모달 본문 작게 */
.modal-container.alert-modal .modal-body {
    padding: 16px 20px;
}

.modal-message {
    font-size: calc(16px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Alert/Confirm 모달 메시지 작게 */
.modal-container.alert-modal .modal-message {
    font-size: calc(14px * var(--ui-font-scale));
    line-height: 1.4;
}

#custom-modal .modal-message .modal-prompt-text {
    margin: 0 0 10px;
    font-size: calc(14px * var(--ui-font-scale));
    color: var(--theme-text-secondary);
    line-height: 1.4;
}

#custom-modal .modal-prompt-field {
    margin-top: 2px;
}

#custom-modal .modal-prompt-field .modal-prompt-input {
    box-sizing: border-box;
    width: 100%;
    display: block;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--theme-border);
}

/* Alert/Confirm 모달 푸터 작게 */
.modal-container.alert-modal .modal-footer {
    padding: 12px 20px 16px;
    gap: 8px;
}

.modal-footer .btn {
    min-width: 80px;
    padding: 10px 20px;
    font-size: calc(14px * var(--ui-font-scale));
}

/* Alert/Confirm 모달 버튼 작게 */
.modal-container.alert-modal .modal-footer .btn {
    min-width: 60px;
    padding: 8px 16px;
    font-size: calc(13px * var(--ui-font-scale));
}

/* 이웃 정리 모달: 기본 alert 320px 폭 규칙보다 우선 */
#neighbor-inactive-cleanup-modal .modal-container.alert-modal.neighbor-once-cleanup-modal {
    max-width: min(820px, 96vw) !important;
    width: min(820px, 96vw) !important;
}

#neighbor-old-invite-cleanup-modal .modal-container.alert-modal.neighbor-once-cleanup-modal {
    max-width: min(960px, 97vw) !important;
    width: min(960px, 97vw) !important;
}

.neighbor-inactive-cleanup-run-progress {
    margin: 0 20px 8px;
    padding: 8px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.neighbor-inactive-cleanup-run-progress__bar {
    height: 8px;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e56f0d 0%, #f3a43c 100%);
    transition: width 0.25s ease;
}

.neighbor-inactive-cleanup-run-progress__text {
    margin: 7px 0 0;
    font-size: calc(11px * var(--ui-font-scale));
    color: var(--theme-text-muted);
}

/* 완료 알림은 항상 앱 모달보다 위 */
#custom-modal.modal-overlay {
    z-index: 12050 !important;
}

/* 모달 반응형 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 게시글 생성 페이지 스타일 */

/* 생성 단계 표시 */
.creation-steps {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px 0;
    padding: 0 20px;
}

.step-item {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: -50%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-item.completed:not(:last-child)::after {
    background: #007bff;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: calc(16px * var(--ui-font-scale));
    margin-right: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #007bff;
    color: white;
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.step-desc {
    font-size: calc(12px * var(--ui-font-scale));
    color: #6c757d;
}

/* 단계별 콘텐츠 */
.creation-step-content {
    max-width: 800px;
    margin: 0 auto;
}

.step-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-section h3 {
    font-size: calc(24px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.step-section p {
    font-size: calc(16px * var(--ui-font-scale));
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 선택된 템플릿 카드 */
.selected-template-card {
    background: #f8f9ff;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.template-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.template-info h4 {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.template-info p {
    font-size: calc(14px * var(--ui-font-scale));
    color: #666;
    margin-bottom: 12px;
}

.template-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.template-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 500;
}

.template-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* 템플릿 미선택 상태 */
.no-template-selected {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
}

.no-template-icon {
    font-size: calc(48px * var(--ui-font-scale));
    margin-bottom: 20px;
}

.no-template-selected h4 {
    font-size: calc(20px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.no-template-selected p {
    font-size: calc(16px * var(--ui-font-scale));
    color: #666;
    margin-bottom: 24px;
}

/* 주제 설정 - 새로운 디자인 */
.topic-selection {
    max-width: 700px;
    margin: 0 auto;
}

.topic-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.topic-card > * {
    position: relative;
    z-index: 2;
}

.topic-header {
    text-align: center;
    margin-bottom: 32px;
}

.topic-icon {
    font-size: calc(48px * var(--ui-font-scale));
    margin-bottom: 16px;
    display: block;
}

.topic-title {
    font-size: calc(24px * var(--ui-font-scale));
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.topic-subtitle {
    font-size: calc(16px * var(--ui-font-scale));
    opacity: 0.9;
    color: white;
}

.topic-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.option-card {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.option-card.selected {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.option-icon {
    font-size: calc(32px * var(--ui-font-scale));
    margin-bottom: 12px;
    display: block;
}

.option-title {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.option-desc {
    font-size: calc(14px * var(--ui-font-scale));
    opacity: 0.9;
    color: white;
}

.topic-input-area,
.ai-suggest-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.input-container {
    margin-bottom: 20px;
}

.input-label {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.topic-input,
.keyword-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: calc(16px * var(--ui-font-scale));
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.topic-input:focus,
.keyword-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-hint {
    margin-top: 8px;
    font-size: calc(13px * var(--ui-font-scale));
    color: #666;
    line-height: 1.4;
}

.keyword-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.keyword-input {
    flex: 1;
}

.suggest-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.suggest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.suggest-btn .btn-icon {
    font-size: calc(16px * var(--ui-font-scale));
}

.suggestions-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.suggestions-icon {
    font-size: calc(20px * var(--ui-font-scale));
}

.suggestions-title {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.topic-suggestion {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 500;
    color: #333;
}

.topic-suggestion:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.topic-suggestion.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 게시글 발행 탭 */
.publish-content {
    max-width: 1000px;
    margin: 0 auto;
}

.posts-header {
    margin-bottom: 24px;
}

.posts-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.posts-title h3 {
    margin: 0;
    font-size: calc(20px * var(--ui-font-scale));
    color: #333;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.post-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.post-title {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-right: 12px;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.post-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: calc(14px * var(--ui-font-scale));
}

.post-action-btn:hover {
    transform: scale(1.1);
}

.preview-btn {
    background: #f8f9fa;
    color: #6c757d;
}

.preview-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.publish-btn {
    background: #28a745;
    color: white;
}

.publish-btn:hover {
    background: #218838;
}

.post-meta {
    margin-bottom: 12px;
}

.post-template {
    font-size: calc(12px * var(--ui-font-scale));
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.post-topic {
    font-size: calc(14px * var(--ui-font-scale));
    color: #666;
    margin-bottom: 8px;
}

.post-date {
    font-size: calc(12px * var(--ui-font-scale));
    color: #999;
}

.loading-posts {
    text-align: center;
    padding: 40px;
    color: #666;
}

.posts-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-posts-icon {
    font-size: calc(48px * var(--ui-font-scale));
    margin-bottom: 16px;
}

.no-posts h4 {
    margin: 0 0 8px 0;
    font-size: calc(18px * var(--ui-font-scale));
    color: #333;
}

.no-posts p {
    margin: 0 0 20px 0;
    font-size: calc(14px * var(--ui-font-scale));
}

/* AI 생성 요약 */
.ai-generation-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.ai-generation-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ai-generation-summary .summary-item:last-child {
    border-bottom: none;
}

.ai-generation-summary .summary-label {
    font-size: calc(14px * var(--ui-font-scale));
    color: #6c757d;
    font-weight: 500;
}

.ai-generation-summary .summary-value {
    font-size: calc(14px * var(--ui-font-scale));
    color: #333;
    font-weight: 600;
}

/* AI 생성 컨트롤 */
.ai-generation-controls {
    text-align: center;
    margin-bottom: 30px;
}

.btn-large {
    padding: 16px 32px;
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.generation-info {
    margin-top: 16px;
}

.generation-info p {
    font-size: calc(14px * var(--ui-font-scale));
    color: #666;
    margin: 0;
}

/* 진행률 표시 */
.generation-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: calc(14px * var(--ui-font-scale));
    color: #666;
    font-weight: 500;
}

/* 생성된 내용 */
.generated-content {
    background: white;
    border: 2px solid #28a745;
    border-radius: 12px;
    overflow: hidden;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.content-header h4 {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin: 0;
}

.content-actions {
    display: flex;
    gap: 12px;
}

.content-preview {
    padding: 24px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
}

/* 단계 액션 버튼 */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .creation-steps {
        flex-direction: column;
        gap: 20px;
        margin: 20px 0 30px 0;
    }
    
    .step-item {
        max-width: none;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .topic-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .keyword-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .suggest-btn {
        width: 100%;
        justify-content: center;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .template-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .template-actions {
        width: 100%;
        justify-content: center;
    }
    
    .content-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .content-actions {
        width: 100%;
        justify-content: center;
    }
}

/* 게시글 발행 스타일 */
.publish-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.publish-left {
    flex: 0 0 50%;
    overflow-y: auto;
    padding-right: 10px;
}

.publish-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.publish-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h3 {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.section-header p {
    font-size: calc(14px * var(--ui-font-scale));
    color: #6c757d;
    margin: 0;
}

.section-header .queue-actions {
    display: flex;
    gap: 8px;
}

/* 계정 선택 스타일 - 컴팩트 */
/* 계정 및 카테고리 선택 스타일 */
.account-category-selection {
    margin-top: 16px;
}

.selection-row {
    display: flex;
    gap: 16px;
}

.selection-group {
    flex: 1;
}

.selection-label {
    display: block;
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.selection-dropdown {
    position: relative;
}

.selection-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: calc(14px * var(--ui-font-scale));
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.selection-select:hover {
    border-color: #007bff;
}

.selection-select option {
    padding: 8px;
}

.category-select:hover {
    border-color: #007bff;
}

.no-accounts {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.no-accounts-icon {
    font-size: calc(48px * var(--ui-font-scale));
    margin-bottom: 16px;
}

.no-accounts h4 {
    color: #6c757d;
    margin-bottom: 8px;
}

.no-accounts p {
    color: #adb5bd;
    margin-bottom: 24px;
}

/* 게시글 선택 스타일 */
.post-selection {
    margin-bottom: 24px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.post-card-publish {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-card-publish:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.post-card-publish.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.post-card-publish .post-title {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-publish .select-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.post-card-publish.selected .select-indicator {
    background: #007bff;
    border-color: #007bff;
}

.post-card-publish.selected .select-indicator::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: calc(9px * var(--ui-font-scale));
}

/* 발행 설정 스타일 - 컴팩트 */
.publish-settings-compact {
    margin-bottom: 20px;
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.setting-label-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: calc(13px * var(--ui-font-scale));
    color: #495057;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.setting-label-compact:hover {
    background: #e9ecef;
}

.setting-label-compact input[type="checkbox"] {
    display: none;
}

.setting-label-compact .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.setting-label-compact input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.setting-label-compact input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: calc(10px * var(--ui-font-scale));
}

.setting-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.setting-label-small {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 500;
    color: #666;
}

.setting-input-small {
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: calc(12px * var(--ui-font-scale));
    transition: border-color 0.2s ease;
}

.setting-input-small:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* 컴팩트한 발행 설정 스타일 */
.publish-settings-compact {
    margin-bottom: 12px;
}

.publish-mode-selection {
    margin-bottom: 20px;
}

.publish-mode-selection h4 {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: calc(14px * var(--ui-font-scale));
    color: #495057;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #007bff;
    background: #007bff;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.publish-settings-content {
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 16px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.setting-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: calc(12px * var(--ui-font-scale));
    transition: border-color 0.2s ease;
}

.setting-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.interval-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.range-value {
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
    color: #007bff;
    min-width: 50px;
    text-align: center;
}

.additional-options {
    margin-bottom: 20px;
}

.additional-options h4 {
    font-size: calc(16px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: calc(13px * var(--ui-font-scale));
    color: #495057;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.option-label:hover {
    background: #e9ecef;
}

.option-label input[type="checkbox"] {
    display: none;
}

.option-label .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.option-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: calc(10px * var(--ui-font-scale));
}

.add-to-queue-section {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.btn-large {
    padding: 8px 16px;
    font-size: calc(14px * var(--ui-font-scale));
    font-weight: 600;
}

/* 간격 입력 필드 스타일 */
.interval-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: calc(12px * var(--ui-font-scale));
    text-align: center;
    transition: border-color 0.2s ease;
}

.interval-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-unit {
    margin-left: 6px;
    font-size: calc(12px * var(--ui-font-scale));
    color: #666;
    font-weight: 500;
}

/* 컴팩트한 발행 설정 레이아웃 */
.publish-mode-selection {
    margin-bottom: 12px;
}

.publish-mode-selection h4 {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: calc(12px * var(--ui-font-scale));
    color: #495057;
}

.radio-custom {
    width: 14px;
    height: 14px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #007bff;
    background: #007bff;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.publish-settings-content {
    margin-bottom: 12px;
}

.setting-group {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    font-size: calc(12px * var(--ui-font-scale));
    font-weight: 500;
    color: #333;
    min-width: 70px;
}

.additional-options {
    margin-bottom: 12px;
}

.additional-options h4 {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.options-grid {
    display: flex;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: calc(11px * var(--ui-font-scale));
    color: #495057;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.option-label:hover {
    background: #e9ecef;
}

.option-label .checkmark {
    width: 12px;
    height: 12px;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.option-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: calc(9px * var(--ui-font-scale));
}

.add-to-queue-section {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

/* 좌측 대기열 추가 버튼 스타일 */
.add-to-queue-section-left {
    text-align: center;
    padding: 16px 0;
    border-top: 2px solid #e9ecef;
    margin-top: 16px;
}

.add-to-queue-section-left .btn {
    width: 100%;
    max-width: 200px;
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.add-to-queue-section-left .btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.add-to-queue-section-left .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d;
    border-color: #6c757d;
}

.add-to-queue-section-left .btn:disabled:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* 발행 설정 하단 스타일 */
.publish-settings-bottom {
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 12px;
}

.publish-settings-bottom h4 {
    font-size: calc(13px * var(--ui-font-scale));
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.settings-options {
    display: flex;
    gap: 12px;
}

/* 발행 시작 버튼 스타일 */
.execute-publish-section {
    text-align: center;
    padding-top: 16px;
    border-top: 2px solid #e9ecef;
    margin-top: 16px;
}

.btn-execute {
    padding: 16px 32px;
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 700;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-execute:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-execute:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 게시글 컨트롤 스타일 */
.post-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: calc(13px * var(--ui-font-scale));
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: calc(14px * var(--ui-font-scale));
    color: #666;
    pointer-events: none;
}

.sort-controls {
    flex-shrink: 0;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: calc(13px * var(--ui-font-scale));
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* 페이지네이션 스타일 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    font-size: calc(12px * var(--ui-font-scale));
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: calc(14px * var(--ui-font-scale));
    color: #666;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9ff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    margin: 0 8px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: calc(12px * var(--ui-font-scale));
    color: #666;
}

.page-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9ff;
}

.page-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.page-btn.ellipsis {
    cursor: default;
    border: none;
    background: transparent;
}

.page-btn.ellipsis:hover {
    border: none;
    background: transparent;
    color: #666;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: calc(14px * var(--ui-font-scale));
    color: #495057;
}

.setting-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.setting-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.setting-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: calc(12px * var(--ui-font-scale));
}

.setting-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: calc(14px * var(--ui-font-scale));
    transition: border-color 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 발행 대기열 스타일 */
.publish-queue {
    margin-bottom: 24px;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.queue-header h4 {
    font-size: calc(18px * var(--ui-font-scale));
    font-weight: 600;
    color: #495057;
}

.queue-actions {
    display: flex;
    gap: 12px;
}

.queue-list {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
}

.queue-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s ease;
}

.queue-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.queue-item .queue-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.queue-item .queue-title {
    font-weight: 600;
    color: #333;
    font-size: calc(16px * var(--ui-font-scale));
    line-height: 1.4;
    margin-bottom: 8px;
}

.queue-item .queue-meta {
    font-size: calc(12px * var(--ui-font-scale));
    color: #666;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.queue-item .queue-meta span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.queue-item .queue-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.queue-item .queue-action-btn {
    padding: 6px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
    color: #666;
    font-size: calc(12px * var(--ui-font-scale));
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-item .queue-action-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.queue-item .queue-action-btn.danger {
    color: #dc3545;
    border-color: #dc3545;
}

.queue-item .queue-action-btn.danger:hover {
    background: #dc3545;
    color: white;
}

/* 대기열 아이템 시간 설정 스타일 */
.queue-time-settings {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.queue-time-mode {
    display: flex;
    gap: 8px;
}

.queue-time-mode input[type="radio"] {
    margin: 0;
}

.queue-time-mode label {
    font-size: calc(12px * var(--ui-font-scale));
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    background: white;
    transition: all 0.2s ease;
}

.queue-time-mode input[type="radio"]:checked + label {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.queue-time-input {
    padding: 6px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: calc(12px * var(--ui-font-scale));
    width: 160px;
}

.queue-time-input:focus {
    outline: none;
    border-color: #007bff;
}

.no-queue-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-queue-icon {
    font-size: calc(48px * var(--ui-font-scale));
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-queue-items h4 {
    color: #6c757d;
    margin-bottom: 8px;
}

.no-queue-items p {
    color: #adb5bd;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .publish-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .publish-left,
    .publish-right {
        flex: none;
    }
    
    .account-list,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-header .queue-actions {
        width: 100%;
        justify-content: center;
    }
}

/* 공지 탭 (다이노 픽 연동) */
.notices-app-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.notices-app-header {
    margin-bottom: 1.25rem;
}

.notices-app-title {
    font-size: calc(20px * var(--ui-font-scale));
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.notices-app-desc {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: calc(13px * var(--ui-font-scale));
    line-height: 1.55;
}

.notices-app-refresh {
    margin-top: 0.25rem;
}

.notices-app-error {
    color: #ff8a8a;
    font-size: calc(13px * var(--ui-font-scale));
    margin: 0 0 1rem;
}

.notices-app-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 1rem;
    font-size: calc(14px * var(--ui-font-scale));
}

.notices-app-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notices-app-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
}

.notices-app-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notices-app-item__tag {
    font-size: calc(11px * var(--ui-font-scale));
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.notices-app-item__tag--notice {
    background: rgba(91, 141, 239, 0.28);
    color: #cfe0ff;
}

.notices-app-item__tag--update {
    background: rgba(62, 207, 142, 0.28);
    color: #d4f5e6;
}

.notices-app-item__date {
    font-size: calc(12px * var(--ui-font-scale));
    color: rgba(255, 255, 255, 0.5);
}

.notices-app-item__title {
    font-size: calc(15px * var(--ui-font-scale));
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.notices-app-item__summary {
    margin: 0 0 0.5rem;
    font-size: calc(13px * var(--ui-font-scale));
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.notices-app-item__link {
    font-size: calc(12px * var(--ui-font-scale));
    color: var(--theme-accent, #6ab0ff);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notices-app-item__link:hover {
    color: var(--theme-accent-hover, #8cc4ff);
}
#mypage-days-left.is-expiring-soon { color: #d97706; font-weight: 800; }
