/* pango-groupware 스타일.
   구성: 토큰 → 기본 → 레이아웃 → 컴포넌트 → 화면별 조각.
   색·간격은 반드시 토큰으로만 쓴다. 기준과 이유는 docs/DESIGN.md. */

:root {
  /* 회색 10단계. 글자는 600 이상만 쓴다(500 이하는 아이콘·선·비활성). */
  --grey-50: #f9fafb;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-300: #d1d6db;
  --grey-400: #b0b8c1;
  --grey-500: #8b95a1;
  --grey-600: #65707e;
  --grey-700: #4e5968;
  --grey-800: #333d4b;
  --grey-900: #191f28;
  /* 앱 배경과 그 위에 놓이는 패널. 패널 안의 회색 단계(50 → 100 → 200)는 패널에서 한 칸씩 멀어진다. */
  --canvas: #f9fafb;
  --panel: #ffffff;
  /* 색마다 기본(막대·채움) · strong(옅은 바탕 위 글자) · weak(옅은 바탕) */
  --blue: #2f6fe4;
  --blue-hover: #1b64da;
  --blue-strong: #1b64da;
  --blue-weak: #ebf3ff;
  --on-blue: #ffffff;
  --green: #03a66d;
  --green-strong: #04794f;
  --green-weak: #e8f7f0;
  --orange: #e07a00;
  --orange-strong: #a85a00;
  --orange-weak: #fff3e3;
  --red: #e5364b;
  --red-strong: #c92a3e;
  --red-weak: #ffebee;
  /* 아바타 바탕으로만 쓰는 옅은 색 둘(나머지 넷은 위의 weak) */
  --violet-strong: #6b3fd4;
  --violet-weak: #f1ebff;
  --teal-strong: #0b7285;
  --teal-weak: #e3f6f9;
  /* 캘린더 종류의 색(내 일정 파랑, 부서 초록, 전사 보라)과 휴가. 막대는 weak 바탕 + strong 글자,
     점·테두리는 기본 색. 보라 기본 색은 캘린더에만 쓴다. */
  --violet: #7b4fe0;
  --cal-personal: var(--blue);
  --cal-personal-strong: var(--blue-strong);
  --cal-personal-weak: var(--blue-weak);
  --cal-department: var(--green);
  --cal-department-strong: var(--green-strong);
  --cal-department-weak: var(--green-weak);
  --cal-company: var(--violet);
  --cal-company-strong: var(--violet-strong);
  --cal-company-weak: var(--violet-weak);
  --cal-leave: var(--teal-strong);
  --cal-leave-weak: var(--teal-weak);
  /* 주 보기 시간 칸 한 시간의 높이(pages/calendar.rs의 HOUR_PX와 같다). */
  --hour-h: 48px;
  --dim: rgb(0 0 0 / 45%);
  --shadow-float: 0 8px 32px rgb(0 0 0 / 12%);
  --radius-control: 10px;
  --radius-panel: 16px;
  --radius-modal: 20px;
  --sidebar-w: 240px;
  --tabbar-h: 58px;
  --appbar-h: 52px;
  /* 화면 아래에 붙는 동작 줄(.action-bar)의 높이. 토스트를 그 위로 올릴 때 쓴다. */
  --action-bar-h: 64px;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grey-50: #1b1b21;
    --grey-100: #202027;
    --grey-200: #2c2c35;
    --grey-300: #3c3c47;
    --grey-400: #62626d;
    --grey-500: #7e7e87;
    --grey-600: #9e9ea4;
    --grey-700: #c3c3c6;
    --grey-800: #e4e4e5;
    --grey-900: #ffffff;
    --canvas: #101014;
    --panel: #17171c;
    --blue: #4d8bf8;
    --blue-hover: #6a9dfa;
    --blue-strong: #8fb6fb;
    --blue-weak: #1e2a44;
    --on-blue: #101014;
    --green: #2cc38a;
    --green-strong: #2cc38a;
    --green-weak: #13302a;
    --orange: #f59a2c;
    --orange-strong: #f59a2c;
    --orange-weak: #3a2a12;
    --red: #f2626f;
    --red-strong: #f2626f;
    --red-weak: #3e1c21;
    --violet-strong: #b79cf7;
    --violet-weak: #2b2344;
    --teal-strong: #5fc9d8;
    --teal-weak: #14323a;
    --violet: #a98bf6;
    --dim: rgb(0 0 0 / 60%);
    --shadow-float: 0 8px 32px rgb(0 0 0 / 50%);
  }
}

/* 모바일은 패널 사이의 8px 띠가 또렷하도록 앱 배경을 한 단계 진하게 둔다(다크는 이미 충분히 어둡다). */
@media (max-width: 959px) and (prefers-color-scheme: light) {
  :root { --canvas: #f2f4f6; }
}

/* ── 기본 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  word-break: keep-all; overflow-wrap: anywhere;
  margin: 0;
  background: var(--canvas);
  color: var(--grey-900);
  font: 15px/1.6 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-size: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* 스크롤 영역 공통 처리.
   스크롤바 자리를 항상 비워 둬서(scrollbar-gutter), 내용이 길어져 스크롤바가 생겨도
   화면이 좌우로 밀리지 않게 한다. 세로로 스크롤되는 영역을 새로 만들면 여기에 추가한다. */
html,
.nav,
.modal-body,
.picker-results,
.dept-nav,
.select-list,
.cal-side,
.cal-week-scroll,
.form-picker-cats,
.form-picker-list,
.doc-side {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-300) transparent;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.icon { width: 20px; height: 20px; flex: none; }
/* 숫자가 세로로 줄을 맞춰야 하는 곳에만 고정폭 숫자를 쓴다. */
.num, .tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
/* 움직임은 사용자의 동작에 답할 때만. 줄이기를 켰으면 모두 끈다. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 레이아웃 ─────────────────────────────────────── */
.boot { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.boot > .skeleton { width: min(320px, 100%); }
.shell { display: flex; min-height: 100dvh; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 40px 40px 64px;
  display: flex; flex-direction: column; gap: 16px;
}

.sidebar {
  position: sticky; top: 0; height: 100dvh; width: var(--sidebar-w); flex: none;
  display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--grey-200);
  padding: 24px 12px 12px;
}
.sidebar-company {
  padding: 0 12px 20px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-section { margin: 20px 12px 6px; font-size: 13px; font-weight: 600; color: var(--grey-600); }
.nav-item {
  display: flex; align-items: center; gap: 10px; flex: none; height: 40px; padding: 0 12px;
  border-radius: var(--radius-control); color: var(--grey-700); font-weight: 500;
}
.nav-item .icon { color: var(--grey-500); }
.nav-item:hover { background: var(--grey-50); color: var(--grey-900); text-decoration: none; }
.nav-item-active, .nav-item-active:hover { background: var(--grey-100); color: var(--grey-900); font-weight: 700; }
.nav-item-active .icon { color: var(--grey-900); }
.nav-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--red-weak); color: var(--red-strong); font-size: 12px; font-weight: 600;
  font-feature-settings: "tnum";
}
.sidebar-footer {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--grey-200); padding-top: 8px; margin-top: 8px;
}
.sidebar-account { display: flex; align-items: center; gap: 4px; }
.profile-chip {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 12px; border-radius: var(--radius-control); color: var(--grey-900);
}
.profile-chip:hover { background: var(--grey-50); text-decoration: none; }
.profile-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.profile-chip-text strong, .profile-chip-text small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-chip-text strong { font-weight: 600; }
.profile-chip-text small { color: var(--grey-600); font-size: 13px; }

.appbar, .tabbar { display: none; }

@media (max-width: 959px) {
  .sidebar { display: none; }
  .appbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 10;
    height: calc(var(--appbar-h) + env(safe-area-inset-top));
    /* 가로로 돌린 노치 기기에서 양옆이 가려지지 않게 */
    padding: env(safe-area-inset-top) calc(8px + env(safe-area-inset-right)) 0 calc(20px + env(safe-area-inset-left));
    background: var(--panel);
  }
  .appbar-title {
    font-weight: 600; font-size: 17px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .appbar-actions { display: flex; align-items: center; flex: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: var(--panel); border-top: 1px solid var(--grey-200);
  }
  .tabbar-item {
    position: relative;
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 12px; font-weight: 500; color: var(--grey-600);
  }
  .tabbar-item .icon { width: 24px; height: 24px; color: var(--grey-400); }
  .tabbar-item:hover { text-decoration: none; }
  .tabbar-item-active { color: var(--grey-900); font-weight: 600; }
  .tabbar-item-active .icon { color: var(--grey-900); }
  /* "더보기" 안에 읽지 않은 공지·알림이 있다는 표시 */
  .tabbar-dot {
    position: absolute; top: 8px; left: calc(50% + 8px);
    width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  }
  /* 패널은 화면 폭을 가득 채우고, 패널 사이는 8px 회색 띠로 나눈다. 패널이 아닌 것은 좌우 여백을 둔다. */
  .content {
    padding: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
    gap: 8px;
  }
  .content > * {
    margin-left: calc(20px + env(safe-area-inset-left));
    margin-right: calc(20px + env(safe-area-inset-right));
  }
  .content > .panel, .content > .grid-2, .content > .people-layout, .content > .tabs, .content > .page-header,
  .content > .page-form, .content > .empty, .content > .skeleton {
    margin-left: 0; margin-right: 0; border-radius: 0;
  }
}

