/* VicMind 공통 플랫폼 화면. 색과 레일 치수는 Board 셸 토큰 사본(/static/vendor/board-shell/shell-tokens.css)과
   platform-tokens.css에서 읽는다. 왼쪽 레일은 Board shell-rail 꼴이고 항목은 서버가 그린 service다.
   글꼴은 자체 제공 Pretendard(public/fonts/VENDOR.md). */
@font-face {
  font-family: 'Pretendard Variable';
  src: url('/static/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Pretendard Variable', system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: hsl(var(--vm-foreground));
  background: hsl(var(--vm-background));
  line-height: 1.5;
}

.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Board 셸: 위 막대·설정 메뉴·빈 검색 자리. 검색 폼은 없다. */
.shell-drawer-toggle { display: none; }
.shell-topbar { position: sticky; top: 0; z-index: 40; flex: none; display: flex; align-items: center; gap: var(--vm-topbar-gap); height: var(--vm-topbar-height); padding: var(--vm-topbar-pad); background: hsl(var(--vm-topbar-background)); color: hsl(var(--vm-foreground)); border-bottom: 1px solid hsl(var(--vm-border)); }
.shell-topbar :focus-visible, .shell-rail :focus-visible { outline: none; box-shadow: 0 0 0 2px hsl(var(--vm-ring)); }
.shell-topbar a, .shell-rail a { text-decoration: none; }
.shell-burger { display: none; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--vm-radius); color: hsl(var(--vm-foreground)); cursor: pointer; transition: background-color .15s; }
.shell-burger:hover { background: hsl(var(--vm-accent)); }
.shell-burger svg { width: 1rem; height: 1rem; }
.shell-workspace { position: relative; flex: 0 1 auto; width: auto; max-width: var(--vm-workspace-width); min-width: 0; }
/* 위 막대 맨 오른쪽 회사 설정(로고, 계정 관리)과 왼쪽 아래 프로필 메뉴(내 프로필·로그아웃), 2026-11-22. */
.shell-menu { position: relative; }
.shell-menu > summary { list-style: none; cursor: pointer; }
.shell-menu > summary::-webkit-details-marker { display: none; }
.shell-gear-menu { flex: none; }
.shell-gear { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--vm-radius); color: hsl(var(--vm-muted-foreground)); transition: background-color .15s; }
.shell-gear:hover, .shell-gear-menu[open] > .shell-gear { background: hsl(var(--vm-muted)); color: hsl(var(--vm-foreground)); }
.shell-gear svg { width: 20px; height: 20px; }
/* 레일은 세로 스크롤 칸이라 프로필 메뉴는 레일 오른쪽에 고정으로 띄운다. */
.shell-me-link:hover { background: hsl(var(--vm-rail-accent)); }
.shell-ws-toggle { display: flex; align-items: center; gap: .625rem; width: 100%; min-width: 0; padding: .25rem .375rem; border-radius: var(--vm-radius); color: hsl(var(--vm-foreground)); list-style: none; cursor: pointer; transition: background-color .15s; }
.shell-ws-toggle::-webkit-details-marker { display: none; }
.shell-ws-toggle:hover { background: hsl(var(--vm-muted)); }
.shell-ws-static { cursor: default; }
.shell-ws-static:hover { background: transparent; }
/* 회사 로고·이름은 홈(/)으로 가는 링크다. */
.shell-home { cursor: pointer; text-decoration: none; }
.shell-home:hover { background: hsl(var(--vm-muted)); }
.shell-home:focus-visible { outline: 2px solid hsl(var(--vm-ring)); outline-offset: 2px; }
.shell-badge { display: flex; align-items: center; justify-content: center; flex: none; width: var(--vm-badge-size); height: var(--vm-badge-size); border-radius: var(--vm-badge-radius); background: hsl(var(--vm-workspace-badge)); border: 1px solid hsl(var(--vm-border)); overflow: hidden; font-size: var(--vm-badge-font-size); font-weight: 700; line-height: 1; }
.shell-badge img { width: 100%; height: 100%; object-fit: contain; }
.company-logo { object-fit: contain; }
.service-guide { margin: 0 0 16px; padding: 16px 24px; border: 1px solid hsl(var(--vm-border)); border-radius: var(--vm-dialog-radius); background: hsl(var(--vm-card)); box-shadow: 0 12px 32px rgb(0 0 0 / .18); font-size: 14px; }
.service-guide p { margin: 0 0 8px; }
.service-guide dl { display: grid; grid-template-columns: 3em 1fr; gap: 4px 12px; margin: 8px 0; }
.service-guide dd { margin: 0; }
.service-guide a { margin-right: 16px; text-underline-offset: 3px; }
.vm-company { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vm-company-size); font-weight: 750; line-height: 1.3; letter-spacing: -.03em; }
.shell-ws-caret { flex: none; width: 1rem; height: 1rem; color: hsl(var(--vm-muted-foreground)); }
.shell-ws-pop { position: absolute; left: 0; top: 100%; z-index: 50; margin-top: .25rem; width: 14rem; display: flex; flex-direction: column; gap: .125rem; padding: .25rem; font-size: .875rem; line-height: 1.25rem; background: hsl(var(--vm-card)); color: hsl(var(--vm-card-foreground)); border: 1px solid hsl(var(--vm-border)); border-radius: var(--vm-radius); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.shell-ws-pop form { margin: 0; }
.shell-ws-item { display: block; width: 100%; padding: .375rem .75rem; border: 0; border-radius: calc(var(--vm-radius) - 2px); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shell-ws-item:hover { background: hsl(var(--vm-muted)); }
.shell-ws-pop.shell-gear-pop { left: auto; right: 0; }
.shell-ws-pop.shell-me-pop { position: fixed; left: calc(var(--vm-rail-width) + .25rem); top: auto; bottom: .75rem; margin-top: 0; text-align: left; }
.shell-search-wrap { flex: 1; min-width: 0; display: flex; justify-content: center; }
/* 예시 머리(b-mind-example console.css): 회사 이름 옆 팀 글자 .company-label, 오른쪽 .header-right의 안내 단추·소개 링크. */
/* 회사 이름 옆 Mind 선택(2026-11-22): 「회사 / Mind」. 회사는 글자, Mind는 단추이고 둘 이상이면 「Mind 선택」 메뉴를 연다. */
.shell-slash { flex: none; margin: 0 2px; color: hsl(var(--vm-border)); font-size: 26px; font-weight: 300; line-height: 1; }
.shell-mind-menu { flex: none; }
.shell-mind-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; border-radius: 10px; color: hsl(var(--vm-foreground)); font-size: 15px; font-weight: 650; line-height: 1; white-space: nowrap; transition: background-color .15s; }
.shell-mind-btn:hover, .shell-mind-menu[open] > .shell-mind-btn { background: hsl(var(--vm-muted)); }
.shell-mind-chev { width: 16px; height: 16px; color: hsl(var(--vm-muted-foreground)); }
.shell-ws-pop.shell-mind-pop { width: 16rem; padding: .5rem; border-radius: 14px; }
.shell-pop-title { padding: .25rem .5rem .375rem; color: hsl(var(--vm-muted-foreground)); font-size: 11.5px; font-weight: 600; }
a.shell-mind { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; color: inherit; }
a.shell-mind:hover { background: hsl(var(--vm-muted)); }
a.shell-mind[aria-current="true"] { background: hsl(var(--vm-muted) / .7); }
.shell-mind-text { flex: 1; min-width: 0; line-height: 1.3; }
.shell-mind-text b { display: block; font-size: 14px; font-weight: 650; }
.shell-mind-text small { display: block; margin-top: 1px; color: hsl(var(--vm-muted-foreground)); font-size: 12px; }
.shell-mind-check { flex: none; width: 16px; height: 16px; color: var(--vm-brand-exact, hsl(var(--vm-primary))); }
/* Mind 글자 칸: Mind 색으로 채운 칸에 흰 머리 글자. 왼쪽 메뉴의 선 그림 아이콘과 구분된다. */
.mind-tile { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--vm-mind-default); color: hsl(var(--vm-background)); font-size: 14px; font-weight: 800; line-height: 1; }
.mind-tile.mind-tile-sm { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.mind-tile[data-mind="a-mind"] { background: var(--vm-mind-a); }
.mind-tile[data-mind="b-mind"] { background: var(--vm-mind-b); }
.mind-tile[data-mind="c-mind"] { background: var(--vm-mind-c); }
.mind-tile[data-mind="fp-mind"] { background: var(--vm-mind-f); }
.mind-tile[data-mind="tp-mind"] { background: var(--vm-mind-t); }
.mind-tile[data-mind="w-mind"] { background: var(--vm-mind-w); }
.shell-links { flex: none; display: flex; align-items: center; gap: 18px; font-size: 12px; }
.shell-manual { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; color: var(--vm-brand-exact, hsl(var(--vm-primary))); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.shell-intro { color: hsl(var(--vm-muted-foreground)); white-space: nowrap; }
.shell-manual:hover, .shell-intro:hover { text-decoration: underline; text-underline-offset: 3px; }
.shell-topbar-end { display: none; flex: none; width: var(--vm-workspace-width); }
.shell-scrim { display: none; }

.app-layout { position: relative; display: flex; min-height: calc(100vh - var(--vm-topbar-height)); }
.shell-body { position: relative; flex: 1; min-height: 0; }

/* 왼쪽 레일: Board shell-rail. 폭은 --vm-rail-width. 항목 글자는 service 라벨이다. */
.shell-rail { position: sticky; top: var(--vm-topbar-height); flex: none; display: flex; flex-direction: column; align-items: center; gap: .25rem; width: var(--vm-rail-width); height: calc(100vh - var(--vm-topbar-height)); height: calc(100dvh - var(--vm-topbar-height)); padding: .75rem 0; overflow-y: auto; background: hsl(var(--vm-rail-background)); color: hsl(var(--vm-rail-foreground)); border-right: 1px solid hsl(var(--vm-sidebar-border)); }
.shell-rail-list { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 100%; margin: 0; padding: 0 .375rem; list-style: none; }
.shell-rail-list li { width: 100%; }
.shell-rail-gap { height: .75rem; }
.shell-rail-link { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 100%; padding: .375rem .25rem; border-radius: var(--vm-radius); color: inherit; font-size: .6875rem; font-weight: 500; line-height: 1.25; text-align: center; }
.shell-rail-link:hover { color: hsl(var(--vm-foreground)); }
.shell-rail-link.is-active, .shell-rail-link[aria-current="page"] { color: hsl(var(--vm-rail-active-foreground)); }
.shell-rail-link[data-service-state="preparing"] { color: hsl(var(--vm-muted-foreground)); }
.shell-rail-icon { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--vm-radius); }
.shell-rail-link:hover .shell-rail-icon { background: hsl(var(--vm-rail-accent)); }
.shell-rail-link.is-active .shell-rail-icon, .shell-rail-link[aria-current="page"] .shell-rail-icon { background: hsl(var(--vm-rail-active)); }
.shell-rail-icon svg { width: 1.25rem; height: 1.25rem; stroke-width: 1.65; }
.shell-rail-label { width: 100%; word-break: keep-all; white-space: pre-line; }
.shell-me { margin-top: auto; display: flex; flex-direction: column; align-items: center; padding-top: .5rem; }
.shell-me-link { display: block; padding: .25rem; border-radius: var(--vm-radius); }
a.shell-me-link:hover { background: hsl(var(--vm-rail-accent)); }
.shell-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 2.25rem; overflow: hidden; border-radius: 9999px; background: hsl(var(--vm-muted)); color: hsl(var(--vm-muted-foreground)); font-size: .75rem; font-weight: 600; line-height: 1; }
.vm-subtabs { list-style: none; margin: 0; padding: 0; font-size: 10px; text-align: center; }
.vm-badge { display: block; font-size: 9px; line-height: 1.2; color: hsl(var(--vm-muted-foreground)); }

