/* 해진상사 V3.2 프로토타입 — '고요한 네이비' 디자인 (2026-11-22, 2차 수정)
   기준: 업무관리/기획/V3_화면시안_20261122/V3_디자인가이드.html · 2차_피드백/V3_2차_수정지시_20261122.md
   색은 확정 CI(네이비 #011842 · 로열 #012570 · 하늘 #0090FA)에서만 뽑는다. 면은 선으로 나누고 그림자는 떠 있는 층에만.
   UI 테마(일반/다크)와 오피스 시간대(배경 그림)는 서로 독립. 랜딩은 landing/ 독립 페이지.
   말풍선·이름표 글꼴: Galmuri11(OFL, assets/fonts) 픽셀 글꼴 — 3차 수정(2026-11-22)에서 주아 대체. 그 밖은 Pretendard GOV. */
@font-face { font-family: 'Galmuri11'; src: url('assets/fonts/Galmuri11.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Pretendard GOV'; src: url('/fonts/PretendardGOV-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard GOV'; src: url('/fonts/PretendardGOV-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --canvas: #f4f5f7; --surface: #ffffff; --fill: #eef0f3; --fill-2: #e5e8ed;
  --line: #e2e5ea; --line-2: #cbd1da;
  --text: #0d1424; --text-2: #4a5363; --text-3: #626b7b;
  --primary: #0068c8; --primary-h: #0058aa; --on-primary: #ffffff;
  --accent: #0068c8; --accent-soft: #e6f1fc;
  --navy: #011842; --royal: #012570; --sky: #0090fa;
  --side: #ffffff; --side-line: var(--line); --side-text: #3d4657; --side-dim: #596273; --side-strong: #0d1424; --side-hover: rgba(13,20,36,.05); --side-on: var(--accent-soft); --side-rule: var(--line);
  --ok: #12805c; --warn: #b25e00; --bad: #d0342c; --heart: #e0457b; --idle: #8f98a8;
  --w: #c2410c; --b: #0068c8; --d: #be1855;
  --sh-raise: 0 1px 2px rgba(13,20,36,.06), 0 8px 24px rgba(13,20,36,.08);
  --sh-over: 0 24px 64px rgba(13,20,36,.18);
  --hl: inset 0 0 0 0 transparent;
  --hero: #030b1f; --hero-text: #c9d3e6;
  --glass: rgba(8,14,28,.62); --glass-2: rgba(8,14,28,.78); --glass-line: rgba(255,255,255,.14);
  --r-xs: 6px; --r-s: 8px; --r-m: 12px; --r-l: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --side-w: 248px; --side-mini: 80px; --panel-w: 400px; --top-h: 64px; --tabbar-h: 68px;
  --fun: 'Galmuri11', 'Pretendard GOV', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0a0e16; --surface: #111723; --fill: #182030; --fill-2: #202939;
  --line: #222b3b; --line-2: #313c50;
  --text: #e9edf3; --text-2: #aab3c2; --text-3: #8690a0;
  --primary: #0074d9; --primary-h: #1a84e3;
  --accent: #5cb6ff; --accent-soft: #0f2540;
  --side: #070b13; --side-line: #1a2230; --side-text: #b3bdcf; --side-dim: #7d899e; --side-strong: #ffffff; --side-hover: rgba(255,255,255,.06); --side-on: rgba(255,255,255,.1); --side-rule: rgba(255,255,255,.08);
  --ok: #34c38f; --warn: #f0a53c; --bad: #ff6b61; --heart: #ff7aa6; --idle: #5b6576;
  --w: #ff8a4c; --b: #5cb6ff; --d: #ff6fa5;
  --sh-raise: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  --sh-over: 0 24px 64px rgba(0,0,0,.55);
  --hl: inset 0 1px 0 rgba(255,255,255,.04);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Pretendard GOV', 'Pretendard', 'Malgun Gothic', sans-serif; font-size: 16px; line-height: 1.55; background: var(--canvas); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
img { max-width: 100%; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--text-3); } .sm { font-size: 14px; }
.grow { flex: 1; }
.num, time { font-variant-numeric: tabular-nums; }
.empty { padding: 24px 0; color: var(--text-3); text-align: center; font-size: 15px; list-style: none; margin: 0; }
.bad-t { color: var(--bad); font-weight: 700; }

/* 로고(일반/다크 전환) */
.logo { display: inline-flex; }
.logo img { height: 36px; width: auto; display: block; }
.lg-dark { display: none !important; }
:root[data-theme="dark"] .lg-light { display: none !important; }
:root[data-theme="dark"] .lg-dark { display: block !important; }

/* ── 버튼·입력 ───────────────────────────────── */
.btn { height: 42px; padding: 0 16px; border-radius: var(--r-s); border: 0; background: var(--fill); color: var(--text); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; transition: background-color .12s, color .12s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover:not(:disabled) { background: var(--fill-2); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-h); }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px currentColor; }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--fill); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: var(--r-xs); }
.btn-sm svg { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 14px; padding: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn svg { width: 16px; height: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 8px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 14px; background: var(--surface); font-size: 16px; transition: border-color .12s, box-shadow .12s; }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .sel:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-s); border: 0; background: transparent; display: grid; place-items: center; position: relative; color: var(--text-2); flex: none; transition: background-color .12s, color .12s; }
.icon-btn:hover { background: var(--fill); color: var(--text); }
.icon-btn svg { width: 21px; height: 21px; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-s); background: var(--fill); gap: 2px; }
.seg button { height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-xs); background: transparent; font-size: 14px; font-weight: 700; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; transition: color .12s; }
.seg button:hover { color: var(--text); }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(13,20,36,.06); }
.seg.sm button { height: 30px; padding: 0 10px; font-size: 13px; }
.chip { height: 34px; padding: 0 10px; border-radius: var(--r-s); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.search { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--text-3); transition: border-color .12s; }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; font-size: 16px; color: var(--text); }
.sel { height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); padding: 0 10px; font-size: 15px; max-width: 100%; }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* 상태 신호등·상태 사각 */
.lamp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; vertical-align: 1px; margin-right: 6px; }
.lamp.busy { background: var(--ok); }
.lamp.warn { background: var(--warn); }
.lamp.off { background: var(--idle); }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--idle); flex: none; }
.sq.ok { background: var(--ok); } .sq.busy { background: var(--warn); } .sq.down { background: var(--bad); } .sq.idle { background: transparent; box-shadow: inset 0 0 0 2px var(--idle); } .sq.unk { background: var(--line-2); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: var(--r-xs); font-size: 13px; font-weight: 700; background: var(--fill); color: var(--text-2); white-space: nowrap; }
.pill.busy { color: var(--ok); }

/* 프론트용 얼굴: 치비 스프라이트 얼굴 크롭(둥근 사각) */
.av { display: inline-block; flex: none; width: 40px; height: 40px; border-radius: 10px; background-color: var(--fill); background-repeat: no-repeat; vertical-align: middle; }
.av.xs { width: 26px; height: 26px; border-radius: 7px; }
.av.sm { width: 32px; height: 32px; border-radius: 8px; }

/* ── 로그인(접속코드 한 칸) — 2026-11-25 재디자인: 스튜디오 안내 화면 모양(해진상사_디자인_지침 1~4절) ── */
.login { --lg-bg: #263c42; --lg-win: #f3e6c8; --lg-ink: #3a2a18; --lg-gold: #c89a5b; --lg-in: #fff8e6; --lg-wood: #5b4326; --lg-sub: #6b5636; --lg-err: #a33a12; --lg-focus: #8a6236; --lg-btn: #5b4326;
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; box-sizing: border-box;
  background: var(--lg-bg) radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 12px 12px; font-family: var(--fun); word-break: keep-all; }
/* 2026-11-25 대표: 입장 화면은 스튜디오 PRO·질의응답과 같은 양피지 창 하나로 통일(옛 로고가 짙은 남색이라 다크 창은 쓰지 않음) */
.login-win { width: min(440px, 100%); box-sizing: border-box; background: var(--lg-win); color: var(--lg-ink); padding: 40px 32px 30px; margin: 8px 0 18px; text-align: center;
  border: 4px solid var(--lg-ink); box-shadow: 0 0 0 4px var(--lg-gold), 0 0 0 8px var(--lg-ink), 0 10px 0 8px rgba(0,0,0,.35); }
