/* 🧭 새 화면 틀 1단계 (shell-v2.js) — body.shell-v2 일 때만 쓴다. 끄면 이 파일의 규칙은 아무것도 바꾸지 않는다.
   시안: docs/pending/os-renewal-mockups/v2/final.html — 흰 바탕 · 가는 선(카드 상자 없음) · 인디고 강조 · 큰 숫자 */
.sv2-rail, .sv2-top, .sv2-tabs, .sv2-sheet-dim, .sv2-sheet, .sv2-page { display: none; }
body.shell-v2 {
    --sv2-primary: #18181b; --sv2-on-primary: #fff; --sv2-control-radius: 9px;
    --sv2-ink: #18181b; --sv2-sub: #52525b; --sv2-line: #ececef; --sv2-side: #fafafa;
    --sv2-accent: #2563eb; --sv2-soft: #eff6ff; --sv2-warn: #dc2626; --sv2-w: 232px;
    --sv2-badge-bg: #1d4ed8; --sv2-badge-text: #fff;
}
@media (min-width: 641px) and (max-width: 1279px) { body.shell-v2 { --sv2-w: 200px; } }
@media (min-width: 641px) { body.shell-v2.sv2-folded { --sv2-w: 44px; } }
body.shell-v2 :is(#appTopbar, #contextPanel, #mobileBottomNav, #leftPanelHandle, #finMobileTabBar, #finMobileMenu) { display: none !important; }

body.shell-v2 #rightPanelTopbar { background: var(--sv2-side); color: var(--sv2-ink); border-color: var(--sv2-line); }
body.shell-v2 #rightPanelTopbar .rp-tb-title { color: inherit; }
body.shell-v2 #rightPanelTopbar :is(.rp-tb-back,.rp-tb-close,.rp-tb-action) { color: var(--sv2-sub); }
body.shell-v2 #rightPanelTopbar button:hover { background: var(--sv2-soft); color: var(--sv2-ink); }

body.shell-v2 .sv2-rail {
    display: flex; flex-direction: column; position: fixed; z-index: 60; inset: 0 auto 0 0;
    width: var(--sv2-w); background: var(--sv2-side); border-right: 1px solid var(--sv2-line);
}
.sv2-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 10px; margin: 14px 10px 0; font-weight: 800; font-size: var(--fs-title); color: var(--sv2-ink); }
.sv2-brand img { width: 26px; height: 26px; border-radius: 8px; }
.sv2-rail-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px; }
.sv2-nav-row, .sv2-fold, .sv2-close, .sv2-group-button {
    width: 100%; min-height: 34px; border: 0; background: transparent; color: var(--sv2-ink);
    border-radius: 6px; padding: 5px 10px; text-align: left; font-size: var(--fs-base); cursor: pointer;
}
.sv2-nav-row { display: flex; align-items: center; gap: 8px; }
.sv2-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv2-grp { margin: 10px 0 2px; padding: 6px 10px; font-size: var(--fs-meta); font-weight: 700; color: var(--sv2-sub); }
.sv2-group-button { display: flex; justify-content: space-between; align-items: center; }
.sv2-group-button::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(-45deg); }
.sv2-group-button[aria-expanded="true"]::after { transform: rotate(45deg); }
.sv2-group-button[aria-disabled="true"] { cursor: default; }
.sv2-subheading { margin: 8px 0 2px; padding: 2px 0 2px 18px; font-size: var(--fs-meta); font-weight: 600; color: var(--sv2-sub); }
.sv2-nav-foot { border-top: 1px solid var(--sv2-line); padding: 6px 10px; }
.sv2-nav-row:hover, .sv2-fold:hover, .sv2-close:hover { background: var(--sv2-soft); }
.sv2-nav-row[aria-current="page"] { background: var(--sv2-soft); box-shadow: inset 3px 0 var(--sv2-accent); font-weight: 700; }
.sv2-fold { color: var(--sv2-sub); }
body.sv2-folded .sv2-fold { min-height: 44px; padding: 0; text-align: center; font-size: var(--fs-title); }
.sv2-cnt { margin-left: auto; padding: 0 6px; border-radius: 999px; font-size: var(--fs-meta); line-height: 20px; color: var(--sv2-badge-text); background: var(--sv2-badge-bg); }
.sv2-credit { display: block; width: 56px; height: auto; margin: 8px 10px; opacity: .28; }
html.os-dark .sv2-credit { filter: invert(1); }
.sv2-rail button:focus-visible, .sv2-sheet button:focus-visible, .sv2-tabs button:focus-visible { outline: 2px solid var(--sv2-accent); outline-offset: -2px; }