/* ── 페이지 머리 ──────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.page-heading { min-width: 0; }
.page-title { font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.page-description { color: var(--grey-600); margin-top: 4px; overflow-wrap: anywhere; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 2px;
  font-size: 13px; font-weight: 500; color: var(--grey-600);
}
.back-link .icon { width: 16px; height: 16px; transform: rotate(180deg); }
@media (max-width: 959px) {
  .page-header {
    margin-bottom: 0; background: var(--panel);
    padding: 16px calc(20px + env(safe-area-inset-right)) 20px calc(20px + env(safe-area-inset-left));
  }
  .page-title { font-size: 24px; }
  .back-link { margin-top: 12px; }
}

/* ── 패널 ─────────────────────────────────────────── */
.panel { background: var(--panel); border-radius: var(--radius-panel); padding: 24px; min-width: 0; }
.panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  margin-bottom: 16px; min-height: 32px;
}
.panel-title { font-size: 16px; font-weight: 600; line-height: 1.45; }
.panel-link { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--grey-600); white-space: nowrap; }
.panel-link:hover { color: var(--grey-900); text-decoration: none; }
.panel-link .icon { width: 16px; height: 16px; }
.panel-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
/* 패널 안의 표 위에 놓는 한 줄: 왼쪽에 필터, 오른쪽에 동작. */
.toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar > .field, .toolbar > .picker { flex: 0 1 220px; min-width: 0; }
.toolbar > .toolbar-wide { flex: 1 1 260px; max-width: 360px; }
.toolbar-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; min-height: 44px; }
/* 같은 줄의 패널은 높이를 맞춘다. 내용이 짧은 쪽은 아래가 비고, 빈 상태는 가운데에 놓인다. */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.grid-2 > .panel { display: flex; flex-direction: column; }
.grid-2 > .panel > .empty { flex: 1; justify-content: center; }
.grid-span { grid-column: 1 / -1; }
.section-title { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; margin-top: 8px; }
.sub-title { font-size: 15px; font-weight: 600; line-height: 1.55; }
.text-sub { color: var(--grey-600); overflow-wrap: anywhere; }
@media (max-width: 959px) {
  .panel { border-radius: 0; padding: 20px calc(20px + env(safe-area-inset-right)) 20px calc(20px + env(safe-area-inset-left)); }
  .grid-2 { grid-template-columns: 1fr; gap: 8px; }
  .toolbar > .field, .toolbar > .picker, .toolbar > .toolbar-wide { flex: 1 1 100%; max-width: none; }
  .toolbar-end { margin-left: 0; width: 100%; }
}

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-control);
  font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color .12s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn-weak { background: var(--blue-weak); color: var(--blue-strong); }
.btn-grey { background: var(--grey-100); color: var(--grey-700); }
.btn-danger { background: var(--red-weak); color: var(--red-strong); }
.btn-weak:hover:not(:disabled), .btn-grey:hover:not(:disabled), .btn-danger:hover:not(:disabled) { filter: brightness(.96); }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-top-color: transparent; opacity: .8;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--grey-600); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--grey-100); color: var(--grey-900); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn-badged { position: relative; }
.icon-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--red-weak); color: var(--red-strong); font-size: 11px; font-weight: 700; line-height: 1;
}
.link-btn {
  padding: 0; border: 0; background: none; color: var(--grey-900);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.link-btn:hover { color: var(--blue-strong); }

/* ── 입력 ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--grey-700); }
.field-required { color: var(--red-strong); }
.field-hint { font-size: 13px; color: var(--grey-600); }
.field-error { font-size: 13px; color: var(--red-strong); }
.input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--grey-100); border: 0; border-radius: var(--radius-control);
  font-size: 16px; /* iOS가 입력 시 화면을 확대하지 않는 최소 크기 */
  line-height: 1.5;
}
.input::placeholder { color: var(--grey-600); opacity: .8; }
.input:focus, .input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.input:disabled { color: var(--grey-500); cursor: not-allowed; }
.input-error { box-shadow: inset 0 0 0 2px var(--red); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
/* 선택 상자: 단추 + 목록. 기본 select의 펼친 목록은 꾸밀 수 없어 직접 그린다(ui/select.rs). */
.select { position: relative; }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; cursor: pointer; border: 0;
}
.select-trigger:disabled { cursor: not-allowed; }
.select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger > .icon { width: 18px; height: 18px; color: var(--grey-500); transition: transform .16s; flex: none; }
.select-open .select-trigger { box-shadow: inset 0 0 0 2px var(--blue); }
.select-open .select-trigger > .icon { transform: rotate(180deg); color: var(--grey-900); }
.select-backdrop { position: fixed; inset: 0; z-index: 40; }
.select-popover {
  position: absolute; z-index: 41; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--panel); border-radius: 14px; padding: 6px;
  box-shadow: 0 10px 30px rgb(0 23 51 / 12%), 0 0 0 1px var(--grey-200);
  animation: select-in .14s ease-out;
}
.select-sheet-title { display: none; }
.select-list { margin: 0; padding: 0; list-style: none; max-height: 288px; overflow-y: auto; }
.select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  color: var(--grey-800); font-size: 15px;
}
.select-option > .icon { width: 18px; height: 18px; color: var(--blue); flex: none; }
.select-option-active { background: var(--grey-100); }
.select-option-selected { color: var(--blue-strong); font-weight: 600; }
.select-option-text { min-width: 0; overflow-wrap: anywhere; }
@keyframes select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  /* 모바일: 아래에서 올라오는 시트. */
  .select-backdrop { background: rgb(0 0 0 / 40%); }
  .select-popover {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0;
    border-radius: 20px 20px 0 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgb(0 0 0 / 16%);
    animation: select-sheet-in .18s ease-out;
  }
  .select-sheet-title { display: block; padding: 14px 12px 10px; font-size: 17px; font-weight: 700; color: var(--grey-900); }
  .select-list { max-height: 60vh; }
  .select-option { min-height: 52px; font-size: 16px; }
}
@keyframes select-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .select-popover, .select-trigger > .icon { animation: none; transition: none; }
}
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-static { min-height: 24px; overflow-wrap: anywhere; }
.field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.field-with-count { display: flex; flex-direction: column; gap: 4px; }
.char-count { align-self: flex-end; font-size: 12px; color: var(--grey-600); font-feature-settings: "tnum"; white-space: nowrap; }
.char-count-over { color: var(--red-strong); font-weight: 600; }
/* 안내 상자: 옅은 바탕 + 진한 글자. */
.form-error, .callout {
  padding: 12px 14px; border-radius: var(--radius-control); font-size: 14px; overflow-wrap: anywhere;
}
.form-error { background: var(--red-weak); color: var(--red-strong); white-space: pre-line; }
.callout { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; background: var(--grey-100); color: var(--grey-700); }
.callout .icon { margin-top: 1px; }
.callout-info { background: var(--blue-weak); color: var(--blue-strong); }
.callout-success { background: var(--green-weak); color: var(--green-strong); }
.callout-warning { background: var(--orange-weak); color: var(--orange-strong); }
@media (max-width: 959px) {
  .form-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 0; min-height: 52px; font-size: 17px; }
}

/* 체크 상자 */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-width: 0; }
.check-input {
  appearance: none; -webkit-appearance: none; position: relative;
  width: 20px; height: 20px; margin: 2px 0 0; flex: none; cursor: pointer;
  border-radius: 6px; background: var(--grey-100); box-shadow: inset 0 0 0 1.5px var(--grey-300);
}
.check-input:checked { background: var(--blue); box-shadow: none; }
.check-input:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border-right: 2px solid var(--on-blue); border-bottom: 2px solid var(--on-blue); transform: rotate(45deg);
}
.check-input:disabled { opacity: .5; cursor: not-allowed; }
.check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-label { font-weight: 500; }

