/* 본사 화면 틀(위 막대 · 왼쪽 메뉴 · 찾기 창)과 움직임. 맨 마지막에 읽는다(2026-11-25 디자인 다시).
   색은 X-GOLF 그대로: 숯색 틀 · 비취(jade) 선택 · 진홍(crimson) 실행. 모양 규칙: 카드 16px · 단추와 입력 10px · 꼬리표 둥글게. */
:root {
  --canvas: #fdfdfd; /* 11-25 대표 "애매한 회색 말고 투명한 하얀 느낌" */
  --panel: #ffffff;
  --panel-2: #f7f9f7;
  --hair: rgba(24, 46, 37, .09);
  --hair-strong: rgba(24, 46, 37, .17);
  --ink-2: #2a3530;
  --muted-2: #66736d;
  --frame: #121513;
  --frame-2: #191d1b;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);
  --r-lg: 16px;
  --r-md: 10px;
  --sh-1: 0 1px 2px rgba(20, 40, 32, .04), 0 6px 18px -10px rgba(20, 40, 32, .12), 0 0 0 1px var(--hair);
  --sh-2: inset 0 1px 0 rgba(255, 255, 255, .85), 0 16px 36px -18px rgba(18, 46, 35, .34), 0 2px 6px rgba(20, 40, 32, .06), 0 0 0 1px var(--hair-strong);
}
body { background: var(--canvas); -webkit-font-smoothing: antialiased; }

