    .blind {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    *,
    *::before,
    *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        --bg: #F0F2F5;
        --side-hover-bg: #fbfbfbd0;
        --card-bg: #FFFFFF;
        --btn-bg: #ffffff;
        --black: #000000;
        --blue-soft: #F0F8FD;
        --color-primary: #29ABE2;
        --color-primary-hover: #1A96CC;
        --color-label: #222222;
        --color-sub: #666666;
        --sec-header: #F5F7F9;
        --color-link: #29ABE2;
        --input-bg: #F3F5F8;
        --input-placeholder: #AAAAAA;
        --border: #D1D5DB;
        --line-soft: #F0F2F5;
        --sidebar-bg: #FFFFFF;
        --sidebar-active-bg: #29ABE2;
        --sidebar-active-text: #1f2430;
        --sidebar-text: #444444;
        --ink: #666D79;
        --ink-soft: #5A626B;
        --table-header: #F8FAFC;
        --badge-complete-bg: #E6F6FD;
        --badge-complete-text: #29ABE2;
        --badge-error-bg: #FFF0F0;
        --badge-error-text: #E53E3E;
        --danger: #E5484D;
        --text-mute: #9ca3af;
        --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
        --radius-card: 12px;
        --radius-check: 4px;
        --radius-input: 8px;
        --radius-table: 4px;
        --radius-btn: 8px;
        --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
        --font-data: 'Space Grotesk', sans-serif;
        --disabled: #f3f3f3;

        /* 원본에서 참조되나 정의가 빠져있던 변수들 (버튼/프롬프트/차트 등 스타일 복구) */
        --surface: #FFFFFF;
        --border-strong: #C4C9D0;
        --color-primary-weak: #EAF6FC;
        --ink-mute: #9AA1A9;
        --text-sub: #666666;
        --font-body: 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
        --r-md: 8px;
        --r-sm: 6px;
        /* 상태 색상(보관함 KPI 카드 등) */
        --c-success: #12B76A;
        --c-warning: #F79009;
    }

    .bold {
        font-weight: 700;
    }

    input {
        appearance: none;
        border: none;
        background: none;
        color: inherit;
        font-family: inherit;
    }

    input::placeholder {
        color: var(--input-placeholder);
        font-size: 13px;
    }

    button {
        border: none;
    }

    .ic {
        width: 20px;
        height: 20px;
    }

    body {
        min-height: 100vh;
        display: flex;
        background-color: var(--bg);
        font-family: var(--sans), sans-serif;
        -webkit-font-smoothing: antialiased;
        color: var(--color-label);
        font-size: 14px;
        flex-direction: column;
    }

    /* ── Sidebar ── */
    .sidebar {
        position: relative;
        width: 220px;
        min-height: 100vh;
        /* QA Q29: --sidebar-bg 는 이 파일 :root 에서만 정의된다. 이 파일은 해시 없는
           고정 URL(link)로 로드되어 화면별 Vite CSS 청크와 달리 캐시가 갱신되지 않을 수
           있고, 변수 미해석 시 배경이 투명(간헐 LNB 배경 사라짐)이 되므로 명시 폴백 색 지정. */
        background: var(--sidebar-bg, #FFFFFF);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        padding: 18px 14px;
    }

    .sidebar-logo {
        display: flex;
    }

    .sidebar-logo img {
        height: 32px;
    }

    .sidebar-select {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .sidebar-select .cm-custom-selectbox .select-title {
        height: 32px;
    }

    .sidebar-select .cm-custom-selectbox {
        position: relative;
        width: 300px;
    }

    .sidebar-select .cm-custom-selectbox.disabled {
        background-color: var(--disabled);
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        background: var(--color-primary);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-family: var(--brand-font);
        font-weight: 700;
        font-size: 16px;
        flex-shrink: 0;
    }

    .nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .nav-item {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 16px 14px 16px 18px;
        cursor: pointer;
        border-radius: var(--radius-btn);
        font-size: 13px;
        font-weight: 500;
        color: var(--sidebar-text);
        transition: background 0.12s;
        text-decoration: none;
        line-height: 1.3;
    }

    .nav-item:hover {
        background: var(--side-hover-bg);
    }

    .nav-item.active {
        background: var(--blue-soft);
        color: var(--sidebar-active-text);
        font-weight: 700;
    }

    .nav-item.active .nav-icon {
        color: var(--color-primary);
    }

    .nav-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: #888;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ── Main wrapper ── */
    .main-wrapper {
        flex: 1;
        display: flex;
        min-width: 0;
    }

    /* ── Topbar ── */
    .topbar {
        height: 52px;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        flex-shrink: 0;
    }

    .topbar-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .project-select {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 16px;
        background: var(--input-bg);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        color: var(--color-label);
        cursor: pointer;
        border: 1px solid var(--border);
    }

    .topbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--card-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #666;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .account-menu {
        position: relative;
    }

    .account-dropdown {
        position: absolute;
        right: 0;
        width: 140px;
        margin: 0;
        padding: 6px;
        list-style: none;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.20);
        display: none;
        z-index: 100;
    }

    .account-dropdown::after {
        content: '';
        display: block;
        position: absolute;
        top: -9px;
        right: 12px;
        border: 5px solid #fff;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid transparent;

    }

    .account-dropdown::before {
        content: '';
        position: absolute;
        display: block;
        top: -10.5px;
        right: 12px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-bottom-color: var(--border);
    }

    .account-menu.open .account-dropdown {
        display: block;
    }

    .account-dropdown li a {
        display: block;
        padding: 9px 12px;
        border-radius: 6px;
        font-size: 13px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

    .account-dropdown li a:hover {
        background: var(--card-bg, #f5f7fa);
        color: var(--color-primary);
    }

    /* ── Content ── */
    .content {
        flex: 1;
        padding: 28px 28px 40px;
        overflow-y: auto;
    }

    .page-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--color-label);
        letter-spacing: -0.02em;
    }

    .stat-page-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .stat-page-sub {
        font-size: 13px;
        color: var(--color-sub);
        margin-top: 6px;
    }

    /* 페이지 부제(조회 기간 표기) */
    .page-sub {
        font-size: 13px;
        color: var(--color-sub);
        margin: 6px 0 0;
        line-height: 1.6;
    }

    .page-sub .period {
        font-weight: 700;
        color: var(--ink);
    }

    /* ── Table card ── */
    .table-card {
        background: var(--card-bg);
        border-radius: var(--radius-table);
        border: 1px solid var(--border);
        overflow: hidden;
    }

    .table-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-bottom: 16px;
        align-items: baseline;
    }

    .table-toolbar-bottom {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .search-input {
        flex: 1;
        max-width: 220px;
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        padding: 8px 12px;
        font-size: 13px;
        color: var(--input-placeholder);
    }

    .toolbar-btns {
        margin-left: auto;
        display: flex;
        gap: 8px;
    }

    /* ── Buttons ── */
    .btn-primary {
        flex: 1;
        padding: 8px 12px;
        border-radius: var(--radius-btn);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--sans);
        transition: opacity 0.12s;
        white-space: nowrap;
        width: 100%;
        background: var(--color-primary);
        color: #fff;
    }

    .btn-primary:hover {
        background: #1F97CC
    }

    .btn-ghost {
        width: 100%;
        background: var(--card-bg);
        color: var(--ink-soft);
        border: 1px solid var(--border);
        border-radius: var(--radius-btn);
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 500;
        margin-top: 10px
    }

    .btn-ghost:hover {
        background: #F3F5F7;
        color: var(--ink)
    }

    .btn-dark {
        background: var(--sidebar-active-text);
        color: #fff;
        width: 100%;
        border-radius: var(--radius-btn);
        padding: 12px;
        font-size: 14px;
        font-weight: 500;
    }

    /* ── Data table ── */
    .data-table {
        width: 100%;
        border-collapse: collapse;
    }

    .data-table tr:hover {
        cursor: pointer;
    }

    .data-table th {
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #888;
        background: #FAFBFC;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
        text-align: center;
    }

    .data-table td {
        padding: 8px 12px;
        font-size: 12px;
        /* color: var(--color-label); */
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
        text-align: center;
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    .data-table tr.selected {
        background: #F0F8FD;
    }

    .data-table tr:hover:not(.selected) {
        background: #FAFBFC;
    }

    .project-id-link {
        color: var(--color-link);
        text-decoration: none;
        font-weight: 500;
    }

    .badge {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 12px;
        border-radius: 999px;
    }

    .badge.done {
        color: var(--color-primary);
        border: 1px solid #9CD8F2
    }

    .badge.err {
        color: var(--danger);
        border: 1px solid #F2B8BA
    }

    .badge.ing {
        color: var(--color-sub);
        border: 1px solid var(--color-sub);
    }

    .more-btn {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 1px solid var(--border);
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888;
        font-size: 10px;
    }

    .more-btn:hover {
        background: var(--input-bg);
    }

    .more-btn.open {
        background: var(--blue-soft);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    /* ── 프로젝트 설명 팝오버 (⋯ 버튼) ── */
    .desc-popover {
        position: fixed;
        width: 300px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.20);
        z-index: 120;
        display: none;
    }

    .desc-popover.open {
        display: block;
    }

    .desc-popover::after {
        content: '';
        position: absolute;
        top: -9px;
        right: 25px;
        border: 5px solid #fff;
        border-left-color: transparent;
        border-right-color: transparent;
        border-top-color: transparent;
    }

    .desc-popover::before {
        content: '';
        position: absolute;
        top: -10.5px;
        right: 25px;
        border: 5px solid transparent;
        border-bottom-color: var(--border);
    }

    .desc-popover.flip::after,
    .desc-popover.flip::before {
        top: auto;
        transform: rotate(180deg);
    }

    .desc-popover.flip::after {
        bottom: -9px;
    }

    .desc-popover.flip::before {
        bottom: -10.5px;
    }

    .desc-popover-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px 10px;
        border-bottom: 1px solid var(--line-soft);
    }

    .desc-popover-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--color-label);
    }

    .desc-popover-id {
        font-family: var(--font-data);
        font-size: 11.5px;
        color: var(--color-sub);
    }

    .desc-popover-body {
        padding: 12px 14px 14px;
        font-size: 12.5px;
        line-height: 1.65;
        color: var(--color-label);
        max-height: 150px;
        overflow-y: auto;
        white-space: pre-line;
        word-break: break-all;
    }

    .desc-popover-body.empty {
        color: var(--text-mute);
    }

    input[type="checkbox"] {
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: var(--radius-check);
        border: 1px solid var(--border);
        cursor: pointer;
    }

    input[type="checkbox"]:checked {
        background: url(../img/checkbox.png);
        background-size: 100%;
        border: none;
    }

    /* ── Pagination ── */
    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 16px;
    }

    .page-btn {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        border: none;
        background: transparent;
        font-size: 13px;
        font-weight: 500;
        color: #666;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.1s;
    }

    .page-btn:hover {
        background: var(--input-bg);
    }

    .page-btn.active {
        background: var(--color-primary);
        color: #fff;
    }

    .page-btn.disabled {
        background: var(--disabled);
        color: var(--text-mute)
    }

    .page-dots {
        font-size: 13px;
        color: #aaa;
        padding: 0 2px;
    }

    /* ── Summary cards ── */
    .summary-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .summary-card {
        background: var(--card-bg);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-card);
        padding: 20px 22px;
    }

    .summary-label {
        font-size: 12px;
        color: var(--color-sub);
        font-weight: 500;
        margin-bottom: 10px;
    }

    .summary-value {
        font-family: var(--font-data);
        font-weight: 700;
        color: var(--color-label);
    }

    .summary-row.four {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ── Project detail ── */
    .detail-card {
        background: var(--card-bg);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-card);
        overflow: hidden;
        margin-top: 16px;
    }

    .detail-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 16px 22px;
        border-bottom: 1px solid var(--border);
        gap: 12px;
    }

    .detail-header-top {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .detail-header-bottom {
        width: 100%;
    }

    .detail-title {
        font-size: 14px;
        font-weight: 700;
    }

    .detail-title span {
        font-family: var(--font-data);
        color: var(--color-primary);
        font-weight: 700;
    }

    .edit-btn {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 7px 14px;
        border-radius: var(--radius-btn);
        border: 1px solid var(--border);
        background: var(--card-bg);
        font-size: 12px;
        font-weight: 600;
        color: var(--color-label);
        cursor: pointer;
        font-family: var(--sans);
    }

    .edit-btn:hover {
        background: var(--input-bg);
    }

    .detail-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        height: 100%;
    }

    /* ── Carousel ── */
    .carousel-section {
        padding: 22px;
        height: 100%;
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
    }

    .carousel {
        position: relative;
        margin-bottom: 20px;
    }

    .carousel-track-wrapper {
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
    }

    .carousel-track {
        display: flex;
        height: 100%;
        transition: transform 0.35s ease;
    }

    .carousel-slide {
        min-width: 100%;
        height: 100%;
        background: #D0D8E0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slide svg {
        opacity: 0.25;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
        display: block;
    }

    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid var(--border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        color: #444;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    /* ── 캐러셀 하단 정보 ── */
    .property-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
        flex: 1;
        min-height: 0;
    }

    .property-group {
        display: flex;
        flex-direction: column;
    }

    .property-group-title {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        color: var(--color-link);
        margin-bottom: 4px;
        padding-bottom: 7px;
        border-bottom: 1px solid var(--border);
    }

    .property-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        font-size: 13px;
    }

    .property-key {
        width: 96px;
        flex-shrink: 0;
        color: var(--color-sub);
        font-weight: 500;
    }

    .property-val {
        flex: 1;
        color: var(--color-label);
        font-weight: 500;
        line-height: 1.4;
        word-break: break-all;
        background: var(--input-bg);
        padding: 8px 12px;
        border-radius: 6px;
    }

    .property-val.link {
        text-decoration: underline;
        cursor: pointer;
    }

    /* ── Dataset table section ── */
    .dataset-section {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .dataset-title,
    .project-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    /* 대쉬보드 생성 데이터셋 행 */
    .dataset-table-wrap {
        height: 482px;
        border-radius: 8px;
        border: 1px solid var(--border);
        overflow: auto;
        background-color: #fbfcfd;
    }

    .dataset-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background-color: #FFF;
        height: auto;
    }

    .dataset-table tbody {
        box-shadow: var(--shadow);
    }

    .dataset-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .dataset-table th {
        padding: 12px 12px;
        font-size: 12px;
        font-weight: 600;
        color: #888;
        background: #FAFBFC;
        text-align: center;
    }

    .dataset-table td {
        padding: 12px 12px;
        font-size: 13px;
        color: var(--color-label);
        border-bottom: 1px solid var(--border);
        text-align: center;
        vertical-align: middle;
    }

    .dataset-table tr:last-child td {
        border-bottom: none;
    }

    .dataset-table tr:hover {
        background: #FAFBFC;
    }

    .go-link {
        color: var(--color-link);
        text-decoration: none;
        font-weight: 600;
        font-size: 12px;
    }

    .go-link:hover {
        text-decoration: underline;
    }

    .sort-icon {
        font-size: 10px;
        color: #aaa;
        margin-left: 3px;
    }

    /* 조건에 맞는 데이터셋이 없을 때 (빈 상태) */
    #emptyState {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 56px 24px 64px;
    }

    #emptyState .empty-illust {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: var(--blue-soft);
        display: grid;
        place-items: center;
        color: var(--color-primary);
        margin-bottom: 18px;
    }

    #emptyState .empty-illust svg {
        width: 34px;
        height: 34px;
    }

    #emptyState .empty-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-label);
        margin: 0 0 8px;
    }

    #emptyState .empty-desc {
        font-size: 13px;
        line-height: 1.7;
        color: var(--color-sub);
        margin: 0 0 20px;
    }

    #emptyState .empty-reset {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-btn);
        background: var(--card-bg);
        color: var(--color-label);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: border-color .15s, background .15s, color .15s;
    }

    #emptyState .empty-reset:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
        background: var(--blue-soft);
    }

    /* ── 프로젝트 메모 ── */
    .memo-section {
        padding-top: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .memo-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .memo-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-label);
    }

    .memo-title svg {
        color: var(--color-primary);
        flex-shrink: 0;
    }

    .memo-updated {
        font-size: 12px;
        color: var(--color-sub);
    }

    .memo-input {
        width: 100%;
        flex: 1;
        min-height: 0;
        resize: none;
        padding: 14px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        background: var(--card-bg);
        font-family: var(--sans);
        font-size: 13px;
        line-height: 1.7;
        color: var(--color-label);
    }

    .memo-input:focus {
        outline: none;
        border-color: var(--color-primary);
    }

    .memo-input::placeholder {
        color: var(--input-placeholder);
    }

    .memo-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 10px;
    }

    .memo-count {
        font-size: 12px;
        color: var(--color-sub);
        font-family: var(--font-data);
    }

    .memo-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .memo-saved {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--color-primary);
        opacity: 0;
        transition: opacity 0.2s;
    }

    .memo-saved.show {
        opacity: 1;
    }

    .memo-save-btn {
        padding: 8px 20px;
        border-radius: var(--radius-btn);
        background: var(--color-primary);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--sans);
        transition: background 0.12s;
        text-wrap: nowrap;
    }

    .memo-save-btn:hover {
        background: var(--color-primary-hover);
    }


    /* ========================================================
 * 달력 스타일
 * 모든페이지 공통사용
======================================================== */
    /* **** 달력 open input  **** */
    .cm-custom-datepicker {
        display: inline-block;
        vertical-align: middle;
        text-wrap: nowrap;
    }

    .datepicker-item {
        display: inline-block;
        vertical-align: middle;
    }

    .datepicker-open-input {
        position: relative;
        min-width: 170px;
        padding: 8px 12px;
        border: 1px solid #bbb;
        max-width: 200px;
        font-size: 13px;
        font-weight: 400;
        color: var(--ink-soft);
        border-radius: 0.5rem !important;
        box-sizing: border-box;
        text-align: left;
        transition: all 0.2s;
        background-color: #fff;
        background-size: 24px 24px;
        background-position: top 50% left 7px;
    }


    .datepicker-open-input:focus {
        outline: none;
    }

    /* ========================================================
        * SELECT 스타일
        * 모든페이지 공통사용
        ======================================================== */
    .project-dropdown {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 14px;
        background: var(--input-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        font-size: 13px;
        font-weight: 500;
        color: var(--color-label);
        cursor: pointer;
        min-width: 150px;
        justify-content: space-between;
    }

    .select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        display: none;
    }

    .custom-selectbox {
        position: relative;
        height: 32px;
    }

    .cm-custom-selectbox.open select {
        display: inline-block;
    }

    .cm-custom-selectbox {
        position: relative;
        display: inline-block;
        width: 100%;
        border: none;
    }

    .cm-custom-selectbox select {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .select-option.select-in-popup {
        z-index: 10000 !important;
    }

    /* fake form - 기본 select 스타일 */
    select {
        display: none;
    }

    .cm-custom-selectbox .select-title {
        display: flex;
        align-items: center;
        padding: 10px;
        width: 100%;
        background: url("../img/down-one.png") no-repeat 97% 50%;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        cursor: pointer;
    }

    .cm-custom-selectbox .select-title.focus,
    .cm-custom-selectbox .select-title.active {
        color: var(--sub-color1);
        border-color: #aaa;
        background-color: var(--white-color);
    }

    .select-options {
        position: absolute;
        top: 106%;
        left: 0;
        display: none;
        width: 100%;
        padding: 0;
        list-style: none;
        background-color: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        overflow: hidden;
        z-index: 999;
        box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.10);

        li {
            display: flex;
            align-items: center;
            height: 32px;
            padding: 0px 10px;
            cursor: pointer;

            &:hover {
                background: #F0F8FD;
            }
        }
    }

    .select-option ul {
        margin: 0;
        padding: 0;
        padding-top: 0.1rem;
    }

    .select-option li {
        background: var(--white-color);
        list-style: none;
    }

    .select-option span,
    .select-option strong {
        height: 1.1em;
        font-size: 1.4rem;
        font-weight: normal;
        color: #777;
        white-space: nowrap;
        text-overflow: ellipsis;
        line-height: 1.4;
        text-decoration: none;
        padding: 1rem;
        display: block;
        overflow: hidden;
        cursor: default;
    }

    .select-option strong {
        font-weight: bold;
        color: #777;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #ccc;
    }

    .select-option li li span {
        padding-left: 1rem;
    }

    .select-option span:hover,
    .select-option span.selected {
        color: var(--sub-color1);
        background: #f8f8f8;
        ㄴ
    }

    .select-option .disabled span,
    .select-option .disabled strong {
        color: #bbb;
        text-decoration: line-through;
        background: none;
    }

    .cm-custom-selectbox option {
        text-align: left;
    }

    .table-filter {
        border: 1px solid gray;
        background-color: #fff;
        padding: 10px;
    }

    .stepper-toolbar {
        flex-direction: column;

    }

    /* Stepper (4 steps) */
    .stepper {
        display: flex;
        width: 100%;
        gap: 0;
        margin-bottom: 8px;
    }

    .step {
        flex: 1;
        padding-top: 14px;
        border-top: 3px solid var(--border);
        margin-right: 14px;
    }

    .step:last-child {
        margin-right: 0;
    }

    .step.active {
        border-top-color: var(--color-primary);
    }

    .step .num {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-mute);
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .step .label {
        font-size: 14px;
        color: var(--text-mute);
        margin-top: 3px;
    }

    .step.active .num,
    .step.active .label {
        color: var(--color-primary);
    }

    .check {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 1.5px solid var(--text-mute);
        display: grid;
        place-items: center;
    }

    .check svg {
        width: 11px;
        height: 11px;
        color: var(--text-mute);
    }

    /* Card */
    .card {
        background: var(--card-bg);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        padding: 26px 34px 36px;
        margin-top: 18px;
    }

    .step-badge {
        display: inline-block;
        background: var(--black);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        padding: 5px 11px;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .card-h {
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .card-divider {
        border: none;
        border-top: 1px solid var(--border);
        margin: 18px 0 26px;
    }

    /* 2-column body */
    .body-grid {
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 48px;
        align-items: start;
    }

    /* Preview */
    .preview-h {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 14px;
    }

    .preview-canvas {
        width: 100%;
        aspect-ratio: 400/240;
        background: #2a2d34;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .preview-warn {
        position: absolute;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 22px;
        background: rgba(26, 29, 36, .86);
        color: #ff6b6b;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
    }

    .preview-warn.show {
        display: flex;
    }

    .summary {
        margin-top: 18px;
        display: flex;
        flex-direction: column;
    }

    .sum-row {
        display: grid;
        grid-template-columns: 120px 1fr;
        font-size: 13px;
        padding: 11px 8px;
    }

    .sum-row:nth-child(even) {
        background: #f7f8fa;
    }

    .sum-row .k {
        color: var(--text-sub);
    }

    .sum-row .v {
        color: var(--text);
        font-weight: 500;
    }

    /* Sections (right) */
    .section {
        margin-bottom: 6px;
    }

    .sec-head {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0 0 14px;
    }

    .sec-badge {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--black);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        display: grid;
        place-items: center;
    }

    .sec-title {
        font-size: 15px;
        font-weight: 700;
    }

    .sec-divider {
        border: none;
        border-top: 1px solid var(--line-soft);
        margin: 22px 0;
    }

    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 11px;
    }

    .chip {
        flex: 1;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--text);
        border-radius: 9px;
        padding: 13px 22px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: .12s;
        text-align: center;
        white-space: nowrap;
    }

    .chip:hover {
        border-color: #aab2bc;
    }

    .chip.sel {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
    }

    .chip.sel:hover {
        background: #1791d2;
    }

    .field {
        margin-top: 12px;
        border: 1px solid var(--border);
        border-radius: 9px;
        padding: 13px 16px;
        font-size: 14px;
        color: var(--text);
        width: 100%;
        max-width: 520px;
        outline: none;
        font-family: inherit;
    }

    .field.active {
        border: 1px solid var(--color-primary);
    }

    .field::placeholder {
        color: var(--text-mute);
    }

    .field[disabled] {
        border-color: var(--border);
        background: #f7f8fa;
        color: var(--text-mute);
    }

    /* Footer */
    .card-footer {
        display: flex;
        justify-content: space-between;
        margin-top: 24px;
    }

    .btn-prev {
        background: #c4c8cd;
        color: #fff;
    }

    .btn-prev:hover {
        background: #b3b8be;
    }

    .btn-next {
        background: var(--black);
        color: #fff;
    }

    /* 업로드 박스 */

    .upload-box {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 100%;
        height: 120px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fafafa;
        cursor: pointer;
        user-select: none;
        transition: border-color .15s ease, background .15s ease;
    }

    .upload-box:hover,
    .upload-box:focus-within,
    .upload-box:has(.dragover) {
        border: 1px dashed var(--color-primary);
        background-color: var(--blue-soft);
        transition: color .15s ease;

        .upload-content,
        .upload-title {
            color: var(--color-primary);
        }
    }

    .upload-content {
        text-align: center;
        color: #777;
        width: 100%;
    }

    .upload-title {
        margin: 2px 0;
        font-weight: 600;
        color: #555
    }

    .upload-sub {
        font-size: 12px;
        color: #aaa
    }

    #imageUpload {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .uploader-hint {
        font-size: 11px;
        color: var(--text-mute);
        margin-top: 4px;
    }

    .image-previews {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 12px;
    }

    .image-previews:empty {
        display: none;
        margin-top: 0;
    }

    .preview-item {
        position: relative;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border);
        background: var(--input-bg);
    }

    .preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .preview-remove {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(0, 0, 0, .55);
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        line-height: 1;
        padding: 0;
    }

    .preview-remove:hover {
        background: rgba(0, 0, 0, .8);
    }

    .file-list {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 10px;
        padding: 16px 0;
        width: 100%;
    }

    .file-list[hidden] {
        display: none;
    }

    .file-thumb {
        position: relative;
        min-width: 100px;
        width: 100%;
        height: 80px;
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid var(--border);
        cursor: pointer;
        flex-shrink: 0;
    }

    .file-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .thumb-del {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 0;
    }

    .thumb-del:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .file-count {
        margin-top: 6px;
        font-size: 12px;
        color: #999
    }

    .file-count #countNum {
        color: #ff4d4d;
        font-weight: 700
    }

    .save-btn {
        float: right;
        margin-top: 8px;
        padding: 10px 18px;
        background: #000;
        color: #fff;
        border: 0;
        border-radius: 6px;
        cursor: pointer;
    }

    .full-screen-ic {
        width: 15px;
    }

    /* Toast */
    .toast-container {
        position: fixed;
        left: 22px;
        bottom: 22px;
        width: 100%;
        justify-content: center;
        pointer-events: none;
        z-index: 9999;
    }

    .toast {
        width: 300px;
        background: #fff;
        border: 1px solid var(--text-mute);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(16, 24, 40, .16);
        padding: 14px 16px 16px;
        z-index: 9999;
        margin-bottom: 10px;
        pointer-events: auto;
    }

    .toast.hide {
        display: none;
    }

    .toast-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .toast-pill {
        background: var(--blue-soft);
        color: var(--color-primary);
        font-size: 12px;
        font-weight: 700;
        padding: 5px 12px;
        border-radius: 999px;
    }

    .toast-close {
        background: none;
        border: none;
        color: var(--color-sub);
        width: 20px;
        height: 20px;
        z-index: 9999;
        cursor: pointer;
    }

    .toast-loc {
        font-size: 13px;
        color: var(--color-label);
        margin-bottom: 8px;
    }

    .toast-pct {
        font-size: 13px;
        font-weight: 700;
        color: var(--color-label);
        margin-bottom: 8px;
    }

    .toast-bar {
        height: 6px;
        background: #eef1f4;
        border-radius: 4px;
        overflow: hidden;
    }

    .toast-bar-fill {
        height: 100%;
        width: 87%;
        background: var(--color-primary);
        border-radius: 4px;
        transition: width .8s ease;
    }

    /* ── Overlay ── */
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }

    /* ── Modal 1 (데이터셋 생성) ── */
    .modal {
        background: #fff;
        border-radius: var(--radius-card);
        padding: 28px 28px 24px;
        width: 360px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    }

    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .modal-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-label);
    }

    .modal-close {
        width: 28px;
        height: 28px;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 16px;
        color: #888;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

    .modal-close:hover {
        background: var(--bg);
    }

    /* ── Modal 2 (다운로드 완료) ── */
    .modal-dialog {
        width: 100%;
        max-width: 592px;
        background: var(--card-bg);
        border-radius: var(--radius-card);
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
        position: relative;
        animation: pop .22s ease;
    }

    @keyframes pop {
        from {
            transform: scale(.96);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .modal-dialog .modal-close {
        position: absolute;
        top: 18px;
        right: 20px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-label);
        width: 24px;
        height: 24px;
        z-index: 2;
    }

    .modal-top {
        background: var(--blue-soft);
        padding: 42px 40px 30px;
        text-align: center;
    }

    .check-img {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: var(--color-primary);
        display: grid;
        place-items: center;
        margin: 0 auto 20px;
        animation: check .35s .1s ease both;
    }

    @keyframes check {
        from {
            transform: scale(0);
        }

        60% {
            transform: scale(1.12);
        }

        to {
            transform: scale(1);
        }
    }

    .check-img svg {
        width: 30px;
        height: 30px;
        color: #fff;
    }

    .modal-top h2 {
        margin: 0 0 10px;
        font-size: 22px;
        font-weight: 700;
        color: var(--color-label);
    }

    .modal-top p {
        margin: 0;
        font-size: 14px;
        color: var(--color-sub);
    }

    .modal-body {
        padding: 30px 40px 36px;
    }

    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        margin-bottom: 26px;
    }

    .info-cell .k {
        font-size: 13px;
        color: var(--text-mute);
        margin-bottom: 7px;
    }

    .info-cell .v {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-label);
    }

    .file-row {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--input-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        padding: 15px 18px;
        font-size: 14px;
        color: var(--color-label);
        margin-bottom: 22px;
    }

    .file-row .fico {
        font-size: 18px;
    }

    .modal-dialog-bottom {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .modal-dialog .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
    }


    .btn-download {
        background: var(--black);
        color: #fff;
        margin-bottom: 14px;
    }

    .btn-download:hover {
        background: var(--color-label);
    }

    .btn-download svg {
        width: 16px;
        height: 16px;
    }

    .btn-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .btn-archive {
        background: var(--card-bg);
        border: 1.5px solid var(--color-primary);
        color: var(--color-primary);
    }

    .btn-archive:hover {
        background: var(--blue-soft);
    }

    .btn-new {
        background: var(--input-bg);
        color: var(--color-label);
    }

    .btn-new:hover {
        background: var(--line-soft);
    }

    .csv-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 16px;
        border-radius: var(--radius-btn);
        border: 1px solid var(--border);
        background: var(--card-bg);
        font-size: 13px;
        font-weight: 600;
        color: var(--color-label);
        cursor: pointer;
        font-family: var(--sans);
    }

    .csv-btn:hover {
        background: var(--input-bg);
    }


    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--color-label);
        margin-bottom: 8px;
    }

    .form-select-wrapper {
        position: relative;
        width: 100%;
    }

    .form-select {
        width: 100%;
        height: 40px;
        padding: 0 36px 0 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        background: #fff;
        font-size: 13px;
        color: var(--color-label);
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        font-family: var(--sans);
    }

    .form-select:focus {
        outline: none;
        border-color: var(--color-primary);
    }

    .select-arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #666;
        font-size: 10px;
    }

    .form-input {
        width: 100%;
        height: 40px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        background: #fff;
        font-size: 13px;
        color: var(--color-label);
        font-family: var(--sans);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--color-primary);
    }

    .modal-footer {
        display: flex;
        width: 100%;
        gap: 8px;
        margin-top: 24px;
    }

    .btn {
        flex: 1;
        padding: 8px 12px;
        border-radius: var(--radius-btn);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--sans);
        transition: opacity 0.12s;
        white-space: nowrap;
        max-width: 146.6px;
    }

    .btn-outline {
        background: #fff;
        border: 1.5px solid var(--color-primary);
        color: var(--color-primary);
    }

    .btn-outline:hover {
        background: #E6F6FD;
    }

    /* 프로젝트 편집 모달 */
    .modal.project-edit {
        width: 420px;
        animation: pop .22s ease;
    }

    .form-textarea {
        width: 100%;
        min-height: 84px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        background: #fff;
        font-size: 13px;
        color: var(--color-label);
        font-family: var(--sans);
        line-height: 1.6;
        resize: vertical;
    }

    .form-textarea:focus {
        outline: none;
        border-color: var(--color-primary);
    }

    .form-textarea::placeholder {
        color: var(--input-placeholder);
    }

    .form-label .req {
        color: var(--danger);
        margin-left: 2px;
    }

    .label-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }

    .char-count {
        font-size: 11px;
        color: var(--text-mute);
        font-family: var(--font-data);
    }

    .form-hint {
        font-size: 12px;
        color: var(--color-sub);
        margin-top: 6px;
        line-height: 1.5;
    }

    .modal.project-edit .modal-footer .btn {
        max-width: none;
    }

    /* 읽기 전용 프로젝트 ID */
    .form-input[readonly] {
        background: var(--input-bg);
        color: var(--color-sub);
        cursor: not-allowed;
    }

    /* 이미지 추가 슬롯 (썸네일 옆에서 클릭 시 업로드) */
    .preview-add {
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px dashed var(--border);
        border-radius: 8px;
        background: var(--input-bg);
        color: var(--text-mute);
        cursor: pointer;
        transition: border-color .15s ease, background-color .15s ease, color .15s ease;
    }

    .preview-add:hover,
    .preview-add:focus-visible,
    .preview-add.dragover {
        border-color: var(--color-primary);
        background: var(--blue-soft);
        color: var(--color-primary);
        outline: none;
    }

    .preview-add .add-icon {
        font-size: 22px;
        line-height: 1;
    }

    .preview-add .add-text {
        font-size: 11px;
        font-weight: 600;
    }

    /* Table panel */
    .panel {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow);
        overflow: hidden
    }

    .table-scroll table {
        width: 100%;
        border-collapse: collapse;
        min-width: 980px
    }

    .table-scroll table thead tr th {
        background: var(--table-header);
        font-size: 13px;
        font-weight: 500;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        text-align: center;
        white-space: nowrap;
        color: var(--ink);
    }


    thead th.col-name {
        text-align: left
    }

    tbody td {
        padding: 15px 16px;
        border-bottom: 1px solid var(--divider);
        font-size: 14px;
        color: var(--ink);
        white-space: nowrap;
        text-align: center;
    }

    tbody tr:last-child td {
        border-bottom: none
    }

    tbody tr.back {
        background: #FAFBFC
    }


    .panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }

    .tabs {
        display: flex
    }

    .tab {
        padding: 16px 24px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink-mute);
        border: none;
        background: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px
    }

    .tab .cnt {
        font-family: var(--font-data);
        margin-left: 5px
    }

    .tab:hover {
        color: var(--ink-soft)
    }

    .tab.active {
        color: var(--color-primary);
        font-weight: 700;
        border-bottom-color: var(--color-primary);
        background: var(--blue-soft);
    }

    .panel-tools {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: 18px;
    }

    .sort {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--ink-soft);
        background: none;
        border: none
    }

    .sort svg {
        width: 12px;
        height: 12px;
        color: var(--ink-mute)
    }

    .del-btn {
        border: 1px solid var(--border);
        background: var(--card-bg);
        border-radius: var(--radius-btn);
        padding: 8px 15px;
        font-size: 13px;
        color: var(--ink-soft)
    }

    .del-btn:hover {
        background: #F3F5F7;
        color: var(--ink);
        cursor: pointer;
    }

    .table-scroll {
        overflow-x: auto
    }

    td.name {
        font-weight: 700;
    }

    td.name:hover {
        cursor: pointer;
    }

    .route {
        color: var(--ink-soft)
    }

    .pid {
        color: var(--ink-soft);
        font-family: var(--font-data)
    }

    .cnt-cell .n {
        font-weight: 700
    }

    .cnt-cell .u {
        font-size: 13px;
        margin-left: 3px
    }

    .status-prog {
        color: var(--black);
        font-weight: 500;
        font-size: 11px;
    }

    /* row actions */
    .acts {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .btn-sm {
        font-size: 12.5px;
        padding: 6px 13px;
        border-radius: 7px;
        border: 1px solid var(--border-strong);
        background: var(--color-primary);
        color: #fff;
        font-weight: 600;
    }

    .btn-sm:hover {
        cursor: pointer;
    }

    .btn-sm.view {
        color: var(--color-primary);
        border-color: #BFE6F8;
        font-weight: 600
    }

    .btn-sm.view:hover {
        text-decoration: underline;
        cursor: pointer;
    }

    /* stat card */
    .stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 26px;
    }

    .stat .num {
        font-family: var(--font-data);
        font-weight: 700;
        line-height: 1;
        margin-bottom: 10px;
    }

    .stat.c-red .num,
    .stat.c-red .sub {
        color: var(--danger);
    }

    .stat.c-blue .num,
    .stat.c-blue .sub {
        color: var(--color-primary);
    }

    .stat .top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
    }


    .stat .sub {
        font-size: 11px;
        color: var(--color-sub);
        font-weight: 300;
    }

    .trend {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        background: var(--blue-soft);
        color: var(--color-primary);
        font-family: var(--font-data);
        font-weight: 600;
        font-size: 11.5px;
        padding: 4px 8px;
        border-radius: 999px;
        white-space: nowrap;
    }

    /* Two-column layout */
    .grid-title {
        margin-bottom: 18px;

    }

    .grid {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 24px;
        align-items: start
    }

    /* Summary card */
    .summary-card-left {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow);
        overflow: hidden
    }

    .sec-head-left {
        background: var(--sec-header);
        padding: 13px 24px;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--ink);
        letter-spacing: -.2px
    }

    .row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 24px;
        border-bottom: 1px solid var(--divider)
    }

    .row:last-child {
        border-bottom: none
    }

    .row .k {
        color: var(--ink-soft);
        font-size: 14px;
        line-height: 1.4;
    }

    .row .v {
        color: var(--ink);
        font-size: 14px;
        font-weight: 500;
        text-align: right;
        line-height: 1.4;
    }

    /* Generate card */
    .gen {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow);
        padding: 24px;
        position: sticky;
        top: 16px
    }

    .gen-title {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -.3px;
        margin: 0 0 16px
    }

    .gen-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 0;
        border-bottom: 1px solid var(--line-soft)
    }

    .gen-row:last-of-type {
        border-bottom: none
    }

    .gen-row .k {
        color: var(--ink-soft);
        font-size: 14px
    }

    .gen-row .v {
        font-size: 15px;
        font-weight: 700;
        font-family: var(--font-data)
    }

    .info-box {
        background: var(--blue-soft);
        border: 1px solid #CFEAFA;
        border-radius: var(--radius-card);
        padding: 14px 16px;
        color: #2A6C8C;
        font-size: 13px;
        line-height: 1.65;
        margin: 16px 0
    }

    /* 뒤로 가기 */
    .detail-back {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 13px;
        font-weight: 500;
        color: var(--color-sub);
        text-decoration: none;
        margin-bottom: 12px;
    }

    .detail-back:hover {
        color: var(--color-label);
    }

    /* ── 기간 세그먼트 ── */
    .head-tools {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .range-tabs {
        display: inline-flex;
        background: var(--input-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-btn);
        padding: 3px;
        gap: 2px;
    }

    .range-tab {
        padding: 6px 14px;
        border: none;
        background: transparent;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--color-sub);
        cursor: pointer;
        font-family: var(--sans);
        transition: background 0.12s, color 0.12s;
    }

    .range-tab:hover {
        color: var(--color-label);
    }

    .range-tab.active {
        background: #fff;
        color: var(--color-primary);
        font-weight: 700;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    @media (max-width:1180px) {
        .sidebar-select .cm-custom-selectbox {
            display: none;
        }

        .body-grid {
            grid-template-columns: 1fr;
            gap: 28px;
        }

        .sidebar {
            display: none;
        }

        .toast-container {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .data-table td,
        .go-link {
            font-size: 11px;
        }
    }

    @media (max-width:1040px) {
        .grid {
            grid-template-columns: 1fr
        }

        .gen {
            position: static
        }
    }

    @media (max-width:860px) {
        .app {
            grid-template-columns: 1fr
        }

        .sidebar {
            display: none
        }

        .steps {
            grid-template-columns: repeat(2, 1fr)
        }

        .table-toolbar-bottom {
            flex-direction: column;
            gap: 10px;
        }

        .toolbar-btns {
            margin-left: 0px;
        }

        .property-item {
            flex-direction: column;
            align-items: flex-start;
        }

        .property-val {
            width: 100%;
        }
    }

    @media (prefers-reduced-motion:reduce) {
        * {
            transition: none !important
        }
    }

    /* @media (max-width: 767px) {
        body::after {
            content: '권장 해상도로 설정되어있지 않습니다.';
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: var(--color-label);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            color: var(--ink-soft);
        }
    } */