/* ── 위 막대 ── */
body.shell-v2 .sv2-top { display: flex; align-items: center; gap: 10px; height: 56px; flex: none; margin-left: var(--sv2-w); padding: 0 24px; border-bottom: 1px solid var(--sv2-line); background: #fff; }
.sv2-search { flex: 0 1 380px; height: 36px; border: 1px solid var(--sv2-line); border-radius: 9px; background: var(--sv2-side); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--sv2-sub); font-size: var(--fs-base); cursor: pointer; min-width: 0; }
.sv2-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sv2-search-short { display: none; }
.sv2-search kbd { margin-left: auto; font-family: inherit; font-size: var(--fs-meta); border: 1px solid var(--sv2-line); border-radius: 5px; padding: 0 6px; background: var(--sv2-side); color: var(--sv2-sub); }
.sv2-tools { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.sv2-tb { height: 36px; padding: 0 11px; border-radius: 8px; font-size: var(--fs-base); color: var(--sv2-sub); border: 0; background: none; cursor: pointer; white-space: nowrap; }
.sv2-tb:hover { background: var(--sv2-side); }
.sv2-tb[aria-current="page"] { color: var(--sv2-ink); background: var(--sv2-soft); font-weight: 700; }
.sv2-av { width: 34px; height: 34px; border-radius: 50%; background: #e3e7ee; font-size: var(--fs-meta); font-weight: 700; color: #475569; border: 0; margin-left: 6px; cursor: pointer; }

/* ── 본문 자리 ── */
body.shell-v2 .app-body { margin-left: var(--sv2-w); position: relative; }
body.shell-v2 .sv2-page:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 30; background: #fff; overflow: hidden; color: var(--sv2-ink); word-break: keep-all; }
.sv2-body { height: 100%; overflow-y: auto; padding: 22px 32px 40px; display: flex; flex-direction: column; gap: 18px; font-size: var(--fs-base); line-height: 1.45; }
.sv2-ph h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.sv2-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sv2-line); border-bottom: 1px solid var(--sv2-line); }
.sv2-kpi { padding: 14px 18px; border-right: 1px solid var(--sv2-line); min-width: 0; }
.sv2-kpi:first-child { padding-left: 0; }
.sv2-kpi:last-child { border-right: 0; }
.sv2-l { font-size: var(--fs-base); color: var(--sv2-sub); font-weight: 600; }
.sv2-v { font-size: 24px; font-weight: 800; letter-spacing: -.6px; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv2-v.w { color: var(--sv2-warn); }
.sv2-s { font-size: var(--fs-meta); color: var(--sv2-sub); }
.sv2-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.sv2-sec h2 { font-size: var(--fs-title); font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sv2-link { margin-left: auto; font-size: var(--fs-base); color: var(--sv2-sub); font-weight: 500; border: 0; background: none; cursor: pointer; min-height: 32px; padding: 0 2px; }
.sv2-note { font-size: var(--fs-meta); color: var(--sv2-sub); padding: 8px 0; }
.sv2-li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 48px; padding: 9px 6px; border: 0; border-top: 1px solid var(--sv2-line); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.sv2-li:first-of-type { border-top: 0; }
.sv2-li:hover { background: var(--sv2-side); }
.sv2-li.sel { background: var(--sv2-soft); border-radius: 9px; box-shadow: inset 3px 0 0 var(--sv2-accent); }
.sv2-tag { font-size: var(--fs-meta); font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.sv2-t-apv { background: #fef3c7; color: #92400e; }
.sv2-t-ntf { background: #f1f5f9; color: #475569; }
.sv2-t-err { background: #fee2e2; color: #991b1b; }
.sv2-tt { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sv2-tt small { display: block; font-weight: 400; color: var(--sv2-sub); font-size: var(--fs-meta); }
.sv2-r { font-size: var(--fs-meta); color: var(--sv2-sub); text-align: right; white-space: nowrap; }
.sv2-r b { display: block; color: var(--sv2-ink); font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.sv2-more { width: 100%; text-align: left; min-height: 40px; padding: 8px 6px; font-size: var(--fs-base); color: var(--sv2-sub); font-weight: 600; border: 0; border-top: 1px solid var(--sv2-line); background: none; cursor: pointer; }
.sv2-clock { display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; border-bottom: 1px solid var(--sv2-line); }
.sv2-clock b { font-size: 24px; font-weight: 800; display: block; }
.sv2-clock small { display: block; color: var(--sv2-sub); font-size: var(--fs-meta); }
.sv2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--sv2-control-radius, 9px); font-weight: 700; font-size: var(--fs-base); background: var(--sv2-accent); color: #fff; border: 0; cursor: pointer; white-space: nowrap; }
.sv2-clock .sv2-btn { margin-left: auto; }
.sv2-btn.g { background: #fff; color: var(--sv2-ink); border: 1px solid var(--sv2-line); }
.sv2-btn:disabled { opacity: .4; cursor: not-allowed; }
.sv2-table { font-size: var(--fs-base); }
.sv2-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr 1fr 1fr; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 8px; border: 0; border-bottom: 1px solid var(--sv2-line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sv2-tr:hover { background: var(--sv2-side); }
.sv2-th { color: var(--sv2-sub); font-size: var(--fs-meta); font-weight: 600; cursor: default; min-height: 32px; }
.sv2-th:hover { background: none; }
.sv2-nm { font-weight: 700; overflow-wrap: anywhere; }
.sv2-mine { font-style: normal; font-size: var(--fs-meta); color: var(--sv2-accent); background: var(--sv2-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.sv2-nw { white-space: nowrap; }
.sv2-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv2-th span:last-child { text-align: right; }
.sv2-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sv2-chip { font-size: var(--fs-base); font-weight: 600; min-height: 36px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--sv2-line); color: var(--sv2-sub); background: #fff; cursor: pointer; }
.sv2-chip.on { background: var(--sv2-accent); border-color: var(--sv2-accent); color: #fff; }

/* ── 받은 일 서랍 ── */
@media (min-width: 1200px) { .sv2-inbox-body { padding-right: 532px; } }
.sv2-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: #fff; border-left: 1px solid var(--sv2-line); box-shadow: -12px 0 32px rgba(15, 23, 42, .08); display: flex; flex-direction: column; z-index: 2; }
.sv2-dh { padding: 14px 20px 12px; border-bottom: 1px solid var(--sv2-line); }
.sv2-row { display: flex; align-items: center; gap: 8px; }
.sv2-x { margin-left: auto; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--sv2-line); background: #fff; color: var(--sv2-sub); cursor: pointer; }
.sv2-dh h2 { font-size: 20px; font-weight: 800; margin-top: 6px; letter-spacing: -.3px; overflow-wrap: anywhere; }
.sv2-amt { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sv2-amt small { font-size: var(--fs-meta); font-weight: 500; color: var(--sv2-sub); margin-left: 8px; letter-spacing: 0; }
.sv2-db { padding: 14px 20px; overflow-y: auto; flex: 1; }
.sv2-db .apvd-actions { display: none !important; }   /* 승인·반려는 아래 고정 줄이 이 버튼을 그대로 누른다 */
.sv2-msg { font-size: var(--fs-body); margin-bottom: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sv2-kv { display: grid; grid-template-columns: 92px 1fr; gap: 7px 12px; font-size: var(--fs-base); margin-bottom: 14px; }
.sv2-kv span { color: var(--sv2-sub); }
.sv2-df { border-top: 1px solid var(--sv2-line); padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; }
.sv2-cmt { flex: 0 0 100%; border: 1px solid var(--sv2-line); border-radius: 10px; padding: 9px 12px; font-size: 16px; font-family: inherit; resize: vertical; min-height: 48px; }
.sv2-hint { font-size: var(--fs-meta); color: #8a94a6; margin-right: auto; }
.sv2-ok { padding: 0 30px; }

/* ── 좁은 PC 창(769~1199): 서랍이 목록 위에 뜬다 ── */
@media (max-width: 1199px) and (min-width: 769px) {
    .sv2-cols { grid-template-columns: 1fr; gap: 18px; }
    .sv2-kpis { grid-template-columns: repeat(2, 1fr); }
    .sv2-kpi:nth-child(2) { border-right: 0; }
    .sv2-kpi:nth-child(3) { padding-left: 0; }
    .sv2-kpi:nth-child(n+3) { border-top: 1px solid var(--sv2-line); }
    .sv2-search-long { display: none; }
    .sv2-search-short { display: inline; }
    .sv2-search { flex: 0 0 auto; }
}

@media (min-width: 641px) and (max-width: 900px) {
    body.shell-v2 .sv2-top { padding: 0 8px; gap: 4px; }
    .sv2-search-long { display: none; }
    .sv2-search-short { display: inline; }
    .sv2-search kbd { display: none; }
    .sv2-tb { padding: 0 5px; }
}

/* 폰 메뉴는 화면 하단 시트로 열고, 태블릿에서는 레일을 유지한다. */
@media (max-width: 640px) {
    body.shell-v2 { --sv2-w: 0px; }
    body.shell-v2 .sv2-rail { display: none; }
    body.shell-v2.sv2-sheet-open .sv2-sheet-dim { display: block; position: fixed; inset: 0; z-index: 1150; background: rgb(0 0 0 / .42); border: 0; width: 100%; height: 100%; }
    body.shell-v2.sv2-sheet-open .sv2-sheet {
        display: flex; flex-direction: column; position: fixed; z-index: 1200; inset: auto 0 0; max-height: 85dvh;
        background: var(--sv2-side); color: var(--sv2-ink); border-radius: 16px 16px 0 0;
        padding: 0 16px env(safe-area-inset-bottom);
    }
    .sv2-sheet::before { content: ''; flex: none; align-self: center; width: 32px; height: 4px; margin: 8px 0 2px; border-radius: 4px; background: var(--sv2-sub); opacity: .45; }
    .sv2-sheet[data-more-below="true"]::after { content: ''; position: absolute; inset: auto 16px env(safe-area-inset-bottom); height: 24px; pointer-events: none; background: linear-gradient(transparent, var(--sv2-side)); }
    .sv2-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--sv2-line); }
    .sv2-sheet-list { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
    .sv2-sheet-list .sv2-grp { position: sticky; top: 0; z-index: 1; background: var(--sv2-side); }
    .sv2-sheet-head h2 { font-size: var(--fs-title); font-weight: 700; }
    .sv2-sheet .sv2-nav-row, .sv2-close { min-height: 44px; }
    .sv2-close { width: auto; min-width: 44px; color: var(--sv2-sub); }
    body.shell-v2 .sv2-top { padding: 0 12px; height: 52px; }
    .sv2-search { flex: 1 1 auto; }
    .sv2-search-long { display: none; }
    .sv2-search-short { display: inline; }
    .sv2-search kbd, .sv2-tb { display: none; }
    body.shell-v2 .sv2-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; inset: auto 0 0; z-index: 1100; background: var(--sv2-side); border-top: 1px solid var(--sv2-line); padding-bottom: env(safe-area-inset-bottom); }
    .sv2-tab { min-height: 56px; min-width: 44px; border: 0; padding: 0; background: transparent; font-size: var(--fs-base); color: var(--sv2-sub); cursor: pointer; }
    .sv2-tab[aria-current="page"], .sv2-tab[aria-expanded="true"] { color: var(--sv2-accent); font-weight: 700; box-shadow: inset 0 2px var(--sv2-accent); }
    .sv2-tab .sv2-cnt { display: block; width: fit-content; margin: 0 auto; line-height: 16px; }
    body.shell-v2 .app-body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    body.shell-v2 .sv2-page:not([hidden]) { bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
    .sv2-hint.sv2-kbd { visibility: hidden; }
    .sv2-body { padding: 16px 16px 28px; }
    .sv2-kpis { grid-template-columns: repeat(2, 1fr); }
    .sv2-kpi { padding: 12px 12px 12px 0; }
    .sv2-kpi:nth-child(2) { border-right: 0; padding-left: 12px; }
    .sv2-kpi:nth-child(4) { padding-left: 12px; }
    .sv2-kpi:nth-child(n+3) { border-top: 1px solid var(--sv2-line); }
    .sv2-cols { grid-template-columns: 1fr; gap: 18px; }
    .sv2-tr { grid-template-columns: minmax(0, 1fr) auto; }
    .sv2-tr > span:nth-child(2), .sv2-tr > span:nth-child(4) { display: none; }
    .sv2-drawer { width: 100%; border-left: 0; }
}

/* 설정 «새 화면 틀 시험» 켜기 칸(관리자만 보임) */
.settings-design-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-base); font-weight: 600; cursor: pointer; }
.settings-design-toggle input { width: 20px; height: 20px; }
/* 기존 상세의 맨 위 제목 줄은 서랍 머리(종류·제목·큰 금액)와 겹친다 — 단계 줄(apvd-steps)부터 보인다 */
.sv2-db > div:first-child > div:first-child:not(.apvd-steps) { display: none !important; }   /* 인라인 display:flex 를 이긴다 */
/* 기존 «코멘트 입력» 칸은 아래 고정 줄의 한마디와 겹친다 — 서랍에서는 입력만 숨기고 지난 코멘트는 그대로 보인다 */
.sv2-db input[placeholder="코멘트 입력..."], .sv2-db input[placeholder="코멘트 입력..."] + button { display: none; }

/* 견적 리스트 — 새 틀은 왼쪽 메뉴만큼 본문이 좁다. 칸 안쪽 여백을 줄여 «고객 진행»·PM 까지 1440 화면 안에 들어오게(2026-11-29 대표 결정 «오른쪽 칸 보이게») */
@media (min-width: 769px) {
    body.shell-v2 .fin-pipeline-quote-table th, body.shell-v2 .fin-pipeline-quote-table td { padding-left: 5px; padding-right: 5px; }
    body.shell-v2 .fin-pipeline-quote-table td[data-label="견적 버전"] > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 72px; word-break: keep-all; overflow-wrap: anywhere; }   /* 낱말 단위 줄바꿈, 2줄 넘으면 말줄임(전체 이름은 title) — 칸 max-width 는 표 폭 계산에 안 먹어 안쪽 span 으로 폭을 잡는다 */
    body.shell-v2 .fin-pipeline-quote-table td[data-label="프로젝트"] { max-width: 120px; }
}

/* 받은 일 서랍 — 머리(태그·금액 옆)에 이미 있는 프로젝트·문서 유형은 본문 표에서 뺀다(2026-11-29 시각 검수) */
.sv2-drawer .apvd-meta [data-k="프로젝트"], .sv2-drawer .apvd-meta [data-k="문서 유형"], .sv2-drawer .apvd-amt { display: none !important; }   /* 총 금액 상자는 인라인 display:flex 라 !important */

/* ── D안(2026-11-29 대표 결정): 연한 메뉴 · 흰 본문 · 실행 버튼은 검정 · 숫자는 칸 없이 크게. 색 역할은 검정=실행, 파랑=링크·내 담당, 빨강=경고 ── */
body.shell-v2 .sv2-ph h1 { font-size:20px; font-weight:700; letter-spacing:-.3px; }
body.shell-v2 .sv2-kpis { border-top:0; border-bottom:1px solid var(--sv2-line); }
body.shell-v2 .sv2-kpi { border-right:0 !important; padding:6px 24px 18px 0 !important; }
body.shell-v2 .sv2-l { font-size:var(--fs-meta); color:#71717a; font-weight:500; }
body.shell-v2 .sv2-v { font-size:28px; font-weight:600; letter-spacing:-.8px; }
body.shell-v2 .sv2-sec h2 { font-size:var(--fs-body); font-weight:700; }
body.shell-v2 .sv2-cols > section .sv2-li, body.shell-v2 .sv2-body > section .sv2-li { padding-left:0; padding-right:0; }
body.shell-v2 .sv2-tr { padding-left:0; padding-right:0; min-height:40px; }
body.shell-v2 .sv2-btn:not(.g), body.shell-v2 .sv2-chip.on { background:var(--sv2-primary); border-color:var(--sv2-primary); color:var(--sv2-on-primary); }
body.shell-v2 .sv2-chip { border-radius:8px; }
body.shell-v2 .sv2-li.sel { background:#f4f4f5; box-shadow:inset 2px 0 0 #18181b; border-radius:6px; }
@media (max-width:768px){
 body.shell-v2 .sv2-kpis { grid-template-columns:1fr 1fr !important; }
 body.shell-v2 .sv2-kpi { padding:6px 8px 14px 0 !important; }
 body.shell-v2 .sv2-v { font-size:24px; }
 body.shell-v2 .sv2-body .sv2-link { display:none; }
}
/* 서랍(옛 결재 상세를 그대로 그림) — 단계 칩도 같은 색 역할로 */
.sv2-drawer .apvd-steps { background: #fafafa; border-bottom-color: var(--sv2-line); }
.sv2-drawer .apvd-step.done { background: #f4f4f5; color: #3f3f46; }
.sv2-drawer .apvd-step.now { background: #18181b; color: #fff; }
.sv2-drawer .apvd-steps i + .apvd-step { margin-left: 0; }
/* 새 틀 안의 옛 화면 — 바탕만 흰색으로 맞춘다(옛 화면 구조·색은 건드리지 않음) */
body.shell-v2 .content-area, body.shell-v2 #mainContent { background: #fff; }
/* + 새로 만들기 */
.sv2-new { position: relative; margin-left: 8px; }
.sv2-new-btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: #18181b; color: #fff; font-size: var(--fs-base); font-weight: 700; cursor: pointer; white-space: nowrap; }
.sv2-new-menu { position: absolute; top: 42px; left: 0; z-index: 70; min-width: 180px; background: #fff; border: 1px solid #d4d4d8; border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18); padding: 6px; }
.sv2-new-menu[hidden] { display: none; }
.sv2-new-it { display: block; width: 100%; text-align: left; min-height: 40px; padding: 8px 12px; border: 0; background: none; border-radius: 7px; font-size: var(--fs-base); color: var(--sv2-ink); cursor: pointer; }
.sv2-new-it:hover, .sv2-new-it:focus-visible { background: #f4f4f5; }
@media (max-width: 768px) { .sv2-new { display: none; } }   /* 폰은 위 막대 자리가 없다 — «더보기» 시트로는 다음 단계 */

/* ── 옛 화면 D안 정리 1: 견적서 목록(2026-11-29 대표 결정). 새 틀일 때만 — 끄면 옛 모양 그대로 ── */
body.shell-v2 #global-quotelist .section-icon, body.shell-v2 #global-quotelist h2 + p { display: none; }
body.shell-v2 #global-quotelist h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
body.shell-v2 #global-quotelist input, body.shell-v2 #global-quotelist select, body.shell-v2 #global-quotelist .btn { border-radius: 8px !important; box-shadow: none !important; border-color: var(--sv2-line) !important; }
body.shell-v2 #global-quotelist .quote-sales-rate { background: none !important; border: 0 !important; border-bottom: 1px solid var(--sv2-line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 4px 0 14px !important; }
body.shell-v2 #global-quotelist .fin-metric-grid { gap: 0 !important; border-bottom: 1px solid var(--sv2-line); margin-bottom: 14px; }
body.shell-v2 #global-quotelist .fin-metric-card { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 10px 20px 12px 0 !important; }
body.shell-v2 #global-quotelist .fin-metric-value { color: var(--sv2-ink) !important; }
body.shell-v2 #global-quotelist #quoteListTable { background: transparent; }
body.shell-v2 #global-quotelist .rounded-2xl { border-radius: 10px !important; box-shadow: none !important; }
body.shell-v2 #global-quotelist .fin-pipeline-quote-table .text-blue-700 { color: var(--sv2-ink) !important; }
body.shell-v2 #global-quotelist .fin-pipeline-quote-table tr { background: transparent !important; }

/* ── 옛 화면 D안 공통(새 틀일 때만): 주 버튼 검정 · 그림자 없음 · 둥근 모서리 작게 · 장식 아이콘 타일 숨김 ── */
body.shell-v2 #mainContent .btn-primary, body.shell-v2 #mainContent button.bg-indigo-600, body.shell-v2 #mainContent button.bg-blue-600, body.shell-v2 #mainContent .apv-req-btn { background: var(--sv2-primary) !important; border-color: var(--sv2-primary) !important; color: var(--sv2-on-primary) !important; box-shadow: none !important; }
body.shell-v2 #mainContent .section-icon { display: none !important; }
body.shell-v2 #mainContent .shadow-sm, body.shell-v2 #mainContent .shadow, body.shell-v2 #mainContent .shadow-md, body.shell-v2 #mainContent .shadow-lg { box-shadow: none !important; }
body.shell-v2 #mainContent .rounded-2xl { border-radius: 10px !important; }
body.shell-v2 #mainContent .apv-bar { background: transparent !important; border: 1px solid var(--sv2-line) !important; border-radius: 10px !important; }
body.shell-v2 #mainContent .apv-bar-approved { border-color: #bbf7d0 !important; }
body.shell-v2 #mainContent .apv-bar-rejected { border-color: #fecaca !important; }
/* 견적 작성 단계 카드 */
body.shell-v2 #mainContent .quote-workflow { border: 1px solid var(--sv2-line) !important; border-radius: 10px !important; box-shadow: none !important; background: transparent !important; }
body.shell-v2 #mainContent .quote-workflow-steps button { border-radius: 8px !important; background: transparent !important; border: 1px solid var(--sv2-line) !important; color: var(--sv2-sub) !important; }
body.shell-v2 #mainContent .quote-workflow-steps button[aria-current] { border-color: var(--sv2-ink) !important; color: var(--sv2-ink) !important; font-weight: 700; }
/* 옛 화면 제목: 설명 줄 숨김(제목이 곧 메뉴 이름이라 같은 말) */
body.shell-v2 #topbarSubtitle { display: none !important; }
body.shell-v2 #topbarTitle { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -.3px; }
/* 옛 화면 선택칩·정렬 버튼(aria-pressed) — 고른 것은 검정 */
body.shell-v2 #mainContent button[aria-pressed="true"] { background: var(--sv2-primary) !important; border-color: var(--sv2-primary) !important; color: var(--sv2-on-primary) !important; }
body.shell-v2 #mainContent .pl-create-btn { background: #18181b !important; }
body.shell-v2 #mainContent .workspace-tools summary { box-shadow: none !important; border-radius: 8px !important; }
/* 프로젝트 이름 «수정» — 줄에 올리거나 키보드로 갈 때만 */
body.shell-v2 #projectListContainer .pl-name-edit { opacity: 0 !important; font-size: var(--fs-meta) !important; color: var(--sv2-sub) !important; text-decoration: underline; }
body.shell-v2 #projectListContainer tr:hover .pl-name-edit, body.shell-v2 #projectListContainer .pl-name-edit:focus-visible { opacity: 1 !important; }
/* 견적 종이 위 편집 버튼(인쇄 안 됨) — 외곽선 버튼 */
body.shell-v2 #mainContent [data-trigger-file="sealInput"], body.shell-v2 #mainContent [data-action="_openReceiverSearch"] { background: #fff !important; color: #3f3f46 !important; border: 1px solid #d4d4d8 !important; box-shadow: none !important; border-radius: 6px !important; }
/* 화면 안내 띠(.guide-banner, 12개 화면 공통) — 새 틀에서는 무채색, 그림 글자 없이 */
body.shell-v2 .guide-banner { background: transparent !important; border: 1px solid var(--sv2-line) !important; border-radius: 10px !important; }
body.shell-v2 .guide-banner .text-xl.flex-shrink-0 { display: none !important; }
body.shell-v2 .guide-banner .font-black { color: var(--sv2-ink) !important; font-weight: 700 !important; }
body.shell-v2 .guide-banner [data-mobile-help] { color: var(--sv2-sub) !important; }
body.shell-v2 .guide-banner [data-close-guide] { color: var(--sv2-sub) !important; }
/* 재무 대시보드 — 금액은 한 줄, 진단은 점으로 */
body.shell-v2 #finDashboardContainer td { white-space: nowrap; }
body.shell-v2 #finDashboardContainer td:first-child { white-space: normal; word-break: keep-all; }
body.shell-v2 .fin-overview-advice[data-sev] { color: var(--sv2-ink) !important; padding-left: 14px; position: relative; }
body.shell-v2 .fin-overview-advice[data-sev]::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #a1a1aa; }
body.shell-v2 .fin-overview-advice[data-sev="bad"]::before { background: #dc2626; }
body.shell-v2 .fin-overview-advice[data-sev="warn"]::before { background: #d97706; }
body.shell-v2 .fin-overview-advice[data-sev="good"]::before { background: #16a34a; }
/* 자금관리 — 통장 잔고 칸 채움 색 없이, 확인할 거래 칩 무채색 */
body.shell-v2 #mainContent .trsd-q { background: transparent !important; border-color: var(--sv2-line) !important; color: var(--sv2-ink) !important; }
body.shell-v2 #mainContent .trsd-balance, body.shell-v2 #mainContent .trsd-balance * { background: transparent !important; color: var(--sv2-ink) !important; }
body.shell-v2 #mainContent .trsd-balance { border: 1px solid var(--sv2-ink) !important; }
/* 옛 화면 탭(aria-current) — 고른 탭 검정, 탭 그림 글자 숨김 */
body.shell-v2 #mainContent .trs-tab-ico { display: none !important; }
body.shell-v2 #financeTreasuryContainer button[aria-current="page"] { background: #18181b !important; color: #fff !important; border-color: #18181b !important; }

/* 브랜드와 접기 버튼 사이만 스크롤한다. 낮은 창에서도 마지막 메뉴 아래 여백을 확보한다. */
body.shell-v2 .sv2-rail { max-height: 100dvh; overflow: hidden; }
body.shell-v2 .sv2-rail-list { min-height: 0; overflow-y: auto; padding-bottom: 40px; scroll-padding-block: 8px 40px; }
body.shell-v2 .sv2-rail :is(.sv2-brand, .sv2-nav-foot) { flex: none; }
body.shell-v2 #mainContent #finApprovalContainer .fin-apv-status-filters button {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: transparent; color: var(--sv2-sub);
}
body.shell-v2 #mainContent #finApprovalContainer .fin-apv-status-filters button[aria-pressed="true"] {
    background: transparent !important; border-bottom-color: var(--sv2-ink) !important; color: var(--sv2-ink) !important;
}
body.shell-v2 .apvd-steps i { color: var(--sv2-sub); }
body.shell-v2 .apvd-meta > div > div:first-child { font-size: max(11px, var(--fs-meta)) !important; }

/* 옛 화면의 역할별 색. 차트의 데이터 색과 인쇄 문서는 자체 팔레트를 쓴다. */
body.shell-v2 .sv2-rail-list.sv2-more-below { mask-image: linear-gradient(to bottom, black calc(100% - 36px), transparent); }
body.shell-v2 #todoA {
    --ta-bg: var(--sv2-side); --ta-surface: var(--svf-surface); --ta-text: var(--sv2-ink);
    --ta-sub: var(--sv2-sub); --ta-line: var(--sv2-line); --ta-soft: var(--svf-band);
    --ta-accent: var(--sv2-accent); --ta-accent-soft: var(--sv2-soft); --ta-warn: var(--svf-amber);
}
body.shell-v2 .gg-root {
    --gg-ink: var(--sv2-ink); --gg-ink2: var(--sv2-sub); --gg-ink3: var(--sv2-sub);
    --gg-line: var(--sv2-line); --gg-line2: var(--sv2-line); --gg-soft: var(--svf-band);
    --gg-wknd: var(--sv2-soft); --gg-projbg: var(--sv2-side);
}
body.shell-v2 :is(.right-slide-panel,.fin-apv-list,.fin-apv-detail-pane,.gg-root,.gg-scroll,.gg-table,.gg-noperiod,
    .assets-notice,.assets-table,.assets-purchases,.meeting-pane,.ug-content,.ug-button,
    .ta-cchip,.ta-gsel,.ta-qa,.ta-mini,.ta-panel,.ta-fold,.ta-dtop,.ta-plus,.ta-row.is-sel .ta-pill) {
    color: var(--sv2-ink); background-color: var(--svf-surface); border-color: var(--sv2-line);
}
body.shell-v2 #todoA .ta-cchip.is-on { color: var(--sv2-on-primary) !important; background: var(--sv2-primary) !important; }
body.shell-v2 :is(.ug-title,.ug-content h2,.ug-content h3,.ug-chapter,.meeting-pane-title,.version-list-name,.version-list-amount,.pl-budget-summary strong) { color: var(--sv2-ink); }
body.shell-v2 :is(.ug-more,.ug-replay,.ug-pdf) { color: var(--sv2-accent); }
body.shell-v2 .ug-chapter[aria-current="page"], body.shell-v2 .ug-button:hover { background: var(--sv2-soft); color: var(--sv2-accent); border-color: var(--sv2-line); }
body.shell-v2 #global-assets .assets-table :is(th,td) { background-color: var(--svf-surface); color: var(--sv2-ink); border-color: var(--sv2-line); }
body.shell-v2 .gg-table tbody td { background-color: var(--svf-surface); }
body.shell-v2 .gg-table tbody td.gg-wk { background-color: var(--gg-wknd); }
body.shell-v2 .gg-table tbody tr.gg-prow td { background-color: var(--gg-projbg); }
body.shell-v2 .gg-table thead :is(.gg-month,.gg-lft,.gg-wk) { background-color: var(--svf-band); }
body.shell-v2 .gg-table .gg-caret { opacity: 1; color: var(--sv2-sub); }
body.shell-v2 #mainContent .cal-day.bg-blue-50 { background-color: var(--sv2-soft) !important; }
body.shell-v2 .cal-day :is(.cal-event,.cal-group).text-white {
    background-image: linear-gradient(#0006,#0006); color: white !important;
}
body.shell-v2 .cal-event .opacity-75 { opacity: 1; }
body.shell-v2 .cmdk-panel > div:first-child > span:first-child { display: none; }
body.shell-v2 .cmdk-panel { background: var(--svf-surface) !important; color: var(--sv2-ink); }
body.shell-v2 .cmdk-panel :is(.cmdk-row div,input) { color: var(--sv2-ink) !important; }
body.shell-v2 .cmdk-panel :is(kbd,div:last-child > span) { color: var(--sv2-sub); }
body.shell-v2 #mainContent :is(.text-gray-300,.text-slate-300,.text-slate-400,.fin-expl-context,
    .fin-expl-meta,.fin-expl-found,.fin-expl-run > span,.svf-caret) { color: var(--sv2-sub) !important; opacity: 1; }
body.shell-v2 #mainContent :is(.fin-expl-name,.fin-expl-amount,.fin-expl-fund,.fin-expl-found > span) { color: var(--sv2-ink) !important; }
body.shell-v2 #financeContent :is(.fin-vendor-rows,.fin-quote-list-table,.fin-budget-table)
    :is([style*="color:#94a3b8" i],[style*="color: rgb(148, 163, 184)"],[style*="color:#cbd5e1" i],[style*="color: rgb(203, 213, 225)"]) { color: var(--sv2-sub) !important; }
body.shell-v2 #financeContent .fin-quote-list-table [data-label="상태"] span { color: var(--sv2-ink) !important; background: var(--sv2-soft) !important; }
body.shell-v2 #mainContent :is(#globalViewContent[data-view="clients"],#global-workload,#global-apps,#proposalAiNativeContainer,.svf-panel) :is(.text-purple-600,.text-violet-500,.text-violet-700,.text-blue-500,.text-blue-800) { color: var(--sv2-accent) !important; }
body.shell-v2 #mainContent :is(#globalViewContent[data-view="clients"],#global-workload,#global-apps,#proposalAiNativeContainer,.svf-panel) :is(.text-emerald-500,.text-emerald-600) { color: var(--svf-income) !important; }
body.shell-v2 #mainContent :is(#globalViewContent[data-view="clients"],#global-workload,#global-apps,#proposalAiNativeContainer,.svf-panel) :is(.text-red-500,.text-red-800) { color: var(--svf-error) !important; }
body.shell-v2 #mainContent :is(.text-\[8px\],.text-\[9px\],.text-\[10px\],.gg-dnum,.cal-event,
    [style*="font-size:8px"],[style*="font-size: 8px"],[style*="font-size:9px"],[style*="font-size: 9px"],
    [style*="font-size:10px"],[style*="font-size: 10px"]), body.shell-v2 .cmdk-panel kbd,
body.shell-v2 .cmdk-panel [style*="font-size:10px"] { font-size: var(--fs-meta) !important; }

html.os-dark body.shell-v2 #mainContent :is(.fin-expl-item,.fin-expl-fund,.fin-expl-run,.ir-empty,
    .fin-vendor-rows tr,.plan-card,.fin-recon-strip,.pnl-exec-strip,.pnl-verdict,.calendar-period-nav,
    .ti-chip,.ct-next,.assets-purchases,.gg-b:not(.gg-b-pri)) {
    color: var(--sv2-ink) !important; background: var(--svf-band) !important; border-color: var(--sv2-line) !important;
}
html.os-dark body.shell-v2 #mainContent #projectContextStrip { background: var(--svf-band) !important; color: var(--sv2-ink); border-color: var(--sv2-line); }
html.os-dark body.shell-v2 #mainContent .ct-view-card[aria-pressed="true"] { background: var(--sv2-soft) !important; border-color: var(--sv2-accent) !important; }
html.os-dark body.shell-v2 #mainContent #fin-budget .fin-budget-table,
html.os-dark body.shell-v2 #mainContent #fin-budget .fin-budget-table > tbody > tr:has(> td[data-label]) {
    background: var(--svf-surface) !important; border-color: var(--sv2-line) !important;
}
html.os-dark body.shell-v2 #mainContent :is(.pl-budget-summary,.version-list-row,.fin-recon-strip,.pnl-exec-strip) :is(strong,b,.version-list-name,.version-list-amount) { color: var(--sv2-ink) !important; }
html.os-dark body.shell-v2 #mainContent :is(.fin-apv-section.wait,.gg-note,.svs-warning) { color: var(--svf-amber) !important; background: var(--svf-warning-bg) !important; }
html.os-dark body.shell-v2 #mainContent #fin-reports .bg-indigo-50 { color: var(--sv2-accent) !important; background: var(--sv2-soft) !important; }
@media (max-width: 640px) {
    body.shell-v2 #finApprovalContainer .fin-apv-new { bottom: calc(72px + env(safe-area-inset-bottom)); }
    body.shell-v2.sv2-page-open #finApprovalContainer .fin-apv-new { visibility: hidden; }
    body.shell-v2 .sv2-sheet-list { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    body.shell-v2 :is(#shellV2Toggle,#osThemeSelect) { min-height: 36px; }
    body.shell-v2 .version-list-wide .version-list-name { white-space: normal; overflow-wrap: anywhere; }
}
body.shell-v2 #sv2ContextMenu { margin: 8px 16px; max-width: calc(100% - 32px); padding: 4px 12px; min-height: 36px; color: var(--sv2-ink); background: var(--svf-surface); border: 1px solid var(--sv2-line); border-radius: 8px; }
body.shell-v2 .sv2-df[hidden] { display: none; }
body.shell-v2 #global-contracts .fin-metric-label > [aria-hidden="true"],
body.shell-v2 #global-apps .text-xl.leading-none, body.shell-v2 #global-meetings .text-5xl.mb-3,
body.shell-v2 .gg-bkicon { display: none; }
html.os-dark body.shell-v2 :is(#projectCloseoutEntry,.project-closeout) { --bg-card: var(--svf-surface); --bg-main: var(--svf-band); --text-sub: var(--sv2-sub); }
body.shell-v2 #financeContent :is(.fin-quote-list-table,.fin-vendor-rows) td:is([data-label="공급가액"],[data-label="작성일"],[data-label="승인번호"]),
body.shell-v2 #financeContent .fin-vendor-rows td::before { color: var(--sv2-sub) !important; }
body.shell-v2 #financeContent .fin-quote-list-table td[data-label="상태"] .svf-approved { color: var(--svf-income) !important; background: var(--svf-band) !important; }
body.shell-v2 #financeContent .fin-quote-list-table td[data-label="상태"] .svf-rejected { color: var(--svf-error) !important; background: var(--svf-band) !important; }
body.shell-v2 #financeContent .fin-quote-list-table td[data-label="상태"] .svf-pending { color: var(--svf-amber) !important; background: var(--svf-warning-bg) !important; }
body.shell-v2 #financeContent #fin-quotes td[data-label="수신사"]:empty + td[data-label="항목"]::before { content: '항목 '; color: var(--sv2-sub); }
html.os-dark body.shell-v2 #view-plan :is(.plan-card,.plan-phase,.plan-task-name,.plan-phase > .plan-input,.plan-toolbar) { color: var(--sv2-ink); background: var(--svf-band) !important; }
html.os-dark body.shell-v2 #mainContent .fin-expl-run.is-current { background: var(--sv2-soft) !important; color: var(--sv2-accent) !important; }
@media (max-width: 768px) {
    body.shell-v2 #fin-daily .fin-daily-table td:empty { display: none !important; }
    body.shell-v2 :is(#view-extcrew,#view-finance) :is(div,section):has(> table) { max-width: 100%; overflow-x: auto; }
}
body.shell-v2 #global-assets .assets-table { background: var(--svf-surface); }
body.shell-v2 #mainContent :is(.gg-bar,.gg-rb) { font-size: var(--fs-meta); }
body.shell-v2 .svf-weeks { overflow-x: auto; }
body.shell-v2 .svf-weeks > div { min-width: max-content; }
html.os-dark body.shell-v2 #proposalAiNativeContainer :is(.text-amber-800,.text-orange-800) { color: var(--svf-amber) !important; }
html.os-dark body.shell-v2 #proposalAiNativeContainer :is(.text-emerald-800,.text-green-800) { color: var(--svf-income) !important; }

body.shell-v2 #globalCalGuideV32 { background: var(--svf-band) !important; border-color: var(--sv2-line); }
body.shell-v2 #globalCalGuideV32 :is(.text-blue-800,.text-blue-700,.text-blue-400) { color: var(--sv2-ink) !important; }
body.shell-v2 #globalViewContent:is([data-view="nworksmail"],[data-view="cloudfiles"]) .w-11.h-11.text-xl.shrink-0 { display: none; }
@media (max-width: 640px) {
    /* 요약 바로가기는 키보드로 접근할 때 펼친다. 같은 수치는 바로 아래 카드에서 읽을 수 있다. */
    body.shell-v2 .svh-summary:not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
body.shell-v2 #global-contracts .ct-current { color: var(--sv2-ink); }
body.shell-v2 .sv2-project-sub-pms { margin-top: 4px; color: var(--sv2-sub); font-size: var(--fs-meta); }
body.shell-v2 :is(#fin-budget .fin-metric-value,#quoteListSummary .fin-metric-sub) { white-space: normal; overflow-wrap: anywhere; }

body.shell-v2 .sv2-nav-foot { position: relative; }
body.shell-v2 .sv2-nav-foot .sv2-extra-tools { display: flex; flex-wrap: wrap; }
body.shell-v2 .sv2-nav-foot .sv2-extra-tools button {
    width: auto; padding-inline: 6px; color: var(--sv2-sub); font-size: var(--fs-meta);
}
body.shell-v2 .sv2-rail-more:not([hidden]) {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    border: 1px solid var(--sv2-line); border-radius: 12px;
    background: var(--sv2-side); color: var(--sv2-sub); font-size: var(--fs-meta);
}
body.shell-v2 .sv2-rail-more::after {
    content: ''; width: 6px; height: 6px; border: solid currentColor;
    border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
}

/* 본문 밖에 붙는 작성 창, 확인창과 상세 서랍도 본문과 같은 표면색을 쓴다. */
body.shell-v2 .os-modal-overlay :is(.os-modal,.os-modal-header,.os-modal-body,.os-modal-footer),
body.shell-v2 > [role="dialog"][aria-modal="true"]:not([class],[id]) > div,
body.shell-v2 :is(#mandatoryClockModal,#patchLogModal) > div,
body.shell-v2 #mandatoryClockModal :is(.mand-clock-body,.mand-clock-header),
body.shell-v2 #patchLogModal .bg-gradient-to-r {
    background: var(--svf-surface) !important; color: var(--sv2-ink) !important; border-color: var(--sv2-line) !important;
}
body.shell-v2 .os-modal-header :is(h3,.os-modal-close),
body.shell-v2 > [role="dialog"][aria-modal="true"]:not([class],[id]) :is(h3,p),
body.shell-v2 #mandatoryClockModal .mand-clock-header :is(h2,p,div),
body.shell-v2 #patchLogModal { z-index: 1201; }
body.shell-v2 #patchLogModal .bg-gradient-to-r :is(h3,p,button) { color: var(--sv2-ink) !important; }
body.shell-v2 > [role="dialog"][aria-modal="true"]:not([class],[id]) input,
body.shell-v2 :is(.os-modal-overlay,#mandatoryClockModal,#approvalDetailPanel) :is(select,textarea,input:not([type="checkbox"],[type="radio"],[type="range"],[type="color"])) {
    color: var(--sv2-ink) !important; background-color: var(--svf-band) !important; border-color: var(--sv2-line) !important;
}
body.shell-v2 .os-modal-overlay :is(.pma-card,.pma-task.done),
body.shell-v2 #mandatoryClockModal button,
body.shell-v2 .os-modal-overlay :is(.pma-card,.os-modal-footer) button,
body.shell-v2 > [role="dialog"][aria-modal="true"]:not([class],[id]) button:not(:last-child) {
    background: var(--svf-band) !important; color: var(--sv2-ink) !important; border-color: var(--sv2-line) !important;
}
body.shell-v2:has(> #mandatoryClockModal:not(.hidden)) :is(.sv2-tabs,.sv2-sheet,.sv2-sheet-dim) { display: none; }
body.shell-v2 #mandatoryClockModal svg {
    display: inline-block; width: 1em; height: 1em; vertical-align: middle;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
body.shell-v2 .pma-card :is(.pma-title,.pma-tt) { color: var(--sv2-ink); }
body.shell-v2 .os-modal-overlay :is(.pma-top,.pma-meta,.pma-hint,.pma-note,.pma-card [style*="color:#64748b"]) { color: var(--sv2-sub) !important; }
body.shell-v2 .pma-task { border-color: var(--sv2-line); }
body.shell-v2 .pma-late { color: var(--svf-error); }
body.shell-v2 .pma-count { color: var(--svf-amber); background: var(--svf-warning-bg); }
body.shell-v2 .pma-bar { background: var(--sv2-line); }
html.os-dark body.shell-v2 #approvalDetailPanel,
html.os-dark body.shell-v2 #approvalDetailPanel :is(.bg-white,header,footer) {
    background-color: var(--svf-surface) !important; color: var(--sv2-ink); border-color: var(--sv2-line);
}
html.os-dark body.shell-v2 #approvalDetailPanel :is(.bg-slate-50,.apvd-meta,.apvd-amt,.apvd-steps) {
    background: var(--svf-band) !important; color: var(--sv2-ink); border-color: var(--sv2-line);
}
html.os-dark body.shell-v2 #approvalDetailPanel .bg-emerald-50.text-emerald-800 { color: var(--svf-income) !important; }
html.os-dark body.shell-v2 #approvalDetailPanel .bg-red-50.text-red-800 { color: var(--svf-error) !important; }
body.shell-v2 #mainContent :is(.assets-name,.ta-tg,.ta-groupby,.gg-chkwrap,.gg-li-nm) { color: var(--sv2-ink); }
body.shell-v2 #global-assets .assets-inventory tr { background: var(--svf-surface); border-color: var(--sv2-line); }
body.shell-v2 #global-assets .assets-photo-placeholder { color: var(--sv2-sub); background: var(--svf-band); border-color: var(--sv2-line); }
body.shell-v2 #mainContent .gg-noperiod :is(.gg-np-head,.gg-np-names,.gg-np-hint) { color: var(--svf-amber); }
body.shell-v2 #mainContent :is(.gg-divlabel,.gg-caret,.gg-badge-prop) { font-size: max(11px, var(--fs-meta)); }
body.shell-v2 #mainContent .gg-bar:not(.gg-btmp) { background-image: linear-gradient(#0008,#0008) !important; color: white; opacity: 1; }
body.shell-v2 #mainContent .gg-badge-prop { color: var(--sv2-accent); background: var(--sv2-soft); }
body.shell-v2 #mainContent .cal-day .bg-blue-500.text-white { color: white !important; background: #1d4ed8 !important; }
body.shell-v2 #mainContent #global-settlement .text-right[class*="text-[9px]"] { color: var(--sv2-sub) !important; }
body.shell-v2 #global-workload td :is(.bg-yellow-500,.bg-green-500) { color: #18181b !important; }
body.shell-v2 #mainContent .bids-stage-filters button[aria-pressed="true"] > div { color: var(--sv2-on-primary) !important; }
body.shell-v2 #mainContent .bids-list-status .text-emerald-300 { color: var(--sv2-sub) !important; }
body.shell-v2 #paTabContent button.bg-amber-500 { color: #18181b !important; }
body.shell-v2 #mainContent .fin-ir-search > span:first-child { display: none; }

html.os-dark body.shell-v2 #mainContent :is(.ir-empty b,.ir-group-head span,.ir-t1,.fin-expl-term) { color: var(--sv2-ink) !important; }
html.os-dark body.shell-v2 #mainContent :is(.fin-expl-fund .is-short,.ti-sync-info.bad) { color: var(--svf-error) !important; }
html.os-dark body.shell-v2 #mainContent #attendTodayBalance > .border,
html.os-dark body.shell-v2 #mainContent #paTabContent .text-sky-700.bg-sky-50 {
    color: var(--sv2-accent) !important; background: var(--sv2-soft) !important;
}
html.os-dark body.shell-v2 #mainContent #financeContent :is(.fin-budget-table,.fin-vendor-rows) td[data-label="상태"] > span,
html.os-dark body.shell-v2 #mainContent #fin-reports :is(.svf-report-tag,.svf-report-summary,.bg-indigo-50) {
    color: var(--sv2-ink) !important; background: var(--svf-band) !important; border-color: var(--sv2-line) !important;
}
html.os-dark body.shell-v2 #fin-reports .svf-report-summary > div { color: var(--sv2-ink) !important; }
html.os-dark body.shell-v2 #sv2Page .sve-body:not(.sva-body) .sve-head .sve-primary,
html.os-dark body.shell-v2 #mainContent #meetingCreateBtn,
html.os-dark body.shell-v2 #mainContent #fin-alerts .bg-blue-50 > button.bg-blue-600 {
    color: var(--sv2-ink) !important; background: var(--sv2-soft) !important; border: 1px solid var(--sv2-accent) !important;
}
body.shell-v2 .os-modal-overlay :is(.pma-card .pma-task select + button,.btn-primary),
body.shell-v2 .os-modal-overlay .os-modal-footer button.btn-primary {
    color: var(--sv2-accent) !important; background: var(--sv2-soft) !important; border: 1px solid var(--sv2-accent) !important;
}
body.shell-v2 .os-modal-overlay .btn-outline {
    color: var(--sv2-ink) !important; background: var(--svf-band) !important; border-color: var(--sv2-line) !important;
}
body.shell-v2 > [role="dialog"][aria-modal="true"]:not([class],[id]) {
    --color-blue: #1d4ed8; --color-red: #b91c1c;
}
body.shell-v2 #mainContent .gg-divlabel { color: var(--sv2-sub); }
body.shell-v2 #mainContent :is(.gg-lidiv,.gg-table tbody .gg-divrow td) {
    color: var(--sv2-sub); background: var(--svf-band); border-color: var(--sv2-line);
}
html:not(.os-dark) body.shell-v2 #fin-budget .fin-budget-table td[data-label="상태"] > span { color: var(--sv2-ink) !important; }
html.os-dark body.shell-v2 #mainContent .bids-stage-filters button[aria-pressed="true"] {
    background: var(--sv2-soft) !important; border-color: var(--sv2-accent) !important;
}
html.os-dark body.shell-v2 #mainContent .bids-stage-filters button[aria-pressed="true"] > div { color: var(--sv2-ink) !important; }

/* 프로젝트 내부 탐색 — 같은 목적지를 왼쪽 메뉴와 폰 칩 줄로 표시한다. */
body.shell-v2 .sv2-project-head { padding: 10px; border-bottom: 1px solid var(--sv2-line); }
body.shell-v2 .sv2-project-head button { color: var(--sv2-sub); }
body.shell-v2 .sv2-project-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 6px 10px; word-break: keep-all; overflow-wrap: anywhere;
    font-size: var(--fs-title); font-weight: 700; color: var(--sv2-ink);
}
body.shell-v2 .sv2-project-close, body.shell-v2 .sv2-project-chip {
    border: 1px solid var(--sv2-line); background: var(--svf-surface); color: var(--sv2-ink);
    padding: 4px 10px; border-radius: 8px; font-size: var(--fs-base); cursor: pointer;
}
body.shell-v2 .sv2-project-close { min-height: 32px; font-size: var(--fs-meta); }
body.shell-v2 #sv2ProjectChips { display: none; }
body.shell-v2 .sv2-project-dialog .os-modal-close { color: var(--sv2-sub); }
body.shell-v2 .sv2-close-option {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 48px; margin-top: 8px;
    padding: 10px 14px; border: 1px solid var(--sv2-line); border-radius: 8px; background: var(--svf-surface);
    color: var(--sv2-ink); text-align: left; font-size: var(--fs-base); cursor: pointer;
}
body.shell-v2 .sv2-close-option:hover { background: var(--sv2-soft); }
body.shell-v2 .sv2-close-option span { font-size: var(--fs-meta); color: var(--sv2-sub); }
@media (min-width: 641px) {
    body.shell-v2 #btnReturnWorkspaceBoardV31 { display: none !important; }
    body.shell-v2 .sv2-project-dialog { align-items: center; }
    body.shell-v2 .sv2-project-dialog .os-modal { width: 320px !important; border-radius: 12px; }
}
@media (max-width: 640px) {
    body.shell-v2 #sv2ProjectChips {
        display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0;
        overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 24px 6px 12px;
        mask-image: linear-gradient(to right, black calc(100% - 18px), transparent);
    }
    body.shell-v2 .sv2-project-chip { flex: none; min-width: 44px; min-height: 44px; border-radius: 999px; white-space: nowrap; }
    body.shell-v2 .sv2-project-chip[aria-current="page"] { background: var(--sv2-accent); border-color: var(--sv2-accent); color: white; font-weight: 700; }
    html.os-dark body.shell-v2 .sv2-project-chip[aria-current="page"] { --sv2-accent: var(--sv2-badge-bg); }
    body.shell-v2 .sv2-chip-divider { flex: 0 0 1px; height: 20px; background: var(--sv2-line); }
    body.shell-v2 #pageHeaderEl.sv2-has-more { position: relative; padding-right: 60px; }
    body.shell-v2 #sv2ProjectMore { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border-radius: 8px; }
    /* dark.css 의 #mainContent button.bg-white 보다 앞서야 한다 */
    body.shell-v2 #mainContent #btnReturnWorkspaceBoardV31 { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0 !important; }
}
@media (width < 1024px) {
    body.shell-v2 .sv2-project-sheet { align-items: flex-end; padding: 0; }
    body.shell-v2 .sv2-project-sheet .os-modal {
        width: 100% !important; max-width: 100% !important; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom);
    }
    body.shell-v2 .sv2-project-sheet .os-modal::before {
        content: ''; flex: none; align-self: center; width: 32px; height: 4px; margin-top: 8px;
        border-radius: 4px; background: var(--sv2-sub); opacity: .45;
    }
    body.shell-v2 .sv2-project-sheet .os-modal-header h3 { font-size: var(--fs-title) !important; }
    body.shell-v2 .sv2-project-sheet button { min-height: 44px; }
}
