/* 킹받는 회사 — 화면 껍데기
   05-가짜회사 T1-1 · T6-1 (2026-09-01 재설계).

   base.css 위에 얹기만 한다. base.css 의 토큰(--c-*)을 덮어쓰지 않는다 —
   덮어쓰면 같은 저장소의 탭플스테이 화면들이 같이 깨진다.
   여기서 만드는 토큰은 전부 --o- 로 시작한다.

   T6 에서 전제가 바뀌었다. 여섯 화면이 같은 껍데기를 쓰는 게 아니라
   화면마다 다른 서비스처럼 보여야 한다. 공통으로 남는 것은 둘뿐이다.
     1) 근속일이 뜨는 얇은 상단 줄  2) 하단 탭 여섯 칸
   나머지(색·머리말·본문 짜임)는 data-screen 으로 갈린다. */

/* ── 토큰 (라이트가 기본) ───────────────────────── */
.office {
  --o-bg:        #eef1f6;
  --o-panel:     #ffffff;
  --o-panel-2:   #f5f7fb;
  --o-panel-3:   #eaeef5;
  --o-line:      #dde3ec;
  --o-line-soft: #eef1f6;
  --o-ink:       #16202e;
  --o-ink-dim:   #5d6b7f;
  --o-ink-faint: #93a0b3;

  /* 화면마다 갈린다. 아래 [data-screen] 에서 덮어쓴다 */
  --o-brand:      #24365c;
  --o-brand-ink:  #ffffff;
  --o-brand-soft: #e7ecf7;
  --o-brand-line: #c6d2e8;
  /* 글자·아이콘에 브랜드색을 쓸 때만 이걸 쓴다(--o-brand 자체가 아니라).
     라이트에서는 --o-brand 와 같은 값이지만, 다크에서는 화면마다 따로
     밝은 값을 준다 — --o-brand 다크값은 배경(도장·시계)용으로 어둡게
     잡혀 있어서 글자로 쓰면 --o-brand-soft 위에서 거의 안 보인다
     (2026-09-01, 이직 화면 필터칩·연봉태그·탭이 이래서 안 읽혔다) */
  --o-brand-fg:   var(--o-brand);

  --o-stamp: #c0392b;
  --o-ok:    #167a52;
  --o-warn:  #a86a12;

  --o-scrim:     rgba(14, 20, 30, 0.52);
  --o-onbrand-1: rgba(255, 255, 255, 0.16);
  --o-onbrand-2: rgba(255, 255, 255, 0.42);

  --o-sh-1: 0 1px 2px rgba(22, 32, 46, 0.06), 0 1px 1px rgba(22, 32, 46, 0.04);
  --o-sh-2: 0 2px 6px rgba(22, 32, 46, 0.08), 0 8px 24px rgba(22, 32, 46, 0.08);
  --o-sh-3: 0 18px 48px rgba(22, 32, 46, 0.22);

  /* 글자 크기 — base.css 의 --fs-* 를 덮지 않고 따로 둔다 */
  --o-t1: 26px;
  --o-t2: 19px;
  --o-t3: 16px;
  --o-tb: 15px;
  --o-ts: 13px;
  --o-tx: 11px;

  --o-tab-h: 62px;
  --o-max: 680px;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--o-bg);
  color: var(--o-ink);
  font-size: var(--o-tb);
}

/* `hidden` 속성 안전망. 이 파일의 컴포넌트 클래스는 대부분 자기 display 를
   따로 정해 두는데(`.o-card`·`.o-btn`·`.sheet`·`.sheet-wait`…), 그 값이
   기본 `[hidden]{display:none}` 보다 우선해버려서 JS 로 `el.hidden = true`
   를 줘도 화면에 그대로 남는다. 실제로 `.sheet`·`.o-card`·`.sheet-wait`·
   `.o-tag`·`.o-btn` 다섯 군데가 이 이유로 안 숨어서 이직 화면이 먹통처럼
   보였다(2026-09-01). 클래스마다 `[hidden]` 을 따로 적어주는 대신
   여기서 한 번에 막는다 — 새 컴포넌트가 늘어도 다시 안 걸린다. */