.login-logo { display: block; width: min(300px, 78%); height: auto; margin: 0 auto 30px; }
.login-form .lead { margin: 0 0 22px; font-size: 19px; font-weight: 400; line-height: 1.5; color: var(--lg-ink); }
.login .field { margin-bottom: 16px; text-align: left; }
.login .field input { background: var(--lg-in); color: var(--lg-ink); border: 2px solid var(--lg-ink); border-radius: 0; text-align: center; min-height: 48px; font-size: 18px; font-family: inherit; }
.login .field input:focus { outline: 3px solid var(--lg-focus); outline-offset: 2px; border-color: var(--lg-ink); box-shadow: none; }
.code-in { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.code-in::placeholder { letter-spacing: 0; color: var(--lg-sub); opacity: .8; }
.login-btn { width: 100%; min-height: 52px; margin-top: 4px; font: inherit; font-size: 17px; background: var(--lg-btn); color: #f3e6c8; border: 2px solid var(--lg-ink); border-radius: 0; box-shadow: 0 0 0 2px var(--lg-gold), 0 0 0 4px var(--lg-ink); cursor: pointer; }
.login-btn:hover { filter: brightness(1.12); }
.login-btn:focus-visible { outline: 3px solid var(--lg-focus); outline-offset: 5px; }
.login-btn:disabled { opacity: .6; cursor: progress; }
.login .err { margin: 14px 0 0; font-size: 15px; color: var(--lg-err); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 12px; font-size: 14px; color: var(--lg-sub); text-decoration: underline; text-underline-offset: 3px; }
.back-link:hover { color: var(--lg-ink); }
.back-link:focus-visible { outline: 3px solid var(--lg-focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 16px; color: var(--lg-ink); margin: 16px 0 0; min-height: 44px; cursor: pointer; }   /* 2026-11-25 대표: 접속 버튼 아래 */
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--lg-wood); }
.err { margin: 12px 0 0; font-size: 15px; color: var(--bad); }

/* ── 앱 틀: 좌측 바 기본 접힘, 펼치기는 하단 ── */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side { background: var(--side); box-shadow: inset -1px 0 0 var(--side-line); display: flex; flex-direction: column; padding: 20px 12px 12px; min-height: 0; color: var(--side-text); overflow-y: auto; scrollbar-width: none; }
.side-brand { display: block; padding: 2px 8px 24px; border-radius: var(--r-s); }
.side-brand .logo-full { width: 100%; max-width: 188px; height: auto; display: block; }
.side-brand .logo-mark { display: none; width: 46px; height: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: var(--r-s); text-decoration: none; color: var(--side-text); font-weight: 700; font-size: 16px; position: relative; transition: background-color .12s, color .12s; }
.nav a:hover { background: var(--side-hover); color: var(--side-strong); }
.nav a[aria-current="page"] { background: var(--side-on); color: var(--side-strong); }
.nav svg { width: 22px; height: 22px; }
.side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--side-rule); font-size: 14px; }
.side-foot b { display: block; color: var(--side-strong); font-size: 14px; line-height: 1.3; }
.srv-btn, .side-fold { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--side-dim); font-size: 14px; text-align: left; transition: background-color .12s, color .12s; }
.srv-btn:hover, .side-fold:hover { background: var(--side-hover); color: var(--side-strong); }
.srv-btn svg, .side-fold svg { width: 22px; height: 22px; }
.srv-btn .sq { position: absolute; left: 28px; top: 10px; box-shadow: 0 0 0 2px var(--side); }
.srv-btn .lbl { line-height: 1.35; }
.me { display: flex; align-items: center; gap: 12px; padding: 6px 12px; color: var(--side-dim); text-decoration: none; border-radius: var(--r-s); }
.me:hover { background: var(--side-hover); color: var(--side-strong); }
.me img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.side-fold svg { transform: scaleX(-1); }
.shell.mini { grid-template-columns: var(--side-mini) minmax(0, 1fr); }
.shell.mini .side { padding: 16px 8px 10px; align-items: center; }
.shell.mini .side-brand { padding: 2px 0 18px; }
.shell.mini .side-brand .logo-full { display: none; }
.shell.mini .side-brand .logo-mark { display: block; }
.shell.mini .nav a { flex-direction: column; height: 60px; width: 64px; gap: 3px; justify-content: center; padding: 0; font-size: 12px; text-align: center; line-height: 1.15; }
.nav .l-short { display: none; }
.shell.mini .nav .l-full { display: none; }
.shell.mini .nav .l-short { display: block; white-space: nowrap; }
.shell.mini .nav .badge { position: absolute; top: 4px; right: 6px; margin: 0; min-width: 19px; height: 19px; font-size: 12px; }
.shell.mini .side-foot { justify-items: center; width: 100%; }
.shell.mini .lbl { display: none; }
.shell.mini .srv-btn, .shell.mini .side-fold, .shell.mini .me { width: 64px; justify-content: center; padding: 6px 0; }
.shell.mini .srv-btn .sq { left: 38px; }
.shell.mini .side-fold svg { transform: none; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 6px; padding: 0 16px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.top-mark { display: none; }
.top h2 { font-size: 22px; margin: 0; letter-spacing: -.015em; white-space: nowrap; }
.top .chip { margin-right: 4px; }
.content { flex: 1; min-height: 0; overflow: auto; }
.tabbar { display: none; }
.scrim { display: none; }

/* ── 오피스(메인) — 좌석 좌표·크기는 v3.js, 여기서는 보이는 모양만 ── */
.office-wrap { position: relative; height: 100%; min-height: 0; overflow: hidden; }
.office-wrap > .office { height: 100%; }
.office { position: relative; overflow: hidden; background: #0b0f15; min-height: 0; }
.stage { position: absolute; inset: 0; overflow: auto; cursor: grab; scrollbar-width: none; container-type: size; z-index: 0; }
.stage::-webkit-scrollbar { display: none; }
.stage.dragging { cursor: grabbing; }
.map { position: relative; aspect-ratio: 1672 / 941; height: 100%; min-width: 100%; }
.office .fill { display: none; }
.map img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; max-width: none; }
.seat2 { position: absolute; border: 0; padding: 0; background: none; display: block; }
.seat2 img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; max-width: none; }
.seat2[aria-pressed="true"] img { filter: drop-shadow(0 0 5px rgba(0,144,250,.85)); }
.map[data-tod="dusk"] .seat2 img, .map[data-tod="dusk"] .walker2 { filter: brightness(.94) saturate(.95); }
.map[data-tod="night"] .seat2 img, .map[data-tod="night"] .walker2 { filter: brightness(.88) saturate(.9); }
.map[data-tod] .seat2[aria-pressed="true"] img { filter: drop-shadow(0 0 5px rgba(0,144,250,.85)); }
/* 이름표: 얼굴 오른쪽, 둥근 손글씨 계열 */
.nm { position: absolute; z-index: 1500; transform: translateY(-50%); display: inline-flex; align-items: center; padding: 3px 10px 2px 8px; border-radius: 999px; background: rgba(1,24,66,.88); color: #fff; font-family: var(--fun); font-size: 16px; line-height: 1.35; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 6px rgba(0,0,0,.25); transition: background-color .12s; }
.nm .lamp { margin-right: 6px; }
.nm:hover, .nm.on { background: var(--primary); }
.nm[hidden] { display: none; }
/* 말풍선: 뾰족한 꼬리·큰 글자·둥근 손글씨 글꼴(사진 위라 테마와 무관하게 흰색) */
.bubble { position: fixed; transform: translate(-50%, calc(-100% - 16px)); width: max-content; max-width: 260px; padding: 9px 15px 8px; border-radius: 18px; background: #fff; color: #0d1424; font-family: var(--fun); font-size: 17px; line-height: 1.4; box-shadow: 0 0 0 2px #011842, 0 10px 22px rgba(0,0,0,.22); pointer-events: none; animation: pop .22s var(--ease); }
.bubble::before, .bubble::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border-style: solid; }
.bubble::before { top: 100%; border-width: 18px 8px 0; border-color: #011842 transparent transparent; margin-top: 1px; }
.bubble::after { top: 100%; border-width: 15px 6px 0; border-color: #fff transparent transparent; margin-top: -1px; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, calc(-100% - 10px)); } }
.walker2 { position: absolute; transform: translate(-50%, -96.9%); user-select: none; -webkit-user-drag: none; max-width: none; }
.walker2.flip { transform: translate(-50%, -96.9%) scaleX(-1); }
/* 오피스 위에 작게 겹치는 표시(HUD) */
.hud { position: absolute; z-index: 12; top: 14px; display: flex; gap: 6px; align-items: center; }
.hud-l { left: 14px; display: none; }
.hud-r { right: 14px; }
/* 모바일 HJ 마크(메뉴 머리줄·오피스 공통): 40px 정사각, 어느 화면에서도 x 10px·세로 중심 29.5px(머리줄 59px 안) 고정 */
.top-mark img, .hud-logo { width: 40px; height: 40px; display: block; }
.hud-chip, .hud-btn { height: 38px; border: 1px solid var(--glass-line); border-radius: var(--r-s); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud-btn { width: 38px; padding: 0; justify-content: center; position: relative; }
.hud-btn svg { width: 19px; height: 19px; }
button.hud-chip:hover, .hud-btn:hover { background: var(--glass-2); }
.sync-c { font-weight: 500; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.sync-c.on .sync-dot { background: var(--ok); animation: syncBlink 1.6s ease-in-out infinite; }
@keyframes syncBlink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .sync-c.on .sync-dot { animation: none; } }
.hud .sq.idle { box-shadow: inset 0 0 0 2px #c9d3e6; }
/* 미니맵: 사무실이 한 화면에 안 들어올 때 */
.minimap { position: absolute; z-index: 12; left: 12px; bottom: 12px; width: 148px; aspect-ratio: 1672 / 941; border-radius: var(--r-s); overflow: hidden; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 6px 18px rgba(0,0,0,.35); touch-action: none; cursor: pointer; }
.minimap img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .85; pointer-events: none; }
.minimap b { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 0 1px #011842; pointer-events: none; }
.mm-view { position: absolute; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 999px rgba(1,24,66,.35); pointer-events: none; }
.yuri-toast { position: absolute; right: 16px; top: 64px; z-index: 13; display: flex; gap: 14px; align-items: stretch; max-width: min(440px, calc(100% - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 14px 0 0; overflow: hidden; box-shadow: var(--sh-raise), var(--hl); animation: toastIn .22s var(--ease); }
.yuri-toast > div { padding: 12px 0; }
.yuri-toast .av { width: 104px; height: auto; min-height: 104px; border-radius: 0; background-position: 50% 18% !important; }   /* AV()의 인라인 위치(20%)보다 얼굴을 조금 위로 */
.yuri-toast b { font-size: 15px; }
.yuri-toast p { margin: 2px 0 10px; font-size: 15px; color: var(--text-2); }
.yt-act { display: flex; gap: 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ── 우측 직원 패널(서랍) ─────────────────────── */
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(var(--panel-w), 92%); z-index: 20; background: var(--surface); border-left: 1px solid var(--line); overflow: auto; display: flex; flex-direction: column; box-shadow: var(--sh-over); transform: translateX(105%); visibility: hidden; transition: transform .22s var(--ease), visibility .22s; }
.panel.open { transform: none; visibility: visible; }
.scrim.open { display: block; position: absolute; inset: 0; background: rgba(3,11,31,.28); z-index: 15; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.ptabs { display: flex; align-items: center; gap: 18px; padding: 8px 12px 0 20px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); }
.ptabs [role=tab] { border: 0; background: none; height: 48px; padding: 0; font-weight: 700; font-size: 16px; color: var(--text-3); box-shadow: inset 0 -2px 0 transparent; transition: color .12s; }
.ptabs [role=tab]:hover { color: var(--text); }
.ptabs [role=tab][aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.ptabs .x { margin-left: auto; }
.pcard { padding: 16px 20px 20px; }
.pphoto { border-radius: var(--r-m); overflow: hidden; background: linear-gradient(180deg, var(--accent-soft), var(--fill)); display: grid; place-items: center; height: 220px; }
.pinfo { padding-top: 16px; display: grid; gap: 14px; }
.pname { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pname h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.prole { color: var(--text-2); font-size: 15px; }
.pname .pill { margin-left: auto; align-self: center; }
.wbd { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-s); }
.wbd > span { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 6px; font-size: 13px; font-weight: 700; }
.wbd > span + span { border-left: 1px solid var(--line); }
.wbd b { font-size: 17px; font-variant-numeric: tabular-nums; }
.wbd .w { color: var(--w); } .wbd .b { color: var(--b); } .wbd .d { color: var(--d); }
.wbd.sm > span { padding: 4px; } .wbd.sm b { font-size: 14px; }
.quote { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--line-2); color: var(--text); font-size: 16px; line-height: 1.6; }
.pact { display: grid; gap: 8px; }
.pact .btn { justify-content: flex-start; }
.pact .btn-primary { justify-content: center; height: 46px; }
.pact .btn.rec { background: var(--bad); color: #fff; }
.ptt-state { display: flex; gap: 8px; font-size: 14px; color: var(--text-2); align-items: center; font-variant-numeric: tabular-nums; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.sec { padding: 18px 20px; border-top: 1px solid var(--line); }
.sec h4 { margin: 0 0 8px; font-size: 14px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.sec h4 .link-btn { margin-left: auto; }
.now-doing { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows li:last-child { border-bottom: 0; }
.rows .num { font-weight: 700; font-size: 14px; color: var(--text-3); white-space: nowrap; }
.ok-t { color: var(--ok); font-weight: 700; font-size: 14px; } .warn-t { color: var(--warn); font-weight: 700; font-size: 14px; }
.stat4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-s); }
.stat4 > * { padding: 12px 4px; text-align: center; text-decoration: none; }
.stat4 > * + * { border-left: 1px solid var(--line); }
.stat4 a:hover { background: var(--fill); }
.stat4 b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; } .stat4 span { font-size: 13px; color: var(--text-3); }
.chat-mini { list-style: none; margin: 0; padding: 0; }
.chat-mini li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chat-mini li:last-child { border-bottom: 0; }
.chat-mini .ceo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; }
.chat-mini .who { font-size: 14px; font-weight: 700; }
.chat-mini time { font-weight: 400; color: var(--text-3); margin-left: 6px; font-size: 13px; }
.chat-mini .txt { font-size: 15px; color: var(--text-2); }

/* ── 공통 모달·시트·토스트 ─────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(3,11,31,.5); display: grid; place-items: center; z-index: 60; padding: 16px; animation: fade .15s; }
.modal { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; box-shadow: var(--sh-over), var(--hl); }
.modal h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.015em; }
.modal p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.modal .stack { display: flex; flex-direction: column; gap: 8px; }
.modal-bg.as-sheet { place-items: end center; padding: 0; }
.sheet { width: min(560px, 100%); background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--sh-over); animation: sheetIn .22s var(--ease); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 8px; }
.more-list { list-style: none; margin: 0 0 12px; padding: 0; }
.more-list a, .more-list button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 8px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; font-size: 17px; font-weight: 700; color: var(--text); text-align: left; }
.more-list svg { width: 24px; height: 24px; color: var(--text-2); }
.more-list small { margin-left: auto; color: var(--text-3); font-size: 14px; font-weight: 400; }
.more-list .sq { margin-left: 4px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-m); background: #0d1424; color: #fff; font-size: 15px; font-weight: 700; box-shadow: var(--sh-over); animation: toastIn .2s var(--ease); }
:root[data-theme="dark"] .toast { background: #e9edf3; color: #0d1424; }

/* ── 서버 상태 모달 ─────────────────────────── */
.srv-modal { width: min(1000px, 100%); padding: 0; display: flex; flex-direction: column; overflow: hidden; height: min(720px, calc(100dvh - 32px)); }
.srv-head { display: flex; align-items: center; gap: 8px; padding: 18px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.srv-head h3 { margin: 0; font-size: 22px; }
.srv-sum { margin: 4px 0 0 !important; display: flex; align-items: center; gap: 8px; font-size: 15px !important; color: var(--text-2); }
.srv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.srv-list { list-style: none; margin: 0; padding: 8px 12px 16px; overflow: auto; border-right: 1px solid var(--line); }
.srv-grp { padding: 16px 12px 6px; font-size: 14px; font-weight: 700; color: var(--text-3); }
.srv-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: none; text-align: left; font-size: 16px; }
.srv-row:hover { background: var(--fill); }
.srv-row[aria-current="true"] { background: var(--accent-soft); }
.srv-row .nm2 { font-weight: 700; }
.srv-row .mt { margin-left: auto; color: var(--text-3); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srv-row.down .mt { color: var(--bad); font-weight: 700; }
.ubar { position: relative; flex: 1; max-width: 160px; height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; margin-left: auto; }
.ubar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.srv-row.busy .ubar i { background: var(--warn); } .srv-row.down .ubar i { background: var(--bad); }
.srv-row .ubar + .mt { margin-left: 0; min-width: 3em; text-align: right; }
.ubar.lg { max-width: none; height: 10px; border-radius: 5px; margin: 4px 0 16px; overflow: visible; }
.ubar.lg span { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-3); }
.srv-detail { padding: 20px 24px; overflow: auto; }
.srv-detail h4 { margin: 0 0 6px; font-size: 22px; outline: 0; }
.srv-kicker { margin: 0 !important; font-size: 14px !important; color: var(--text-3) !important; font-weight: 700; }
.srv-state { margin: 0 0 16px !important; display: flex; align-items: center; gap: 8px; font-size: 16px !important; color: var(--text) !important; }
.srv-tbl { display: grid; grid-template-columns: 9em 1fr; margin: 0; font-size: 15px; }
.srv-tbl dt, .srv-tbl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.srv-tbl dt { color: var(--text-3); }
.srv-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.srv-note, .srv-desc { margin: 12px 0 0 !important; font-size: 15px !important; color: var(--text-2); white-space: pre-line; }
.srv-back { display: none; margin-bottom: 8px; }
.srv-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 12px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.rs-prog { margin: 16px 0 4px; }
.rs-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rs-bar i { display: block; height: 100%; background: var(--primary); transition: width .9s linear; }
.rs-prog.bad .rs-bar i { background: var(--bad); }
.rs-done p:has(+ p.muted) { margin-bottom: 8px; }
.rs-done p.muted { font-size: 13px; }
.rs-done-act { display: flex; justify-content: flex-end; }
.rs-eta { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 0; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rs-eta b { font-size: 16px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .rs-bar i { transition: none; } }
.rs-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 0; }
.rs-steps li { display: grid; grid-template-columns: 32px auto 1fr; align-items: center; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-3); }
.rs-steps li b { font-size: 16px; } .rs-steps li small { font-size: 14px; }
.rs-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--line-2); }
.rs-dot svg { width: 16px; height: 16px; }
.rs-steps li.done { color: var(--text-2); } .rs-steps li.done .rs-dot { background: var(--ok); color: #fff; box-shadow: none; }
.rs-steps li.now { color: var(--text); } .rs-steps li.now .rs-dot { box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); animation: blink 1.2s infinite; }
.rs-check { list-style: none; margin: 0; padding: 0; }
.rs-check li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.rs-check .mt { margin-left: auto; color: var(--text-3); font-size: 14px; }
/* 서버 창 안1(2026-11-26 대표 확정): 클라우드 사용량 띠 → PC 칸 표 → 아래 상세 한 줄 */
.srv-modal .srv-body { display: flex; flex-direction: column; }
.srv-main { flex: 1; min-height: 0; overflow: auto; }
.srv-ban { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--accent-soft); color: var(--primary); font-size: 14px; }
.srv-ban > span:last-child { color: var(--text-2); }
.srv-ban { position: relative; }
.srv-ban-go { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
.srv-ban-go:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.srv-ban-bar { flex: 1; min-width: 120px; max-width: 260px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.srv-ban-bar i { display: block; height: 100%; background: var(--primary); }
.srv-cloud { display: grid; grid-template-columns: 170px repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--fill); }
.srv-cl { margin: 0 !important; padding: 12px 16px 12px 24px; font-weight: 700; font-size: 15px !important; color: var(--text) !important; }
.srv-cl small { display: block; font-weight: 400; font-size: 12px; color: var(--text-3); }
.srv-cu { display: block; width: 100%; padding: 12px 16px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text-2); text-align: left; font-size: 13px; }
.srv-cu:hover { background: var(--fill-2); }
.srv-cu[aria-pressed="true"] { background: var(--accent-soft); }
.srv-cu-v { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.srv-cu-v b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.srv-cu .ubar { display: block; max-width: none; margin: 6px 0 4px; }
.srv-cu.busy .ubar i { background: var(--warn); } .srv-cu.down .ubar i { background: var(--bad); }
.srv-cu small { color: var(--text-3); font-size: 12px; }
.srv-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.srv-grid th, .srv-grid td { padding: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.srv-grid thead th { padding: 12px 16px; font-weight: 400; border-left: 1px solid var(--line); }
.srv-grid thead th:first-child { width: 170px; padding-left: 24px; border-left: 0; font-size: 13px; color: var(--text-3); }
.srv-pc { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--text); }
.srv-grid thead small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-grid tbody th { padding: 12px 16px 12px 24px; font-size: 15px; font-weight: 700; }
.srv-grid td { border-left: 1px solid var(--line); }
.srv-cell { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; background: transparent; color: var(--text); text-align: left; font-size: 15px; }
.srv-cell:hover { background: var(--fill); }
.srv-cell[aria-pressed="true"] { background: var(--accent-soft); }
.srv-cell small { display: block; font-size: 12px; color: var(--text-3); }
.srv-none { display: block; padding: 0 16px; color: var(--text-3); }
.st-ok { color: var(--ok); } .st-busy { color: var(--warn); } .st-down { color: var(--bad); } .st-idle, .st-unk { color: var(--text-3); }
.srv-detail.line { flex: none; padding: 12px 24px; border-top: 1px solid var(--line); overflow: visible; }
.srv-modal .srv-detail:not(.line) { flex: none; max-height: 55%; border-top: 1px solid var(--line); }
.srv-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
.srv-line p { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px !important; color: var(--text) !important; }
.srv-line .srv-facts { grid-column: 1; display: block; font-size: 14px !important; color: var(--text-2) !important; }
.srv-line .srv-acts { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.srv-tabs { display: flex; gap: 22px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.srv-tab { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-3); font-size: 15px; font-weight: 700; }
.srv-tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.srv-host { margin: 0 !important; padding: 10px 24px; font-size: 13px !important; color: var(--text-3) !important; }

/* ── 업무현황(V2 구조) ─────────────────────── */
.work { display: grid; gap: 28px; max-width: 1400px; }
.wsec h3 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--line-2); }
.count { font-size: 14px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wsec .empty { text-align: left; padding: 14px 0; }
.wlist { list-style: none; margin: 0; padding: 0; }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) 8.5em 10em 8em 11.5em; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.wtitle { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtitle:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.wno, .wage { color: var(--text-3); font-size: 14px; }
.wproj { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wown { display: inline-flex; align-items: center; gap: 8px; }
.work-modal { width: min(820px, 100%); padding: 0; scroll-padding-bottom: 72px; }   /* 폭을 바꾸면 .wd-side 위치(410px = 절반)도 함께 */
.wd-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 16px 16px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.wd-head > div { flex: 1; min-width: 0; }
.wd-head h3 { flex: 1; margin: 0; font-size: 20px; line-height: 1.4; }
.wd-head h3 .num { color: var(--text-3); }
.wd-pager { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.wd-pager[hidden] { display: none; }
.wd-pager .num { font-size: 15px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wd-pager .btn:disabled { opacity: .35; cursor: default; }
.wd-sides { position: fixed; inset: 0; pointer-events: none; }
.wd-side { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: var(--r-m); background: rgba(255,255,255,.14); color: #fff; display: none; place-items: center; cursor: pointer; }
.wd-side:hover:not(:disabled) { background: rgba(255,255,255,.26); }
.wd-side:disabled { opacity: .3; cursor: default; }
.wd-side svg { width: 26px; height: 26px; }
.wd-side.prev { left: max(16px, calc(50% - 410px - 76px)); } .wd-side.next { right: max(16px, calc(50% - 410px - 76px)); }
@media (min-width: 1000px) { .wd-side { display: grid; } }
.wd-meta { margin: 0 0 4px !important; font-size: 14px !important; color: var(--text-3) !important; }
.wd-body { padding: 8px 24px 24px; }
.wd-dl { display: grid; grid-template-columns: 9em 1fr; margin: 0 0 20px; font-size: 15px; }
.wd-dl dt, .wd-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wd-dl dt { color: var(--text-3); font-weight: 700; }
.wd-form .sel { width: 100%; }
.wd-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-hist { margin-top: 24px; }
.wd-hist h4 { margin: 0 0 6px; font-size: 15px; color: var(--text-3); }
.wd-hist details { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
.wd-hist summary { cursor: pointer; font-weight: 700; }
.wd-hist p { margin: 8px 0 0 !important; }

/* ── 1:1 대화하기(실사) — 사진 위라 테마와 관계없이 어두운 유리 ── */
.vn-chip { height: 40px; padding: 0 14px 0 10px; border-radius: var(--r-s); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border: 1px solid var(--glass-line); }
a.vn-chip:hover { background: var(--glass-2); }
.vn-chip svg { width: 18px; height: 18px; }
.vn-who { display: grid; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vn-who b { font-size: 18px; } .vn-who span { font-size: 13px; color: #d3dbea; }
.vn-aff { height: 40px; padding: 0 12px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.vn-aff:hover { background: var(--glass-2); }
.vn-aff svg { width: 17px; height: 17px; color: #ff8fb3; }
.vn-aff b { font-size: 16px; }
.mini-meter { width: 64px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.mini-meter i { display: block; height: 100%; background: #ff7aa6; border-radius: 3px; transition: width .3s var(--ease); }
/* 1:1 화면(2026-11-23 대표): 위 줄(뒤로·이름·사진 넘김·확대·지표·기록·호감도)은 사진 밖, 사진은 그 아래 9:16 세로 영역(PC는 가운데), 대사·입력은 사진 하단 반투명 창 */
.vn { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #070b13; color: #fff; }
.vn-top { flex: none; position: relative; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 8px 14px; min-height: 60px; background: rgba(8,14,28,.9); border-bottom: 1px solid var(--glass-line); }
.vn-main { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.vn-stage { position: absolute; inset: 0; touch-action: pan-y; cursor: zoom-in; }
.vn-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(30px) brightness(.4); }
.vn-photo { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, calc((100dvh - 60px) * 9 / 16)); height: 100%; transform: translateX(-50%); object-fit: cover; object-position: 50% 20%; user-select: none; -webkit-user-drag: none; }
.vn-col { position: absolute; inset: 0; pointer-events: none; }
.vn-col > * { pointer-events: auto; }
.vn-tools { display: flex; align-items: center; gap: 6px; }
.vn-tools button { height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--glass-line); background: var(--glass); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; }
.vn-tools button:hover:not(:disabled) { background: var(--glass-2); }
.vn-tools svg { width: 20px; height: 20px; }
.vn-pager { display: inline-flex; align-items: center; gap: 4px; }
.vn-pager button { padding: 0; width: 44px; }
.vn-pager[hidden], .vn-pager button[hidden] { display: none; }
.vn-count { min-width: 52px; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vn-chip { height: 44px; padding: 0 14px 0 10px; border-radius: var(--r-s); background: var(--glass); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border: 1px solid var(--glass-line); white-space: nowrap; }
.vn-aff { height: 44px; padding: 0 12px; white-space: nowrap; }
.vn-who { min-width: 0; } .vn-who b, .vn-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn-dock { position: absolute; z-index: 4; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 20px), 760px); transform: translateX(-50%); display: grid; gap: 6px; }
.vn-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: rgba(8,14,28,.68); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-line); }
.vn-line { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.vn-box.open .vn-line { white-space: normal; max-height: 36dvh; overflow: auto; }
.vn-sug { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vn-sug button { flex: none; max-width: 100%; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vn-sug button:hover { background: rgba(255,255,255,.18); }
.vn-sug b { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: var(--primary); }
.vn-dock.folded .vn-box { display: none; }
.vn-input input { height: 50px; font-size: 17px; }
.vn-input .btn { height: 50px; padding: 0 20px; font-size: 16px; }
.vn-input input { flex: 1; min-width: 0; border-radius: var(--r-s); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; padding: 0 14px; }
/* 지표 등급 사다리: 칸이 좁아도 글자가 줄바꿈으로 깨지지 않게 세로 목록 */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-s); overflow: hidden; }
.ladder li { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.35; color: #8f9cb6; text-align: left; }
.ladder li + li { border-top: 1px solid rgba(255,255,255,.12); }
.ladder li b { flex: none; min-width: 26px; font-size: 14px; color: #c9d3e6; }
.ladder li.on { background: rgba(0,104,200,.55); color: #fff; } .ladder li.on b { color: #fff; }
/* 대화함: 프로필 사진(실사)·오른쪽 큰 사진 창 */
.av.mv { width: 100%; height: 100%; border-radius: inherit; }
.thread > .av.mv { width: 56px; height: 56px; border-radius: 14px; }
.ch-pic, .m-pic { padding: 0; border: 0; background: none; cursor: zoom-in; flex: none; border-radius: 13px; }
.ch-pic { width: 52px; height: 52px; } .m-pic { width: 42px; height: 42px; border-radius: 11px; align-self: flex-start; }
.ch-pic .av, .m-pic .av { width: 100%; height: 100%; border-radius: inherit; }
.conv { position: relative; }
.conv-side { position: absolute; z-index: 8; top: 0; right: 0; bottom: 0; width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 16px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(0,0,0,.12); animation: slideIn .2s var(--ease); }
.conv-side header { display: flex; align-items: center; gap: 8px; }
.conv-side header b { font-size: 18px; }
.cs-photo { flex: 1; min-height: 0; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--fill-2); cursor: zoom-in; }
.cs-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cs-bar { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; }
.cs-go { width: 100%; height: 48px; font-size: 16px; }
@media (max-width: 767px) {
  .vn-top { padding: 6px 10px; gap: 6px; min-height: 56px; flex-wrap: wrap; }
  .vn-who { flex: 1; min-width: 0; } .vn-top > .grow { display: none; }
  .vn-tools { order: 3; width: 100%; justify-content: space-between; }
  .vn-tools > button { flex: 1; } .vn-pager { flex: 2; justify-content: space-between; }
  .vn-photo { width: min(100%, calc((100dvh - 56px) * 9 / 16)); }
  .vn-chip { padding: 0 10px 0 6px; } .vn-chip span { display: none; }
  .vn-who b { font-size: 16px; } .vn-who span { display: none; }
  .vn-aff { padding: 0 10px; } .vn-aff > span:not(.mini-meter) { display: none; } .mini-meter { width: 36px; }
  .vn-tools { gap: 6px; } .vn-tools button { height: 40px; min-width: 40px; padding: 0 8px; white-space: nowrap; } .vn-tools button > span:not(.vn-count) { display: none; }
  .vn-pager button { width: 44px; } .vn-count { min-width: 44px; font-size: 13px; }
  .vn-dock { width: calc(100% - 16px); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .vn-line { font-size: 16px; }
  .vn-input input, .vn-input .btn { height: 46px; }
  .conv-side { width: 100%; }
}
.vn-say { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vn-name { flex: none; padding: 2px 10px; border-radius: var(--r-xs); background: var(--primary); font-weight: 700; font-size: 14px; }
.vn-fold, .vn-open { flex: none; height: 32px; min-width: 32px; padding: 0 8px; border-radius: var(--r-xs); border: 1px solid var(--glass-line); background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; }
.vn-fold:hover, .vn-open:hover { background: rgba(255,255,255,.18); }
.vn-fold svg, .vn-open svg { width: 16px; height: 16px; }
.vn-open { display: none; justify-self: start; height: 40px; background: rgba(8,14,28,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vn-dock.folded .vn-box { display: none; } .vn-dock.folded .vn-open { display: inline-flex; }
.vn-input { display: flex; gap: 8px; }
.vn-input input::placeholder { color: #9fb0cf; }
.vn-input input:focus { outline: 0; border-color: #5cb6ff; }
/* 지표·기록 시트 */
.vn-sheet { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: rgba(9,14,26,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-left: 1px solid var(--glass-line); display: flex; flex-direction: column; animation: slideIn .2s var(--ease); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
.vn-sheet header { display: flex; align-items: center; gap: 6px; padding: 14px 10px 12px 20px; border-bottom: 1px solid var(--glass-line); }
.vn-sheet h3 { margin: 0; font-size: 19px; outline: 0; }
.vn-sheet .icon-btn { color: #c9d3e6; } .vn-sheet .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sh-tag { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-xs); background: rgba(255,255,255,.1); color: #c9d3e6; }
.sh-body { flex: 1; overflow: auto; padding: 4px 20px 24px; }
.sh-body section { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sh-body h4 { margin: 0 0 10px; font-size: 15px; color: #9fb0cf; display: flex; gap: 8px; align-items: baseline; }
.sh-body h4 small, .lv-h small { font-weight: 400; font-size: 13px; color: #7f8ca6; }
.kv2 { display: flex; justify-content: space-between; font-size: 15px; margin-top: 6px; }
.kv2 b { font-variant-numeric: tabular-nums; }
.basis { display: block; margin: 4px 0 0; font-size: 13px; color: #8f9cb6; }
.ibar { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 6px; }
.ibar i { position: absolute; top: 0; bottom: 0; left: 0; background: #5cb6ff; border-radius: 3px; }
.ibar.neg::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(255,255,255,.4); }
.ibar.neg i { background: #ffb547; }
.inds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inds li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; font-size: 15px; }
.inds .in-n small { margin-left: 6px; font-size: 12px; color: #7f8ca6; }
.inds .ibar, .inds .basis { grid-column: 1 / -1; }
.lv-h { margin: 10px 0 6px; font-size: 14px; font-weight: 700; color: #d3dbea; }
.trait { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 15px; }
.trait dt { color: #8f9cb6; } .trait dd { margin: 0; font-weight: 700; }
.b5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.b5 li { display: grid; grid-template-columns: 4em 1fr 2em; gap: 10px; align-items: center; font-size: 14px; }
.b5 .ibar { margin: 0; }
.b5 b { text-align: right; }
.evs { list-style: none; margin: 0; padding: 0; }
.evs li { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.evs time { color: #8f9cb6; } .evs span { color: #d3dbea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evs em { grid-column: 2 / -1; font-style: normal; color: #7fc4ff; font-size: 13px; }
.vlog { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 10px; font-size: 15px; }
.vlog b { display: block; font-size: 13px; color: #9fb0cf; }
.sh-empty { color: #8f9cb6; padding: 24px 0; }
.psy-modal { width: min(760px, 100%); padding: 0; }
.psy-body { padding: 4px 24px 24px; font-size: 15px; }
.psy-body h4 { margin: 18px 0 6px; font-size: 16px; }
.psy-body p, .psy-body ul { margin: 0 0 6px !important; color: var(--text-2); }
.psy-body ul { padding-left: 20px; }
.psy-body .tbl { font-size: 14px; }
.psy-body .tbl td { vertical-align: top; }
.psy-body .src { margin-top: 18px !important; font-size: 14px !important; color: var(--text-3) !important; }
/* 사진 크게 보기 */
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(2,5,12,.94); display: grid; place-items: center; touch-action: none; animation: fade .15s; overflow: hidden; }
.viewer img { max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .08s; cursor: zoom-in; }
.viewer.zoomed img { cursor: grab; }
.vw-x { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.vw-x svg { width: 22px; height: 22px; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; border-radius: var(--r-m); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.vw-nav:hover, .vw-x:hover { background: rgba(255,255,255,.2); }
.vw-nav svg { width: 26px; height: 26px; }
.vw-nav.prev { left: 14px; } .vw-nav.next { right: 14px; }
.vw-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px; }
.vw-count:empty { display: none; }

/* ── 대화함(실사, 둥근 사각 사진) ─────────────── */
.msg { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: 100%; min-height: 0; }
.threads { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.th-head { padding: 16px 16px 12px; display: grid; gap: 10px; }
.th-list { overflow: auto; flex: 1; padding: 0 8px 8px; }
.thread { display: flex; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: var(--r-s); background: none; text-align: left; align-items: center; transition: background-color .12s; }
.thread:hover { background: var(--fill); }
.thread[aria-current="true"] { background: var(--accent-soft); }
.thread .ph, .thread .room-ic { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: 50% 15%; flex: none; }
.room-ic { background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
:root[data-theme="dark"] .room-ic { background: var(--fill-2); }
.tb { flex: 1; min-width: 0; }
.t1 { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: 16px; }
.t1 small { font-weight: 400; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t1 time { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--text-3); flex: none; }
.t2 { display: block; font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.conv { display: flex; flex-direction: column; min-height: 0; background: var(--canvas); }
.conv-head { min-height: 76px; flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.conv-head > .ph, .conv-head > .room-ic { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; object-position: 50% 15%; flex: none; }
.ch-t { min-width: 0; } .ch-t b { display: block; font-size: 17px; } .ch-t span { font-size: 14px; color: var(--text-3); display: inline-flex; align-items: center; }
.conv-body { flex: 1; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.conv-empty { margin: auto; color: var(--text-3); }
.m { display: flex; gap: 10px; max-width: 72%; }
.m .ph { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; object-position: 50% 15%; flex: none; }
.m .who { font-size: 14px; color: var(--text-2); font-weight: 700; margin-bottom: 4px; }
.m .say { background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; border-radius: 4px var(--r-m) var(--r-m) var(--r-m); font-size: 16px; line-height: 1.5; }
.m time { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.m.mine { align-self: flex-end; } .m.mine time { text-align: right; }
.m.mine .say { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: var(--r-m) 4px var(--r-m) var(--r-m); }
.sys-line { align-self: center; font-size: 13px; color: var(--text-3); padding: 4px 10px; border-radius: var(--r-xs); background: var(--fill); }
.conv-in { flex: none; display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.conv-in input { flex: 1; min-width: 0; height: 46px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; font-size: 16px; }
.conv-in input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.conv-in .send { width: 46px; height: 46px; padding: 0; }
.back-m { display: none; }

/* ── 페이지 공통·프로젝트 ──────────────────────── */
.page { padding: 28px; }
.page-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; border: 0; }
.filter-chip svg { width: 15px; height: 15px; }
.due { color: var(--text-3); } .due.hot { color: var(--bad); font-weight: 700; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.tbl th, .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: middle; }
.tbl th { font-size: 14px; color: var(--text-3); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl.flat { border: 0; border-radius: 0; }
.person { display: inline-flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--text-3); box-shadow: inset 0 -2px 0 transparent; white-space: nowrap; transition: color .12s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }

/* ── 직원관리(치비) ────────────────────────────── */
.emp-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; min-height: 0; }
.emp-main { padding: 28px; overflow: auto; }
.count { margin: 0 0 16px; }
.emp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.emp-card { width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); text-align: left; overflow: hidden; position: relative; display: block; box-shadow: var(--hl); transition: border-color .12s; }
.emp-card:hover { border-color: var(--line-2); }
.emp-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ec-pic { position: relative; display: grid; place-items: center; height: 180px; background: linear-gradient(180deg, var(--accent-soft), var(--fill)); overflow: hidden; }
.emp-card > .pill { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.94); }
:root[data-theme="dark"] .emp-card > .pill { background: rgba(17,23,35,.92); }
.ec-body { display: grid; gap: 8px; padding: 12px 14px 14px; }
.ec-body > b { font-size: 18px; line-height: 1.3; } .ec-body > span:nth-child(2) { font-size: 14px; color: var(--text-3); margin-top: -6px; }
.emp-detail { border-left: 1px solid var(--line); background: var(--surface); overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ed-photo { height: 240px; border-radius: var(--r-m); background: linear-gradient(180deg, var(--accent-soft), var(--fill)); display: grid; place-items: center; overflow: hidden; flex: none; }
.ed-id { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ed-id h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.ed-id > span:nth-child(2) { font-size: 15px; color: var(--text-2); }
.ed-id .pill { margin-left: auto; align-self: center; }
.kv { display: grid; grid-template-columns: 104px 1fr; margin: 0; font-size: 15px; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--text-3); }

/* ── 질의응답·스튜디오 진입 화면 ───────────────── */
.empty-st { display: grid; justify-items: center; gap: 8px; padding: 32px 0; color: var(--text-3); }
.empty-st img { width: 120px; }
.empty-st p { margin: 0; }

/* ── 설정(PC 가로 폭 꽉 채움) ───────────────── */
.top-tabs { margin-bottom: 24px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 16px; align-items: start; }
.set-grid .box.wide { grid-column: 1 / -1; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--hl); }
.box h4 { margin: 0; padding: 16px 20px; font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.box h4 .btn { margin-left: auto; }
.set .row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.set .row:last-child { border-bottom: 0; }
.set .row .k { flex: 1; font-weight: 700; font-size: 15px; min-width: 0; }
.set .row .k small { display: block; color: var(--text-3); font-size: 14px; font-weight: 400; margin-top: 2px; }
.acct { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ic-b { width: 40px; height: 40px; border-radius: var(--r-s); background: var(--fill); color: var(--text-2); display: grid; place-items: center; flex: none; }
.ic-b svg { width: 21px; height: 21px; }
.ic-b.tg { color: #229ed9; }
.route-list { margin: 6px 0; padding-left: 20px; font-size: 15px; color: var(--text-2); font-weight: 400; }

/* ── 작은 PC·태블릿 768~1279 ── */
@media (max-width: 1279px) {
  .hide-c { display: none !important; }
  .msg { grid-template-columns: 300px minmax(0, 1fr); }
  .emp-page { grid-template-columns: minmax(0, 1fr); height: auto; }
  .emp-detail { border-left: 0; border-top: 1px solid var(--line); }
  .ed-photo { max-width: 420px; width: 100%; }
  .wrow { grid-template-columns: minmax(0, 1fr) 8.5em 11em; grid-template-areas: 't no own' 'p p age'; row-gap: 2px; }
  .wtitle { grid-area: t; } .wno { grid-area: no; } .wown { grid-area: own; } .wproj { grid-area: p; font-size: 14px; } .wage { grid-area: age; text-align: right; }
}

/* ── 모바일 <768: 하단 탭 바 + 하단 시트 ───────────── */
@media (max-width: 767px) {
  .shell, .shell.mini { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .shell.m-vn { padding-bottom: 0; }
  .shell.m-vn .tabbar { display: none; }
  .side { display: none; }
  .top { padding: 0 8px 0 10px; height: 60px; gap: 6px; }
  .top-mark { display: flex; align-items: center; }
  .top h2 { font-size: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hide-m { display: none !important; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); z-index: 30; }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--text-3); text-decoration: none; position: relative; border: 0; background: none; padding: 0; }
  .tabbar [aria-current="page"] { color: var(--text); }
  .tabbar [aria-current="page"] svg { color: var(--accent); }
  .tabbar svg { width: 25px; height: 25px; }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 19px; height: 19px; font-size: 11px; margin: 0; }
  .hud { top: 10px; }
  .hud-l { display: flex; left: 10px; }
  .hud-r { right: 10px; gap: 4px; }
  .hud-chip { height: 36px; padding: 0 10px; } .hud-btn { width: 36px; height: 36px; }
  .yuri-toast { top: 56px; right: 10px; }
  .panel { position: fixed; top: auto; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); width: auto; max-height: 80dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r-l) var(--r-l) 0 0; transform: translateY(105%); z-index: 40; }
  .ptabs { border-radius: var(--r-l) var(--r-l) 0 0; padding-left: 16px; }
  .scrim.open { position: fixed; z-index: 35; }
  #panel .pcard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .pphoto { height: 150px; }
  .pinfo { display: contents; }
  .pphoto { grid-row: span 4; align-self: start; }
  .pact, #pttState { grid-column: 1 / -1; }
  .pname h3 { font-size: 22px; }
  .sec { padding: 16px; }
  .nm { font-size: 14px; padding: 2px 8px 1px 6px; }
  .nm .lamp { width: 7px; height: 7px; margin-right: 4px; }
  .bubble { font-size: 15px; max-width: 200px; }
  .msg { grid-template-columns: minmax(0, 1fr); }
  .msg.in-thread .threads { display: none; }
  .msg:not(.in-thread) .conv { display: none; }
  .back-m { display: grid; }
  .conv { height: calc(100dvh - 60px - env(safe-area-inset-top) - var(--tabbar-h) - env(safe-area-inset-bottom)); }
  .conv-head { padding: 8px 12px 8px 4px; min-height: 68px; }
  .conv-head > .ph, .conv-head > .room-ic { width: 46px; height: 46px; }
  .conv-head .btn-sm { padding: 0 10px; }
  .conv-body { padding: 16px; }
  .m { max-width: 88%; }
  .page, .emp-main { padding: 16px; }
  .tbl .hide-m { display: none; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .emp-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .emp-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: stretch; }
  .ec-pic { height: 124px; }
  .emp-card > .pill { left: auto; right: 10px; }
  .emp-detail { padding: 16px; }
  .ed-photo { height: 200px; }
  .set .row { padding: 12px 16px; flex-wrap: wrap; }
  .box h4 { padding: 14px 16px; }
  .work { gap: 24px; }
  .wrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't t' 'no own' 'p age'; }
  .wage { font-size: 13px; }
  .wd-dl, .srv-tbl { grid-template-columns: 7.5em 1fr; }
  .wd-body { padding: 8px 16px 20px; }
  .wd-head { padding: 16px 8px 12px 16px; }
  .work-modal .wd-acts .btn { flex: 1; }
  .modal-bg { padding: 8px; }
  /* 서버 상태: 목록 → 상세 한 화면씩 */
  .srv-modal { height: calc(100dvh - 16px); }
  .srv-head { padding: 14px 8px 12px 16px; flex-wrap: wrap; }
  .srv-head h3 { font-size: 20px; }
  .srv-list { border-right: 0; padding: 4px 8px 12px; }
  .srv-body .srv-detail { display: none; padding: 16px; }
  .srv-body.show-detail .srv-main { display: none; }
  .srv-modal .srv-detail:not(.line) { max-height: none; flex: 1; border-top: 0; }
  .srv-ban { padding: 10px 16px; }
  .srv-ban-bar { flex-basis: 100%; max-width: none; order: 3; }
  .srv-cloud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .srv-cl { grid-column: 1 / -1; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .srv-cu { padding: 10px 12px; } .srv-cu:nth-child(2) { border-left: 0; }
  .srv-cu-v { flex-direction: column; align-items: flex-start; gap: 0; }
  .srv-host { padding: 10px 16px; }
  .srv-tip { display: none; }
  .srv-body.show-detail .srv-detail { display: block; }
  .srv-back { display: inline-flex; }
  .srv-foot { padding: 10px 12px 10px 16px; }
  .srv-foot .btn { height: 38px; padding: 0 12px; font-size: 14px; }
  .ubar { max-width: 80px; }
  .vn-sheet { top: auto; left: 0; width: auto; height: 82%; border-left: 0; border-top: 1px solid var(--glass-line); border-radius: var(--r-l) var(--r-l) 0 0; animation: sheetIn .2s var(--ease); }
  .vw-nav { display: none; }
  .minimap { width: 128px; bottom: 10px; left: 10px; }
  .login { padding: 16px 14px; }
  .login-win { padding: 22px 16px; }
  .login-form .lead { font-size: 18px; }
  .login-form .lead { font-size: 16px; }
}

/* ══ 3차 수정(2026-11-22 대표 피드백) ══ */
/* 1. 얼굴 크롭: 위치·배율은 JS faceStyle() 한 곳. 칸은 항상 정사각형 */
.av.fill { height: 100%; width: auto; aspect-ratio: 1; border-radius: 0; background-color: transparent; }
@media (max-width: 767px) { .pphoto { height: 112px; } }

/* 2. 오피스 픽셀 말풍선·이름표(Galmuri11) — 각진 모서리, 계단식 테두리·꼬리 */
.nm, .bubble { -webkit-font-smoothing: none; font-smooth: never; text-rendering: optimizeSpeed; letter-spacing: 0; }
.nm { border-radius: 0; font-size: 18px; line-height: 1.3; padding: 4px 10px 3px 8px;
  box-shadow: 0 -2px 0 0 #fff, 0 2px 0 0 #fff, -2px 0 0 0 #fff, 2px 0 0 0 #fff, 4px 4px 0 0 rgba(0,0,0,.35); }
.nm .lamp { border-radius: 0; }
.bubble { border-radius: 0; font-size: 20px; line-height: 1.35; max-width: 300px; padding: 10px 14px 9px; transform: translate(-50%, calc(-100% - 20px));
  box-shadow: 0 -3px 0 0 #011842, 0 3px 0 0 #011842, -3px 0 0 0 #011842, 3px 0 0 0 #011842, 6px 6px 0 0 rgba(1,24,66,.28); }
.bubble::before, .bubble::after { border: 0; width: 18px; height: 15px; transform: none; margin: 0; }
.bubble::before { top: calc(100% + 3px); left: calc(50% - 9px); background: #011842;
  clip-path: polygon(0 0, 18px 0, 18px 3px, 15px 3px, 15px 6px, 12px 6px, 12px 9px, 9px 9px, 9px 12px, 6px 12px, 6px 15px, 3px 15px, 3px 3px, 0 3px); }
.bubble::after { top: 100%; left: calc(50% - 6px); width: 12px; height: 9px; background: #fff;
  clip-path: polygon(0 0, 12px 0, 12px 3px, 9px 3px, 9px 6px, 6px 6px, 6px 9px, 3px 9px, 3px 0); }
@media (max-width: 767px) { .nm { font-size: 15px; padding: 2px 7px 1px 5px; } .bubble { font-size: 16px; max-width: 220px; } }
/* 말풍선 층(2026-11-25 대표: 상단 메뉴에 가림): 지도 밖 고정 층, HUD(12)·휴대폰 띠(11)보다 위. --tail: 좌우로 민 만큼 꼬리를 머리 쪽으로.
   꼬리 margin 규칙은 위 픽셀 꼬리 규칙(margin: 0)보다 뒤에 있어야 한다. */
.bubble-layer { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
/* 말풍선 층이 둘이다: 위 .bubble-layer(대화 미리보기)와 지도 안(걸어 나온 직원). 지도 안 것은 이름표(1500)·직원 그림(발 높이 z < 5000)보다 위에 둔다(2026-11-26 대표: 문서아에 가림) */
.map > .bubble { z-index: 5000; }
.bubble::before, .bubble::after { margin-left: var(--tail, 0px); }

/* 6. 좌측 메뉴 별도 묶음(새 탭) */
.nav-sep { height: 1px; margin: 14px 12px; background: var(--side-rule); list-style: none; }
.nav .ext { margin-left: auto; display: inline-flex; color: var(--side-dim); }
.nav .ext svg { width: 15px; height: 15px; }
.shell.mini .nav .ext { position: absolute; top: 6px; right: 6px; margin: 0; }
.shell.mini .nav .ext svg { width: 12px; height: 12px; }
.shell.mini .nav-sep { margin: 12px 14px; }


/* 4. 프로젝트: 진행 3열 칸반·한 줄 목록·완료 구역 */


/* 6. 새 탭 독립 페이지(질의응답·스튜디오 PRO) */

/* 7. 설정 > 페르소나·클라우드 사용량 */
.box h4 .muted.sm { font-weight: 400; }
.usage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.usage-list li { padding: 18px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; gap: 10px; }
.u-h { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.u-p { margin-left: auto; font-size: 22px; font-weight: 700; }
.u-bar { position: relative; height: 8px; border-radius: 4px; background: var(--fill); }
.u-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.u-bar.busy i { background: var(--warn); } .u-bar.down i { background: var(--bad); }
.u-bar s { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.u-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.u-dl dt { color: var(--text-3); } .u-dl dd { margin: 0; text-align: right; }
.usage-list p { margin: 0; }
.set .tbl.flat td small { margin-left: 6px; }

@media (max-width: 767px) {
  .usage-list li { padding: 16px; border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 2026-11-23: 프로필 사진·성격 지표(밝은/어두운 공통, 테마 변수 사용) */
.av.ph { background-color: var(--fill-2); }
.av.fill.ph { width: 100%; aspect-ratio: auto; }
button.ed-photo { position: relative; width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.ed-photo .ed-n { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(8,14,28,.62); color: #fff; font-size: 13px; font-weight: 700; }
.vw-act:has(.vw-ask) { flex-wrap: wrap; justify-content: center; white-space: normal; border-radius: 16px; max-width: calc(100vw - 32px); }
.vw-act .vw-ask { flex: 1 1 100%; text-align: center; white-space: normal; }
.vw-act { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: rgba(8,14,28,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; }
.vw-act .btn { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.vw-act .btn-primary { background: var(--primary); }
.vw-act .btn-danger { color: #ff9b94; box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.vw-act .btn:disabled { opacity: .6; }
.vw-ask { color: #fff; font-size: 14px; }
.psy section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.psy section:last-child { border-bottom: 0; }
.psy h4 { margin: 0 0 10px; font-size: 15px; color: var(--text-2); }
.psy .trait dt, .psy .basis { color: var(--text-3); }
.psy .ibar { background: var(--fill-2); }
.psy .ibar i { background: var(--accent); }
.psy .ibar.neg::before { background: var(--text-3); } .psy .ibar.neg i { background: var(--warn); }
.psy .inds .in-n small { color: var(--text-3); }
.psy .evs li { border-bottom-color: var(--line); } .psy .evs time { color: var(--text-3); } .psy .evs span { color: var(--text-2); } .psy .evs em { color: var(--accent); }
.modal.psy-view { width: min(520px, 100%); padding: 0; }
.psy-view .wd-head { position: static; align-items: center; }
.psy-view .wd-head .person { flex: none; }
.pv-body { padding: 4px 24px 20px; }
.pv-body > section { padding: 12px 0; } .pv-body h4 { margin: 0 0 8px; font-size: 15px; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; }
.pv-done summary { cursor: pointer; padding: 8px 0; color: var(--text-2); font-weight: 700; }
@media (max-width: 1099px) { .ed-photo, button.ed-photo { max-width: none; width: 100%; height: min(70vw, 440px); } }
@media (max-width: 767px) { .vw-act { bottom: 52px; } }
/* 로고 라이트/다크 전환(!important)보다 펼침·접힘 표시가 먼저 적용되게 */
.shell:not(.mini) .side-brand .logo-mark { display: none !important; }
.shell.mini .side-brand .logo-full { display: none !important; }

/* 2026-11-23 업무현황·프로젝트 개편: 접힌 목록, 의견 모음 바, 프로젝트 카드(대표 요청 카드형), 단계 모달 */
.wfolds { margin-top: 28px; display: grid; gap: 4px; }
.wfold { border-bottom: 1px solid var(--line); }
.wfold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-size: 16px; font-weight: 700; color: var(--text-2); }
.wfold > summary::-webkit-details-marker { display: none; }
.wfold > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.wfold[open] > summary::before { transform: rotate(45deg); }
.wfold .wlist { margin-bottom: 12px; }
.wfold .empty { text-align: left; padding: 4px 4px 14px; }
.fb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; padding: 10px 4px; margin-bottom: 12px; border-top: 2px solid var(--line-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.fb-bar p { margin: 0; min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-bar .btn { height: 34px; padding: 0 10px; font-size: 13px; flex: none; white-space: nowrap; }
/* 해진상사 로봇 플로팅(2026-11-26 대표): 모든 화면 우측 하단, 오른쪽 위 빨간 숫자, 누르면 의견·브리핑 한 창 */
.robot-fab { position: fixed; right: 44px; bottom: 44px; z-index: 26; width: 80px; height: 80px; padding: 10px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); transition: transform .15s var(--ease); }
.robot-fab img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.robot-fab:hover { transform: translateY(-3px); }
.shell:has(.panel.open) .robot-fab { display: none; }   /* 직원 패널을 열면 가리지 않게 숨김 */
.robot-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.robot-fab .n { position: absolute; top: -2px; right: 0; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
/* 로봇 창(2026-11-26 대표): 제목 줄 없이 닫기만, 의견·브리핑 두 칸(좁으면 한 칸) */
.work-modal:has(.pile) { width: min(640px, 100%); }
.work-modal:has(.pile) .wd-head { padding: 10px 10px 0; border-bottom: 0; justify-content: flex-end; }
.work-modal:has(.pile) .wd-head > div { flex: 1; }
.pile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 8px; }   /* 한 칸: 조유리 의견 → 아래 주가은 브리핑 */
.pile-sec { min-width: 0; }
.pile-sec > header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--line-2); }
.pile-sec h4 { flex: 1; margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.pile-sec h4 b { font-size: 20px; color: var(--warn); margin-left: 4px; } .pile-sec h4 b.zero { color: var(--text-3); } .pile-sec h4 span { font-size: 14px; font-weight: 400; color: var(--text-3); }
.pile-items { list-style: none; margin: 0; padding: 0; }
.pile-items > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pile-items > li.empty { color: var(--text-3); padding: 20px 0; }
.pile-items > li.gone { color: var(--text-3); }
.pile-items p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.pile-items small { display: block; font-size: 13px; color: var(--text-3); }
@media (max-width: 767px) { .robot-fab { right: 20px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px); width: 64px; height: 64px; padding: 8px; } }
.mail-layer { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--surface, #fff); padding-top: env(safe-area-inset-top); }
.mail-layer header { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.mail-layer iframe { flex: 1; width: 100%; border: 0; padding-bottom: env(safe-area-inset-bottom); }
/* 프로젝트 목록 C안(2026-11-26 대표): 카드 없이 한 줄씩 — 이름(Galmuri11)·건수 | 진행 중 업무 전부(18px), 업무를 누르면 상세 모달 */
.wd-head [data-back] { margin-left: -8px; }
.wd-body .wsec { margin-top: 16px; }
.wd-body .wrow { grid-template-columns: minmax(0, 1fr) 8.5em 9em; }
.wd-body .wrow .wproj, .wd-body .wrow .wage { display: none; }
.wd-fb { margin: 0 0 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wd-fb h4, .wd-hist h4 { margin: 0 0 6px; font-size: 15px; color: var(--text-3); }
.wd-fb ul { margin: 0; padding-left: 1.2em; }
.fb-list { margin: 16px 0; padding-left: 1.4em; display: grid; gap: 12px; }
.fb-list > li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fb-list > li.gone { color: var(--text-3); }
.fb-list small { display: block; color: var(--text-3); }
.fb-list ul { margin: 6px 0 0; padding-left: 1.2em; }
#fbText { min-height: 220px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }
@media (max-width: 640px) {
  .wd-body .wrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't t' 'no own'; }
}

/* ══ 2026-11-23 대표 피드백 2차: 모바일 확대·상단 띠·사진 칸·불러오는 중 ══ */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }   /* iOS 입력 칸 자동 확대 방지 */
  .top { height: calc(60px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .vn-top { padding-top: calc(6px + env(safe-area-inset-top)); }
}
.mob-only { display: none !important; }
@media (max-width: 767px) { .mob-only { display: grid !important; } }
/* 불러오는 중 */
/* 2026-11-24 대표: 불러오는 중은 화면 중앙에 마스코트+회전 고리(0.3초 넘게 걸릴 때만) */
html.net body::before { content: ''; box-sizing: border-box; position: fixed; z-index: 200; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 24px rgba(0,0,0,.18); border: 4px solid var(--line-2); border-top-color: var(--accent); animation: ldSpin .9s linear infinite; pointer-events: none; }
html.net body::after { content: ''; position: fixed; z-index: 201; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; background: url(assets/brand/mascot.png) center / contain no-repeat; animation: ldBob 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes ldBob { 50% { transform: translateY(-4px); } }
.av.ld { background-image: linear-gradient(100deg, var(--fill) 30%, var(--fill-2) 50%, var(--fill) 70%) !important; background-size: 200% 100% !important; animation: ldShim 1.1s linear infinite; }
@keyframes ldShim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.viewer.ld::after, .vn-stage.ld::after, .cs-photo.ld::after { content: ''; box-sizing: border-box; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: ldSpin .8s linear infinite; pointer-events: none; z-index: 1; }
.cs-photo { position: relative; } .cs-photo.ld::after { border-color: var(--line-2); border-top-color: var(--accent); }
@keyframes ldSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .av.ld, html.net body::before, html.net body::after, .viewer.ld::after, .vn-stage.ld::after, .cs-photo.ld::after { animation-duration: 3s; } }
/* 사진 크게 보기: 닫기는 위, 좌우 반투명 버튼은 모바일에도, 프로필 하트·삭제 아이콘 */
.vw-x { top: calc(14px + env(safe-area-inset-top)); z-index: 3; }
.vw-nav { z-index: 2; background: rgba(255,255,255,.14); }
@media (max-width: 767px) { .vw-nav:not([hidden]) { display: grid; width: 44px; height: 64px; } .vw-nav.prev { left: 8px; } .vw-nav.next { right: 8px; } }
.vw-count { bottom: calc(18px + env(safe-area-inset-bottom)); }
.vw-act { bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 3; }
.vw-ic { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); display: grid; place-items: center; flex: none; }
.vw-ic:hover { background: rgba(255,255,255,.22); }
.vw-ic svg { width: 22px; height: 22px; }
.vw-ic[aria-pressed="true"] { color: #ff7aa6; } .vw-ic[aria-pressed="true"] svg { fill: currentColor; }
.vw-ic.del:hover { color: #ff9b94; }
/* 1:1: 사진과 대화창이 겹치지 않게 — 사진 영역 아래에 대화창 */
.vn-main { display: flex; flex-direction: column; }
.vn-stage { position: relative; inset: auto; flex: 1; min-height: 0; overflow: hidden; }
.vn-photo { left: 0; width: 100%; transform: none; object-fit: contain; object-position: 50% 50%; }
.vn-col { position: relative; inset: auto; flex: none; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #0b111d; border-top: 1px solid var(--glass-line); }
.vn-dock { position: relative; left: auto; bottom: auto; transform: none; width: min(100%, 760px); margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
.vn-box { min-width: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; padding: 4px 0; }
.vn-say, .vn-sug, .vn-input { min-width: 0; }
.vn-open { background: rgba(255,255,255,.08); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 767px) { .vn-photo { width: 100%; } .vn-box { gap: 8px; } .vn-sug button { height: 36px; font-size: 14px; } }
.vn-aff svg { fill: #ff7aa6; color: #ff7aa6; }
.kv-h { display: inline-flex; color: #ff7aa6; } .kv-h svg { width: 18px; height: 18px; fill: currentColor; }
/* 단계(한글)·하트: 한 줄 고정 */
.wbd { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wbd > span { display: block; min-width: 0; padding: 8px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 700; }
.wbd > .h { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--heart); }
.wbd .h svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.wbd .h b { font-size: inherit; font-variant-numeric: tabular-nums; }
.wbd.sm > span { padding: 5px 2px; font-size: 13px; }
.basis svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--heart); fill: currentColor; }
/* 사진 칸: 프로필 지침(정사각형)에 맞춰 칸도 정사각형, 조금 안 맞는 건 확대해 채움 */
.av.fill.ph { width: 100%; height: 100%; }
.ec-pic { height: auto; aspect-ratio: 1; }
.pphoto, button.pphoto { width: min(100%, 220px); height: auto; aspect-ratio: 1; margin-inline: auto; border: 0; padding: 0; cursor: zoom-in; }
.ed-photo, button.ed-photo { height: auto; aspect-ratio: 1; max-width: 440px; margin-inline: auto; }
.thread > .av.mv, .thread .room-ic { width: 64px; height: 64px; border-radius: 16px; }
@media (max-width: 767px) {
  .emp-card { grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }
  .ec-pic { height: 100%; min-height: 96px; aspect-ratio: auto; }
  .pphoto, button.pphoto { width: 112px; height: 112px; margin: 0; }
}
/* 설정: 테마는 아이콘만, 페르소나는 줄 목록 */
.theme-ic { display: flex; gap: 4px; flex: none; }
.theme-ic button { width: 44px; height: 44px; border-radius: var(--r-s); border: 0; background: none; color: var(--text-3); display: grid; place-items: center; }
.theme-ic button:hover { background: var(--fill); color: var(--text); }
.theme-ic button svg { width: 24px; height: 24px; }
.theme-ic button[aria-pressed="true"] { color: var(--accent); } .theme-ic button[aria-pressed="true"] svg { stroke-width: 2.4; }
.box h4 .q { margin-left: auto; width: 32px; height: 32px; }
.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-list li + li { border-top: 1px solid var(--line); }
.ps-row { width: 100%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 0; background: none; text-align: left; }
.ps-row:hover { background: var(--fill); }
.ps-row .av { width: 44px; height: 44px; border-radius: 12px; }
.ps-n { flex: 1; min-width: 0; display: grid; }
.ps-n b { font-size: 16px; } .ps-n b em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--text-3); margin-left: 8px; }
.ps-n .ps-p { color: var(--text-2); margin-top: 2px; }
.psy-intro .kv { margin: 0; } .psy-intro h5 { margin: 12px 0 6px; font-size: 14px; color: var(--text-2); }
.psy-guide { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--text-2); } .psy-guide li + li { margin-top: 2px; } .ps-n small { font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-h { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--heart); font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-h svg { width: 16px; height: 16px; fill: currentColor; }
.ps-row > svg { flex: none; width: 18px; height: 18px; color: var(--text-3); }
@media (max-width: 767px) { .ps-row { padding: 12px 16px; } }
/* 설정 켜기·끄기 스위치(2026-11-24) */
.switch { flex: none; width: 48px; height: 28px; border-radius: 14px; border: 0; padding: 0; background: var(--line-2); position: relative; transition: background .15s var(--ease); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); } .switch[aria-checked="true"] i { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ══ 2026-11-23 대표 피드백 3차: 상단 단색·로고·한 줄 고정·사진 칸 통일 ══ */
.hud-band { display: none; }
@media (max-width: 767px) {
  html { background: var(--surface); }
  /* iOS Safari는 화면 맨 위에 고정된 단색 요소의 색으로 상태 표시줄을 칠한다. 머리줄을 고정해 흐린 띠 대신 단색으로 */
  .shell:not(.m-vn):not(.m-office) .top { position: fixed; z-index: 25; top: 0; left: 0; right: 0; }
  .shell:not(.m-vn):not(.m-office) .main { padding-top: calc(60px + env(safe-area-inset-top)); }
  .hud-band { display: block; position: fixed; z-index: 11; top: 0; left: 0; right: 0; height: calc(60px + env(safe-area-inset-top)); background: #0b111d; pointer-events: none; }
  .m-office .hud { top: calc(10px + env(safe-area-inset-top)); }
  /* 메인 오피스도 메뉴 머리줄(59px, 가운데 29.5px)과 같은 선: 칩 36px은 top 11.5px, 마크 40px은 top 9.5px */
  .m-office .hud-r { top: calc(11.5px + env(safe-area-inset-top)); }
  .m-office .hud-l { top: calc(9.5px + env(safe-area-inset-top)); }
  .yuri-toast { top: calc(68px + env(safe-area-inset-top)); }
  .vn-top { background: #0b111d; }
}
/* 모바일에서 두 줄로 밀리지 않게: 이름·숫자 라벨은 한 줄, 넘치면 말줄임 */
.ec-body > b, .ec-body > span:nth-child(2), .ed-id h3, .ed-id > span, .t1, .who, .ch-t b, .ch-t span, .conv-side header b, .conv-side header .muted, .wtitle, .wno, .wown, .wproj, .pname h3, .prole, .tabbar span, .seg button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pill, .count { flex: none; }
/* 대화함 큰 사진도 정사각형 칸에 꽉 채움(위아래 빈칸 없음) */
.cs-photo { flex: none; width: min(100%, 50dvh); margin: 0 auto; aspect-ratio: 1; }
.cs-photo img { object-fit: cover; object-position: 50% 15%; }
.conv-side { overflow: auto; }
.tabs button { flex: none; overflow: visible; text-overflow: clip; }
@media (max-width: 767px) { .box { overflow-x: auto; } .tbl th, .tbl td { white-space: nowrap; } }
.vw-act { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; } .vw-act > * { flex: none; }


/* 1:1 대화 사진 위 좌우 넘기기 버튼(2026-11-25 대표) */
.vn-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(8,14,28,.55); color: #fff; cursor: pointer; }
.vn-arrow.prev { left: 12px; } .vn-arrow.next { right: 12px; }
.vn-arrow[hidden] { display: none; }
.vn-arrow:hover { background: rgba(8,14,28,.8); }
.vn-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vn-arrow svg { width: 22px; height: 22px; }

.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; }

.ref-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* 직원 상태 말풍선(2026-11-26 대표 C안): 위 = 일, 아래 = 관계(분홍), 왼쪽 '수치' 오른쪽 % */
.psy .voice { display: grid; gap: 10px; }
.psy .say { background: var(--fill); border-radius: 14px; padding: 14px 16px; }
.psy .say p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.psy .meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.psy .meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--fill-2); position: relative; overflow: hidden; }
.psy .meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 3px; background: var(--accent); }
.psy .say.l .meter i::after { background: var(--heart); }
.psy .meter b { min-width: 3em; text-align: right; font-size: 14px; color: var(--text); }
.psy .trait-line { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.psy .trait-line b { color: var(--text); }


/* 업무현황·프로젝트 카드형 복귀(2026-11-26 대표: 왼쪽 묶음형 취소, 색 없음) */
.wsec.plain { border-top: 2px solid var(--line-2); padding-top: 16px; }
.wsec.plain .wcards { margin-top: 0; }   /* 업무현황·프로젝트 맨 위 줄·여백 통일 */
/* 프로젝트 카드(2026-11-26 대표: 업무 카드와 같은 상자·글꼴, 색 띠 없음) */
.wcards.pcards { border-top: 2px solid var(--line-2); padding-top: 16px; margin-top: 0; }
.prcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 10px; align-content: start; box-shadow: var(--hl); }
.pc-top { display: flex; align-items: flex-start; gap: 12px; }
.pc-hd { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: var(--text); }
.pc-hd:hover { text-decoration: underline; text-underline-offset: 4px; }
.pc-badge { flex: none; font-size: 13px; font-weight: 700; line-height: 20px; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--text); white-space: nowrap; }
.pc-badge b { font-size: 14px; line-height: 20px; margin-right: 1px; } .pc-badge.zero { color: var(--text-3); }
.wcards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.wcard { width: 100%; height: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--hl); color: var(--text); font: inherit; cursor: pointer; transition: border-color .12s; }
.wcard:hover { border-color: var(--line-2); }
.wc-proj { font-size: 13px; font-weight: 700; color: var(--text-3); }
.wc-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.wc-sum { font-size: 15px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-foot { margin-top: auto; font-size: 13px; color: var(--text-3); }
.pc-todo { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.45; }
.pc-todo li + li { border-top: 1px solid var(--line); }
.pc-todo li.none { padding: 6px 0; line-height: 1.5; color: var(--text-3); }
.pc-w { display: block; width: 100%; padding: 6px 0; border: 0; text-align: left; color: var(--text); font: inherit; font-weight: 400; line-height: 1.5; background: none; overflow-wrap: anywhere; }
.pc-w:hover { text-decoration: underline; text-underline-offset: 4px; }
.pc-hd, .pc-w { cursor: pointer; }
.pc-hd:focus-visible, .pc-w:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 767px) { .wcards { grid-template-columns: 1fr; } }

/* 로봇 창 한 줄 압축(2026-11-26 대표): 줄을 누르면 펼침 */
.pile-items details > summary { display: flex; align-items: baseline; gap: 10px; list-style: none; cursor: pointer; font-size: 16px; min-width: 0; }
.pile-items details > summary::-webkit-details-marker { display: none; }
.pile-items summary .num { flex: none; font-size: 13px; color: var(--text-3); }
.pile-items .pi-l { flex: 1 1 auto; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile-items .pi-n { flex: 0 1 40%; min-width: 0; font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile-items details[open] .pi-n { visibility: hidden; }
.pile-items summary:hover .pi-l { text-decoration: underline; text-underline-offset: 4px; }
.pile-items summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pile-items .pi-more { padding: 8px 0 2px; }
.pile-items .pi-open { margin-top: 8px; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 펼친 내용은 줄바꿈·서식 그대로 전체를 보인다(2026-11-26 대표) */
.pile-items .pi-more p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.fb-list ul > li { white-space: pre-wrap; overflow-wrap: anywhere; }   /* 직원 창 브리핑·의견도 줄바꿈 그대로 */
/* 휴대폰 하단 더보기·오른쪽 위 설정(2026-11-27 대표) */
@media (max-width: 767px) { .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } .tabbar button { font-family: inherit; background: none; border: 0; cursor: pointer; } }
.icon-btn[aria-current="page"] { background: var(--fill); color: var(--text); }