.vm-main { flex: 1; min-width: 0; padding: 20px 24px; }
.vm-notice { color: hsl(var(--vm-muted-foreground)); }
.vm-error { color: hsl(var(--vm-destructive)); }

/* 카드 화면(.mind-screen): 서버 h1은 시각적으로 숨기고(읽기 도구에는 남김) React 머리 하나만 보인다. */
.vm-main.vm-page:has(.mind-screen) > .page-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vm-page .mind-screen > .page-head { margin: 4px 0; }
.vm-page .mind-screen > .page-head :is(h1, h2) { font-size: 28px; }
/* 사용 매뉴얼(/manual): 회색 바탕 위 카드(업무 화면과 같은 틀). 시작 네 걸음 → 기본 채널 → 서비스 채널(칸 전체가 링크) → 회사 설정. */
.vm-main.vm-page:has(> .manual) { background: hsl(var(--vm-muted)); }
.manual { display: flex; flex-direction: column; gap: 20px; max-width: 1120px; word-break: keep-all; }
.manual .manual-card { padding: 24px; border: 0; border-radius: 16px; box-shadow: 0 1px 3px rgb(0 0 0 / .05), 0 1px 2px rgb(0 0 0 / .03); }
.manual .manual-card .card-head { margin-bottom: 18px; }
.manual .manual-card .card-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.manual .manual-card .card-sub { font-size: 13px; }
.manual-hero { padding: 0; }
.manual-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.manual-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: hsl(var(--vm-card)); box-shadow: 0 1px 3px rgb(0 0 0 / .05), 0 1px 2px rgb(0 0 0 / .03); }
.manual-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -9px; width: 6px; height: 6px; border-top: 1.5px solid hsl(var(--vm-muted-foreground) / .5); border-right: 1.5px solid hsl(var(--vm-muted-foreground) / .5); transform: rotate(45deg); }
.manual-step-no { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 999px; font-size: 13px; font-weight: 800; color: hsl(var(--vm-primary-foreground)); background: var(--vm-brand-exact, hsl(var(--vm-primary))); }
.manual-steps strong { font-size: 15px; font-weight: 700; color: hsl(var(--vm-foreground)); }
.manual-steps li > span:last-child { font-size: 13px; line-height: 1.55; color: hsl(var(--vm-muted-foreground)); }
.manual-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.manual-tile { padding: 16px 18px; border-radius: 12px; background: hsl(var(--vm-muted)); }
.manual-tile strong { font-size: 15px; font-weight: 700; }
.manual-tile p, .manual-text { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: hsl(var(--vm-muted-foreground)); }
.manual-text { margin: 0; }
.manual-text a { margin-left: 4px; font-weight: 700; color: var(--vm-brand-readable, hsl(var(--vm-primary))); text-decoration: none; white-space: nowrap; }
.manual-text a::after { content: " →"; }
.manual-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.manual-work { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.manual-work > a { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px hsl(var(--vm-border)); transition: box-shadow .15s, background-color .15s, transform .15s; }
.manual-work > a:hover { background: hsl(var(--vm-muted) / .5); box-shadow: inset 0 0 0 1px var(--vm-brand-exact, hsl(var(--vm-primary))); }
.manual-work > a:focus-visible { outline: 2px solid hsl(var(--vm-ring) / .55); outline-offset: 2px; }
.manual-work-head { display: flex; align-items: center; gap: 8px; }
.manual-work-head strong { font-size: 15px; font-weight: 700; color: var(--vm-brand-readable, hsl(var(--vm-foreground))); }
.manual-work-head .vm-badge { font-size: 11px; font-weight: 500; }
.manual-work-purpose { font-size: 14px; line-height: 1.55; color: hsl(var(--vm-foreground)); }
.manual-io { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px dashed hsl(var(--vm-border)); font-size: 12px; line-height: 1.5; color: hsl(var(--vm-muted-foreground)); }
.manual-io b { display: inline-block; min-width: 30px; margin-right: 6px; font-weight: 700; color: hsl(var(--vm-foreground)); }

/* 초대 화면: 초대장 카드. 위 띠는 브랜드 색 바탕에 회사 로고·이름(서버 틀), 아래 #vm-app은 React 초대 화면(Invite.tsx)이다. */
.vm-invite-page { min-height: 100vh; display: grid; place-items: center; padding: var(--vm-login-page-pad); }
.vm-invite-card { width: 100%; max-width: 440px; background: hsl(var(--vm-card)); border: 1px solid hsl(var(--vm-border)); border-radius: var(--vm-login-card-radius); overflow: hidden; box-shadow: 0 12px 32px rgb(0 0 0 / .06); animation: vm-login-rise .4s cubic-bezier(.16,1,.3,1) both; }
.vm-invite-band { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: hsl(var(--vm-primary)); color: hsl(var(--vm-primary-foreground)); }
.vm-invite-logo { flex: none; display: flex; width: 36px; height: 36px; padding: 4px; border-radius: 10px; background: hsl(var(--vm-card)); overflow: hidden; }
.vm-invite-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vm-invite-company { display: flex; flex-direction: column; min-width: 0; }
.vm-invite-company b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.3; }
.vm-invite-company small { font-size: 12px; line-height: 1.4; opacity: .78; }
.vm-invite-body { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.vm-invite-badge { align-self: flex-start; padding: 3px 10px; border-radius: 9999px; background: hsl(var(--vm-primary) / .1); color: hsl(var(--vm-primary)); font-size: 12px; font-weight: 700; line-height: 1.5; }
.vm-invite-title { margin: 12px 0 18px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; word-break: keep-all; }
.vm-invite-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 20px; padding: 14px 16px; border: 1px dashed hsl(var(--vm-border)); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.vm-invite-facts dt { color: hsl(var(--vm-muted-foreground)); }
.vm-invite-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vm-invite-body .vm-login-oidc:disabled { cursor: default; opacity: .6; }
.vm-invite-foot { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: hsl(var(--vm-muted-foreground)); word-break: keep-all; }
.vm-invite-foot svg { flex: none; width: 14px; height: 14px; color: hsl(var(--vm-primary)); }
.vm-invite-alert { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: hsl(var(--vm-destructive)); }
.vm-invite-alert:first-child { margin-top: 0; }

/* 로그인·회계사 진입: Board work-web 로그인 카드(왼쪽 소개, 오른쪽 로그인 칸). 치수는 --vm-login-* 토큰. */
.vm-login-page { min-height: 100vh; display: grid; place-items: center; padding: var(--vm-login-page-pad); }
.vm-login-card { width: 100%; max-width: var(--vm-login-card-max); display: grid; grid-template-columns: 1.05fr .95fr; background: hsl(var(--vm-card)); border: 1px solid hsl(var(--vm-border)); border-radius: var(--vm-login-card-radius); overflow: hidden; box-shadow: 0 8px 24px rgb(0 0 0 / .08); animation: vm-login-rise .4s cubic-bezier(.16,1,.3,1) both; }
@keyframes vm-login-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vm-login-hero { display: flex; flex-direction: column; gap: var(--vm-login-hero-gap); padding: var(--vm-login-hero-pad); background: hsl(var(--vm-secondary)); border-right: 1px solid hsl(var(--vm-border)); }
.vm-login-company { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vm-login-logo { flex: none; display: flex; align-items: center; justify-content: center; width: var(--vm-login-logo); height: var(--vm-login-logo); border-radius: var(--vm-login-logo-radius); background: hsl(var(--vm-card)); border: 1px solid hsl(var(--vm-border)); overflow: hidden; }
.vm-login-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vm-login-company-name { display: flex; flex-direction: column; min-width: 0; }
.vm-login-company-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
.vm-login-company-name small { font-size: 14px; letter-spacing: .02em; line-height: 1.4; color: hsl(var(--vm-muted-foreground)); }
.vm-login-title { margin: 8px 0 0; font-size: var(--vm-login-title); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.vm-login-lede { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.6; color: hsl(var(--vm-muted-foreground)); word-break: keep-all; }
.vm-login-points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.vm-login-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; word-break: keep-all; }
.vm-login-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 9999px; background: var(--vm-brand-exact, hsl(var(--vm-primary))); }
.vm-login-panel { display: flex; flex-direction: column; justify-content: center; gap: var(--vm-login-panel-gap); padding: var(--vm-login-panel-pad); }
.vm-login-panel .vm-error, .vm-login-panel .vm-notice { margin: 0; font-size: 14px; }
.vm-login-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: hsl(var(--vm-muted-foreground)); }
.vm-login-panel-head h2 { margin: 6px 0 0; font-size: var(--vm-login-heading); font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.vm-login-oidc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--vm-login-control-min);
  padding: 0 16px;
  border-radius: var(--vm-button-radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, filter .15s;
}
.vm-login-oidc { border: 1px solid hsl(var(--vm-border)); background: hsl(var(--vm-card)); color: hsl(var(--vm-foreground)); }
.vm-login-oidc:hover { border-color: hsl(var(--vm-muted-foreground)); }
.vm-login-oidc:focus-visible, .vm-login-switch a:focus-visible { outline: 2px solid hsl(var(--vm-ring)); outline-offset: 2px; }
.vm-login-note { display: flex; gap: 11px; padding: var(--vm-login-note-pad); background: hsl(var(--vm-muted)); border: 1px solid hsl(var(--vm-border)); border-radius: var(--vm-login-note-radius); }
.vm-login-lock { flex: none; display: flex; margin-top: 1px; color: var(--vm-brand-exact, hsl(var(--vm-primary))); }
.vm-login-lock svg { width: 18px; height: 18px; }
.vm-login-note b { display: block; margin-bottom: 3px; font-size: 14px; }
.vm-login-note p { margin: 0; font-size: 14px; line-height: 1.5; color: hsl(var(--vm-muted-foreground)); word-break: keep-all; }
.vm-login-switch { margin: 0; font-size: 14px; }
.vm-login-switch a { color: hsl(var(--vm-muted-foreground)); text-decoration: underline; text-underline-offset: 3px; }