/* 고르는 칩(근무 형태, 팀원)과 묶음 */
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-control);
  background: var(--grey-100); color: var(--grey-700); font-weight: 600; cursor: pointer;
}
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover:not(:disabled) { filter: brightness(.96); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip-active { background: var(--blue-weak); color: var(--blue-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-remove { width: 32px; height: 32px; margin-right: -10px; color: inherit; }
.segmented { display: inline-flex; flex: none; padding: 3px; border-radius: var(--radius-control); background: var(--grey-100); }
.segmented-item {
  min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px;
  background: transparent; color: var(--grey-600); font-size: 13px; font-weight: 600; cursor: pointer;
}
.segmented-item-active { background: var(--panel); color: var(--grey-900); }

/* ── 배지·아바타·메타 ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tone-neutral { background: var(--grey-100); color: var(--grey-700); }
.tone-info { background: var(--blue-weak); color: var(--blue-strong); }
.tone-success { background: var(--green-weak); color: var(--green-strong); }
.tone-warning { background: var(--orange-weak); color: var(--orange-strong); }
.tone-danger { background: var(--red-weak); color: var(--red-strong); }
.ink-neutral { color: var(--grey-900); }
.ink-info { color: var(--blue-strong); }
.ink-success { color: var(--green-strong); }
.ink-warning { color: var(--orange-strong); }
.ink-danger { color: var(--red-strong); }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px;
  border-radius: 50%; font-weight: 600; font-size: 14px; line-height: 1;
}
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-0 { background: var(--blue-weak); color: var(--blue-strong); }
.avatar-1 { background: var(--green-weak); color: var(--green-strong); }
.avatar-2 { background: var(--orange-weak); color: var(--orange-strong); }
.avatar-3 { background: var(--red-weak); color: var(--red-strong); }
.avatar-4 { background: var(--violet-weak); color: var(--violet-strong); }
.avatar-5 { background: var(--teal-weak); color: var(--teal-strong); }
.meta { display: inline-flex; flex-wrap: wrap; gap: 0 12px; min-width: 0; font-size: 13px; color: var(--grey-600); }
.meta-item { min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.nowrap { white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* ── 목록 ─────────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0;
  border-top: 1px solid var(--grey-100); min-width: 0;
}
.list > .list-row:first-child, .list > li:first-child > .list-row { border-top: 0; }
a.list-row { color: inherit; }
a.list-row:hover { text-decoration: none; }
.list-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.list-row-main > strong { font-weight: 600; }
.list-row-main > strong, .list-row-main > small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-row-main > small { color: var(--grey-600); font-size: 13px; }
.list-row-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-size: 13px; color: var(--grey-600); flex: none;
}
.list-row-side-inline { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.list-row > .icon, .row-link > .icon, .menu-row > .icon:last-child { color: var(--grey-400); }
/* 목록 줄 전체가 버튼·링크일 때 */
.list-row-btn { width: 100%; border: 0; border-top: 1px solid var(--grey-100); background: none; text-align: left; cursor: pointer; }
.row-link, .notification {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left;
}
.row-link:hover { text-decoration: none; }
.row-link:hover strong, .list-row-btn:hover strong, button.notification:hover strong { color: var(--blue-strong); }
button.notification { cursor: pointer; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.menu-list { display: flex; flex-direction: column; }
.menu-row {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0;
  color: var(--grey-900); border: 0; border-top: 1px solid var(--grey-100);
}
.menu-row:first-child { border-top: 0; }
.menu-row:hover { text-decoration: none; }
.menu-row:hover .menu-row-label { color: var(--blue-strong); }
.menu-row > .icon:first-child { color: var(--grey-600); }
.menu-row-label { flex: 1; font-weight: 500; }
.menu-row-button { width: 100%; background: none; font: inherit; text-align: left; cursor: pointer; }
.detail-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.detail-list dt { color: var(--grey-600); font-size: 13px; line-height: 24px; }
.detail-list dd { overflow-wrap: anywhere; }
.detail-pair { display: contents; }
.load-more { display: flex; justify-content: center; margin-top: 16px; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.unread-dot-off { background: transparent; }
@media (max-width: 959px) {
  .row-actions { width: 100%; justify-content: flex-start; }
}

/* ── 표 ───────────────────────────────────────────── */
/* 표는 패널의 좌우 끝까지 닿는다(머리 줄의 회색 띠가 끊기지 않게). */
.table-wrap { overflow-x: auto; margin: 0 -24px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  height: 40px; padding: 0 12px; text-align: left; white-space: nowrap;
  background: var(--grey-50); font-size: 13px; font-weight: 500; color: var(--grey-600);
}
.table td { height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--grey-50); }
.table .num { text-align: right; }
/* 행마다 되풀이되는 작은 동작은 조용히 두고, 그 행을 가리킬 때만 바탕을 보인다. */
.table .btn-grey.btn-sm { background: transparent; }
.table tr:hover .btn-grey.btn-sm, .table .btn-grey.btn-sm:focus-visible { background: var(--grey-200); }
.table-nowrap td { white-space: nowrap; }
.table-nowrap td:first-child { white-space: normal; }
.cell-sub { display: block; font-size: 12px; color: var(--grey-600); }
.row-muted td, .row-muted .list-row-main { color: var(--grey-600); }
@media (max-width: 959px) {
  .table-wrap { margin: 0 -20px; }
  /* 좁은 화면에서는 표의 각 행을 쌓는다(가로 스크롤 없이). */
  .table-stack thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 20px; border-bottom: 1px solid var(--grey-100); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td, .table-stack td:first-child, .table-stack td:last-child {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    height: auto; padding: 3px 0; border-bottom: 0; min-width: 0;
  }
  .table-stack td::before {
    content: attr(data-label); flex: 0 0 56px; font-size: 13px; color: var(--grey-600);
  }
  .table-stack .nowrap { white-space: normal; }
}

/* ── 탭 ───────────────────────────────────────────── */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--grey-200); overflow-x: auto; }
/* 탭은 손가락·휠로 넘기므로 가로 스크롤바는 그리지 않는다(자리를 차지해 밑줄처럼 보인다). */
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--grey-600); font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--grey-900); }
.tab:focus-visible { outline-offset: -2px; }
.tab-active { color: var(--grey-900); border-bottom-color: var(--grey-900); }
.tab-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--red-weak); color: var(--red-strong); font-size: 12px; font-weight: 600;
}
@media (max-width: 959px) {
  .tabs {
    background: var(--panel);
    padding: 0 calc(20px + env(safe-area-inset-right)) 0 calc(20px + env(safe-area-inset-left));
  }
}

/* ── 숫자 ─────────────────────────────────────────── */
/* 타일은 바탕 없이 라벨과 큰 숫자만. 타일 사이는 세로선으로 나눈다(첫 칸의 선은 잘려 보이지 않는다). */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 20px 0;
  margin: 0 -20px; overflow: hidden;
}
.stats > * { margin-left: -1px; padding: 0 20px; border-left: 1px solid var(--grey-200); min-width: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 13px; font-weight: 500; color: var(--grey-600); }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stat-unit { margin-left: 1px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--grey-600); }
.stat-hint { font-size: 12px; color: var(--grey-600); word-break: keep-all; }
.stat-link { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: inherit; }
.stat-link:hover { text-decoration: none; }
.stat-link > .icon { color: var(--grey-400); }
.stat-link:hover > .icon { color: var(--grey-900); }
/* 한 화면의 대표 숫자(남은 연차, 근무 시간). */
.figure { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.figure-label { font-size: 13px; font-weight: 500; color: var(--grey-600); }
.figure-value { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
@media (max-width: 959px) {
  .stat-value { font-size: 22px; }
  .figure-value { font-size: 26px; }
}

/* ── 상태 표시 ────────────────────────────────────── */
.skeleton { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.skeleton-bar {
  display: block; height: 14px; border-radius: 6px; background: var(--grey-200);
  animation: skeleton 1.2s ease-in-out infinite alternate;
}
.skeleton-title { width: 40%; height: 22px; margin-bottom: 4px; }
@keyframes skeleton { from { opacity: 1; } to { opacity: .45; } }
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 16px; text-align: center;
}
.empty-icon { color: var(--grey-400); }
.empty-icon .icon { width: 40px; height: 40px; }
.empty-title { color: var(--grey-600); overflow-wrap: anywhere; }
.empty-hint { font-size: 13px; color: var(--grey-600); overflow-wrap: anywhere; }
.empty > .btn { margin-top: 8px; }
/* 화면의 본문 자리에 바로 놓인 빈 상태·골격은 패널처럼 보이게 한다(바탕 위에 떠 보이지 않게). */
.content > .empty, .content > .skeleton { background: var(--panel); border-radius: var(--radius-panel); }
.content > .skeleton { padding: 24px; }

/* ── 모달·토스트 ──────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: var(--dim); padding: 16px;
  animation: fade-in .16s ease-out;
}
.modal {
  width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: var(--panel); border-radius: var(--radius-modal); box-shadow: var(--shadow-float);
  animation: modal-in .16s ease-out;
}
.modal:focus-visible { outline: none; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 16px 4px 24px; }
.modal-title { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.modal-body { padding: 12px 24px 24px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.confirm-body { display: flex; flex-direction: column; gap: 8px; color: var(--grey-700); }
.confirm-message { white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (max-width: 959px) {
  /* 아래에서 올라오는 시트 */
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal {
    width: 100%; max-height: 92dvh; border-radius: var(--radius-modal) var(--radius-modal) 0 0;
    animation-name: sheet-in;
  }
  .modal-header { padding: 20px 12px 4px 20px; }
  .modal-body { padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); }
  .modal-actions .btn { flex: 1 1 0; min-height: 52px; font-size: 17px; }
}
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: min(420px, calc(100% - 32px)); pointer-events: none;
}
.toast-region { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.toast {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 12px 16px; border: 0; border-radius: 14px;
  background: var(--grey-800); color: var(--panel); font-weight: 500; text-align: left;
  box-shadow: var(--shadow-float); cursor: pointer; overflow-wrap: anywhere;
  animation: modal-in .2s ease-out;
}
.toast-error .icon { color: var(--orange); }
/* 화면 아래 동작 줄(결재 승인·반려 등)이 있으면 그 위로 띄워 버튼을 가리지 않는다. */
body:has(.action-bar) .toasts { bottom: calc(24px + var(--action-bar-h) + env(safe-area-inset-bottom)); }
@media (max-width: 959px) {
  .toasts { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
  body:has(.action-bar) .toasts {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--action-bar-h) + 12px);
  }
}
/* 화면 아래에 붙는 동작 줄 */
.action-bar {
  position: sticky; bottom: 16px; z-index: 5;
  display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--panel);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-float);
}
@media (max-width: 959px) {
  .action-bar {
    /* 하단 탭 바로 위에 붙는다. 본문(.content)의 아래 여백이 탭 높이만큼 있어 마지막 내용을 가리지 않는다. */
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    margin: 0; padding: 8px calc(20px + env(safe-area-inset-right)) 8px calc(20px + env(safe-area-inset-left));
    border-radius: 0; box-shadow: none; border-top: 1px solid var(--grey-200);
  }
  .action-bar .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 10px; }
}