.office [hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .office {
    --o-bg:        #0e1319;
    --o-panel:     #171d26;
    --o-panel-2:   #1e2530;
    --o-panel-3:   #252d3a;
    --o-line:      #2b3441;
    --o-line-soft: #212936;
    --o-ink:       #e6ecf4;
    --o-ink-dim:   #97a4b6;
    --o-ink-faint: #6b7787;
    --o-brand:      #16223a;
    --o-brand-ink:  #dbe4f5;
    --o-brand-soft: #1b2536;
    --o-brand-line: #2c384f;
    --o-brand-fg:   #9db4d6;
    --o-stamp: #e2685a;
    --o-ok:    #45b98a;
    --o-warn:  #d3a04a;
    --o-scrim: rgba(0, 0, 0, 0.66);
    --o-onbrand-1: rgba(255, 255, 255, 0.12);
    --o-onbrand-2: rgba(255, 255, 255, 0.34);
    --o-sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --o-sh-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
    --o-sh-3: 0 18px 48px rgba(0, 0, 0, 0.62);
  }
}

:root[data-theme="dark"] .office {
  --o-bg:        #0e1319;
  --o-panel:     #171d26;
  --o-panel-2:   #1e2530;
  --o-panel-3:   #252d3a;
  --o-line:      #2b3441;
  --o-line-soft: #212936;
  --o-ink:       #e6ecf4;
  --o-ink-dim:   #97a4b6;
  --o-ink-faint: #6b7787;
  --o-brand:      #16223a;
  --o-brand-ink:  #dbe4f5;
  --o-brand-soft: #1b2536;
  --o-brand-line: #2c384f;
  --o-brand-fg:   #9db4d6;
  --o-stamp: #e2685a;
  --o-ok:    #45b98a;
  --o-warn:  #d3a04a;
  --o-scrim: rgba(0, 0, 0, 0.66);
  --o-onbrand-1: rgba(255, 255, 255, 0.12);
  --o-onbrand-2: rgba(255, 255, 255, 0.34);
  --o-sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --o-sh-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
  --o-sh-3: 0 18px 48px rgba(0, 0, 0, 0.62);
}

/* ── 화면별 브랜드 색 ─────────────────────────────
   같은 회사인데 도구가 다르다. 실제 회사에서도 그룹웨어·인사·회의·채용이
   다 다른 색인 것과 같다. 이 한 줄이 "다른 서비스"라는 인상을 만든다 */