/* ── 위 막대 ── */
body > header { position: sticky; top: 0; z-index: 40; height: 60px; min-height: 60px; background: var(--frame); box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 6px 16px -12px rgba(0, 0, 0, .28); }
body > header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent 4%, rgba(97, 148, 130, .65) 32%, rgba(163, 28, 27, .5) 68%, transparent 96%); pointer-events: none; }
.workspace-tag b { letter-spacing: -.01em; }
.cmdk-trigger { display: inline-flex; align-items: center; gap: 9px; height: 36px; min-width: 260px; margin-left: auto; padding: 0 6px 0 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); background: rgba(255, 255, 255, .05); color: #a9b3ae; font: inherit; font-size: 13px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.cmdk-trigger:hover { background: rgba(255, 255, 255, .09); border-color: rgba(122, 178, 156, .55); color: #fff; }
.cmdk-trigger .xi { width: 16px; height: 16px; flex: 0 0 16px; }
.cmdk-trigger kbd { margin-left: auto; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .09); color: #d0d8d4; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .03em; }
header:has(#identity:empty) .cmdk-trigger { display: none; }
body > header #identity { margin-left: 0; gap: 12px; }
#identity .avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, #7fb3a0, var(--jade-deep)); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
#identity .quiet { padding: 6px 10px; border-radius: 8px; color: #c9d1cd; transition: background-color .2s, color .2s; }
#identity .quiet:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }

/* ── 왼쪽 메뉴: 아이콘 + 미끄러지는 선택 막대 ── */
.app { grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100vh - 60px); }
aside { position: relative; padding: 20px 12px; background: var(--frame-2); border-right: 1px solid rgba(255, 255, 255, .04); }
aside .nav-ink { position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; border-radius: var(--r-md); background: linear-gradient(90deg, rgba(97, 148, 130, .3), rgba(97, 148, 130, .09)); box-shadow: inset 0 0 0 1px rgba(127, 179, 160, .26); opacity: 0; pointer-events: none; transition: transform .5s var(--ease-spring), width .35s var(--ease-out), height .35s var(--ease-out), opacity .2s; }
aside .nav-ink::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #8cc4ae; }
aside .nav-ink.on { opacity: 1; }
aside.ink-still .nav-ink { transition: none; }
aside button { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; margin: 0 0 2px; padding: 9px 12px; border: 0; border-radius: var(--r-md); background: transparent; color: #b4bdb8; font-size: 14px; font-weight: 550; text-align: left; transition: color .2s, background-color .2s; }
aside button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
aside button[aria-current=page], aside button[aria-current=page]:hover { background: transparent; color: #fff; font-weight: 700; border: 0; box-shadow: none; }
aside .nav-tx { flex: 1 1 auto; min-width: 0; }
.nav-ic { position: relative; flex: 0 0 19px; width: 19px; height: 19px; }
.nav-ic .xi { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s, transform .4s var(--ease-spring); }
.nav-ic .xi:last-child { opacity: 0; color: #8cc4ae; }
aside button[aria-current=page] .nav-ic .xi:first-child { opacity: 0; }
aside button[aria-current=page] .nav-ic .xi:last-child { opacity: 1; transform: scale(1.08); }
aside button:hover .nav-ic .xi { transform: translateY(-1px); }
aside button[data-key]::after { content: attr(data-key); position: absolute; top: 50%; right: 10px; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); color: #8a958f; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; opacity: 0; transform: translate(-4px, -50%); transition: opacity .2s, transform .25s var(--ease-out); pointer-events: none; }
aside button[data-key]:has(.nav-count)::after { right: 44px; }
aside button[data-key]:hover::after, aside button[data-key]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.nav-label { margin: 0 12px 8px; color: #7b8680; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; }
.company-nav-secondary { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.company-nav-secondary button { font-size: 13.5px; }
.nav-count { flex: 0 0 auto; margin-left: 0; animation: fx-pop .55s var(--ease-spring) backwards .25s; box-shadow: 0 0 0 2px var(--frame-2); }
aside button[aria-current=page] .nav-count { background: var(--crimson); }
.console-link { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 22px 0 0; padding: 14px 12px 0; border-top: 1px solid rgba(255, 255, 255, .06); color: #c9d1cd; }
.console-link .xi { width: 18px; height: 18px; grid-row: span 2; }
.console-link small { color: #87928c; }

/* ── 본문 바탕과 단추 ── */
.content { padding: 30px clamp(20px, 3vw, 48px) 64px; background: #fdfdfd; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--r-md); transition: transform .18s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s; }
.primary { background: linear-gradient(180deg, #b52e2d, var(--crimson)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px rgba(163, 28, 27, .75); }
.primary:hover { background: linear-gradient(180deg, #a72827, var(--crimson-hover)); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 22px -10px rgba(163, 28, 27, .8); }
.secondary { background: #fff; border-color: var(--hair-strong); box-shadow: 0 1px 2px rgba(20, 40, 32, .06); }
.secondary:hover { background: #fff; border-color: rgba(40, 86, 68, .45); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(18, 46, 35, .4); }
.primary:active, .secondary:active { transform: scale(.97); }
.primary .xi, .secondary .xi { width: 16px; height: 16px; flex: 0 0 16px; }
.notice { border-radius: 12px; background: #1a1f1c; border-color: rgba(127, 179, 160, .35); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); animation: fx-toast .45s var(--ease-spring) backwards; }
.loading { animation: fx-breathe 1.4s ease-in-out infinite; }

/* ── 화면이 바뀔 때 · 공통 움직임 ── */
.fx-enter { animation: fx-rise .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.fx-spot { isolation: isolate; }
.fx-spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(97, 148, 130, .14), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(97, 148, 130, .6), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.fx-spot:hover::before, .fx-spot:hover::after { opacity: 1; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fx-grow { from { transform: scaleX(0); } }
@keyframes fx-pop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-blink { 50% { opacity: .25; } }
@keyframes fx-breathe { 50% { opacity: .5; } }
@keyframes fx-ping { 0% { box-shadow: 0 0 0 0 rgba(163, 28, 27, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(163, 28, 27, 0); } }
@keyframes fx-toast { from { opacity: 0; transform: translate(-50%, 18px) scale(.96); } }
@keyframes fx-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-10px) scale(.975); } }

/* ── 찾기 창(⌘K) ── */
.cmdk { width: min(660px, calc(100vw - 32px)); max-width: none; max-height: min(560px, calc(100dvh - 120px)); margin: 11vh auto auto; padding: 0; border: 0; border-radius: 18px; background: rgba(252, 253, 252, .9); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 40px 90px -30px rgba(8, 24, 18, .6), 0 0 0 1px rgba(20, 40, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .85); color: var(--ink); overflow: hidden; }
.cmdk[open] { display: flex; flex-direction: column; animation: cmdk-in .28s var(--ease-out); }
.cmdk::backdrop { background: rgba(10, 16, 13, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cmdk[open]::backdrop { animation: fx-fade .2s ease-out; }
.cmdk-search { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.cmdk-search > .xi { width: 20px; height: 20px; flex: 0 0 20px; color: var(--muted-2); }
.cmdk-search input { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; box-shadow: none; }
.cmdk-search input::placeholder { color: #808c86; }
.cmdk kbd { display: inline-grid; place-items: center; min-width: 22px; padding: 2px 6px; border-radius: 6px; background: #eef1ef; box-shadow: inset 0 -1px 0 rgba(20, 40, 32, .12); color: #4f5c56; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.3; }
.cmdk-list { flex: 1 1 auto; overflow: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.cmdk-group { margin: 12px 10px 5px; color: var(--muted-2); font-size: 11.5px; font-weight: 700; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; cursor: pointer; transition: background-color .12s; }
.cmdk.is-fresh .cmdk-item, .cmdk.is-fresh .cmdk-group { animation: fx-rise .35s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 22ms); }
.cmdk-item.is-active { background: linear-gradient(90deg, rgba(97, 148, 130, .17), rgba(97, 148, 130, .06)); box-shadow: inset 0 0 0 1px rgba(97, 148, 130, .24); }
.cmdk-ic { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #eef2ef; color: #4c5a53; transition: background-color .15s, color .15s; }
.cmdk-ic .xi { width: 17px; height: 17px; }
.cmdk-item[data-track] .cmdk-ic { background: var(--track-soft); color: var(--track-ink); }
.cmdk-item.is-active .cmdk-ic { background: var(--jade-deep); color: #fff; }
.cmdk-tx { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.cmdk-tx b, .cmdk-tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-tx b { font-size: 14px; font-weight: 650; }
.cmdk-tx small { color: var(--muted-2); font-size: 12px; }
.cmdk-enter { color: var(--muted-2); font-size: 15px; opacity: 0; transition: opacity .12s; }
.cmdk-item.is-active .cmdk-enter { opacity: 1; }
.cmdk-status { display: flex; align-items: center; gap: 8px; margin: 10px 12px 4px; color: var(--muted-2); font-size: 13px; }
.cmdk-status.is-error { color: var(--crimson); }
.cmdk-spin { width: 14px; height: 14px; border: 2px solid #cfd8d3; border-top-color: var(--jade-deep); border-radius: 50%; animation: fx-spin .7s linear infinite; }
.cmdk-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--hair); background: rgba(240, 243, 241, .75); color: var(--muted-2); font-size: 11.5px; }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (prefers-reduced-transparency: reduce) { .cmdk { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

@media (max-width: 900px) {
  .app { min-height: calc(100vh - 60px); }
  aside { padding: 10px 14px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  aside button { display: inline-flex; width: auto; min-height: 38px; margin: 0; padding: 8px 11px; gap: 7px; }
  aside .nav-tx { flex: 0 0 auto; }
  aside button[data-key]::after { display: none; }
  .company-nav-secondary { margin: 0; padding: 0; border: 0; }
  .console-link { display: inline-flex; gap: 6px; margin: 0; padding: 6px 4px; border: 0; }
  .console-link .xi { width: 15px; height: 15px; }
  .cmdk-trigger { min-width: 0; }
  .cmdk-trigger span, .cmdk-trigger kbd { display: none; }
}
@media (max-width: 650px) {
  /* 좁은 화면에서는 위 막대를 붙여 두지 않는다. static 으로 두면 아래 장식선(::after, absolute)이 기준을 잃고
     화면 한 장 아래에 그려져 카드 사이 틈으로 비친다(12-02 유입 화면 검수에서 발견) — relative 로 기준만 남긴다. */
  body > header { position: relative; z-index: auto; height: auto; min-height: 60px; }
  .cmdk { margin-top: 8vh; }
  .cmdk-foot { display: none; }
}
@media (forced-colors: active) {
  aside .nav-ink { border: 2px solid Highlight; background: none; }
  .fx-spot::before, .fx-spot::after { display: none; }
}

/* 11-25 대표 "애매한 회색 말고 투명한 하얀 느낌" — 흰 바탕 위에서 회색·연두 상자를 흰 카드로 */
.workflow-pipeline { border-color: transparent; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.list-card, .detail { border-color: transparent; border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.list-header { background: #fff; border-bottom: 1px solid var(--hair); }
.track-tabs button[data-track=""] { --track-color: #1f2a25; }
.track-tabs button { border-color: var(--hair-strong); border-radius: 10px; }
.pipeline-outcome { border-color: var(--hair-strong); border-radius: 8px; }
.pipeline-outcome:hover { background: #f4f6f5; border-color: #8a9790; }
.pipeline-outcome[aria-pressed=true] { background: #1f2a25; border-color: #1f2a25; color: #fff; }
.pipeline-outcome[aria-pressed=true] :is(strong, span, small) { color: inherit; }