/* ── 달력 ─────────────────────────────────────────── */
.month-switcher { display: flex; align-items: center; gap: 2px; }
.month-label { min-width: 104px; text-align: center; font-size: 16px; font-weight: 600; font-feature-settings: "tnum"; }
.month-prev .icon { transform: rotate(180deg); }
.calendar { display: flex; flex-direction: column; }
.calendar-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekday { padding: 8px 0; text-align: center; font-size: 13px; font-weight: 500; color: var(--grey-600); }
.calendar-weekday:first-child { color: var(--red-strong); }
/* 한국 달력 관례: 일요일은 빨강, 토요일은 파랑. */
.calendar-weekday:last-child { color: var(--blue-strong); }
.calendar-cell {
  min-height: 88px; padding: 6px; border-top: 1px solid var(--grey-100);
  display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px;
}
.calendar-cell-empty { background: var(--grey-50); }
.calendar-date { font-weight: 500; font-size: 13px; color: var(--grey-700); font-feature-settings: "tnum"; }
.calendar-date-today {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); font-weight: 600;
}
.calendar-date-off { color: var(--red-strong); }
.calendar-chip {
  padding: 2px 6px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 959px) {
  .calendar-cell { min-height: 60px; padding: 4px 2px; font-size: 11px; }
  .calendar-chip { padding: 1px 3px; }
}

/* ── 타임라인 ─────────────────────────────────────── */
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.timeline-item { position: relative; display: flex; gap: 12px; padding-bottom: 20px; min-width: 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 5px; top: 20px; bottom: 0; width: 2px; background: var(--grey-200);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: relative; flex: none; width: 12px; height: 12px; margin-top: 6px;
  border-radius: 50%; background: currentColor;
}
/* 점은 글자가 아니므로 기본 색을 쓴다. */
.timeline-dot.ink-neutral { color: var(--grey-300); }
.timeline-dot.ink-info { color: var(--blue); }
.timeline-dot.ink-success { color: var(--green); }
.timeline-dot.ink-warning { color: var(--orange); }
.timeline-dot.ink-danger { color: var(--red); }
.timeline-item-current .timeline-dot { box-shadow: 0 0 0 4px var(--orange-weak); }
.timeline-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.timeline-head strong { font-weight: 600; overflow-wrap: anywhere; }
.timeline-comment {
  padding: 10px 12px; border-radius: var(--radius-control); background: var(--grey-100);
  font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ── 구성원 선택기 ────────────────────────────────── */
.picker { position: relative; }
.picker-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  max-height: 280px; overflow-y: auto; padding: 6px;
  background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-float);
}
.picker-empty { padding: 12px; color: var(--grey-600); font-size: 14px; }
.picker-option {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px;
  border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
}
.picker-option:hover { background: var(--grey-100); }
.picker-option > .icon { color: var(--grey-400); }
.picker-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.picker-option-text strong { font-weight: 600; }
.picked-member {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 2px 2px 2px 10px;
  border-radius: var(--radius-control); background: var(--grey-100); min-width: 0;
}
.picked-member-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 하루 막대 ────────────────────────────────────── */
/* 이 제품의 대표 요소. 근무 시간대(옅은 띠) 위에 출근~퇴근(파랑), 늦은 구간(주황)을 칠한다. */
.workday { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.workday-flags { position: relative; height: 20px; font-size: 12px; font-weight: 600; color: var(--grey-700); }
.workday-flag { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-feature-settings: "tnum"; }
.workday-flag-start { transform: none; }
.workday-flag-end { transform: translateX(-100%); }
.workday-rail { position: relative; padding: 5px 0; }
.workday-track { position: relative; height: 12px; border-radius: 6px; background: var(--grey-100); overflow: hidden; }
.workday-band, .workday-late, .workday-worked { position: absolute; top: 0; bottom: 0; }
.workday-band { background: var(--blue); opacity: .16; }
/* 늦은 구간은 근무한 시간이 아니므로 채우지 않고 빗금으로 표시한다. */
.workday-late {
  background: repeating-linear-gradient(135deg, var(--orange) 0 2px, transparent 2px 6px);
  opacity: .7;
}
.workday-worked { background: var(--blue); }
.workday-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--blue-strong); }
.workday-mark-now { background: var(--grey-900); }
.workday-mark-now::before {
  content: ""; position: absolute; left: -2px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--grey-900);
}
.workday-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey-600); }
.workday-compact { width: 100%; max-width: 280px; }
.workday-compact .workday-track { height: 6px; border-radius: 3px; }
.week { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.week-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--grey-600); }
.week-label { font-weight: 500; }
.week-value { font-size: 15px; font-weight: 600; color: var(--grey-900); }
.week-target { font-weight: 500; }
.week-over { font-weight: 600; color: var(--red-strong); }
.week-rail { position: relative; padding: 4px 0; }
.week-track { position: relative; height: 8px; border-radius: 4px; background: var(--grey-100); overflow: hidden; }
.week-regular, .week-extra { position: absolute; top: 0; bottom: 0; }
.week-regular { background: var(--blue); }
.week-extra { background: var(--orange); }
.week-extra-over { background: var(--red); }
.week-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--grey-400); }
.week-mark-limit { background: var(--red); }
.week-axis { position: relative; height: 18px; font-size: 12px; color: var(--grey-600); }
.week-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

/* ── 화면별 조각 ──────────────────────────────────── */
/* 로그인·비밀번호 변경(가운데 정렬은 여기와 빈 상태에만) */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(400px, 100%); display: flex; flex-direction: column; gap: 20px;
  background: var(--panel); border-radius: var(--radius-modal); padding: 40px 32px;
}
.auth-brand { font-size: 15px; font-weight: 700; color: var(--blue-strong); }
.auth-title { font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; margin-top: -12px; }
.auth-hint { font-size: 13px; color: var(--grey-600); }
.auth-link { text-align: center; font-size: 14px; }
.auth-lead { font-size: 15px; color: var(--grey-700); margin-top: -12px; }
.auth-server {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--grey-100); font-size: 13px; color: var(--grey-600);
}
.auth-server-origin { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 959px) {
  .auth { padding: 0; place-items: stretch; background: var(--panel); }
  .auth-card { width: 100%; border-radius: 0; padding: 48px 24px; align-self: center; }
}