/* 수퍼어드민 표시(총지휘관 2026-11-23). 띠는 접을 수 없다.
   셸: 위 막대 윗테두리(띠 높이) 자리에 띠를 얹고, 위 막대 높이 토큰에 띠 높이를 더해 레일·대화 화면 높이 계산이 그대로 맞는다. */
.vm-admin-strip { display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--vm-admin-strip-height); padding: 0 14px; overflow: hidden; white-space: nowrap; background: repeating-linear-gradient(-45deg, var(--vm-admin) 0 14px, var(--vm-admin-deep) 14px 28px); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.vm-admin-strip b { font-weight: 700; }
.vm-admin-strip-name { padding: 3px 8px; border-radius: 9999px; background: rgb(0 0 0 / .22); }
.vm-admin-strip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; opacity: .92; }
.shell-admin { --vm-topbar-height: calc(var(--vm-topbar-base) + var(--vm-admin-strip-height)); }
.shell-admin .shell-topbar { border-top: var(--vm-admin-strip-height) solid var(--vm-admin); border-bottom: 2px solid var(--vm-admin); }
.shell-admin-strip { position: absolute; top: calc(-1 * var(--vm-admin-strip-height)); left: 0; right: 0; }
.shell-admin-badge { flex: none; padding: 3px 8px; border-radius: 5px; background: var(--vm-admin); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; }
/* 로그인: 띠를 맨 위에 두고 카드 칸은 남은 높이에서 가운데다. */
.vm-login-page-admin { min-height: calc(100vh - var(--vm-admin-strip-height)); }
.vm-login-admin { border-top: 4px solid var(--vm-admin); }
.vm-login-admin .vm-login-eyebrow { align-self: flex-start; display: inline-flex; padding: 3px 10px; border: 1px solid var(--vm-admin-line); border-radius: 9999px; background: var(--vm-admin-soft); color: var(--vm-admin-deep); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.vm-login-admin .vm-login-panel-head { display: flex; flex-direction: column; }
.vm-login-note-admin { background: var(--vm-admin-soft); border-color: var(--vm-admin-line); }
.vm-login-note-admin .vm-login-lock { color: var(--vm-admin); }
.vm-login-note-admin b { color: var(--vm-admin-deep); }
.vm-login-note-admin p { color: var(--vm-admin-ink); }
@media (max-width: 767px) {
  .vm-admin-strip { gap: 8px; padding: 0 10px; }
  .shell-admin-strip .vm-admin-strip-text { display: none; }
  /* 회사 이름 자리를 위해 위 막대 배지는 숨긴다(띠가 같은 표시를 한다). */
  .shell-admin-badge { display: none; }
}

/* Board 페이지 패턴. 서버 HTML과 React 공용 요소가 같은 클래스를 쓴다. */
.vm-main.vm-page { padding: 20px 24px; font-size: 13px; line-height: 1.5; }
.vm-main.vm-page.vm-edge { padding: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* 대화 화면은 위 막대 아래 한 화면 높이로 고정한다. .shell-body 의 flex: 1(기준 0%)은 높이가 정해지지 않은 .shell 안에서 내용 높이가 되어
   height 를 무시하므로 flex: none 으로 이 높이를 쓰게 한다(2026-11-24 H2: 대화가 많아도 작성기·보내기 단추가 첫 화면 안에 있다). */
.app-layout:has(.vm-edge) { flex: none; height: calc(100dvh - var(--vm-topbar-height)); min-height: 0; }
.vm-edge > [data-screen-state] { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.vm-edge #vm-app { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.vm-page :focus-visible, .app-dialog :focus-visible { outline: 2px solid hsl(var(--vm-ring)); outline-offset: 2px; }
.vm-page .page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.vm-page .page-head-text { min-width: 0; }
.vm-page .page-eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--vm-muted-foreground)); }
.vm-page .page-head :is(h1, h2, h3, h4, h5, h6) { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.vm-page .page-head :is(h1, h2, h3, h4, h5, h6)::after { content: "."; color: hsl(var(--vm-primary)); }
.vm-page .page-sub { margin: 8px 0 0; font-size: 13px; color: hsl(var(--vm-muted-foreground)); }
.vm-page .page-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.vm-page .stat-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.vm-page .stat-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; background: hsl(var(--vm-card)); border: 1px solid hsl(var(--vm-border)); border-radius: 8px; }
.vm-page .stat-text { display: flex; flex-direction: column; min-width: 0; }
.vm-page .stat-label { font-size: 12px; font-weight: 600; color: hsl(var(--vm-muted-foreground)); }
.vm-page .stat-value { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; line-height: 1; }
.vm-page .stat-value b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: hsl(var(--vm-foreground)); }
.vm-page .stat-unit { font-size: 12px; font-weight: 600; color: hsl(var(--vm-muted-foreground)); }
.vm-page .stat-help { margin-top: 8px; font-size: 11px; color: hsl(var(--vm-muted-foreground)); }
.vm-page a.stat-card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.vm-page a.stat-card:hover { border-color: hsl(var(--vm-input)); box-shadow: 0 2px 6px rgb(0 0 0 / .06); }
.vm-page .card { padding: 20px; border-radius: 12px; border: 1px solid hsl(var(--vm-border)); background: hsl(var(--vm-card)); box-shadow: 0 2px 4px rgb(0 0 0 / .02); }
.vm-page .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.vm-page .card-head-text { min-width: 0; }
.vm-page .card-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: hsl(var(--vm-foreground)); }
.vm-page .card-sub { margin: 4px 0 0; font-size: 12px; color: hsl(var(--vm-muted-foreground)); }
.vm-page .count-pill { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 6px; background: hsl(var(--vm-muted)); color: hsl(var(--vm-muted-foreground)); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vm-page .row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px; border-top: 1px solid hsl(var(--vm-border)); border-radius: 8px; }
.vm-page .row:first-child { border-top: 0; }
.vm-page .row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.vm-page .row .t { font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; color: hsl(var(--vm-foreground)); }
.vm-page .row-sub { font-size: 13px; line-height: 1.4; color: hsl(var(--vm-muted-foreground)); overflow-wrap: anywhere; }
.vm-page .row .meta { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: hsl(var(--vm-muted-foreground)); white-space: nowrap; }
.vm-page a.row { color: hsl(var(--vm-foreground)); text-decoration: none; transition: background-color .15s; }
.vm-page button.row { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; color: hsl(var(--vm-foreground)); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.vm-page a.row:hover, .vm-page button.row:hover { background: hsl(var(--vm-muted)); }
.vm-page .row .chev { flex: none; width: 16px; height: 16px; margin: 0 2px 0 0; color: hsl(var(--vm-muted-foreground)); opacity: .5; transition: transform .15s, opacity .15s; }
.vm-page .row .chev path { stroke-width: 2.25; }
.vm-page a.row:hover .chev { opacity: .9; transform: translateX(2px); }
.vm-page .badge { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0; white-space: nowrap; background: var(--vm-status-default); color: var(--vm-status-default-foreground); }
.vm-page .badge.done { background: var(--vm-status-done); color: var(--vm-status-done-foreground); }
.vm-page .badge.open { background: var(--vm-status-open); color: var(--vm-status-open-foreground); }
.vm-page .badge.active { background: var(--vm-status-active); color: var(--vm-status-active-foreground); }
.vm-page .badge.hold { background: var(--vm-status-hold); color: var(--vm-status-hold-foreground); }
.vm-page .badge.muted { background: var(--vm-status-muted); color: var(--vm-status-muted-foreground); }
.vm-page .empty { padding: 32px 20px; font-size: 13px; color: hsl(var(--vm-muted-foreground)); text-align: center; }

@media (min-width: 1024px) {
  .shell-topbar-end { display: block; }
}
@media (max-width: 1000px) {
  .shell-intro { display: none; }
  .shell-links { gap: 8px; }
  .shell-manual { padding: 6px 0; font-size: 10px; }
}
@media (max-width: 767px) {
  .shell-drawer-toggle { display: block; }
  .shell-burger { display: inline-flex; }
  .shell-drawer-toggle:checked ~ .shell .shell-burger { background: hsl(var(--vm-accent)); }
  .shell-drawer-toggle:focus-visible ~ .shell .shell-burger { box-shadow: 0 0 0 2px hsl(var(--vm-ring)); }
  .shell-workspace { flex: 0 1 auto; width: auto; min-width: 6.5rem; padding-right: 0; }
  .shell-slash { font-size: 20px; margin: 0 -2px; }
  /* 좁은 화면: Mind 단추는 글자 칸과 화살표만, 메뉴는 화면 폭에 맞춰 위 막대 아래에 연다. */
  .shell-mind-btn { padding: 0 4px; gap: 4px; }
  .shell-mind-name { display: none; }
  .shell-ws-pop.shell-mind-pop { position: fixed; top: var(--vm-topbar-height); left: 8px; right: 8px; width: auto; }
  .shell-ws-toggle { gap: 8px; }
  /* 좁은 화면에도 회사 이름을 로고 옆에 14px 한 줄로 보인다(work·acc와 같음, 2026-11-23). 넘치면 말줄임이다. */
  .shell-ws-caret { display: none; }
  .shell-rail { display: none; position: fixed; top: var(--vm-topbar-height); bottom: 0; left: 0; z-index: 45; height: auto; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
  .shell-drawer-toggle:checked ~ .shell .shell-rail { display: flex; }
  .shell-drawer-toggle:checked ~ .shell .shell-scrim { display: block; position: fixed; top: var(--vm-topbar-height); right: 0; bottom: 0; left: 0; z-index: 44; }
  .vm-main { padding: 1.5rem 1.25rem; }
  .vm-main.vm-page { padding: 1.5rem 1.25rem; font-size: 14px; }
  .vm-main.vm-page.vm-edge { padding: 0; }
  .service-guide { border-radius: var(--vm-dialog-radius); }
  .vm-page .page-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 20px; }
  .vm-page .page-actions { width: 100%; }
  .vm-page .stat-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
  .vm-page .stat-card { padding: 14px 16px; }
  .vm-page .card { padding: 20px 16px; }
  .manual-steps { grid-template-columns: 1fr 1fr; }
  .manual-steps li:not(:last-child)::after { display: none; }
  .manual-tiles { grid-template-columns: 1fr; }
  .manual .manual-card { padding: 20px 16px; }
  .vm-login-card { grid-template-columns: 1fr; max-width: var(--vm-login-card-narrow); }
  .vm-login-hero { border-right: 0; border-bottom: 1px solid hsl(var(--vm-border)); }
  .vm-main.vm-page { padding: 24px 16px 40px; }
  /* 위 막대 안내 링크: 좁은 화면에서도 12px·44px 누르는 칸(Board 모바일 최소 글자·조작 크기). */
  .shell-manual { min-height: 44px; padding: 0 4px; font-size: 12px; }
}
.button-hit { display: none; }
@media (pointer: coarse) {
  .shell-burger, .shell-gear, .shell-mind-btn, a.shell-mind, .shell-ws-toggle, .shell-ws-item, .shell-rail-link, .shell-me-link, .vm-login-oidc { min-height: 44px; min-width: 44px; }
  .vm-page button:not(.button-sm):not(.composer-tool), .vm-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]), .vm-page select, .vm-page textarea, .vm-page a.row, .vm-page a.stat-card, .app-dialog button:not(.button-sm):not(.composer-tool), .app-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]), .app-dialog select, .app-dialog textarea { min-height: 44px; min-width: 44px; }
  .button-sm, .composer-tool { position: relative; overflow: visible; appearance: none; }
  .button-sm { min-height: var(--vm-button-sm-height); height: var(--vm-button-sm-height); min-width: 0; padding: var(--vm-button-sm-pad); border-radius: var(--vm-button-sm-radius); }
  .composer-tool { width: var(--vm-tool-size-w); height: var(--vm-tool-size-h); min-width: var(--vm-tool-size-w); min-height: var(--vm-tool-size-h); padding: 0; border-radius: var(--vm-tool-radius); }
  .button-hit { display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: max(100%, var(--vm-coarse-min)); height: max(100%, var(--vm-coarse-min)); transform: translate(-50%, -50%); background: transparent; }
  .vm-page label:has(> input[type="checkbox"]), .vm-page label:has(> input[type="radio"]), .app-dialog label:has(> input[type="checkbox"]), .app-dialog label:has(> input[type="radio"]) { min-height: var(--vm-coarse-min); min-width: var(--vm-coarse-min); }
  .vm-page input[type="checkbox"], .vm-page input[type="radio"], .app-dialog input[type="checkbox"], .app-dialog input[type="radio"] { width: auto; min-width: 0; height: auto; min-height: 0; padding: 0; }
  .shell-rail-link { border-radius: var(--vm-radius); }
  .button-default { min-height: var(--vm-button-min-height); border-radius: var(--vm-button-radius); }
  .app-input-wrap, .app-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), .app-form select, .app-form textarea { border-radius: var(--vm-input-radius); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