.office[data-screen="yeonbong"] { --o-brand: #7c3f57; --o-brand-soft: #f7ecf0; --o-brand-line: #e6ccd6; }
.office[data-screen="hoeui"]    { --o-brand: #1b222c; --o-brand-soft: #e9ecf0; --o-brand-line: #ccd3dc; }
.office[data-screen="mesinjeo"] { --o-brand: #8a3a1f; --o-brand-soft: #f8ece6; --o-brand-line: #edd0c0; }
.office[data-screen="ijik"]     { --o-brand: #0f7a56; --o-brand-soft: #e6f5ef; --o-brand-line: #bfe3d5; }
.office[data-screen="hoesik"]   { --o-brand: #35558a; --o-brand-soft: #eaf0fa; --o-brand-line: #c9d8ef; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .office[data-screen="yeonbong"] { --o-brand: #3a2029; --o-brand-soft: #241a1f; --o-brand-line: #4a2f3a; --o-brand-fg: #e6a0bd; }
  :root:not([data-theme="light"]) .office[data-screen="hoeui"]    { --o-brand: #12161c; --o-brand-soft: #1a1f27; --o-brand-line: #2c343f; --o-brand-fg: #b7c4d6; }
  :root:not([data-theme="light"]) .office[data-screen="mesinjeo"] { --o-brand: #3a1f12; --o-brand-soft: #241a14; --o-brand-line: #4a3020; --o-brand-fg: #e8a074; }
  :root:not([data-theme="light"]) .office[data-screen="ijik"]     { --o-brand: #0c3a2c; --o-brand-soft: #14251f; --o-brand-line: #235143; --o-brand-fg: #46d18a; }
  :root:not([data-theme="light"]) .office[data-screen="hoesik"]   { --o-brand: #1a2740; --o-brand-soft: #1a2231; --o-brand-line: #2d3d5b; --o-brand-fg: #7fa8e0; }
}

:root[data-theme="dark"] .office[data-screen="yeonbong"] { --o-brand: #3a2029; --o-brand-soft: #241a1f; --o-brand-line: #4a2f3a; --o-brand-fg: #e6a0bd; }
:root[data-theme="dark"] .office[data-screen="hoeui"]    { --o-brand: #12161c; --o-brand-soft: #1a1f27; --o-brand-line: #2c343f; --o-brand-fg: #b7c4d6; }
:root[data-theme="dark"] .office[data-screen="mesinjeo"] { --o-brand: #3a1f12; --o-brand-soft: #241a14; --o-brand-line: #4a3020; --o-brand-fg: #e8a074; }
:root[data-theme="dark"] .office[data-screen="ijik"]     { --o-brand: #0c3a2c; --o-brand-soft: #14251f; --o-brand-line: #235143; --o-brand-fg: #46d18a; }
:root[data-theme="dark"] .office[data-screen="hoesik"]   { --o-brand: #1a2740; --o-brand-soft: #1a2231; --o-brand-line: #2d3d5b; --o-brand-fg: #7fa8e0; }

/* ── 상단 줄 — 여섯 화면 공통 ────────────────────
   화면마다 이름과 색은 다르지만, 근속일은 늘 같은 자리에 있다.
   이 숫자가 이 묶음의 전부다 */
.o-top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  padding-top: max(9px, env(safe-area-inset-top));
  background: var(--o-brand);
  color: var(--o-brand-ink);
}

/* 00-공통 T5-1 — 레이블 홈으로 나가는 길. 상단 줄 맨 왼쪽 */
.o-home {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: var(--o-r-full, 999px);
  background: var(--o-onbrand-1);
  color: var(--o-brand-ink);
  font-size: var(--o-tx);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.o-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  flex: 0 1 auto;
}
.o-brand svg { width: 20px; height: 20px; flex: 0 0 20px; }
.o-brand-name {
  font-size: var(--o-ts);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-brand-sub {
  font-size: var(--o-tx);
  color: var(--o-onbrand-2);
  white-space: nowrap;
}

.o-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.o-user {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--o-onbrand-1);
  color: inherit;
  font-size: var(--o-tx);
  transition: border-color 160ms;
}
.o-user:hover { border-color: var(--o-onbrand-2); }
.o-avatar {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--o-onbrand-1);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.o-user > span:not(.o-avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.o-gunsok {
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--o-onbrand-1);
  font-size: var(--o-tx);
  color: var(--o-onbrand-2);
  white-space: nowrap;
}
.o-gunsok b { font-size: var(--o-t3); font-weight: 800; color: var(--o-brand-ink); }

/* ── 본문 ────────────────────────────────────── */
.o-app {
  flex: 1;
  min-height: 0;
  padding: 16px 14px calc(var(--o-tab-h) + env(safe-area-inset-bottom) + 28px);
}
.o-wrap {
  width: 100%;
  max-width: var(--o-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 화면마다 다른 머리말 */
.o-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px 2px;
}
.o-hero h1 {
  font-size: var(--o-t1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.o-hero p { font-size: var(--o-ts); color: var(--o-ink-dim); }

.o-card {
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: 14px;
  box-shadow: var(--o-sh-1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.o-card.is-flat { box-shadow: none; background: var(--o-panel-2); }

.o-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.o-card-title { font-size: var(--o-t2); font-weight: 800; letter-spacing: -0.02em; }
.o-card-sub { font-size: var(--o-ts); color: var(--o-ink-dim); margin-left: auto; }

/* ── 서식 ────────────────────────────────────
   base.css 가 body 에 user-select:none 을 걸어 뒀다. 입력 칸만 되돌린다 */
.o-field { display: flex; flex-direction: column; gap: 5px; }
.o-label {
  font-size: var(--o-tx);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--o-ink-dim);
}

.o-input, .o-select, .o-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: 10px;
  color: var(--o-ink);
  font: inherit;
  -webkit-user-select: text;
  user-select: text;
  transition: border-color 160ms, box-shadow 160ms;
}
.o-input:focus, .o-select:focus, .o-textarea:focus {
  outline: none;
  border-color: var(--o-brand);
  box-shadow: 0 0 0 3px var(--o-brand-soft);
}
.o-textarea { resize: none; min-height: 82px; line-height: 1.55; }
.o-input::placeholder, .o-textarea::placeholder { color: var(--o-ink-faint); }

.o-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.o-static {
  text-align: left;
  padding: 10px 12px;
  background: var(--o-panel-2);
  border: 1px solid var(--o-line-soft);
  border-radius: 10px;
  color: var(--o-ink);
  width: 100%;
}
.o-static.is-edit { border-style: dashed; color: var(--o-ink-dim); }
.o-count { font-size: var(--o-tx); color: var(--o-ink-faint); }
.o-count.is-right { align-self: flex-end; }

/* ── 버튼 ───────────────────────────────────── */
.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border: 1px solid var(--o-line);
  border-radius: 10px;
  background: var(--o-panel);
  color: var(--o-ink);
  font-weight: 700;
  font-size: var(--o-tb);
  box-shadow: var(--o-sh-1);
  transition: transform 90ms, background 160ms, opacity 160ms, border-color 160ms;
}
.o-btn:active { transform: translateY(1px); }
.o-btn:disabled { opacity: 0.42; cursor: default; box-shadow: none; }
.o-btn:disabled:active { transform: none; }
.o-btn svg { width: 16px; height: 16px; }

.o-btn.is-primary {
  background: var(--o-brand);
  border-color: var(--o-brand);
  color: var(--o-brand-ink);
}
.o-btn.is-block { width: 100%; }

.o-btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.o-btn-row.is-center { justify-content: center; }

.o-chip {
  padding: 6px 12px;
  border: 1px solid var(--o-line);
  border-radius: 999px;
  background: var(--o-panel);
  color: var(--o-ink-dim);
  font-size: var(--o-ts);
  transition: border-color 160ms, color 160ms, background 160ms;
  /* 09-순위판 T4-1 — <a class="o-chip"> 가 생겼다. 버튼에는 원래 밑줄이 없어 회귀 없음 */
  text-decoration: none;
}
.o-chip:hover { border-color: var(--o-brand-line); color: var(--o-ink); }
.o-chip.is-on {
  border-color: var(--o-brand);
  background: var(--o-brand-soft);
  color: var(--o-brand-fg);
  font-weight: 700;
}

.o-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--o-panel-3);
  color: var(--o-ink-dim);
  font-size: var(--o-tx);
  font-weight: 700;
  white-space: nowrap;
}
.o-tag.is-brand { background: var(--o-brand-soft); color: var(--o-brand-fg); }
.o-tag.is-bad { background: rgba(192, 57, 43, 0.12); color: var(--o-stamp); }
.o-tag.is-good { background: rgba(22, 122, 82, 0.12); color: var(--o-ok); }
.o-tag.is-warn { background: rgba(168, 106, 18, 0.14); color: var(--o-warn); }

/* ── 도장 ───────────────────────────────────── */
.o-stamp-mark {
  flex: 0 0 auto;
  width: 88px; height: 88px;
  display: grid;
  place-items: center;
  border: 3.5px solid var(--o-stamp);
  border-radius: 50%;
  color: var(--o-stamp);
  font-size: var(--o-t2);
  font-weight: 800;
  letter-spacing: -0.04em;
  transform: rotate(-11deg);
  animation: o-stamp-in 300ms cubic-bezier(0.2, 1.7, 0.4, 1) both;
}
.o-stamp-mark.is-ok { border-color: var(--o-ok); color: var(--o-ok); }
@keyframes o-stamp-in {
  from { transform: rotate(-11deg) scale(2.2); opacity: 0; }
  to   { transform: rotate(-11deg) scale(1);   opacity: 1; }
}

.o-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--o-line);
  border-radius: 14px;
  background: var(--o-panel-2);
}
.o-result-text { min-width: 0; }
.o-result-why { font-size: var(--o-t3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.o-result-sub { font-size: var(--o-ts); color: var(--o-ink-dim); margin-top: 4px; }

/* ── 목록 ───────────────────────────────────── */
.o-list { display: flex; flex-direction: column; gap: 8px; }

.o-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--o-line);
  border-radius: 12px;
  background: var(--o-panel);
  box-shadow: var(--o-sh-1);
  text-align: left;
  width: 100%;
  transition: transform 90ms, border-color 160ms, box-shadow 160ms;
}
.o-item:hover { border-color: var(--o-brand-line); box-shadow: var(--o-sh-2); }
.o-item:active { transform: translateY(1px); }
.o-item-main { min-width: 0; flex: 1; }
.o-item-title { font-weight: 700; letter-spacing: -0.01em; }
.o-item-sub { font-size: var(--o-ts); color: var(--o-ink-dim); margin-top: 2px; }
.o-item.is-new { animation: o-item-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes o-item-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

.o-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--o-ink-faint);
  font-size: var(--o-ts);
  border: 1px dashed var(--o-line);
  border-radius: 12px;
}

.o-note { font-size: var(--o-ts); color: var(--o-ink-dim); line-height: 1.65; }
.o-note-strong { color: var(--o-ink); font-weight: 700; }

/* ── 푸터 고지 ──────────────────────────────── */
.o-foot {
  padding-top: 8px;
  font-size: var(--o-tx);
  color: var(--o-ink-faint);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.o-foot a { color: inherit; }
/* 09-순위판 T4-1 — 푸터에 <a class="o-chip"> 이 생겼다. 위 규칙이 .o-chip 색을 이겨
   링크만 옆 버튼과 색이 달라 보이던 것을 맞춘다 */
.o-foot a.o-chip { color: var(--o-ink-dim); }

/* ── 하단 탭 — 좌측 사이드바는 없앴다 (T6-1) ──── */
.o-tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--o-panel);
  border-top: 1px solid var(--o-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.o-tabs-inner {
  max-width: var(--o-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.o-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--o-tab-h);
  color: var(--o-ink-faint);
  text-decoration: none;
  font-size: var(--o-tx);
  font-weight: 600;
  line-height: 1;
  transition: color 160ms;
}
.o-tab svg { width: 21px; height: 21px; }
.o-tab:hover { color: var(--o-ink-dim); }
.o-tab.is-here { color: var(--o-brand-fg); font-weight: 800; }
.o-tab.is-here::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: var(--o-brand-fg);
}

/* ── 오버레이 ───────────────────────────────── */
.o-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  background: var(--o-scrim);
  animation: o-fade 180ms ease-out;
}
.o-modal[hidden] { display: none; }
@keyframes o-fade { from { opacity: 0; } to { opacity: 1; } }

.o-modal-box {
  width: min(460px, 100%);
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--o-sh-3);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: o-sheet-up 240ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes o-sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }

.o-grip {
  width: 38px; height: 4px;
  border-radius: 999px;
  background: var(--o-line);
  margin: -4px auto 2px;
}

@media (min-width: 560px) {
  .o-modal { place-items: center; }
  .o-modal-box { border-radius: 18px; padding-bottom: 18px; }
  .o-grip { display: none; }
}

/* ── 토스트 ─────────────────────────────────── */
.o-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--o-tab-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 30;
  padding: 10px 18px;
  background: var(--o-ink);
  color: var(--o-panel);
  border-radius: 999px;
  font-size: var(--o-ts);
  font-weight: 600;
  box-shadow: var(--o-sh-2);
  animation: o-toast-in 200ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.o-toast[hidden] { display: none; }
@keyframes o-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ══════════════════════════════════════════════
   화면별 조각. 여기서부터는 한 화면만 쓴다
   ══════════════════════════════════════════════ */

/* ── 사직서 — 그룹웨어 결재 ─────────────────── */
/* 종이는 화면이 어두워도 늘 흰 종이다. 수료증(card.js)과 같은 원칙 */
.doc {
  background: #ffffff;
  color: #16202e;
  border: 1px solid var(--o-line);
  border-radius: 12px;
  box-shadow: var(--o-sh-2);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}
.doc-title {
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  padding-bottom: 16px;
  border-bottom: 2px solid #16202e;
}
.doc-meta {
  display: grid;
  grid-template-columns: 78px 1fr;
  border-bottom: 1px solid #e3e8f0;
}
.doc-meta > dt {
  padding: 10px 8px;
  background: #f4f6fa;
  font-size: var(--o-ts);
  font-weight: 700;
  color: #5d6b7f;
  border-right: 1px solid #e3e8f0;
}
.doc-meta > dd { padding: 10px 12px; margin: 0; font-size: var(--o-tb); }
.doc-body {
  padding: 18px 4px 8px;
  line-height: 1.9;
  font-size: var(--o-tb);
  min-height: 92px;
  white-space: pre-wrap;
  word-break: break-word;
}
.doc-body.is-empty { color: #93a0b3; }
.doc-sign { text-align: right; font-size: var(--o-ts); color: #5d6b7f; padding-top: 8px; }
.doc-sign b { color: #16202e; font-size: var(--o-tb); }

.doc-stamp {
  position: absolute;
  right: 18px; bottom: 44px;
  width: 94px; height: 94px;
  display: grid;
  place-items: center;
  border: 4px solid var(--o-stamp);
  border-radius: 50%;
  color: var(--o-stamp);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  transform: rotate(-14deg);
  opacity: 0.92;
  animation: o-stamp-in 300ms cubic-bezier(0.2, 1.7, 0.4, 1) both;
}
.doc-stamp.is-ok { border-color: var(--o-ok); color: var(--o-ok); }
.doc-stamp[hidden] { display: none; }

/* 결재선 */
.appr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.appr-slot {
  border: 1px solid var(--o-line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  background: var(--o-panel-2);
  transition: border-color 200ms, background 200ms;
}
.appr-who { font-size: var(--o-tx); color: var(--o-ink-faint); }
.appr-state { font-size: var(--o-ts); font-weight: 800; margin-top: 3px; color: var(--o-ink-dim); }
.appr-slot.is-doing { border-color: var(--o-brand); background: var(--o-brand-soft); }
.appr-slot.is-doing .appr-state { color: var(--o-brand-fg); }
.appr-slot.is-done .appr-state { color: var(--o-ok); }
.appr-slot.is-back { border-color: var(--o-stamp); }
.appr-slot.is-back .appr-state { color: var(--o-stamp); }
.appr-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: 6px auto 0;
  opacity: 0.3;
}
.appr-slot.is-doing .appr-dot { animation: o-pulse 900ms ease-in-out infinite; }
@keyframes o-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ── 연봉협상 ───────────────────────────────── */
.neg-stage {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 2px 0;
}
.face { width: 132px; height: 132px; flex: 0 0 132px; }
.face [data-part] { opacity: 0; transition: opacity 260ms ease-out; }
.face[data-mood="calm"]  [data-part="calm"],
.face[data-mood="stiff"] [data-part="stiff"],
.face[data-mood="smirk"] [data-part="smirk"],
.face[data-mood="blank"] [data-part="blank"] { opacity: 1; }

.bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: 14px;
  box-shadow: var(--o-sh-1);
  padding: 12px 14px;
  font-size: var(--o-tb);
  line-height: 1.55;
  margin-bottom: 14px;
}
.bubble::after {
  content: "";
  position: absolute;
  left: -7px; bottom: 16px;
  width: 12px; height: 12px;
  background: var(--o-panel);
  border-left: 1px solid var(--o-line);
  border-bottom: 1px solid var(--o-line);
  transform: rotate(45deg);
}
.bubble-who { font-size: var(--o-tx); color: var(--o-ink-faint); font-weight: 700; margin-bottom: 3px; }
/* 인사팀장의 둘째 줄 — 「3,200으로 하시죠」 같은 덧붙임 (T7-2) */
.bubble-sub {
  display: block;
  margin-top: 4px;
  font-size: var(--o-tx);
  color: var(--o-ink-dim);
}
.bubble-who .o-tag { margin-left: 6px; vertical-align: middle; }

.money {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.money-num { font-size: 30px; }
.money-unit { font-size: var(--o-ts); color: var(--o-ink-dim); font-weight: 700; }

.neg-log { display: flex; flex-direction: column; gap: 6px; }
.neg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--o-panel-2);
  font-size: var(--o-ts);
  animation: o-item-in 220ms ease-out both;
}
.neg-row b { font-weight: 800; }
.neg-row .o-tag { margin-left: auto; }

/* ── 회의 — 화상회의 도구 ───────────────────── */
.office[data-screen="hoeui"] .o-app { background: #10141a; }
.office[data-screen="hoeui"] .o-hero h1 { color: #e9eef6; }
.office[data-screen="hoeui"] .o-hero p,
.office[data-screen="hoeui"] .o-foot { color: #7e8b9e; }

.meet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 520px) { .meet-grid { grid-template-columns: repeat(3, 1fr); } }

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #1b212b;
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 220ms;
}
.tile.is-speaking { border-color: #46d18a; }
.tile.is-me { background: #232c38; }
.tile-face {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2c3542;
  color: #cfd8e4;
  font-weight: 800;
  font-size: var(--o-t3);
}
.tile-name {
  position: absolute;
  left: 7px; bottom: 6px;
  font-size: var(--o-tx);
  color: #d6dee9;
  background: rgba(0, 0, 0, 0.42);
  padding: 2px 7px;
  border-radius: 6px;
  max-width: calc(100% - 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meet-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #171d26;
  border: 1px solid #262f3c;
}
.meet-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a3340;
  color: #cfd8e4;
  transition: transform 90ms, background 160ms;
}
.meet-btn:active { transform: translateY(1px); }
.meet-btn svg { width: 19px; height: 19px; }
.meet-btn.is-off { background: #3a2a2e; color: #e08b7f; }
.meet-btn.is-leave {
  width: auto;
  border-radius: 999px;
  padding: 0 18px;
  height: 44px;
  background: var(--o-stamp);
  color: #fff;
  font-weight: 800;
  font-size: var(--o-ts);
}
.meet-btn.is-leave:disabled { background: #2a3340; color: #6b7787; }

.cc {
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #171d26;
  border: 1px solid #262f3c;
  color: #dbe3ee;
  font-size: var(--o-tb);
  line-height: 1.5;
}
.cc-who { font-size: var(--o-tx); color: #7e8b9e; font-weight: 700; margin-bottom: 3px; }
.meet-meta { display: flex; gap: 8px; align-items: center; color: #8593a6; font-size: var(--o-ts); }
.meet-meta .rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e05a5a;
  animation: o-pulse 1.6s ease-in-out infinite;
}

/* ── 야근 — 업무관리 ────────────────────────── */
.clock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--o-brand);
  color: #fff;
  box-shadow: var(--o-sh-2);
}
.clock-num { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.clock-sub { font-size: var(--o-tx); color: rgba(255, 255, 255, 0.66); }
.clock-right { margin-left: auto; text-align: right; }

.bar {
  height: 7px;
  border-radius: 999px;
  background: var(--o-panel-3);
  overflow: hidden;
}
/* 채운 길이는 --p(0~1) 로 넘긴다. 인라인 style= 대신 커스텀 속성을 쓰는
   저장소 관례와 같다 (03-108배 의 진행바) */
.bar > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--o-brand-fg);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.task-check {
  width: 21px; height: 21px;
  flex: 0 0 21px;
  border: 2px solid var(--o-line);
  border-radius: 6px;
  transition: border-color 160ms;
}
.o-item:hover .task-check { border-color: var(--o-brand); }

/* ── 이직 — 채용사이트 ──────────────────────── */
.job-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  box-shadow: var(--o-sh-1);
  color: var(--o-ink-faint);
  font-size: var(--o-ts);
}
.job-search svg { width: 16px; height: 16px; flex: 0 0 16px; }

.job {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--o-line);
  border-radius: 14px;
  background: var(--o-panel);
  box-shadow: var(--o-sh-1);
  width: 100%;
  text-align: left;
  align-items: center;
  transition: transform 90ms, border-color 160ms, box-shadow 160ms;
}
.job:hover { border-color: var(--o-brand-line); box-shadow: var(--o-sh-2); }
.job:active { transform: translateY(1px); }
.job:disabled { opacity: 0.5; }
.job-logo {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--o-brand-soft);
  color: var(--o-brand-fg);
  font-weight: 800;
  font-size: var(--o-t3);
}
.job-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.job-co { font-size: var(--o-tx); color: var(--o-ink-dim); font-weight: 700; }
.job-title { font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 회식 — 단톡방 ──────────────────────────── */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--o-panel-2);
  border: 1px solid var(--o-line);
  min-height: 240px;
}
.chat-day {
  align-self: center;
  font-size: var(--o-tx);
  color: var(--o-ink-faint);
  background: var(--o-panel-3);
  padding: 3px 10px;
  border-radius: 999px;
}
.msg { display: flex; gap: 8px; max-width: 86%; animation: o-item-in 220ms ease-out both; }
.msg-av {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: var(--o-brand-soft);
  color: var(--o-brand-fg);
  display: grid;
  place-items: center;
  font-size: var(--o-tx);
  font-weight: 800;
}
.msg-body { min-width: 0; }
.msg-who { font-size: var(--o-tx); color: var(--o-ink-dim); margin-bottom: 3px; }
.msg-text {
  padding: 9px 12px;
  border-radius: 4px 14px 14px 14px;
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  font-size: var(--o-tb);
  line-height: 1.5;
  word-break: break-word;
}
.msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.msg.is-me .msg-av { display: none; }
.msg.is-me .msg-text {
  border-radius: 14px 4px 14px 14px;
  background: var(--o-brand);
  border-color: var(--o-brand);
  color: var(--o-brand-ink);
}
.msg.is-me .msg-who { text-align: right; }

.typing { display: inline-flex; gap: 3px; align-items: center; height: 1.1em; }
.typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--o-ink-faint);
  animation: o-typing 1.1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes o-typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  box-shadow: var(--o-sh-1);
}
.composer .o-btn { flex: 1; }

/* ── 메신저 — 1:1 DM 껍데기 고급화 (2026-09-02, T9 후속) ──────────
   회식(단체방)은 `.chat`/`.msg` 를 그대로 쓴다. 여기는 그 위에
   실제 메신저 앱 느낌(아바타 그러데이션·온라인 점·시간·읽음)만 얹는다 —
   `.chat`/`.msg` 자체는 안 건드려서 회식 화면은 그대로다. */
.msgr-list { display: flex; flex-direction: column; gap: 8px; }

.msgr-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--o-line);
  border-radius: 16px;
  background: var(--o-panel);
  box-shadow: var(--o-sh-1);
  text-align: left;
  transition: transform 90ms, border-color 160ms, box-shadow 160ms;
}
.msgr-row:hover { border-color: var(--o-brand-line); box-shadow: var(--o-sh-2); }
.msgr-row:active { transform: translateY(1px); }

.msgr-av {
  position: relative;
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: var(--o-t3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.msgr-av.is-boss { background: linear-gradient(140deg, #b6491f 0%, #7a2f1a 100%); }
.msgr-av.is-kim  { background: linear-gradient(140deg, #2fa374 0%, #16603f 100%); }
.msgr-av.is-lee  { background: linear-gradient(140deg, #6f74d6 0%, #38397e 100%); }
.msgr-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--o-ink-faint);
  border: 2px solid var(--o-panel);
}
.msgr-dot.is-on { background: var(--o-ok); }

.msgr-main { min-width: 0; flex: 1; }
.msgr-name-row { display: flex; align-items: baseline; gap: 6px; }
.msgr-name { font-weight: 800; letter-spacing: -0.01em; }
.msgr-role { font-size: var(--o-tx); color: var(--o-ink-faint); }
.msgr-time { margin-left: auto; font-size: var(--o-tx); color: var(--o-ink-faint); white-space: nowrap; }
.msgr-preview {
  margin-top: 2px;
  font-size: var(--o-ts);
  color: var(--o-ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msgr-row.is-unread .msgr-preview { color: var(--o-ink); font-weight: 700; }
.msgr-badge {
  flex: 0 0 auto;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--o-stamp);
  color: #fff;
  font-size: var(--o-tx);
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ── 대화창 헤더 — 뒤로가기 + 아바타 + 상태 ── */
.msgr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -16px -16px 2px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--o-line);
  background: var(--o-panel);
  border-radius: 14px 14px 0 0;
}
.msgr-back {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--o-line);
  background: var(--o-panel-2);
  color: var(--o-ink-dim);
  cursor: pointer;
}
.msgr-back:hover { background: var(--o-panel-3); }
.msgr-head .msgr-av { flex: 0 0 38px; width: 38px; height: 38px; font-size: var(--o-ts); }
.msgr-head-info { min-width: 0; flex: 1; }
.msgr-head-name { font-weight: 800; font-size: var(--o-t3); }
.msgr-head-status { font-size: var(--o-tx); color: var(--o-ink-faint); }
.msgr-head-status.is-typing { color: var(--o-brand-fg); }

/* ── 말풍선 보강 — 시간·읽음 ── */
.msgr-time-stamp {
  font-size: var(--o-tx);
  color: var(--o-ink-faint);
  margin-top: 3px;
}
.msg.is-me .msgr-time-stamp { text-align: right; }
.msgr-read { color: var(--o-brand-fg); font-weight: 700; }

/* ── 선택지 — 실제 메신저의 빠른 답장 칩처럼 ── */
.msgr-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msgr-choice {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--o-line);
  background: var(--o-panel);
  box-shadow: var(--o-sh-1);
  font: inherit;
  font-size: var(--o-tb);
  color: var(--o-ink);
  cursor: pointer;
  transition: transform 90ms, border-color 160ms, box-shadow 160ms;
}
.msgr-choice:hover { border-color: var(--o-brand-line); box-shadow: var(--o-sh-2); }
.msgr-choice:active { transform: translateY(1px); }

.msgr-end {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--o-brand-soft);
  border: 1px solid var(--o-brand-line);
  color: var(--o-brand-fg);
  font-weight: 700;
}
.msgr-end svg { flex: 0 0 auto; width: 20px; height: 20px; }

/* ── 모션 ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .o-stamp-mark, .doc-stamp, .o-item.is-new, .neg-row,
  .o-modal, .o-modal-box, .o-toast, .msg { animation: none; }
  .appr-slot.is-doing .appr-dot, .typing i, .meet-meta .rec { animation: none; }
}

/* ── 지원 팝업 (T7-4) ────────────────────────────
   이직 화면이 쓴다. 공고를 누르면 이미 써둔 이력서가 뜬다.
   입력칸은 하나도 없다 — 개인정보를 칠 자리를 안 만든다. */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: var(--o-scrim);
}
@media (min-width: 560px) {
  .sheet { align-items: center; padding: 24px; }
}

.sheet-box {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--o-panel);
  border: 1px solid var(--o-line);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--o-sh-3);
  animation: o-sheet-up 240ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
@media (min-width: 560px) {
  .sheet-box { border-radius: 16px; }
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--o-line-soft);
}
.sheet-co { font-size: var(--o-tx); color: var(--o-ink-dim); font-weight: 700; }
.sheet-title { font-size: var(--o-t3); font-weight: 800; margin-top: 2px; }

.sheet-x {
  flex: 0 0 auto;
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--o-ink-dim);
  cursor: pointer;
}
.sheet-x svg { width: 18px; height: 18px; }
.sheet-x:hover { background: var(--o-panel-3); }

.sheet-body {
  padding: 14px 16px;
  overflow-y: auto;
}
.sheet-body .doc-meta { margin-top: 8px; }

.sheet-foot {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--o-line-soft);
}
.sheet-foot .o-btn { flex: 1; }

/* 보내는 중 */
.sheet-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--o-panel-2);
  font-size: var(--o-ts);
  color: var(--o-ink-dim);
}
.sheet-spin {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--o-line);
  border-top-color: var(--o-brand);
  animation: o-spin 720ms linear infinite;
}
@keyframes o-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .sheet-box { animation: none; }
  .sheet-spin { animation-duration: 2s; }
}