/* 오늘 근무 */
.today-card { display: flex; flex-direction: column; gap: 20px; }
.today-card > .panel-header { margin-bottom: -4px; }
.today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.today-when { display: flex; flex-direction: column; min-width: 0; }
.today-date { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.today-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.today-main > * { min-width: 0; }
.today-entry { flex: 1 1 320px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.today-action { flex: 0 0 220px; }
.today-done { flex: 1 1 100%; }
.today-week:empty { display: none; }
.month-stats { margin-bottom: 20px; }
.panel-note { margin-bottom: 12px; }
.change-line { font-size: 14px; overflow-wrap: anywhere; }
.change-before { margin-right: 8px; color: var(--grey-600); text-decoration: line-through; }
@media (max-width: 959px) {
  .today-action { flex: 1 1 100%; }
}

/* 줄 안의 제목·사유(휴가 신청, 정정 요청, 공지) */
.list-row-top { align-items: flex-start; }
.list-row-wrap { flex-wrap: wrap; }
.row-title { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.row-title strong { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-reason {
  margin-top: 4px; color: var(--grey-700); font-size: 14px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notification-unread strong { font-weight: 600; }
.notification:not(.notification-unread) strong { font-weight: 500; color: var(--grey-600); }

/* 홈 */
.home-balance { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-sub { margin-top: 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.menu-grid > .menu-row:nth-child(-n + 3) { border-top: 0; }
@media (max-width: 959px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid > .menu-row:nth-child(-n + 3) { border-top: 1px solid var(--grey-100); }
  .menu-grid > .menu-row:first-child { border-top: 0; }
}

/* 휴가 */
.leave-expiring { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--grey-700); }
.figure + .stats { margin-top: 20px; }
.stats + .field-hint { margin-top: 12px; }
.leave-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; font-size: 12px; }
.leave-chip { background: var(--blue-weak); color: var(--blue-strong); font-size: 12px; font-weight: 500; }
.leave-chip-pending { background: var(--grey-100); color: var(--grey-700); }
.leave-calendar .calendar-cell { padding: 0; }
.leave-day {
  flex: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  padding: 6px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.leave-day:hover { background: var(--grey-50); }
.leave-day:focus-visible { outline-offset: -2px; }
.leave-day-weekend { color: var(--grey-600); }
.leave-day-selected { box-shadow: inset 0 0 0 2px var(--blue); border-radius: 8px; }
.leave-day .calendar-date { align-self: flex-start; }
.leave-more { font-size: 11px; color: var(--grey-600); }
.leave-count { display: none; }
.leave-agenda { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--grey-100); }
@media (max-width: 959px) {
  .leave-day { padding: 4px 2px; align-items: center; }
  .leave-day .calendar-date { align-self: center; }
  .leave-day .leave-chip, .leave-day .leave-more { display: none; }
  .leave-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--blue-weak); color: var(--blue-strong);
    font-size: 11px; font-weight: 600;
  }
}

/* 결재 */
.page-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-inline { display: flex; flex-wrap: wrap; gap: 0 12px; }
.detail-inline > span + span { color: var(--grey-600); }
.doc-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.line-editor { display: flex; flex-direction: column; gap: 12px; }
.line-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.line-empty {
  padding: 16px; border-radius: var(--radius-control); background: var(--grey-50);
  color: var(--grey-600); text-align: center; font-size: 14px;
}
.line-steps { display: flex; flex-direction: column; }
.line-step {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; min-height: 56px; padding: 8px 0;
  border-top: 1px solid var(--grey-100);
}
.line-step:first-child { border-top: 0; }
.line-step-order { flex: none; width: 20px; text-align: center; font-size: 13px; font-weight: 600; color: var(--grey-600); font-feature-settings: "tnum"; }
.line-step-name { flex: 1; min-width: 80px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-step-actions { display: flex; align-items: center; }
.line-step-actions .icon-btn { width: 36px; height: 36px; }
.line-step-up .icon { transform: rotate(-90deg); }
.line-step-down .icon { transform: rotate(90deg); }
@media (max-width: 959px) {
  .page-form { gap: 8px; }
  .page-form > :not(.panel) {
    margin-left: calc(20px + env(safe-area-inset-left)); margin-right: calc(20px + env(safe-area-inset-right));
  }
  .page-form > .form-actions { margin-top: 12px; }
}

/* 공지 */
.notice-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-100); }
.notice-body { margin-top: 20px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.must-read { align-items: center; margin-top: 24px; }
.read-report { margin-top: 20px; }

/* 내 정보·구성원 */
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.profile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.people-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.people-contact { flex: 0 1 auto; min-width: 0; max-width: 45%; }
.people-contact a { max-width: 100%; color: var(--grey-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-nav {
  position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--panel); border-radius: var(--radius-panel); padding: 12px;
}
.dept-nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; flex: none; min-height: 40px;
  padding: 0 12px 0 calc(12px + var(--depth, 0) * 14px);
  border: 0; border-radius: var(--radius-control); background: none;
  color: var(--grey-700); font-weight: 500; text-align: left; cursor: pointer;
}
.dept-nav-item:hover { background: var(--grey-50); color: var(--grey-900); }
.dept-nav-item-active, .dept-nav-item-active:hover { background: var(--grey-100); color: var(--grey-900); font-weight: 700; }
.dept-nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-nav-count { font-size: 13px; font-weight: 500; color: var(--grey-600); font-feature-settings: "tnum"; }
.dept-nav-hint { padding: 8px 12px 4px; font-size: 12px; color: var(--grey-600); }
@media (max-width: 959px) {
  .people-layout { grid-template-columns: 1fr; gap: 8px; }
}

/* 구성원·조직 관리 */
.member-detail { display: flex; flex-direction: column; gap: 20px; }
.member-detail-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.member-detail-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.member-section { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--grey-100); padding-top: 20px; }
.secret-intro { margin-bottom: 16px; color: var(--grey-700); overflow-wrap: anywhere; }
.secret-field { margin-bottom: 12px; }
.secret-value { font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.04em; user-select: all; -webkit-user-select: all; }
.secret-value-long { min-height: 0; font-size: 15px; letter-spacing: 0; word-break: break-all; resize: none; }
.org-row { padding-left: calc(var(--depth, 0) * 20px); }
.org-branch { color: var(--grey-400); margin-right: 6px; font-weight: 400; }
@media (max-width: 959px) { .org-row { padding-left: calc(var(--depth, 0) * 10px); } }

/* 근무 정책 */
.tier-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tier-row .input { width: 96px; flex: none; }
.tier-text { font-size: 14px; color: var(--grey-700); }
.day-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.day-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 48px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-control);
  background: var(--grey-100); color: var(--grey-600); font-weight: 600; cursor: pointer;
}
.day-toggle .icon { width: 16px; height: 16px; }
.day-toggle-on { background: var(--blue-weak); color: var(--blue-strong); }
.import-errors { list-style: disc; padding-left: 32px; }

/* 감사 로그 */
.audit-detail {
  display: block; max-width: 340px; font-family: var(--font-mono); font-size: 12px; color: var(--grey-600);
  overflow-wrap: anywhere; word-break: break-all;
}
.code-block {
  margin: 0; padding: 16px; border-radius: var(--radius-control); background: var(--grey-100);
  font-family: var(--font-mono); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (max-width: 959px) {
  .audit-detail { max-width: 100%; flex: 1 1 200px; }
}

/* 캘린더 */
.cal-personal { --c: var(--cal-personal); --c-strong: var(--cal-personal-strong); --c-weak: var(--cal-personal-weak); }
.cal-department { --c: var(--cal-department); --c-strong: var(--cal-department-strong); --c-weak: var(--cal-department-weak); }
.cal-company { --c: var(--cal-company); --c-strong: var(--cal-company-strong); --c-weak: var(--cal-company-weak); }
.cal-holiday { --c: var(--red); }
.cal-leave { --c: var(--cal-leave); }
.cal-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; align-items: start; }
/* 달력은 넓을수록 일정 제목이 덜 잘리므로 본문 최대 폭 제한을 풀고, 화면 높이를 채운다. */
.content:has(.cal-layout) { max-width: none; }
.cal-side {
  position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px; padding: 20px 14px;
}
.cal-main { min-width: 0; }
.cal-toolbar { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; gap: 2px; }
.cal-nav .btn { margin-left: 6px; }
.cal-title { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.cal-toolbar-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cal-swatch { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--c); }
.cal-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }

/* 작은 달력과 캘린더 목록 */
.cal-mini .month-switcher { justify-content: space-between; margin-bottom: 4px; }
.cal-mini .month-label { min-width: 0; font-size: 14px; }
.calendar-mini .calendar-weekday { padding: 4px 0 6px; font-size: 11px; }
/* 날짜 원(26px) 사이에 가로 2px 이상, 세로 6px 여백을 둔다. 빽빽하면 오늘 표시가 옆 숫자에 붙어 보인다. */
.calendar-mini .calendar-cell { min-height: 0; padding: 3px 0; border-top: 0; align-items: center; }
.cal-mini-day {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  white-space: nowrap;
  font-size: 12px; color: var(--grey-800); font-feature-settings: "tnum";
}
.cal-mini-day { position: relative; }
.cal-mini-day:hover { background: var(--grey-100); }
.cal-mini-sun { color: var(--red-strong); }
.cal-mini-sat { color: var(--blue-strong); }
.calendar-cell-outside .cal-mini-day { color: var(--grey-400); }
/* 주 보기에서 보고 있는 주: 칸 사이를 이어 한 줄 띠로 보인다. */
.calendar-mini .calendar-cell:has(.cal-mini-in-week) { background: var(--grey-100); }
.calendar-mini .calendar-row > .calendar-cell:has(.cal-mini-in-week):first-child { border-radius: 16px 0 0 16px; }
.calendar-mini .calendar-row > .calendar-cell:has(.cal-mini-in-week):last-child { border-radius: 0 16px 16px 0; }
.cal-mini-in-week:hover { background: var(--grey-200); }
/* 일정이 있는 날은 숫자 아래 작은 점. */
.cal-mini-busy::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--grey-400);
}
.cal-mini-today { color: var(--blue-strong); font-weight: 700; }
.cal-mini-today::after { background: var(--blue); }
.cal-mini-selected, .cal-mini-selected:hover { background: var(--blue); color: var(--on-blue); font-weight: 600; }
.cal-mini-selected::after { background: var(--on-blue); }
.cal-list { display: flex; flex-direction: column; gap: 2px; }
.cal-list-title { margin: 8px 0 2px; font-size: 13px; font-weight: 600; color: var(--grey-600); }
.cal-list-title:first-child { margin-top: 0; }
.cal-toggle {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 6px;
  border-radius: 8px; cursor: pointer; min-width: 0;
}
.cal-toggle:hover { background: var(--grey-50); }
.cal-toggle .check-input { margin: 0; }
.cal-toggle-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cal-toggle-note { flex: none; font-size: 12px; color: var(--grey-600); }

/* 월 보기: 막대는 시작 칸에서 오른쪽 칸들 위로 늘어난다(지나는 칸은 같은 높이의 빈자리를 둔다). */
.cal-month .calendar-cell { min-height: max(112px, calc((100dvh - 230px) / 6)); padding: 0; }
.cal-month .calendar-cell-outside { background: var(--grey-50); }
.cal-month .calendar-cell:has(.cal-day-today) { background: color-mix(in srgb, var(--blue-weak) 55%, transparent); }
.cal-month .cal-day { height: 100%; cursor: pointer; }
/* 칸이 좁으면 시간을 빼고 제목을 남긴다(시간은 눌러서 보는 상세·그날 목록에 있다). */
.cal-month .calendar-cell { container-type: inline-size; }
@container (max-width: 120px) {
  .cal-line-time, .cal-bar-time { display: none; }
}
@media (hover: hover) {
  .cal-month .calendar-cell:hover:not(:has(.cal-day-today)) { background: var(--grey-50); }
  .cal-month .calendar-cell-outside:hover { background: var(--grey-100); }
}
.cal-day { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 4px 0 6px; }
.cal-day-head { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0 4px; }
.cal-date {
  min-width: 24px; height: 24px; flex: none; padding: 0 4px; border: 0; border-radius: 12px; background: none;
  font-size: 13px; font-weight: 500; color: var(--grey-800); cursor: pointer; font-feature-settings: "tnum";
}
.cal-date:hover { background: var(--grey-100); }
.cal-day-off .cal-date, .calendar-cell-outside .cal-date { color: var(--grey-600); }
.calendar-row > .calendar-cell:first-child:not(.calendar-cell-outside) .cal-date { color: var(--red-strong); }
.calendar-row > .calendar-cell:last-child:not(.calendar-cell-outside) .cal-date { color: var(--blue-strong); }
.cal-day-holiday .cal-date { color: var(--red-strong); }
/* 주말·공휴일 글자색 규칙(.calendar-row > .calendar-cell …)보다 우선해야 토요일·일요일의 오늘도 흰 글자로 보인다. */
.calendar-row > .calendar-cell .cal-day.cal-day-today .cal-date,
.calendar-row > .calendar-cell .cal-day.cal-day-today .cal-date:hover { background: var(--blue); color: var(--on-blue); font-weight: 700; }
.cal-holiday-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 500; color: var(--red-strong);
}
.cal-slot { height: 20px; min-width: 0; }
.cal-bar {
  --ml: 2px; --mr: 2px;
  position: relative; z-index: 1; display: flex; align-items: center; gap: 4px;
  width: calc(var(--span, 1) * 100% - var(--ml) - var(--mr)); height: 20px; margin-left: var(--ml); padding: 0 6px;
  border: 0; border-radius: 4px; background: var(--c-weak); color: var(--c-strong);
  font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer;
}
.cal-bar:hover, .cal-block:hover { filter: brightness(.97); }
.cal-bar:focus-visible, .cal-line:focus-visible, .cal-block:focus-visible { outline-offset: 0; }
.cal-bar-cont-before { --ml: 0px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-bar-cont-after { --mr: 0px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-bar-time { flex: none; font-weight: 500; font-feature-settings: "tnum"; }
.cal-bar-title, .cal-line-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 수락하기 전의 초대는 테두리만(색만으로 알리지 않도록 이름에도 "초대 응답 대기"를 붙인다). */
.cal-tentative { background: var(--panel); box-shadow: inset 0 0 0 1px var(--c); }
.cal-line {
  display: flex; align-items: center; gap: 4px; min-width: 0; height: 20px; margin: 0 2px; padding: 0 6px;
  border: 0; border-radius: 4px; background: none; color: var(--grey-800);
  font-size: 12px; text-align: left; white-space: nowrap; cursor: pointer;
}
.cal-line:hover { background: var(--grey-100); }
.cal-line-time { flex: none; color: var(--grey-600); font-feature-settings: "tnum"; }
.cal-line-tentative .cal-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.cal-chip {
  display: flex; align-items: center; gap: 4px; min-width: 0; height: 20px; margin: 0 2px; padding: 0 6px;
  border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.cal-leave-chip { background: var(--cal-leave-weak); color: var(--cal-leave); }
/* 결재 중인 휴가: 옅은 점선 테두리 + "대기" 글자 */
.cal-leave-pending { background: transparent; border: 1px dashed var(--cal-leave); color: var(--grey-700); }
.cal-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-chip-mark { flex: none; font-size: 11px; font-weight: 700; }
.cal-more {
  align-self: flex-start; height: 20px; margin: 0 2px; padding: 0 6px; border: 0; border-radius: 4px;
  background: none; color: var(--grey-700); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.cal-more:hover { background: var(--grey-100); }

/* 주 보기 */
.cal-week { --gutter: 52px; display: flex; flex-direction: column; min-width: 0; }
.cal-week-head, .cal-week-allday, .cal-week-grid {
  display: grid; grid-template-columns: var(--gutter) repeat(var(--days, 7), minmax(0, 1fr));
}
/* 아래 시간 칸은 스크롤바 자리를 비워 두므로(scrollbar-gutter) 위 두 줄도 같은 폭을 비워 열을 맞춘다. */
.cal-week-head, .cal-week-allday { overflow-y: hidden; scrollbar-gutter: stable; }
.cal-week-day {
  display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 4px 2px 8px;
  border: 0; border-radius: 8px; background: none; color: var(--grey-800); cursor: pointer;
}
.cal-week-day:hover { background: var(--grey-50); }
.cal-week-weekday { font-size: 12px; color: var(--grey-600); }
.cal-week-date {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; font-weight: 600; font-feature-settings: "tnum";
}
.cal-week-day-off .cal-week-date { color: var(--grey-600); }
.cal-week-day-holiday .cal-week-date { color: var(--red-strong); }
.cal-week-day-today .cal-week-date { background: var(--blue); color: var(--on-blue); }
.cal-week-day .cal-holiday-name { max-width: 100%; }
.cal-week-allday {
  grid-template-rows: repeat(var(--rows, 1), 22px); gap: 2px 0; padding: 4px 0;
  border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-200);
}
.cal-week-allday-label { grid-column: 1; grid-row: 1 / -1; padding: 2px 8px 0 0; text-align: right; font-size: 12px; color: var(--grey-600); }
.cal-week-bar { display: flex; min-width: 0; }
.cal-week-bar > .cal-bar, .cal-week-bar > .cal-chip { flex: 1; }
.cal-week-scroll { max-height: min(640px, calc(100dvh - 300px)); overflow-y: auto; }
.cal-week-grid { height: calc(24 * var(--hour-h)); }
.cal-hours { position: relative; }
.cal-hour {
  position: absolute; right: 8px; top: calc(var(--hour) * var(--hour-h)); transform: translateY(-50%);
  font-size: 11px; color: var(--grey-600); font-feature-settings: "tnum";
}
.cal-hour:first-child { display: none; }
.cal-week-col {
  position: relative; border-left: 1px solid var(--grey-100);
  background-image: repeating-linear-gradient(to bottom, var(--grey-100) 0 1px, transparent 1px var(--hour-h));
}
.cal-week-col-today { background-color: var(--grey-50); }
.cal-block {
  position: absolute; display: flex; flex-direction: column; align-items: flex-start; min-height: 22px;
  padding: 2px 6px; border: 0; border-left: 3px solid var(--c); border-radius: 4px;
  background: var(--c-weak); color: var(--c-strong); font-size: 12px; text-align: left;
  overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--panel);
}
.cal-block.cal-tentative { background: var(--panel); box-shadow: inset 0 0 0 1px var(--c), 0 0 0 1px var(--panel); }
.cal-block-short { flex-direction: row; align-items: center; gap: 4px; padding-top: 0; padding-bottom: 0; }
.cal-block-short .cal-block-time { display: none; }
.cal-block-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-block-time { font-size: 11px; font-feature-settings: "tnum"; white-space: nowrap; }
.cal-now { position: absolute; left: 0; right: 0; z-index: 2; height: 2px; margin-top: -1px; background: var(--red); pointer-events: none; }
.cal-now::before {
  content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

/* 목록 보기·하루 목록·홈 */
.cal-agenda { display: flex; flex-direction: column; gap: 24px; }
.cal-agenda-date { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; font-size: 15px; font-weight: 600; }
.cal-agenda-row { gap: 12px; }
.cal-agenda-time { flex: none; width: 104px; font-size: 13px; color: var(--grey-700); font-feature-settings: "tnum"; }
.cal-tentative-row .cal-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }

/* 일정 상세 */
.cal-detail { display: flex; flex-direction: column; gap: 16px; }
.cal-detail-time { font-weight: 600; color: var(--grey-800); font-feature-settings: "tnum"; }
.cal-detail-meta { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cal-detail-meta > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.cal-detail-meta dt { font-size: 13px; color: var(--grey-600); line-height: 1.6; }
.cal-detail-meta dd { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.cal-detail-desc {
  padding: 12px 16px; border-radius: var(--radius-control); background: var(--grey-50);
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7;
}
.cal-respond { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.cal-respond-label { flex: 1 1 100%; font-weight: 600; }

/* 일정 폼과 참석자 일정 확인 */
.cal-form-modal { width: min(640px, 100%); }
.cal-form-note { margin-top: -14px; }
.cal-attendees { display: flex; flex-direction: column; gap: 10px; }
.cal-attendees-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cal-attendees .chips { margin-bottom: 0; }
.cal-attendees .chip { min-height: 36px; padding-right: 4px; }
.busy { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius-control); background: var(--grey-50); }
.busy-axis { display: flex; justify-content: space-between; margin-left: 88px; font-size: 11px; color: var(--grey-600); font-feature-settings: "tnum"; }
.busy-axis-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.busy-rows { display: flex; flex-direction: column; gap: 8px; }
.busy-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; align-items: center; }
.busy-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.busy-track { height: 16px; border-radius: 4px; background: var(--panel); }
.busy-block { position: absolute; top: 0; bottom: 0; }
.busy-event { background: var(--blue); }
.busy-leave { background: var(--cal-leave); }
.busy-busy { background: var(--grey-500); }
.busy-proposal { position: absolute; top: 0; bottom: 0; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--grey-900); }
.busy-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.busy-key { width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.busy-key:first-child { margin-left: 0; }
.busy-key-proposal { box-shadow: inset 0 0 0 2px var(--grey-900); }

@media (max-width: 959px) {
  .content > .cal-layout { margin-left: 0; margin-right: 0; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-main { padding: 12px 0 16px; }
  .cal-toolbar { padding: 0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left)); margin-bottom: 8px; }
  .cal-title { order: -2; flex: 1 0 calc(100% - 104px); min-width: 0; padding-left: 4px; font-size: 20px; }
  div.cal-toolbar-mobile { order: -1; display: flex; gap: 2px; }
  .cal-nav .btn { margin-left: 2px; }
  .cal-main > .empty, .cal-main > .skeleton, .cal-agenda { padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left)); }
  .cal-month .calendar-cell { min-height: 76px; }
  /* 칸 안 일정은 손가락으로 집기에 작다. 칸 전체를 누르면 그날 목록(일정마다 큰 줄)이 뜬다. */
  .cal-month .cal-bar, .cal-month .cal-line, .cal-month .cal-chip, .cal-month .cal-more { pointer-events: none; }
  .cal-month .cal-line-time, .cal-month .cal-bar-time { display: none; }
  .cal-day-head { justify-content: center; padding: 0 2px; }
  .cal-holiday-name { display: none; }
  .cal-week-day .cal-holiday-name { display: block; font-size: 10px; }
  .cal-slot { height: 16px; }
  .cal-bar, .cal-line, .cal-chip, .cal-more { height: 16px; padding: 0 3px; font-size: 10px; }
  .cal-line, .cal-chip, .cal-more { margin: 0 1px; }
  .cal-bar { --ml: 1px; --mr: 1px; }
  .cal-bar-time, .cal-line-time { display: none; }
  .cal-line .cal-dot { width: 6px; height: 6px; }
  .cal-chip-mark { font-size: 10px; }
  .cal-week { --gutter: 44px; }
  .cal-hour { right: 6px; }
  .cal-week-scroll { max-height: calc(100dvh - 320px); min-height: 320px; }
  .cal-agenda-time { width: 84px; }
  .modal-full { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .cal-form-note { margin-top: -14px; }
  .busy { padding: 12px; }
  .busy-row { grid-template-columns: 64px minmax(0, 1fr); }
  .busy-axis { margin-left: 72px; }
}

/* ── 결재 양식 ────────────────────────────────────── */
/* 양식 필드(FormFields): 입력·읽기 전용·미리보기가 같은 조각을 쓴다. */
.fieldset > legend { padding: 0; margin-bottom: 6px; }
/* 숫자·날짜·선택처럼 값이 짧은 칸은 좁게 둔다(넓은 칸에 짧은 값이 떠 보이지 않게). */
.ff-narrow { max-width: 360px; }
.ff-num { text-align: right; }
.ff-money { position: relative; display: block; }
.ff-money > .input { padding-right: 38px; }
.ff-unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--grey-600); pointer-events: none;
}
.ff-unit-inline { margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--grey-600); }
.ff-reading { font-size: 13px; color: var(--grey-600); }
.ff-reading-inline { margin-left: 8px; }
.ff-read-strong { font-weight: 600; }
.ff-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ff-range > .input { flex: 0 1 176px; width: auto; min-width: 0; }
.ff-range-sep { color: var(--grey-600); }
.ff-days { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--blue-strong); white-space: nowrap; }
.ff-table-wrap { overflow-x: auto; border-radius: var(--radius-control); }
.ff-table th:first-child, .ff-table td:first-child { padding-left: 12px; }
.ff-table th:last-child, .ff-table td:last-child { padding-right: 12px; }
.ff-table td { height: auto; padding: 6px; vertical-align: top; }
.ff-table tbody tr:hover td { background: transparent; }
.ff-table .input { min-width: 104px; min-height: 40px; padding: 8px 10px; }
.ff-table-no { width: 48px; font-size: 13px; color: var(--grey-600); white-space: nowrap; }
.ff-table td.ff-table-no { line-height: 40px; }
.ff-table-act { width: 52px; }
.ff-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ff-table .ff-total td { height: 44px; padding: 8px 12px; background: var(--grey-50); vertical-align: middle; border-bottom: 0; }
.ff-table .ff-total td.ff-table-no { line-height: inherit; font-weight: 600; color: var(--grey-700); }
.ff-table-read td { height: 44px; padding: 8px 12px; vertical-align: middle; overflow-wrap: anywhere; }
.ff-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ff-table-empty {
  padding: 16px; border-radius: var(--radius-control); background: var(--grey-50);
  color: var(--grey-600); text-align: center; font-size: 14px;
}
.ff-read-table { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 959px) {
  .ff-narrow { max-width: none; }
  .ff-range > .input { flex: 1 1 130px; }
  /* 날짜 두 칸이 한 줄을 다 쓰도록 일수는 아래 줄로 내린다. */
  .ff-days { flex: 1 1 100%; margin-left: 0; }
  /* 표는 행마다 쌓는다(.table-stack). 칸의 입력란은 라벨 옆 남은 폭을 채운다. */
  .ff-table-wrap { overflow-x: visible; }
  .ff-table.table-stack tfoot { display: block; width: 100%; }
  .ff-table.table-stack tr { padding: 12px 0; }
  .ff-table.table-stack td, .ff-table.table-stack td:first-child, .ff-table.table-stack td:last-child {
    height: auto; padding: 4px 0; text-align: left;
  }
  .ff-table.table-stack td::before { flex: 0 0 64px; }
  .ff-table.table-stack td > .ff-cell { flex: 1 1 0; }
  .ff-table.table-stack td.ff-table-no { line-height: inherit; }
  /* 행 지우기는 행의 오른쪽 위(번호 줄)에 둔다. */
  .ff-table.table-stack tbody tr { position: relative; }
  .ff-table.table-stack td.ff-table-act { position: absolute; top: 4px; right: 0; width: auto; padding: 0; }
  .ff-table.table-stack td.ff-table-act::before { display: none; }
  .ff-table.table-stack td.ff-table-act:empty, .ff-table.table-stack .ff-total td:empty { display: none; }
  .ff-table.table-stack .ff-total { padding: 12px; border-radius: var(--radius-control); background: var(--grey-50); }
  .ff-table.table-stack .ff-total td { background: transparent; height: auto; }
  .ff-table.table-stack .ff-total td.ff-table-no::before { display: none; }
}

/* 양식 고르기: 왼쪽 분류, 오른쪽 양식 */
.modal-wide { width: min(1040px, 100%); }
.form-picker {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  gap: 16px 24px; height: min(560px, calc(100dvh - 160px));
}
.form-picker-search { grid-column: 1 / -1; }
.form-picker-cats { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
.form-picker-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none;
  height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-control);
  background: none; color: var(--grey-700); font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap;
}
.form-picker-cat:hover { background: var(--grey-50); color: var(--grey-900); }
.form-picker-cat-active, .form-picker-cat-active:hover { background: var(--grey-100); color: var(--grey-900); font-weight: 700; }
.form-picker-cat-count { font-size: 13px; font-weight: 500; color: var(--grey-600); }
.form-picker-list { display: flex; flex-direction: column; gap: 20px; overflow-y: auto; min-width: 0; min-height: 0; }
.form-picker-heading { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--grey-600); }
.form-picker-row { gap: 4px; }
.form-picker-row > .row-link { min-height: 40px; cursor: pointer; }
.star-btn { color: var(--grey-400); }
.star-btn-on, .star-btn-on:hover:not(:disabled) { color: var(--orange); }
.star-btn-on .icon { fill: currentColor; }
@media (max-width: 959px) {
  /* 화면 본문 바로 아래에 놓인 대화 상자의 가림막이 본문의 좌우 여백을 물려받지 않게 한다. */
  .content > .modal-backdrop { margin: 0; }
  .form-picker {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px; height: calc(92dvh - 120px);
  }
  /* 분류는 옆으로 넘기는 칩 줄이 된다. */
  .form-picker-cats { flex-direction: row; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .form-picker-cats::-webkit-scrollbar { display: none; }
  .form-picker-cat { background: var(--grey-100); font-weight: 600; }
  .form-picker-cat-active, .form-picker-cat-active:hover { background: var(--blue-weak); color: var(--blue-strong); }
  .form-picker-cat-active .form-picker-cat-count { color: var(--blue-strong); }
}

/* 문서 상세: 왼쪽에 문서, 오른쪽에 결재 진행. 작성 화면은 표가 넓게 쓰도록 한 단으로 둔다. */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.doc-main, .doc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* 오른쪽 단은 화면에 붙어 따라오고, 길면 그 안에서 스크롤한다. */
.doc-side {
  position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto;
  border-radius: var(--radius-panel);
}
.doc-side-actions { display: flex; flex-direction: column-reverse; gap: 8px; }
.doc-header > .badge-row { margin-bottom: 16px; }
.doc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; }
.doc-fact { min-width: 0; }
.doc-fact dt { font-size: 13px; line-height: 1.5; color: var(--grey-600); }
.doc-fact dd { font-weight: 600; overflow-wrap: anywhere; }
.doc-form-head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--grey-100);
}
.doc-form-name { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; overflow-wrap: anywhere; }
/* 넓은 화면에서는 오른쪽 단의 "처리"가 동작 막대를 대신한다. */
.action-bar.doc-action-bar { display: none; }
@media (min-width: 960px) {
  body:has(.doc-action-bar) .toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1199px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 959px) {
  .doc-layout, .doc-main, .doc-side { gap: 8px; }
  .doc-side { border-radius: 0; }
  .content > .doc-layout { margin-left: 0; margin-right: 0; }
  .doc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .action-bar.doc-action-bar { display: flex; }
}

/* 결재함의 거르기 줄 */
.doc-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.doc-filter-form { flex: 0 1 220px; min-width: 0; }
/* 선택 상자의 첫 항목("모든 양식")이 이름 구실을 하므로 라벨은 화면 낭독기에만 남긴다. */
.doc-filter-form .field-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 959px) {
  .chip-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip-scroll > .chip { flex: none; }
  .doc-filter-form { flex: 1 1 100%; }
}

/* 양식 관리: 편집 창(왼쪽 설정, 오른쪽 미리보기)과 입력 항목 편집 */
.form-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
.form-editor-main { min-width: 0; }
.form-editor-main > .sub-title { margin-top: 8px; }
.form-editor-note { margin-top: -12px; }
.form-editor-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-editor-sheet {
  display: flex; flex-direction: column; gap: 20px; padding: 20px;
  border-radius: var(--radius-panel); background: var(--grey-50);
}
.form-editor-body {
  min-height: 88px; padding: 10px 14px; border-radius: var(--radius-control);
  background: var(--grey-100); color: var(--grey-600);
}
.fb { display: flex; flex-direction: column; gap: 12px; }
.fb-list { display: flex; flex-direction: column; gap: 8px; }
.fb-field { border-radius: var(--radius-control); background: var(--grey-50); min-width: 0; }
.fb-head { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 4px 4px 4px 12px; }
.fb-toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap;
  padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.fb-name { flex: 1 1 96px; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-toggle:hover .fb-name { color: var(--blue-strong); }
.fb-body { padding: 4px 12px 16px; }
.fb-editor { gap: 16px; }
.fb-required { display: flex; align-items: center; min-height: 44px; align-self: end; }
.fb-columns { display: flex; flex-direction: column; gap: 8px; }
.fb-column { padding: 8px 12px 16px; border-radius: var(--radius-control); background: var(--panel); min-width: 0; }
.fb-column-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.fb-column-head strong { font-size: 13px; font-weight: 600; color: var(--grey-700); }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media (max-width: 959px) {
  .form-editor { grid-template-columns: minmax(0, 1fr); }
  .form-editor-preview { position: static; }
}

/* 손가락으로 누르는 칸은 40px 이상. 데스크톱은 촘촘하게 둔다.
   각 칸의 기본 규칙보다 뒤에 있어야 이긴다. */
@media (max-width: 959px) {
  .btn-sm { min-height: 40px; min-width: 40px; }
  .segmented-item { min-height: 36px; min-width: 40px; }
  .chip-remove, .line-step-actions .icon-btn { width: 40px; height: 40px; }
}

/* 줄마다 반복되는 보조 동작은 줄에 마우스를 올리거나 초점이 들어올 때만 보인다(데스크톱).
   터치 기기는 마우스 올림이 없으므로 항상 보인다. */
@media (hover: hover) and (min-width: 960px) {
  .row-hover-action > * { opacity: 0; transition: opacity .12s; }
  tr:hover > .row-hover-action > *, tr:focus-within > .row-hover-action > * { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .row-hover-action > * { transition: none; } }

/* 화면 폭에 따라 하나만 보이는 쌍(표 ↔ 목록 등). 다른 규칙보다 뒤에 둬야 이긴다. */
.only-mobile { display: none; }
@media (max-width: 959px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }
  ul.only-mobile { display: flex; }
}

/* 외부 알림 연동: 긴 키 표시와 설정 순서 */
.mono-wrap { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.checklist { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.guide { margin-top: 16px; }
.guide summary { cursor: pointer; font-weight: 600; color: var(--grey-800); }
.guide-body { margin-top: 10px; display: grid; gap: 10px; color: var(--grey-700); font-size: 14px; }
.guide-body h3 { font-size: 14px; font-weight: 600; color: var(--grey-800); }
.guide-body ol { margin: 4px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* 공지 첨부파일 */
.attachments { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--grey-100); display: flex; flex-direction: column; gap: 8px; }
.attachment-list { display: flex; flex-direction: column; gap: 6px; }
.attachment-link, .attachment-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: var(--radius-control); background: var(--grey-50); color: var(--grey-800); text-decoration: none; }
.attachment-link:hover { background: var(--grey-100); }
.attachment-link > .icon, .attachment-row > .icon { flex: none; color: var(--grey-500); }
.attachment-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { flex: none; color: var(--grey-600); font-size: 13px; font-feature-settings: "tnum"; }
.attachment-pick { position: relative; align-self: flex-start; }
.attachment-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.attachment-pick:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-control); }
/* 앱에서 링크처럼 보이는 내려받기 버튼 */
.link-button { border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.btn.link-button { width: auto; text-align: center; }
/* 2단계 인증 */
.totp-secret { font-size: 18px; letter-spacing: .08em; font-feature-settings: "tnum"; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 16px; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
