/* ============================================================
 * Oculis Components — 컴포넌트 단일 소스
 *
 * 토큰은 _design_tokens.css 에 정의. 이 파일은 토큰을 조립한
 * 재사용 가능한 컴포넌트만. 페이지별 마크업/스타일은 이곳을
 * 참조해야 하며, 페이지 안에서 동일 컴포넌트를 재정의하지 마.
 * ============================================================ */

/* [Sumi v3] 로고 전용 클래식 세리프 — McKinsey 톤 (Playfair Display)
   Playfair Display 는 모든 HTML head 에 직접 <link> 로드.
   CSS @import 는 race-condition 회피 위해 폐기 (EDIT_SAFETY 와 별개로 안정성). */


/* ============================================================
 * BUTTON — Primary · Secondary · Ghost · Danger × SM · MD · LG
 *
 * 사용법:
 *   <button class="btn btn-primary btn-md">저장</button>
 *   <button class="btn btn-secondary btn-sm">취소</button>
 *   <button class="btn btn-ghost btn-md">건너뛰기</button>
 *   <button class="btn btn-danger btn-sm">삭제</button>
 *   <button class="btn btn-primary btn-md btn-full">로그인</button>  ← 폼 전체폭
 *
 * 규칙:
 *   · 모든 버튼 radius var(--r-sm) 8px 단일.
 *   · 누름 시 scale(.97) 80ms ease-in / 회복 180ms var(--ease).
 *   · padding: SM 0 14, MD 0 18, LG 0 24. font-weight 600.
 *   · pill (radius 999px) 버튼 금지.
 *   · 인라인 style 로 버튼 색·패딩 손대지 마. 변형이 필요하면
 *     새 .btn-* 변형을 이 파일에 추가.
 * ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition:
    background  var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color       var(--dur-1) var(--ease),
    filter      var(--dur-1) var(--ease),
    transform   80ms          var(--ease-in);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
  transition: transform 80ms var(--ease-in);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Sizes ─────────────────────────────────────────── */
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--text-sm); }
.btn-md { height: 44px; padding: 0 18px; font-size: var(--text-md); }
.btn-lg { height: 52px; padding: 0 24px; font-size: var(--text-md); }

/* ── Full-width (폼 submit 용) ─────────────────────── */
.btn-full { width: 100%; }

/* ── Primary ───────────────────────────────────────── */
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.btn-primary:hover:not(:disabled) { background: var(--ink-600); border-color: var(--ink-600); }

/* ── Secondary ─────────────────────────────────────── */
.btn-secondary {
  background: var(--surface-0);
  color: var(--ink-900);
  border-color: var(--hairline);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--ink-900);
}

/* ── Ghost ─────────────────────────────────────────── */
.btn-ghost {
  background: transparent;
  color: var(--ink-600);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink-900);
}

/* ── Danger ────────────────────────────────────────── */
.btn-danger {
  background: var(--surface-0);
  color: var(--danger);
  border-color: var(--hairline);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: var(--on-brand);
  border-color: var(--danger);
}


/* ============================================================
 * PILL BAN — radius 999px 단속
 *
 * 디자인 시스템상 모든 인터랙티브 요소는 radius var(--r-sm).
 * 옛 마크업에 남은 button[style*="999px"] 같은 인라인 잔재가
 * 있어도 이 룰이 잡아내 평이한 라운드로 깎는다.
 * ============================================================ */

button[style*="border-radius: 999px"],
button[style*="border-radius:999px"],
a.btn[style*="border-radius: 999px"],
a.btn[style*="border-radius:999px"] {
  border-radius: var(--r-sm) !important;
}


/* ============================================================
 * FIELD — Form Input · Textarea · Select
 *
 * 사용법:
 *   <div class="field">
 *     <label class="field-label" for="email">이메일</label>
 *     <input class="field-input" id="email" type="email" placeholder="...">
 *     <div class="field-hint">고객 회신 메일에 사용</div>
 *   </div>
 *
 *   <div class="field">
 *     <label class="field-label">서비스</label>
 *     <select class="field-select">...</select>
 *   </div>
 *
 *   <div class="field">
 *     <label class="field-label">내용</label>
 *     <textarea class="field-textarea" rows="5"></textarea>
 *   </div>
 *
 *   <div class="field-row">  ← 2-column (자동 모바일 1열 fallback)
 *     <div class="field">...</div>
 *     <div class="field">...</div>
 *   </div>
 *
 * 규칙:
 *   · height 44px (탭 타깃 + 모바일 iOS 자동 줌 방지를 위해 font 16px 강제).
 *   · 배경 투명 — 페이지/카드 표면이 자연스럽게 보임.
 *   · focus: brand border + 외곽 0 0 0 4px rgba(brand,.12).
 *   · 인라인 style 로 height/font-size/border 손대지 마. 변형은
 *     `.field-input.is-amount` 같은 modifier 를 이 파일에 추가.
 * ============================================================ */

.field {
  display: block;
  margin-bottom: var(--space-4);
}
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--space-2);
}

.field-input,
.field-textarea,
.field-select {
  display: block;
  width: 100%;
  height: 40px;
  letter-spacing: -0.005em;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 16px;            /* iOS 자동 줌 방지 — 협상 불가 */
  line-height: 1.5;
  transition:
    border-color var(--dur-1) var(--ease),
    box-shadow   var(--dur-1) var(--ease),
    background   var(--dur-1) var(--ease);
}

.field-textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235A5C63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--ink-400); }

.field-input:hover:not(:disabled):not(:focus),
.field-textarea:hover:not(:disabled):not(:focus),
.field-select:hover:not(:disabled):not(:focus) {
  border-color: var(--ink-400);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-0);
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
}

.field-input:disabled,
.field-textarea:disabled,
.field-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field-input[readonly],
.field-textarea[readonly] {
  background: var(--surface-2);
  cursor: default;
}

.field-hint {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--ink-400);
}

.field-error {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--danger);
}

/* ── 2-column row (자동 모바일 1열 fallback) ─────────────── */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ── Invalid state (브라우저 native :invalid 보단 명시 클래스 권장) ── */
.field-input.is-invalid,
.field-textarea.is-invalid,
.field-select.is-invalid {
  border-color: var(--danger);
}
.field-input.is-invalid:focus,
.field-textarea.is-invalid:focus,
.field-select.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(193, 59, 46, 0.12);
}

/* ── Modifier: 금액·숫자 입력 (분개 가공비 등) ───────────── */
.field-input.is-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
}


/* ============================================================
 * MODAL — Backdrop · Card · Header · Body · Footer
 *
 * 정적 마크업:
 *   <div class="modal-backdrop" id="my-modal" role="dialog" aria-modal="true" aria-labelledby="my-modal-title">
 *     <div class="modal-card">
 *       <div class="modal-header">
 *         <h3 class="modal-title" id="my-modal-title">제목</h3>
 *         <button class="modal-close" type="button" aria-label="닫기">×</button>
 *       </div>
 *       <div class="modal-body">...</div>
 *       <div class="modal-footer">
 *         <button class="btn btn-secondary btn-md" data-modal-close>취소</button>
 *         <button class="btn btn-primary btn-md">저장</button>
 *       </div>
 *     </div>
 *   </div>
 *
 * JS API (_components.js):
 *   Modal.open('my-modal');
 *   Modal.close('my-modal');
 *   Modal.confirm({title, message, danger, confirmText, onConfirm});
 *
 * 사이즈 변형:
 *   .modal-card.is-compact (440) / 기본 (560) / .modal-card.is-wide (720)
 *
 * 모션:
 *   등장 240ms ease-out — scale(.98→1) + translateY(8→0) + opacity
 *   퇴장 180ms ease-in  — 역
 * ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(15, 15, 16, 0.32);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}

.modal-backdrop.is-open,
.modal-backdrop.open {        /* legacy alias — 대시보드 호환 */
  display: flex;
  opacity: 1;
}

.modal-backdrop.is-closing {
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-in);
}

.modal-card {
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-3);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition:
    transform var(--dur-3) var(--ease-out),
    opacity   var(--dur-3) var(--ease-out);
}

.modal-backdrop.is-open .modal-card,
.modal-backdrop.open    .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-backdrop.is-closing .modal-card {
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition:
    transform var(--dur-2) var(--ease-in),
    opacity   var(--dur-2) var(--ease-in);
}

.modal-card.is-compact { max-width: 440px; }
.modal-card.is-wide    { max-width: 720px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) 0;
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
  font-family: inherit;
}

.modal-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-400);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition:
    color      var(--dur-1) var(--ease),
    background var(--dur-1) var(--ease);
}
.modal-close:hover { color: var(--ink-900); background: var(--surface-2); }
.modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
}

.modal-body {
  padding: var(--space-5) var(--space-6);
  overflow-y: auto;
  flex: 1 1 auto;
  color: var(--ink-900);
  font-size: var(--text-md);
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6) var(--space-5);
}

/* ── prefer-reduced-motion: 모달 모션 즉시 ─────────── */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-backdrop .modal-card { transition: none; }
}


/* ============================================================
 * PILL — 상태 표시 (5종 의미색)
 *
 * 새 시스템:
 *   <span class="pill pill-pending">접수됨</span>   ← neutral
 *   <span class="pill pill-progress">진행</span>    ← brand
 *   <span class="pill pill-done">완료</span>        ← success
 *   <span class="pill pill-warn">주의</span>        ← warn
 *   <span class="pill pill-danger">위험</span>      ← danger
 *
 * 규칙:
 *   · 22px 높이, hairline + 의미색 텍스트, 채움 없음.
 *   · 카테고리에 사용 금지 — 오직 상태(state) 만.
 * ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.pill-pending  { color: var(--ink-600); border-color: var(--hairline); }
.pill-progress { color: var(--brand);   border-color: var(--brand);   }
.pill-done     { color: var(--success); border-color: var(--success); }
.pill-warn     { color: var(--warn);    border-color: var(--warn);    }
.pill-danger   { color: var(--danger);  border-color: var(--danger);  }


/* ============================================================
 * STATE-PILL — 대시보드 backward-compat (9종 → 5종 매핑)
 *
 * 옛 시스템 (대시보드 main.js render 마크업): <span class="state-pill st-수락">수락</span>
 * 새 의미군:
 *   접수됨 · 완료              → neutral (회색)
 *   수락 · 검토중 · 검토완료 · 발송완료 → progress (brand)
 *   거절                       → danger
 *   보류 · 수정요청            → warn
 *
 * 채움색 모두 제거 → text+border 만으로 시각 구분.
 * 페이지 내 .state-pill.st-* 채움색 정의 폐기 권장.
 * ============================================================ */

.state-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  background: transparent !important;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}
.state-pill.st-접수됨,
.state-pill.st-완료      { color: var(--ink-600); border-color: var(--hairline) !important; }
.state-pill.st-수락,
.state-pill.st-검토중,
.state-pill.st-검토완료,
.state-pill.st-발송완료  { color: var(--brand);   border-color: var(--brand)    !important; }
.state-pill.st-거절      { color: var(--danger);  border-color: var(--danger)   !important; }
.state-pill.st-보류,
.state-pill.st-수정요청  { color: var(--warn);    border-color: var(--warn)     !important; }

/* urgency-pill / dday-pill / badge backward-compat — 채움색 제거 */
.urgency-pill,
.dday-pill,
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  background: transparent !important;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}


/* ============================================================
 * TOAST — 우하단 슬라이드 알림 (한 번에 하나)
 *
 * JS API (_components.js): Toast.show({message, kind, duration})
 *   kind: 'ok' | 'err' | 'warn' | undefined (neutral)
 *
 * 규칙:
 *   · 한 번에 1개만. 새 토스트 발생 시 기존 즉시 슬라이드아웃.
 *   · 220ms slide-up 등장 / 220ms slide-down 퇴장.
 *   · 4초 후 자동 dismiss.
 *   · 모바일은 좌우 화면폭 채움.
 * ============================================================ */

.toast {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 240px;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface-0);
  box-shadow: var(--elev-3);
  color: var(--ink-900);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform var(--dur-2) var(--ease-out),
    opacity   var(--dur-2) var(--ease-out);
}

.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-leaving {
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform var(--dur-2) var(--ease-in),
    opacity   var(--dur-2) var(--ease-in);
}

/* 좌측 의미색 점 */
.toast.is-ok::before,
.toast.is-err::before,
.toast.is-warn::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.toast.is-ok::before   { background: var(--success); }
.toast.is-err::before  { background: var(--danger);  }
.toast.is-warn::before { background: var(--warn);    }

@media (max-width: 480px) {
  .toast {
    right: var(--space-3);
    left: var(--space-3);
    bottom: var(--space-3);
    max-width: none;
  }
}


/* ============================================================
 * NOTIF-BELL — 헤더 시스템 알림 (5개 배지 통합 → 종 1개)
 *
 * 사용 (정적 마크업):
 *   <button class="notif-bell" id="notif-bell" aria-label="알림" type="button">
 *     <span class="notif-bell-icon" aria-hidden="true">🔔</span>
 *   </button>
 *   <div class="notif-sheet" id="notif-sheet" role="region">...</div>
 *
 * has-dot 클래스 추가 시 우상단 작은 dot 노출.
 * step 13 (대시보드 운영 뷰) 에서 시트 본격 도입.
 * ============================================================ */

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--surface-0);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink-600);
  font-size: 16px;
  transition:
    background   var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color        var(--dur-1) var(--ease);
}
.notif-bell:hover { background: var(--surface-2); color: var(--ink-900); }
.notif-bell:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
}
.notif-bell::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--warn);
  border: 2px solid var(--surface-0);
  border-radius: 50%;
  display: none;
}
.notif-bell.has-dot::after { display: block; }


/* ============================================================
 * MOBILE TAP TARGET — 모바일 ≤480px 액션 최소 44×44 보장
 *
 * iOS HIG 44pt, Material 48dp 권장. 데스크탑 밀도는 유지하되
 * 모바일에서만 padding/height 키워 오탭 방지.
 * ============================================================ */

@media (max-width: 480px) {
  /* Button SM — 데스크탑 36 → 모바일 44 */
  .btn-sm { height: 44px; padding: 0 16px; }

  /* Modal close X — 36 → 44 */
  .modal-close { width: 44px; height: 44px; font-size: 24px; }

  /* Notif bell — 36 → 44 */
  .notif-bell { width: 44px; height: 44px; }

  /* 대시보드 페이지의 chip / tab / filter / row-action — 글로벌 강제.
     페이지 내 정의가 더 작더라도 min-height 44px 로 끌어올림. */
  .row-action,
  .intake-chip,
  .filter-btn,
  .queue-tab,
  .file-link,
  .header-badge,
  .btn-decide {
    min-height: 44px !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* user-avatar (대시보드 헤더) */
  .user-avatar { width: 44px !important; height: 44px !important; }
}


/* ============================================================
 * GLOBAL A11Y — focus-visible 일관 보강
 *
 * .btn / .field-* / .modal-close 는 자체적으로 focus ring 정의.
 * 여기는 그 외에 사용자가 키보드로 도달할 수 있는 요소들
 * (interactive a, 시각 카드, chip/tab 류) 의 fallback ring.
 * ============================================================ */

a.row-action:focus-visible,
button.row-action:focus-visible,
.intake-chip:focus-visible,
.filter-btn:focus-visible,
.queue-tab:focus-visible,
.file-link:focus-visible,
.header-badge:focus-visible,
.btn-decide:focus-visible,
.user-avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
  border-radius: var(--r-sm);
}

/* 본문 안 inline 링크는 outline 살림 — 보더 안 그리고 underline 강조 */
.modal-body a:focus-visible,
.field-hint a:focus-visible,
footer a:focus-visible,
.lead a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ============================================================
 * PAGE HEADER — 와시츠 드라마 (Step A3 광채 2차)
 *
 * 정적 마크업:
 *   <header class="page-header">
 *     <div class="page-header-brand">
 *       <span class="brand-mark" aria-hidden="true"></span>
 *       <h1 class="page-title">Oculis</h1>
 *       <span class="brand-sub">By ARCES · 인하우스</span>
 *     </div>
 *     <div class="page-header-meta">...</div>
 *   </header>
 *
 * 규칙:
 *   · brand-mark: 14px 골드 입체 닷 (Apple/Sony 표면 빛)
 *   · page-title: DM Serif Display 32px (와시츠 활자)
 *   · 헤더 아래 그라데이션 hairline (창호지 빛 한 줄)
 *   · 페이지당 1개만.
 * ============================================================ */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
}

/* 헤더 아래 와시츠 빛 한 줄 (좌우 끝은 사라짐) */
.page-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--hairline) 12%,
    var(--hairline) 88%,
    transparent 100%
  );
}

.page-header-brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.page-header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-600);
}

/* ============================================================
 * Oculis Logo (Sumi · v3 2026-05-15) — McKinsey 워드마크 톤
 *
 * "Oculis" = 라틴어 "눈" (Latin: oculus, plural oculis).
 * 어원의 우아함에 맞춰 클래식 high-contrast modern serif.
 * McKinsey & Company / Bain & Company 의 절제된 워드마크 참조.
 *
 * 원칙:
 *   1. Playfair Display — Bower(McKinsey 자체폰트) 와 가장 비슷한 Google Fonts.
 *      Bodoni Moda / Didot 폴백.
 *   2. weight 400~500 절제 — 두꺼우면 신뢰감이 무너짐.
 *   3. 두 줄 배치: "Oculis" / "by ARCES" — McKinsey 패턴.
 *   4. 본문에 사용 금지 — 로고 단 1군데 전용 (--font-serif 토큰).
 *
 * 폰트 import — _components.css 최상단에서 1회 로드.
 * ============================================================ */
.oculis-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none !important;
  color: var(--ink-900);
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  transition: opacity var(--dur-1) var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
/* page-context 옆에 있을 때만 분리선 표시 (단독 시 카드 박스화 방지) */
.oculis-logo + .page-context {
  padding-left: var(--space-4);
  margin-left: var(--space-4);
  border-left: 1px solid var(--ink-200);
}
.oculis-logo:hover { opacity: 0.6; }
.oculis-logo:focus-visible { outline: 1px solid var(--ink-900); outline-offset: 4px; }
.oculis-logo:active { opacity: 0.4; }
.oculis-mark {
  font-family: "Playfair Display", "Bodoni Moda", "Bodoni 72", Didot, Georgia, "Times New Roman", serif !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: -0.005em !important;
  line-height: 1.05 !important;
  color: #1A1612 !important;
}
.oculis-meta {
  font-family: "Playfair Display", "Bodoni Moda", "Bodoni 72", Didot, Georgia, "Times New Roman", serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #4A4640 !important;
  line-height: 1.1 !important;
  margin-top: 2px !important;
}

.page-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.page-context .page-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: var(--w-black);
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1;
}
.page-context .page-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--w-medium);
  color: var(--ink-600);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Brand Mark — 입체 골드 닷 (LEGACY — 신규 사용 금지, oculis-logo 사용) ─────── */
.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      #D8B574 0%,
      var(--brand-mark-gold) 45%,
      #8C6E36 100%
    );
  box-shadow:
    0 0 0 3px rgba(184, 150, 78, 0.10),
    0 1px 2px rgba(46, 38, 22, 0.20),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  position: relative;
  top: 2px;
  transition: transform var(--dur-2) var(--ease);
}
.brand-mark:hover { transform: scale(1.08); }

/* ── Page Title — DM Serif Display 32px ─────────── */
.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

/* 컴팩트 변형 (직원홈처럼 좁은 페이지 헤더) */
.page-title.is-compact { font-size: 26px; }

/* ── Brand Sub — "BY ARCES · 인하우스" ──────────── */
.brand-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* 모바일에서 헤더 컴팩트 */
@media (max-width: 480px) {
  .page-title { font-size: 24px; }
  .page-title.is-compact { font-size: 20px; }
  .brand-mark { width: 12px; height: 12px; }
  .page-header { padding-bottom: var(--space-3); margin-bottom: var(--space-5); }
}


/* ============================================================
 * MAIKI MARKS — 추상 마크 시스템 [MAIKI_MARKS_V1]
 *
 * 이모지(📑 ⚖ 💬 📦 🚚 🔒 ⚡ ⚠ 등) 폐기를 위한 추상 마크.
 * 의미는 그림이 아니라 *위치·색·맥락*이 짊어진다.
 * 마크는 정보의 표식일 뿐, 정보의 그림이 아니다.
 *
 * 옛 BAUHAUS MARKS (Step A3) 폐기 2026-05-16 — 사용처 0건, dead code.
 * 클래스 이름(.mark / .mark-square / .mark-triangle) 일부 재활용.
 * 옛 .mark-circle / .mark.is-* / .mark-square.is-* 등은 완전 제거.
 *
 * 사용법:
 *   <span class="mark mark-square"></span>
 *   <span class="mark mark-triangle mark-vermillion"></span>
 *   <span class="mark mark-dot mark-sm"></span>
 *   <button>저장 <span class="mark mark-arc mark-indigo mark-sm"></span></button>
 *
 * 색 modifier — 의미에 따라 (마크 자체가 의미를 짊어지지 않음):
 *   .mark-vermillion  진사 — 위급/거부/실패
 *   .mark-ochre       황토 — 주의/경고/대기
 *   .mark-indigo      쪽빛 — 안정/완료/해결
 *   .mark-mute        회색 — 비활성/관찰/종결
 *   (기본)            잉크 — 중립/항목/일반
 *
 * 크기 modifier:
 *   .mark-sm           8px (인라인, 미세)
 *   (기본)            14px (정보 마커, 표준)
 *   .mark-lg          24px (KPI/헤더 강조)
 *
 * ─── 사용 매트릭스 (P1.1 이후 적용 가이드) ───────────────────
 *
 *   SEMANTIC                  MARK              COLOR
 *   ─────────────────────────────────────────────────────
 *   서비스 · 계약            mark-square       (잉크)
 *   서비스 · 분쟁/소송       mark-triangle     vermillion
 *   서비스 · 자문            mark-arc          (잉크)
 *   서비스 · 실사/기타       mark-dot          (잉크)
 *
 *   상태 · 잠금/대기         mark-circle-empty mute
 *   상태 · 완료/성공         mark-arc          indigo
 *   상태 · 오류/제외         mark-cross        vermillion
 *   상태 · 긴급              mark-diamond      vermillion
 *   상태 · 주의              mark-dot          ochre
 *
 *   진행 · 발견              mark-dot          mute
 *   진행 · 경고문구          mark-square       ochre
 *   진행 · 내용증명 1차      mark-triangle     ochre
 *   진행 · 내용증명 2차      mark-diamond      ochre
 *   진행 · 소송중            mark-dot          vermillion
 *   진행 · 합의/회수         mark-arc          indigo
 *   진행 · 종결              mark-line         mute
 *
 *   구분 · 연결              mark-line         (잉크/mute)
 *
 * 구현 메모:
 *   currentColor + mask-image 패턴으로 부모의 color 가 마크 색이 됨.
 *   색 modifier 는 단순히 color 만 바꾸면 마크 색이 따라옴.
 *   SVG 안 fill/stroke='black' 은 mask 용도라 의미 없음 (opacity 만 사용).
 * ============================================================ */

.mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: var(--mark-mask) center / contain no-repeat;
          mask: var(--mark-mask) center / contain no-repeat;
  flex-shrink: 0;
}

/* ── 마크 8종 ─────────────────────────────────────────── */
.mark-dot          { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3' fill='black'/%3E%3C/svg%3E"); }
.mark-square       { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='3.5' y='3.5' width='7' height='7' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E"); }
.mark-triangle     { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3 L11 11 L3 11 Z' fill='none' stroke='black' stroke-width='1' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
.mark-diamond      { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3 L11 7 L7 11 L3 7 Z' fill='none' stroke='black' stroke-width='1' stroke-linejoin='miter'/%3E%3C/svg%3E"); }
.mark-arc          { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11 A6 6 0 0 1 11 3' fill='none' stroke='black' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E"); }
.mark-cross        { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cline x1='3' y1='3' x2='11' y2='11' stroke='black' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E"); }
.mark-line         { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cline x1='2' y1='7' x2='12' y2='7' stroke='black' stroke-width='1' stroke-linecap='square'/%3E%3C/svg%3E"); }
.mark-circle-empty { --mark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='4' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E"); }

/* ── 색 modifier (currentColor 변경) ──────────────────── */
.mark-vermillion   { color: var(--pigment-red); }
.mark-ochre        { color: var(--pigment-yellow); }
.mark-indigo       { color: var(--pigment-blue); }
.mark-mute         { color: var(--ink-400); }

/* ── 크기 modifier ─────────────────────────────────────── */
.mark-sm           { width: 8px; height: 8px; vertical-align: -1px; }
.mark-lg           { width: 24px; height: 24px; vertical-align: -4px; }


/* ============================================================
 * GOLD ACCENT — 결정적 한 점 (Step A3)
 *
 * 페이지마다 단 한 곳에만. 핵심 CTA·헤더에만.
 *   <button class="btn btn-primary btn-md gold-accent">저장</button>
 *
 * 좌측 4px 골드 띠. 사용자가 "여기가 중심이다" 라고 인지.
 * ============================================================ */

.gold-accent {
  position: relative;
  overflow: hidden;
}
.gold-accent::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand-mark-gold);
}


/* ============================================================
 * VIEW TABS — 대시보드 IA 탭 (오늘 / 전체 / 운영) [Step B1]
 *
 * 마크업:
 *   <nav class="view-tabs" role="tablist">
 *     <button class="view-tab is-active" data-view="today" role="tab">오늘
 *       <span class="view-tab-count">3</span>
 *     </button>
 *     <button class="view-tab" data-view="all" role="tab">전체</button>
 *     <button class="view-tab" data-view="ops" role="tab">운영</button>
 *   </nav>
 *
 *   <section class="view-pane" data-view="today">...</section>
 *   <section class="view-pane is-hidden" data-view="all">...</section>
 *   <section class="view-pane is-hidden" data-view="ops">...</section>
 * ============================================================ */

.view-tabs {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0;
}

.view-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 12px 18px 14px;
  font-family: inherit;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink-600);
  cursor: pointer;
  position: relative;
  transition: color var(--dur-1) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.view-tab::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px 1px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-2) var(--ease);
}

.view-tab:hover:not(.is-active) { color: var(--ink-900); }
.view-tab.is-active {
  color: var(--brand);
  font-weight: 600;
}
.view-tab.is-active::after { transform: scaleX(1); }

.view-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
  border-radius: var(--r-sm);
}

.view-tab-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  min-width: 18px;
  padding: 2px 7px;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--ink-600);
}
.view-tab.is-active .view-tab-count {
  background: var(--brand);
  color: var(--on-brand);
}

.view-pane.is-hidden { display: none; }
.view-pane {
  animation: view-fade-in var(--dur-3) var(--ease-out);
}
@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
 * TODAY VIEW — "오늘 처리해야 하는 건" 보드 [Step B1]
 *
 * 와시츠 호흡: 한 화면, 카드 1장, 행 5~7개 이하.
 * 점·뱃지·이모지 없음. 인쇄된 종이 처럼 정적인 인상.
 * ============================================================ */

.today-board {
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  overflow: hidden;
}

.today-headline {
  padding: var(--space-7) var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.today-headline-lead {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0;
}
.today-headline-lead .today-count {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin: 0 4px;
}
.today-headline-sub {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

.today-list { display: flex; flex-direction: column; }

.today-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
  text-decoration: none;
  color: inherit;
}
.today-row:last-child { border-bottom: 0; }
.today-row:hover { background: var(--surface-1); }
.today-row:focus-visible {
  outline: none;
  background: var(--surface-1);
  box-shadow: inset 3px 0 0 var(--brand);
}

.today-row-main { min-width: 0; }
.today-row-company {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
}
.today-row-title {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-row-context {
  font-size: var(--text-sm);
  color: var(--ink-600);
  margin-top: 2px;
}

.today-row-sla {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-600);
  white-space: nowrap;
  text-align: right;
}
.today-row.is-urgent .today-row-sla { color: var(--warn); font-weight: 600; }
.today-row.is-overdue .today-row-sla { color: var(--danger); font-weight: 700; }

.today-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--surface-1);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-600);
}
.today-footer strong { color: var(--ink-900); font-weight: 600; }

/* 빈 상태 */
.today-empty {
  padding: var(--space-8) var(--space-6);
  text-align: center;
  color: var(--ink-400);
  font-size: var(--text-md);
  line-height: 1.6;
}
.today-empty strong { display: block; color: var(--ink-600); margin-bottom: var(--space-2); font-size: var(--text-lg); font-family: var(--font-display); font-weight: 400; }

@media (max-width: 480px) {
  .today-headline { padding: var(--space-5) var(--space-4) var(--space-4); }
  .today-headline-lead { font-size: 19px; }
  .today-headline-lead .today-count { font-size: 28px; }
  .today-row { padding: var(--space-4); grid-template-columns: 1fr; gap: var(--space-2); }
  .today-row-sla { text-align: left; font-size: var(--text-xs); }
}


/* ============================================================
 * ALL VIEW — 전체 섹션 접힘 시스템 [Step B2]
 *
 * #view-all 안 모든 sec-* 를 접힘 가능하게.
 * 카운트 0 인 섹션은 자동 .is-empty + .is-collapsed.
 * h2 클릭으로 토글.
 * ============================================================ */

#view-all section[id^="sec-"] h2 {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 32px;
  transition: color var(--dur-1) var(--ease);
}
#view-all section[id^="sec-"] h2::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-400);
  border-bottom: 1.5px solid var(--ink-400);
  transform: translateY(-65%) rotate(45deg);
  transform-origin: center;
  transition: transform var(--dur-2) var(--ease);
}
#view-all section[id^="sec-"].is-collapsed h2::after {
  transform: translateY(-50%) rotate(-45deg);
}
#view-all section[id^="sec-"] h2:hover {
  color: var(--brand);
}

#view-all section[id^="sec-"].is-collapsed > *:not(h2) {
  display: none;
}

/* 카운트 0 — 톤 다운 */
#view-all section[id^="sec-"].is-empty {
  opacity: 0.55;
  transition: opacity var(--dur-2) var(--ease);
}
#view-all section[id^="sec-"].is-empty:hover { opacity: 1; }
#view-all section[id^="sec-"].is-empty h2 {
  color: var(--ink-400);
}

/* 새 항목 도착 강조 — 마지막 30초 안에 추가된 섹션 */
#view-all section[id^="sec-"].has-fresh h2 {
  color: var(--brand);
  font-weight: 600;
}
#view-all section[id^="sec-"].has-fresh::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 3px;
  height: 24px;
  background: var(--brand-mark-gold);
  border-radius: 0 2px 2px 0;
}
#view-all section[id^="sec-"] {
  position: relative;
}


/* ============================================================
 * NOTIF SHEET — 종 클릭 드롭다운 시트 [Step B3]
 *
 * 마크업:
 *   <button class="notif-bell" id="notif-bell" aria-expanded="false">
 *     <i class="ph ph-bell"></i>
 *   </button>
 *   <div class="notif-sheet" id="notif-sheet" role="region">
 *     <div class="notif-item is-warn">
 *       <div class="notif-item-title">메일 발송 점검 필요</div>
 *       <div class="notif-item-sub">App Password 만료 가능</div>
 *     </div>
 *   </div>
 * ============================================================ */

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--surface-0);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink-600);
  font-size: 16px;
  transition:
    background   var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color        var(--dur-1) var(--ease);
}
.notif-bell:hover { background: var(--surface-2); color: var(--ink-900); }
.notif-bell:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 10, 11, 0.12);
}
.notif-bell::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--warn);
  border: 2px solid var(--surface-0);
  border-radius: 50%;
  display: none;
  animation: notif-pulse 2s var(--ease) infinite;
}
.notif-bell.has-dot::after { display: block; }
.notif-bell.has-dot.is-danger::after { background: var(--danger); }

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* 시트 — 종 아래 드롭다운 */
.notif-sheet-wrap {
  position: relative;
  display: inline-block;
}
.notif-sheet {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--elev-3);
  padding: var(--space-3);
  z-index: 100;
  display: none;
  animation: notif-sheet-in var(--dur-2) var(--ease-out);
}
.notif-sheet.is-open { display: block; }
@keyframes notif-sheet-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-2);
}
.notif-sheet-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}
.notif-sheet-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-600);
}

.notif-item {
  padding: var(--space-3);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--ink-400);
  background: var(--surface-1);
  margin-bottom: var(--space-2);
}
.notif-item:last-child { margin-bottom: 0; }
.notif-item.is-warn   { border-left-color: var(--warn); }
.notif-item.is-danger { border-left-color: var(--danger); }
.notif-item.is-info   { border-left-color: var(--brand); }
.notif-item.is-success{ border-left-color: var(--success); }

.notif-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
}
.notif-item-sub {
  font-size: var(--text-xs);
  color: var(--ink-600);
  margin-top: 2px;
}

.notif-empty {
  padding: var(--space-6) var(--space-3);
  text-align: center;
  color: var(--ink-400);
  font-size: var(--text-sm);
}

/* ── [Step B3] 기존 헤더 5개 배지 숨김 ── */
header .meta .header-badge { display: none !important; }


/* ============================================================
 * OPS BOARD — 운영 뷰 콘텐츠 카드 [Step B3]
 * ============================================================ */

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 720px) {
  .ops-grid { grid-template-columns: 1fr; }
}

.ops-card {
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--elev-1);
  padding: var(--space-5) var(--space-6);
}

.ops-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ink-900);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.ops-card-title .ph { font-size: 20px; color: var(--brand); }

.ops-card-desc {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.ops-status-list { list-style: none; padding: 0; margin: 0; }
.ops-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-sm);
}
.ops-status-item:last-child { border-bottom: 0; }
.ops-status-item-label { color: var(--ink-600); }
.ops-status-item-value { color: var(--ink-900); font-weight: 500; }
.ops-status-item.is-warn .ops-status-item-value { color: var(--warn); }
.ops-status-item.is-danger .ops-status-item-value { color: var(--danger); }
.ops-status-item.is-success .ops-status-item-value { color: var(--success); }


/* ============================================================
 * HALF SHEET — 모바일 하단 60vh 슬라이드업 [Step B4]
 *
 * 데스크탑은 .modal-card 그대로 (560px 중앙). 모바일에서만
 * 하단에서 슬라이드업 + grab handle. 기존 .modal-backdrop
 * 안에 .modal-card.is-half-sheet 클래스만 추가하면 자동.
 * ============================================================ */

@media (max-width: 768px) {
  .modal-backdrop:has(.modal-card.is-half-sheet) {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card.is-half-sheet {
    width: 100%;
    max-width: none;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(46, 38, 22, 0.15);
    transform: translateY(100%);
    opacity: 1;  /* 모바일은 슬라이드만, opacity 변화 없음 */
    transition: transform var(--dur-3) var(--ease-out);
  }
  .modal-backdrop.is-open .modal-card.is-half-sheet {
    transform: translateY(0);
  }
  .modal-backdrop.is-closing .modal-card.is-half-sheet {
    transform: translateY(100%);
    transition: transform var(--dur-2) var(--ease-in);
  }
  /* grab handle */
  .modal-card.is-half-sheet::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: var(--hairline);
    border-radius: 2px;
    margin: 12px auto 4px;
  }
  .modal-card.is-half-sheet .modal-header { padding-top: var(--space-2); }
}


/* ============================================================
 * DROPZONE — 드래그앤드롭 첨부 영역 [Step B4]
 *
 * 마크업:
 *   <div class="dropzone" id="dropzone">
 *     <input type="file" id="i-files" multiple hidden>
 *     <label for="i-files" class="dropzone-prompt">
 *       <i class="ph ph-cloud-arrow-up"></i>
 *       파일을 끌어다 놓거나 클릭해서 선택
 *     </label>
 *     <ul class="dropzone-files" id="dropzone-files"></ul>
 *   </div>
 * ============================================================ */

.dropzone {
  border: 2px dashed var(--hairline);
  border-radius: var(--r-md);
  padding: var(--space-5);
  background: var(--surface-1);
  transition:
    border-color var(--dur-1) var(--ease),
    background   var(--dur-1) var(--ease);
}
.dropzone:hover {
  border-color: var(--ink-400);
  background: var(--surface-2);
}
.dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 4px rgba(10, 10, 11, 0.06);
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  cursor: pointer;
  color: var(--ink-600);
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-3);
}
.dropzone-prompt .ph {
  font-size: 32px;
  color: var(--ink-400);
}
.dropzone-prompt strong {
  color: var(--ink-900);
  font-weight: 600;
  font-size: var(--text-md);
}
.dropzone-prompt em {
  font-style: normal;
  color: var(--ink-400);
  font-size: var(--text-xs);
}

.dropzone-files {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
}
.dropzone-files:empty { margin: 0; }

.dropzone-file {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}
.dropzone-file:last-child { margin-bottom: 0; }

.dropzone-file-icon {
  font-size: 20px;
  color: var(--ink-600);
  flex-shrink: 0;
}
.dropzone-file-icon.is-pdf   { color: #C13B2E; } /* danger 색 — PDF 식별 */
.dropzone-file-icon.is-doc   { color: var(--brand); }
.dropzone-file-icon.is-image { color: var(--success); }
.dropzone-file-icon.is-other { color: var(--ink-400); }

.dropzone-file-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-900);
}
.dropzone-file-size {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-400);
  flex-shrink: 0;
}
.dropzone-file-remove {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-400);
  font-size: 16px;
  padding: var(--space-1);
  border-radius: var(--r-sm);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.dropzone-file-remove:hover {
  color: var(--danger);
  background: var(--surface-2);
}


/* ============================================================
 * GLOBAL MOTION — 한 곡선의 손가락 감각 [Step C1]
 *
 * 토큰: --ease (iOS spring), --ease-out, --ease-in
 *       --dur-1 (120ms hover/focus), --dur-2 (180ms 토스트/페이지),
 *       --dur-3 (240ms 모달/시트),    --dur-4 (360ms 페이지 전환)
 *
 * 금지: bounce/elastic, display:none 직격, 의도없는 transform-origin.
 * ============================================================ */

/* ── 페이지 진입 fade-in (와시츠 호흡) ───────────────── */
body {
  animation: page-enter var(--dur-4) var(--ease-out);
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 카드류 통일 hover ──────────────────────────────── */
.card,
.summary-card,
.ops-card,
.batch-card,
.stat,
.dropzone-file,
.notif-item {
  transition:
    border-color var(--dur-1) var(--ease),
    background   var(--dur-1) var(--ease),
    box-shadow   var(--dur-1) var(--ease);
}

/* ── 테이블 행 hover (대시보드 표) ───────────────────── */
section[id^="sec-"] tbody tr {
  transition: background var(--dur-1) var(--ease);
}

/* ── 링크 부드러운 underline ─────────────────────────── */
a {
  transition: color var(--dur-1) var(--ease);
}

/* ── view-pane 전환 ── (B1에서 이미 정의됨, 여기는 보강) */
.view-pane { animation: view-fade-in var(--dur-3) var(--ease-out); }

/* ── fade-swap (폴링 데이터 교체) ────────────────────── */
.is-swapping {
  opacity: 0;
  transition: opacity 100ms var(--ease-in);
}

/* ── prefer-reduced-motion 보강 ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
 * SKELETON — 로딩 자리표시 (200ms 초과 시) [Step C2]
 *
 * 사용:
 *   <div class="skeleton skeleton-text"></div>
 *   <div class="skeleton skeleton-card"></div>
 *   <div class="skeleton-list">
 *     <div class="skeleton skeleton-row"></div>
 *     <div class="skeleton skeleton-row"></div>
 *   </div>
 * ============================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--surface-1) 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s var(--ease) infinite;
  border-radius: var(--r-sm);
}

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text   { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text:last-child { width: 60%; }
.skeleton-row    { height: 52px; margin-bottom: 6px; }
.skeleton-row:last-child { margin-bottom: 0; }
.skeleton-card   { height: 120px; border-radius: var(--r-md); margin-bottom: 12px; }
.skeleton-count  { display: inline-block; width: 60px; height: 36px; vertical-align: middle; }

.skeleton-list {
  padding: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--surface-2); }
}


/* ============================================================
 * EMPTY STATE — 빈 상태 통일 (따뜻한 한 줄) [Step C2]
 *
 * 사용:
 *   <div class="empty-state">
 *     <h3 class="empty-state-title">오늘은 처리할 건이 없어요</h3>
 *     <p class="empty-state-desc">새 접수가 들어오면 여기에 표시됩니다.</p>
 *     <button class="btn btn-primary btn-md gold-accent">+ 새로 시작하기</button>
 *   </div>
 *
 * 일러스트 없음 — 텍스트만으로 따뜻하게.
 * ============================================================ */

.empty-state {
  padding: var(--space-8) var(--space-5);
  text-align: center;
  background: var(--surface-0);
  border: 1px dashed var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink-400);
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ink-600);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.005em;
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--ink-400);
  margin: 0 0 var(--space-5);
  line-height: 1.6;
}
.empty-state-desc:last-child { margin-bottom: 0; }

.empty-state .btn { margin-top: var(--space-2); }


/* ============================================================
 * COUNT-UP NUMBER — 숫자 부드러운 카운트 변화 [Step C2]
 *
 * 자동 적용 — JS의 Components.countUp() 호출 시 transition 자연스러움.
 * font-variant: tabular-nums 로 자릿수 변경 시 폭 안정.
 * ============================================================ */

.summary-card .count,
.today-count,
.view-tab-count,
.stat .val {
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-1) var(--ease);
}


/* ============================================================
 * MOBILE 480px — 본격 모바일 적응 [Step C3]
 *
 * 폰 portrait (360~480px) 최적화. 데스크탑 밀도 유지하되
 * 모바일에서만 폭/높이/여백 재조정.
 * ============================================================ */

@media (max-width: 480px) {

  /* ── 페이지 좌우 padding 32→16 ───────────────── */
  body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ── Summary grid — 720px 미만 2열을 480px 미만 1열로 강제 ── */
  .summary-grid,
  .summary-grid--primary,
  .summary-grid--secondary {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }
  .summary-card { padding: var(--space-4) var(--space-5) !important; }
  .summary-card .count { font-size: 28px !important; }

  /* ── 헤더 메타 영역 collapse — 신규담당자 텍스트→아이콘만, 검색 placeholder 짧게 ── */
  header .meta-row {
    gap: 6px !important;
  }
  header .btn-new-staff {
    /* "+ 신규 담당자" → "+" 만 모바일에서 */
    font-size: 0;
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  header .btn-new-staff::after {
    content: "＋";
    font-size: 18px;
    font-weight: 600;
  }
  header .meta-updated {
    /* 마지막 갱신 텍스트 모바일에서 숨김 */
    display: none;
  }

  /* ── 글로벌 검색바 sticky + 좁은 placeholder ── */
  .global-search-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 245, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .global-search-bar .gs-input::placeholder {
    /* 모바일에서 짧은 placeholder — 실제 placeholder 텍스트 자체는 페이지가 길게 박았지만
       overflow 처리로 가시 영역에서 잘림 */
  }
  .global-search-bar .gs-stat { display: none; }

  /* ── 테이블 가로 스크롤 + 첫 컬럼 강조 ── */
  section[id^="sec-"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  section[id^="sec-"] table {
    min-width: 700px;
  }
  section[id^="sec-"] h2 {
    position: sticky;
    left: 0;
  }

  /* ── 모달 padding 32→20 ───────────────────── */
  .modal-header { padding: var(--space-4) var(--space-4) 0 !important; }
  .modal-body   { padding: var(--space-4) !important; }
  .modal-footer { padding: var(--space-2) var(--space-4) var(--space-4) !important; }

  /* ── 시트는 이미 is-half-sheet 가 처리. 추가로 max-height 90vh ── */
  .modal-card.is-half-sheet { max-height: 90vh !important; }

  /* ── view tabs 모바일 ── */
  .view-tab { padding: 10px 14px 12px; font-size: var(--text-sm); }

  /* ── ops-grid 1열 ── */
  .ops-grid { grid-template-columns: 1fr !important; gap: var(--space-3); }
  .ops-card { padding: var(--space-4) !important; }

  /* ── today board 모바일 ── */
  .today-board { border-radius: var(--r-md); }
  .today-headline-lead { font-size: 19px !important; }
  .today-headline-lead .today-count { font-size: 28px !important; }

  /* ── notif sheet 모바일 — 좌우 화면폭 채움 ── */
  .notif-sheet {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: var(--r-md) var(--r-md) 0 0;
    margin: 0;
  }
  .notif-sheet.is-open {
    animation: notif-sheet-mobile-in var(--dur-3) var(--ease-out);
  }
  @keyframes notif-sheet-mobile-in {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  /* ── 페이지 타이틀 살짝 축소 (메인 페이지 헤더) ── */
  header h1 { font-size: 24px !important; }
}


/* ============================================================
 * TABLE → CARD VIEW [Step C3] (선택적 적용)
 *
 * 적용 방법: <table class="rwd-table"> 클래스를 단 테이블만
 * 모바일에서 카드 형태로 자동 변환. 각 <td data-label="이름"> 형식.
 * ============================================================ */

@media (max-width: 480px) {
  table.rwd-table thead { display: none; }
  table.rwd-table tr {
    display: block;
    margin-bottom: var(--space-3);
    background: var(--surface-0);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-3);
    box-shadow: var(--elev-1);
  }
  table.rwd-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--hairline);
  }
  table.rwd-table td:last-child { border-bottom: 0; }
  table.rwd-table td::before {
    content: attr(data-label);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--ink-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: var(--space-3);
  }
}


/* ============================================================
 * KBD — 키캡 디자인 (Apple 매뉴얼 톤) [Step C4]
 *
 *   <kbd class="kbd">Ctrl</kbd> + <kbd class="kbd">K</kbd>
 * ============================================================ */

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(46, 38, 22, 0.08);
}


/* ============================================================
 * SHORTCUT LIST — 단축키 도움말 표 [Step

/* ============================================================
 * OCULIS MASTER PATTERN (Phase 1 · v4 2026-05-15)
 *
 * 리셀러 페이지에서 확립된 디자인 패턴을 모든 페이지에 적용 가능하도록
 * 재사용 클래스로 추출. 한 곳만 고치면 전 페이지에 자동 반영.
 *
 * 마크업 패턴:
 *   <body class="mood-warm">          ← 페이지 무드 (선택)
 *     <header class="oculis-header">  ← 리셀러 헤더 패턴
 *       <a class="oculis-logo">...</a>
 *       <div class="page-context">...</div>
 *       <div class="oculis-hdr-actions">...</div>
 *     </header>
 *
 *     <main class="oculis-main">
 *       <div class="oculis-info-bar">...</div>
 *       <div class="oculis-kpi-grid">...</div>
 *       <div class="oculis-filter-bar">...</div>
 *       <div class="oculis-view-toggle">...</div>
 *       <section class="oculis-wrap">...</section>
 *     </main>
 * ============================================================ */

/* ── 페이지 무드 — Maiki · 間気 [MAIKI_MOODS_V1] ─────────
 *
 * 각 페이지는 자신의 기후를 갖는다 (지브리 60-30-10 본질의 핵심).
 * 페이지 워시는 _design_tokens.css 의 --paper-* 토큰 사용.
 *
 * 이전 규칙("페이지 전체 배경은 항상 한지") 명시적 폐기 2026-05-15.
 * 이유: 단일 톤은 청결하지만 폐쇄적. 시간/감정의 미세한 차이를 도입.
 *
 * 사용법:
 *   <body class="mood-dawn">      ← 대시보드·직원홈·새 접수
 *   <body class="mood-library">   ← VDR·내 이력
 *   <body class="mood-twilight">  ← 리셀러·케이스
 *   <body class="mood-mist">      ← 회계
 *   <body class="mood-moonlight"> ← 로그인·초기설정
 *
 * 한 페이지에 한 무드만. 같은 무드 = 같은 페이지 group.
 * 사용자는 무드 라벨을 읽지 않고 색으로 받는다.
 * ─────────────────────────────────────────────── */
body.mood-dawn      { background: var(--paper-dawn); }
body.mood-library   { background: var(--paper-library); }
body.mood-twilight  { background: var(--paper-twilight); }
body.mood-mist      { background: var(--paper-mist); }
body.mood-moonlight { background: var(--paper-moonlight); }

/* 레거시 alias — 기존 코드 호환 (점진 마이그) */
body.mood-warm  { background: var(--paper-dawn); }
body.mood-cool  { background: var(--paper-twilight); }
body.mood-fresh { background: var(--paper-mist); }

/* ── Master Header (리셀러 헤더 패턴) ───────────────────── */
.oculis-header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: #FAFAF7;
  border-bottom: 1px solid #1A1612;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
}
.oculis-header .inner,
.oculis-header > .inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
}
.oculis-hdr-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.oculis-hdr-nav {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  padding-right: var(--space-3);
  margin-right: var(--space-2);
  border-right: 1px solid #C8C4BE;
}

/* ── Master Main 컨테이너 ──────────────────────────────── */
.oculis-main {
  max-width: 1440px;
  margin: 32px auto 96px;
  padding: 0 48px;
}

/* ── Info Bar (상하 1px 잉크) ─────────────────────────── */
.oculis-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 32px;
  background: transparent;
  color: #4A4640;
  border-top: 1px solid #1A1612;
  border-bottom: 1px solid #1A1612;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.oculis-info-bar .info-tag {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  color: #1A1612;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.oculis-info-bar .info-status::after {
  content: "●"; color: #2A4858;
  margin-left: 12px; font-size: 10px;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity:1; } 50% { opacity:0.35; } }

/* ── KPI Grid + Card ──────────────────────────────────── */
.oculis-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid #1A1612;
}
.oculis-kpi {
  background: #FFFFFF;
  border: none;
  border-right: 1px solid #1A1612;
  border-radius: 0;
  padding: 18px 16px;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
  text-align: left;
  font-family: inherit;
}
.oculis-kpi:last-child { border-right: none; }
.oculis-kpi:hover { background: #FAFAF7; }
.oculis-kpi.active { background: #1A1612; }
.oculis-kpi.active .oculis-kpi-label,
.oculis-kpi.active .oculis-kpi-value { color: #FAFAF7; }
.oculis-kpi-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: #4A4640;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.4;
  display: block;
}
.oculis-kpi-value {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 900;
  color: #1A1612;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin-top: 10px;
  letter-spacing: -0.025em;
  display: block;
}

/* 무드별 KPI 호버 색 변주 (지브리 60-30-10) */
body.mood-warm  .oculis-kpi:hover { background: #FAF6E8; }
body.mood-cool  .oculis-kpi:hover { background: #F3F5F7; }
body.mood-fresh .oculis-kpi:hover { background: #F2F4EE; }

/* ── Filter Bar ───────────────────────────────────────── */
.oculis-filter-bar {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid #C8C4BE;
  flex-wrap: wrap;
}
.oculis-filter-bar label {
  font-family: var(--font-body);
  font-size: 10px;
  color: #8A8680;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.oculis-filter-bar select,
.oculis-filter-bar input[type="search"],
.oculis-filter-bar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #C8C4BE;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  background: #FFFFFF;
  color: #1A1612;
  transition: border-color var(--dur-1) var(--ease);
}
.oculis-filter-bar input:focus,
.oculis-filter-bar select:focus {
  outline: none;
  border-color: #1A1612;
}
.oculis-filter-reset {
  border: none !important;
  background: transparent !important;
  color: #4A4640 !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer;
  padding: 6px 0 !important;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
}
.oculis-filter-reset:hover {
  color: #1A1612 !important;
  border-bottom-color: #1A1612 !important;
}
/* [SUMI_P5_V1] 잘림 복구 — 옛 truncation 완성 (oculis-filter-reset) */

/* ============================================================
 * [SUMI_P5_V1] 진입 페이지 마이키 layer (로그인·초기설정·직원홈·직원관리)
 *
 * 페이지 인라인 <style> 의 옛 토스 톤 (빨간 점·uppercase·둥근 모서리) 을 무력화.
 * !important 사용 — 인라인 룰을 cascade 마지막에서 이김.
 *
 * mood 매핑:
 *   로그인     → mood-dawn      (paper-dawn,     일상 진입)
 *   초기설정   → mood-library   (paper-library,  정리·시작)
 *   직원홈     → mood-dawn      (paper-dawn,     일상 활동)
 *   직원관리   → mood-twilight  (paper-twilight, 관리·격조)
 * ============================================================ */

/* 페이지 카드 — 옛 #FFFFFF + border-radius 폐기, 종이 워시 + 직각 */
body[class*="mood-"] .card {
  background: var(--paper-dawn) !important;
  border: 1px solid #1A1612 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.mood-twilight .card { background: var(--paper-twilight) !important; }
body.mood-library  .card { background: var(--paper-library) !important; }
body.mood-mist     .card { background: var(--paper-mist) !important; }

/* .card h2 — 옛 uppercase·0.14em·빨간 점 폐기, 자연 케이스 + 잉크 점 */
body[class*="mood-"] .card h2 {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1A1612 !important;
  border-bottom: 1px solid var(--ink-300, #B0ACA6) !important;
  padding-bottom: 10px !important;
}
body[class*="mood-"] .card h2::before {
  background: var(--ink-700, #4A4640) !important;  /* 빨간 #C73E1D → 잉크 grey */
  width: 8px !important;
  height: 8px !important;
  border-radius: 0 !important;  /* 동그라미 → 정사각 (수미마이키) */
}

/* .error — 둥근 모서리·옅은 surface 배경 폐기, 직각 잉크 톤 */
body[class*="mood-"] .error {
  border-radius: 0 !important;
  background: transparent !important;
  border: 1px solid var(--pigment-red, #C73E1D) !important;
  color: var(--pigment-red, #C73E1D) !important;
  padding: 10px 14px !important;
}

/* .role / .badge — 직각 */
body[class*="mood-"] .role,
body[class*="mood-"] .badge {
  border-radius: 0 !important;
  letter-spacing: 0.02em !important;
}

/* .row.head / .row-grid.head — uppercase 폐기 */
body[class*="mood-"] .row.head,
body[class*="mood-"] .row-grid.head {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--ink-600) !important;
  border-bottom: 1px solid var(--ink-300, #B0ACA6) !important;
}

/* .field-input / .field-select / .field-textarea — 직각 잉크 보더 강제 */
body[class*="mood-"] .field-input,
body[class*="mood-"] .field-select,
body[class*="mood-"] .field-textarea {
  border-radius: 0 !important;
  border: 1px solid #1A1612 !important;
  background: var(--paper-dawn) !important;
  font-family: var(--font-body) !important;
}
body.mood-twilight .field-input,
body.mood-twilight .field-select,
body.mood-twilight .field-textarea { background: var(--paper-twilight) !important; }
body.mood-library  .field-input,
body.mood-library  .field-select,
body.mood-library  .field-textarea { background: var(--paper-library) !important; }
body[class*="mood-"] .field-input:focus,
body[class*="mood-"] .field-select:focus,
body[class*="mood-"] .field-textarea:focus {
  outline: 2px solid #1A1612 !important;
  outline-offset: 0 !important;
  border-color: #1A1612 !important;
}

/* .btn-primary — 직각 잉크 (gold-accent 는 보더 골드 어센트만) */
body[class*="mood-"] .btn,
body[class*="mood-"] .btn-primary,
body[class*="mood-"] .btn-secondary {
  border-radius: 0 !important;
  letter-spacing: 0.01em !important;
}
body[class*="mood-"] .btn-primary {
  background: #1A1612 !important;
  color: var(--paper-dawn) !important;
  border: 1px solid #1A1612 !important;
  font-weight: 500 !important;
}
body[class*="mood-"] .btn-primary:hover {
  background: var(--paper-dawn) !important;
  color: #1A1612 !important;
  border-color: #1A1612 !important;
}
body[class*="mood-"] .btn-secondary {
  background: transparent !important;
  color: #1A1612 !important;
  border: 1px solid #1A1612 !important;
}
body[class*="mood-"] .btn-secondary:hover {
  background: #1A1612 !important;
  color: var(--paper-dawn) !important;
}

/* page-header 페이지 헤더 — 종이 워시 + 잉크 보더 (접수앱 header.top 과 동일 톤) */
body[class*="mood-"] header.page-header {
  background: transparent !important;
  border-bottom: 1px solid #1A1612 !important;
  padding: 22px 0 18px !important;
  margin-bottom: 32px !important;
}
body[class*="mood-"] header.page-header a {
  color: #1A1612 !important;
  text-decoration: none !important;
}
body[class*="mood-"] header.page-header a:hover {
  text-decoration: underline !important;
}
body[class*="mood-"] .page-title {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1A1612 !important;
}

/* 로그인·초기설정 페이지 카드 — 페이지 중앙 종이 카드, max-width 고정 */
body[class*="mood-"] .brand .oculis-mark,
body[class*="mood-"] .brand .oculis-meta {
  /* 그대로 — oculis-logo 정의가 이미 마이키 */
}

/* 모달 backdrop / card — 직각 + 잉크 */
body[class*="mood-"] .modal-backdrop {
  background: rgba(10, 10, 11, 0.4) !important;
}
body[class*="mood-"] .modal-card {
  border-radius: 0 !important;
  border: 1px solid #1A1612 !important;
  box-shadow: none !important;
  background: var(--paper-dawn) !important;
}

/* dropzone — 직각 */
body[class*="mood-"] .dropzone {
  border-radius: 0 !important;
  border: 1px dashed var(--ink-400, #8A8680) !important;
  background: transparent !important;
}
body[class*="mood-"] .dropzone.is-dragover {
  border-color: #1A1612 !important;
  background: var(--ink-100, #E8E4DE) !important;
}

/* ================================================================
 * [SUMI_MAIKI_62_EMPTY] Sumi Empty State — 단일 출처
 * --------------------------------------------------------------
 * 한 획의 먹. 빈 상태는 거대 도형이 아니라 진짜 마(間).
 * 출처: _templates/리셀러_현황.html 인라인 정의 (Step Sumi 2026-05-15) 추출.
 * 사용처: 모든 페이지의 데이터 0건 / 필터 0건 상태.
 *
 * 마크업 패턴:
 *   <div class="sumi-empty" role="status" aria-live="polite">
 *     <span class="sumi-mark" aria-hidden="true"></span>
 *     <div class="sumi-count"><span>0</span><span class="sumi-count-unit">건</span></div>
 *     <p class="sumi-message">한 줄 안내</p>
 *     <button type="button" class="sumi-action">행동</button>
 *     <span class="sumi-meta">SYSTEM OK · 0 ITEMS</span>
 *   </div>
 *
 *   필터 컨텍스트: <div class="sumi-empty is-filter"> + <span class="sumi-mark is-yellow">
 * ================================================================ */
.sumi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 128px 64px 144px;
  min-height: 520px;
  background: #FAFAF7;
  position: relative;
}
.sumi-empty .sumi-mark {
  width: 6px;
  height: 6px;
  background: #C73E1D;
  border-radius: 50%;
  margin-bottom: 32px;
  display: block;
}
.sumi-empty .sumi-mark.is-yellow {
  background: #D4A92C;
}
.sumi-empty .sumi-count {
  font-family: var(--font-body);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: #1A1612;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sumi-empty .sumi-count-unit {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: #4A4640;
  line-height: 1;
}
.sumi-empty .sumi-message {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #4A4640;
  letter-spacing: 0;
  line-height: 1.6;
  margin: 16px 0 0;
  text-align: center;
  max-width: 480px;
}
.sumi-empty .sumi-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 20px;
  background: transparent;
  color: #1A1612;
  border: 1px solid #1A1612;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.sumi-empty .sumi-action:hover {
  background: #1A1612;
  color: #FAFAF7;
}
.sumi-empty .sumi-meta {
  margin-top: 28px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #8A8680;
  text-transform: uppercase;
}
/* [SUMI_MAIKI_62_EMPTY] END */

/* ================================================================
 * [SUMI_MAIKI_64_EMPTY_COMPACT] sumi-empty 작은 카드 변형
 * --------------------------------------------------------------
 * 큰 빈 상태는 페이지 본문급 영역에 적합. 카드 내부 작은 영역(VDR 최근
 * 업로드 등) 에는 비례를 작게. 진사 점·활자·메시지는 그대로, 패딩과
 * 활자 크기만 축소.
 *
 * 마크업: <div class="sumi-empty is-compact"> ... </div>
 * ================================================================ */
.sumi-empty.is-compact {
  padding: 56px 32px 64px;
  min-height: 220px;
}
.sumi-empty.is-compact .sumi-mark {
  margin-bottom: 18px;
}
.sumi-empty.is-compact .sumi-count {
  font-size: 56px;
}
.sumi-empty.is-compact .sumi-count-unit {
  font-size: 14px;
}
.sumi-empty.is-compact .sumi-message {
  font-size: 13px;
  margin-top: 12px;
}
.sumi-empty.is-compact .sumi-meta {
  margin-top: 18px;
}
/* [SUMI_MAIKI_64_EMPTY_COMPACT] END */

/* ═══════════════════════════════════════════════════════════════
   [SUMI_MAIKI_D4C_DASHBOARD 2026-05-22]
   대시보드 sec-* h2 + fold-* summary 마이키화.
   잉크 hairline + warm gray + amber/coral/vermillion 의미 accent.
   ═══════════════════════════════════════════════════════════════ */

#view-all section[id^="sec-"] h2 {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 32px 8px 0 !important;
  margin: 0 0 14px 0 !important;
  border-bottom: 1px solid #C8C4BE !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1A1612 !important;
  letter-spacing: 0 !important;
}

#view-all section[id^="sec-"] h2 .sec-mark,
#view-all .sec-fold-summary .sec-mark,
#view-all .sec-archive-summary .sec-mark {
  display: inline-block !important;
  width: 3px !important;
  height: 14px !important;
  background: #1A1612 !important;
  border-radius: 0 !important;
  margin-right: 2px !important;
  align-self: center !important;
}
#view-all .sec-mark-amber       { background: #B89556 !important; }
#view-all .sec-mark-coral       { background: #A0432F !important; }
#view-all .sec-mark-vermillion  { background: #C73E1D !important; }
#view-all .sec-mark-sage        { background: #5C7C5C !important; }

#view-all section[id^="sec-"] h2 .sec-title,
#view-all .sec-fold-summary .sec-title,
#view-all .sec-archive-summary .sec-title {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1A1612 !important;
  letter-spacing: 0 !important;
}

#view-all section[id^="sec-"] h2 .sec-desc {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #8A857C !important;
  letter-spacing: 0 !important;
  flex: 1 1 200px !important;
  min-width: 0 !important;
  line-height: 1.5 !important;
}

#view-all section[id^="sec-"] h2 .sec-status {
  margin-left: auto !important;
  font-size: 10.5px !important;
  font-weight: 400 !important;
  color: #8A857C !important;
  font-variant-numeric: tabular-nums !important;
  float: none !important;
}
#view-all section[id^="sec-"] h2 .sec-status a {
  color: #1A1612 !important;
  text-decoration: underline !important;
  text-decoration-color: #C8C4BE !important;
  text-underline-offset: 2px !important;
}
#view-all section[id^="sec-"] h2 .sec-status a:hover {
  color: #C73E1D !important;
  text-decoration-color: #C73E1D !important;
}

#view-all section[id^="sec-"] h2 .section-count,
#view-all .sec-fold-summary .section-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #4A4640 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
  margin-left: 4px !important;
}

/* fold-* summary maiki */
#view-all .sec-fold-summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 8px 0 !important;
  margin: 18px 0 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1A1612 !important;
  border-top: 1px solid #C8C4BE !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
#view-all .sec-fold-summary::-webkit-details-marker { display: none !important; }
#view-all .sec-fold-summary .fold-hint {
  margin-left: auto !important;
  font-size: 10.5px !important;
  color: #8A857C !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
#view-all details.section-fold[open] > .sec-fold-summary {
  border-bottom: 1px dashed #C8C4BE !important;
  margin-bottom: 14px !important;
}

/* sec-intake-archive summary maiki */
#view-all .sec-archive-summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 8px 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #4A4640 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
#view-all .sec-archive-summary::-webkit-details-marker { display: none !important; }
#view-all .sec-archive-summary .caret {
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 5px solid #4A4640 !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  transition: transform 160ms ease !important;
}
#view-all #sec-intake-archive[open] > .sec-archive-summary .caret {
  transform: rotate(90deg) !important;
}

/* sec-* table — 잉크 hairline */
#view-all section[id^="sec-"] table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: transparent !important;
  font-size: 12.5px !important;
  border-top: 1px solid #1A1612 !important;
  border-bottom: 1px solid #1A1612 !important;
  margin: 0 0 6px !important;
}
#view-all section[id^="sec-"] thead th {
  padding: 8px 10px !important;
  font-size: 9.5px !important;
  font-weight: 500 !important;
  color: #4A4640 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-align: left !important;
  border-bottom: 1px solid #C8C4BE !important;
  background: transparent !important;
}
#view-all section[id^="sec-"] tbody td {
  padding: 8px 10px !important;
  border-bottom: 1px solid #EEEBE5 !important;
  vertical-align: middle !important;
  color: #1A1612 !important;
  background: transparent !important;
}
#view-all section[id^="sec-"] tbody tr:last-child td {
  border-bottom: none !important;
}
#view-all section[id^="sec-"] tbody tr:hover td {
  background: #F4F2EE !important;
}

/* empty-state maiki */
#view-all section[id^="sec-"] .empty-state {
  padding: 24px 12px !important;
  text-align: center !important;
  color: #8A857C !important;
  font-size: 11.5px !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px dashed #C8C4BE !important;
  border-bottom: 1px dashed #C8C4BE !important;
  margin: 0 !important;
}

/* sec-intake-archive details box → hairline */
#view-all #sec-intake-archive {
  margin-top: 18px !important;
  padding: 12px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
}

/* h2 ::after chevron — sumi tone */
#view-all section[id^="sec-"] h2::after {
  border-color: #4A4640 !important;
}

/* [SUMI_MAIKI_D4C_DASHBOARD] END */

/* ═══════════════════════════════════════════════════════════════
   [SUMI_MAIKI_D4D_D3_DASHBOARD 2026-05-22]
   D3 모델 (의뢰종류) 대시보드 sec-streams 배지
   ═══════════════════════════════════════════════════════════════ */

#view-all .stream-req-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 7px !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.6 !important;
  margin-left: 4px !important;
  border: 1px solid !important;
  font-family: var(--font-body) !important;
}
#view-all .stream-req-pill.req-revise {
  background: transparent !important;
  color: #A0432F !important;
  border-color: #A0432F !important;
}
#view-all .stream-req-pill.req-reply {
  background: transparent !important;
  color: #854F0B !important;
  border-color: #B89556 !important;
}

/* [SUMI_MAIKI_D4D_D3_DASHBOARD] END */

/* ==================================================================
   [SUMI_MAIKI_D5B_DASHBOARD_UNIFY 2026-05-23] 대시보드 통합 wrapper
   sec-cases-wrapper (4 sec 통합) + sec-queue-wrapper (3 sec 통합)
   디자인: 잉크 hairline 1px, 직각 0, 박스 background X — 수미마이키 정렬.
   ================================================================== */
#view-all .cases-wrapper {
  background: transparent !important;
  border: 1px solid #1A1612 !important;
  border-radius: 0 !important;
  padding: 18px 22px !important;
  margin: 24px 0 !important;
  box-shadow: none !important;
}
#view-all .cases-wrapper > h2 {
  margin: 0 0 14px 0 !important;
  padding: 0 0 12px 0 !important;
  border-bottom: 1px solid #1A1612 !important;
}
/* 안쪽 sec-* 의 박스 제거 — wrapper 가 외곽 hairline 담당 */
#view-all .cases-wrapper > section[id^="sec-"],
#view-all .cases-wrapper > div[id^="sec-"] {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px dashed #C8C4BE !important;
  border-radius: 0 !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
#view-all .cases-wrapper > section[id^="sec-"]:first-of-type,
#view-all .cases-wrapper > div[id^="sec-"]:first-of-type {
  border-top: 0 !important;
  padding-top: 8px !important;
}
/* 타입 필터 탭 */
#view-all .case-type-tabs {
  display: flex;
  gap: 0;
  margin: 8px 0 16px 0;
  border-top: 1px solid #1A1612;
  border-bottom: 1px solid #1A1612;
}
#view-all .case-tab {
  flex: 1;
  background: transparent;
  border: 0;
  border-right: 1px solid #C8C4BE;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A4640;
  cursor: pointer;
  transition: none;
}
#view-all .case-tab:last-child { border-right: 0; }
#view-all .case-tab:hover {
  background: #F4F2EE !important;
  color: #1A1612 !important;
}
#view-all .case-tab.is-active {
  background: #1A1612 !important;
  color: #FAFAF7 !important;
  font-weight: 500;
}
/* 정리 큐 wrapper (접힘 details) */
#view-all .queue-wrapper {
  background: transparent !important;
  border: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
  margin: 24px 0 !important;
  box-shadow: none !important;
}
#view-all .queue-wrapper > summary.queue-summary {
  padding: 14px 20px !important;
  list-style: none !important;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: transparent !important;
  border: 0 !important;
}
#view-all .queue-wrapper > summary.queue-summary::-webkit-details-marker { display: none; }
#view-all .queue-wrapper > summary.queue-summary::before {
  content: "▸";
  color: #8A857C;
  font-size: 12px;
  margin-right: 4px;
}
#view-all .queue-wrapper[open] > summary.queue-summary::before { content: "▾"; }
#view-all .queue-wrapper > summary.queue-summary:hover {
  background: #F4F2EE !important;
}
#view-all .queue-wrapper > section[id^="sec-"],
#view-all .queue-wrapper > div[id^="sec-"] {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px dashed #C8C4BE !important;
  border-radius: 0 !important;
  padding: 16px 22px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
/* 안쪽 sec h2 sub-header 톤 (영역 h2 와 구분) */
#view-all .cases-wrapper > section[id^="sec-"] > h2,
#view-all .cases-wrapper > div[id^="sec-"] > h2,
#view-all .queue-wrapper > section[id^="sec-"] > h2,
#view-all .queue-wrapper > div[id^="sec-"] > h2 {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #4A4640 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ==================================================================
   [SUMI_MAIKI_D5C_STATUS_BOARD 2026-05-23] 상단 상태판 + 액션 + 통계
   수미마이키 매트릭스 패턴 (gap:0 보더 공유) + 잉크 한 색 hairline.
   ================================================================== */

/* 상단 영역 라벨 공통 */
#view-all .status-board-label,
#view-all .action-worklist-label,
#view-all .week-stats-label {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  margin-bottom: 10px !important;
}

/* 상태판 매트릭스 */
#view-all .status-board {
  margin: 28px 0 24px 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
#view-all .status-matrix {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #1A1612 !important;
  background: #FAFAF7 !important;
}
#view-all .status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 18px !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid #1A1612 !important;
  border-radius: 0 !important;
  text-align: left !important;
  cursor: pointer;
  transition: none !important;
  font-family: inherit;
  color: #1A1612 !important;
}
#view-all .status-cell:last-child { border-right: 0 !important; }
#view-all .status-cell:hover {
  background: #F4F2EE !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  border-color: #1A1612 !important;
}
#view-all .status-cell-label {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #4A4640 !important;
  font-weight: 400 !important;
}
#view-all .status-cell-count {
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #1A1612 !important;
  font-variant-numeric: tabular-nums;
}
#view-all .status-cell.has-urgent .status-cell-count { color: #C73E1D !important; }
#view-all .status-cell.is-empty .status-cell-count { color: #8A857C !important; }
#view-all .status-cell-sub {
  font-size: 10px !important;
  color: #8A857C !important;
}
#view-all .status-cell.has-urgent { background: #FAF6EE !important; }
#view-all .status-cell.is-empty .status-cell-label,
#view-all .status-cell.is-empty .status-cell-sub { color: #8A857C !important; }

/* 액션 워크리스트 */
#view-all .action-worklist-section {
  margin: 24px 0 !important;
}
#view-all .action-worklist {
  border: 1px solid #1A1612 !important;
  background: #FAFAF7 !important;
}
#view-all .action-row {
  display: grid !important;
  grid-template-columns: 80px 1fr 100px 80px !important;
  align-items: center;
  gap: 0;
  padding: 12px 18px !important;
  border-bottom: 1px solid #EEEEEC !important;
  cursor: pointer;
  font-size: 13px;
  color: #1A1612;
}
#view-all .action-row:last-child { border-bottom: 0 !important; }
#view-all .action-row:hover { background: #F4F2EE !important; }
#view-all .action-tag {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
}
#view-all .action-tag.urgent { color: #C73E1D !important; }
#view-all .action-tag.today { color: #B89556 !important; }
#view-all .action-tag.new { color: #5C7C5C !important; }
#view-all .action-tag.queue { color: #8A857C !important; }
#view-all .action-meta {
  font-size: 10px !important;
  color: #8A857C !important;
}
#view-all .action-area {
  font-size: 10px !important;
  color: #8A857C !important;
  text-align: right;
}
#view-all .action-empty {
  padding: 18px !important;
  text-align: center;
  font-size: 12px;
  color: #8A857C;
}

/* 이번주 통계 (상단) */
#view-all .week-stats-top {
  margin: 24px 0 32px 0 !important;
}
#view-all .week-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #C8C4BE !important;
  background: #FAFAF7 !important;
}
#view-all .week-stat {
  padding: 14px 18px !important;
  border-right: 1px solid #C8C4BE !important;
}
#view-all .week-stat:last-child { border-right: 0 !important; }
#view-all .week-stat-label {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  margin-bottom: 4px !important;
}
#view-all .week-stat-value {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #1A1612 !important;
  font-variant-numeric: tabular-nums;
}

/* 데이터 영역 details wrapper */
#view-all .data-fold {
  background: transparent !important;
  border: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
  margin: 12px 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#view-all .data-fold > .data-fold-summary {
  list-style: none !important;
  cursor: pointer;
  padding: 14px 20px !important;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: transparent !important;
  border: 0 !important;
  font-size: 13px;
  color: #1A1612;
}
#view-all .data-fold > .data-fold-summary::-webkit-details-marker { display: none; }
#view-all .data-fold > .data-fold-summary::before {
  content: "▸";
  color: #8A857C;
  font-size: 12px;
}
#view-all .data-fold[open] > .data-fold-summary::before { content: "▾"; }
#view-all .data-fold > .data-fold-summary:hover { background: #F4F2EE !important; }
#view-all .data-fold > .data-fold-summary .sec-title {
  font-weight: 500;
}
#view-all .data-fold > .data-fold-summary .data-fold-sub,
#view-all .data-fold > .data-fold-summary .data-fold-status {
  font-size: 10px !important;
  color: #8A857C !important;
  margin-left: auto;
  letter-spacing: 0.08em;
}
#view-all .data-fold[open] {
  background: #FAFAF7 !important;
}
/* details 안의 sec 자체 박스 제거 (wrapper 가 외곽 hairline 담당) */
#view-all .data-fold[open] > section[id^="sec-"] {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
/* sec-intake-fold 가 sec-intake + sec-intake-archive 둘 모두 포함 */
#view-all #sec-intake-fold[open] > details {
  margin: 12px 20px 16px 20px !important;
}

/* ==================================================================
   [SUMI_MAIKI_D5D_FOLD_MATRIX 2026-05-23] 6 영역 details 단일 매트릭스
   .data-fold (sec-intake/dropzone/cases) + .section-fold (projects/ledger)
   + .queue-wrapper 를 한 매트릭스로 통합 — gap:0, 잉크 hairline 공유.
   ================================================================== */

/* === 1) wrapper: 매트릭스 외곽 + 인접 hairline 공유 === */
html body #view-all .data-fold,
html body #view-all details.section-fold,
html body #view-all details.queue-wrapper {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #1A1612 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
/* 첫 번째 영역 위에 추가 hairline X — border-top 이 이미 담당 */
/* 마지막 영역 아래 hairline 닫기 — last-of-type 으로 잡기 어려우니 ID 명시 */
html body #view-all #sec-queue-wrapper {
  border-bottom: 1px solid #1A1612 !important;
}

/* === 2) summary 정렬 통일 — caret + title + 우측 부속 === */
html body #view-all .data-fold > summary,
html body #view-all details.section-fold > summary,
html body #view-all details.queue-wrapper > summary {
  list-style: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 12px !important;
  padding: 16px 22px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 13px !important;
  color: #1A1612 !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
html body #view-all .data-fold > summary::-webkit-details-marker,
html body #view-all details.section-fold > summary::-webkit-details-marker,
html body #view-all details.queue-wrapper > summary::-webkit-details-marker {
  display: none !important;
}
/* caret (영역 indicator) */
html body #view-all .data-fold > summary::before,
html body #view-all details.section-fold > summary::before,
html body #view-all details.queue-wrapper > summary::before {
  content: "▸" !important;
  color: #8A857C !important;
  font-size: 11px !important;
  line-height: 1 !important;
  width: 12px;
  display: inline-block;
}
html body #view-all .data-fold[open] > summary::before,
html body #view-all details.section-fold[open] > summary::before,
html body #view-all details.queue-wrapper[open] > summary::before {
  content: "▾" !important;
  color: #1A1612 !important;
}
/* sec-mark dot 영역 summary 에서 제거 (caret 이 indicator 역할) */
html body #view-all .data-fold > summary .sec-mark,
html body #view-all details.section-fold > summary .sec-mark,
html body #view-all details.queue-wrapper > summary .sec-mark {
  display: none !important;
}
/* sec-title — 메인 라벨 */
html body #view-all .data-fold > summary .sec-title,
html body #view-all details.section-fold > summary .sec-title,
html body #view-all details.queue-wrapper > summary .sec-title {
  font-weight: 500 !important;
  color: #1A1612 !important;
  letter-spacing: 0 !important;
}
/* 우측 부속 (fold-hint / data-fold-sub / data-fold-status) */
html body #view-all .data-fold > summary .data-fold-sub,
html body #view-all .data-fold > summary .data-fold-status,
html body #view-all details.section-fold > summary .fold-hint,
html body #view-all details.queue-wrapper > summary .fold-hint {
  font-size: 10px !important;
  color: #8A857C !important;
  margin-left: auto !important;
  letter-spacing: 0.08em !important;
  font-weight: 400 !important;
}
/* hover (SUMI_HOVER_QUIET — 잉크 보더, 옅은 배경) */
html body #view-all .data-fold > summary:hover,
html body #view-all details.section-fold > summary:hover,
html body #view-all details.queue-wrapper > summary:hover {
  background: #F4F2EE !important;
  color: #1A1612 !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* === 3) 열린 상태 본문 배경 + 내부 sec 박스 제거 === */
html body #view-all .data-fold[open],
html body #view-all details.section-fold[open],
html body #view-all details.queue-wrapper[open] {
  background: #FAFAF7 !important;
}
/* 내부 section 의 박스/보더 제거 — wrapper 가 외곽 담당 */
html body #view-all .data-fold[open] > section[id^="sec-"],
html body #view-all details.section-fold[open] > section[id^="sec-"],
html body #view-all details.queue-wrapper[open] > section[id^="sec-"],
html body #view-all .data-fold[open] > div[id^="sec-"],
html body #view-all details.section-fold[open] > div[id^="sec-"],
html body #view-all details.queue-wrapper[open] > div[id^="sec-"] {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px dashed #C8C4BE !important;
  border-radius: 0 !important;
  padding: 16px 22px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
/* 첫 번째 내부 sec 위 dashed 제거 (summary 와 본문 사이는 solid 가 자연) */
html body #view-all .data-fold[open] > section[id^="sec-"]:first-of-type,
html body #view-all details.section-fold[open] > section[id^="sec-"]:first-of-type,
html body #view-all details.queue-wrapper[open] > section[id^="sec-"]:first-of-type {
  border-top: 1px solid #C8C4BE !important;
}
/* 내부 sec h2 작게 (sub-header 톤) */
html body #view-all .data-fold[open] > section[id^="sec-"] > h2,
html body #view-all details.section-fold[open] > section[id^="sec-"] > h2,
html body #view-all details.queue-wrapper[open] > section[id^="sec-"] > h2 {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #4A4640 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}
/* 내부 h2 의 sec-mark 도 작게 또는 제거 */
html body #view-all .data-fold[open] > section[id^="sec-"] > h2 .sec-mark,
html body #view-all details.section-fold[open] > section[id^="sec-"] > h2 .sec-mark,
html body #view-all details.queue-wrapper[open] > section[id^="sec-"] > h2 .sec-mark {
  width: 6px !important;
  height: 6px !important;
}

/* === 4) 상단 영역 (status-board / action / week-stats) 과 매트릭스 사이 호흡 === */
html body #view-all .week-stats-top {
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
}
html body #view-all #sec-intake-fold {
  margin-top: 0 !important;
}

/* === 5) sec-intake-archive (안쪽 details) 시각 정리 === */
html body #view-all #sec-intake-archive {
  background: transparent !important;
  border: 1px dashed #C8C4BE !important;
  border-radius: 0 !important;
  margin: 8px 22px 16px 22px !important;
  padding: 12px 16px !important;
}
html body #view-all #sec-intake-archive > .sec-archive-summary {
  font-size: 12px !important;
  color: #4A4640 !important;
}
html body #view-all #sec-intake-archive > .sec-archive-summary .sec-mark {
  display: none !important;
}

/* ==================================================================
   [SUMI_MAIKI_D5E_LINE_DIET 2026-05-23] 선 noise 감소 — 외곽 박스 보더 제거
   D5-C 의 상단 영역들은 외곽 box border 가 있어 인접 영역과 겹쳐 보임.
   외곽 제거하고 안쪽 hairline 만 유지 — 미니멀 + 직관.
   ================================================================== */

/* === 1) 상단 매트릭스 — 외곽 border 제거, 셀 사이 vertical hairline 만 === */
html body #view-all .status-matrix {
  border: 0 !important;
  background: transparent !important;
}
html body #view-all .status-cell {
  border: 0 !important;
  border-right: 1px solid #C8C4BE !important;
  background: transparent !important;
  padding: 18px 18px !important;
}
html body #view-all .status-cell:last-child {
  border-right: 0 !important;
}
/* 신규 접수 강조 (urgent) 는 vermillion 글자만, 박스 배경 없음 */
html body #view-all .status-cell.has-urgent {
  background: transparent !important;
}
html body #view-all .status-cell.has-urgent .status-cell-count {
  color: #C73E1D !important;
}
html body #view-all .status-cell:hover {
  background: #F4F2EE !important;
  border-color: #C8C4BE !important;
}

/* === 2) 액션 워크리스트 — 외곽 border 제거, 행 사이 hairline 만 === */
html body #view-all .action-worklist {
  border: 0 !important;
  background: transparent !important;
}
html body #view-all .action-row {
  border-bottom: 1px solid #EEEEEC !important;
  padding: 12px 4px !important;
}
html body #view-all .action-row:last-child {
  border-bottom: 0 !important;
}
html body #view-all .action-empty {
  border: 0 !important;
  padding: 16px 4px !important;
  text-align: left !important;
  color: #8A857C !important;
  font-size: 12px;
}

/* === 3) 이번주 통계 — 외곽 border 제거, 셀 사이 vertical hairline 만 === */
html body #view-all .week-stats-grid {
  border: 0 !important;
  background: transparent !important;
}
html body #view-all .week-stat {
  border: 0 !important;
  border-right: 1px solid #EEEEEC !important;
  padding: 12px 18px 12px 0 !important;
}
html body #view-all .week-stat:first-child {
  padding-left: 0 !important;
}
html body #view-all .week-stat:last-child {
  border-right: 0 !important;
}

/* === 4) 영역 라벨 정리 (상태판·지금 액션·이번주) === */
html body #view-all .status-board-label,
html body #view-all .action-worklist-label,
html body #view-all .week-stats-label {
  margin-bottom: 14px !important;
  color: #8A857C !important;
}

/* === 5) 상단 영역들 사이 호흡 (margin) === */
html body #view-all .status-board {
  margin: 24px 0 28px 0 !important;
  padding: 0 !important;
}
html body #view-all .action-worklist-section {
  margin: 0 0 28px 0 !important;
  padding-top: 16px !important;
  border-top: 1px solid #EEEEEC !important;
}
html body #view-all .week-stats-top {
  margin: 0 0 0 0 !important;
  padding: 16px 0 24px 0 !important;
  border-top: 1px solid #EEEEEC !important;
}

/* === 6) 상단 영역과 6 영역 매트릭스 사이 호흡 === */
html body #view-all #sec-intake-fold {
  margin-top: 4px !important;
}

/* === 7) 매트릭스 셀 내부 정렬 미세 조정 === */
html body #view-all .status-cell-label {
  margin-bottom: 10px !important;
}
html body #view-all .status-cell-count {
  margin-bottom: 6px !important;
  line-height: 1 !important;
}
html body #view-all .status-cell-sub {
  font-size: 10px !important;
  color: #8A857C !important;
  line-height: 1.3 !important;
}

/* === 8) action-worklist 컬럼 정렬 미세 조정 === */
html body #view-all .action-row {
  grid-template-columns: 60px 1fr 100px 60px !important;
  gap: 12px !important;
}

/* ==================================================================
   [SUMI_MAIKI_D5F_MINIMAL 2026-05-23] 진짜 미니멀
   보더 거의 제거. 공간 + 라벨 위계로만 영역 구분.
   글자 padding 큼직 — 박스에 안 붙음.
   ================================================================== */

/* === 1) 상단 매트릭스 — 보더 완전 제거, gap 으로만 셀 분리 === */
html body #view-all .status-matrix {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1px !important;
  background: #F0EFEC !important;
  border: 0 !important;
}
html body #view-all .status-cell {
  border: 0 !important;
  background: #FAFAF7 !important;
  padding: 24px 24px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px !important;
  cursor: pointer;
  text-align: left !important;
  font-family: inherit;
  color: #1A1612 !important;
  transition: none !important;
}
html body #view-all .status-cell:hover {
  background: #F4F2EE !important;
}
html body #view-all .status-cell.has-urgent {
  background: #FAFAF7 !important;
}
html body #view-all .status-cell.has-urgent .status-cell-count {
  color: #C73E1D !important;
}
html body #view-all .status-cell.is-empty .status-cell-count {
  color: #8A857C !important;
}
html body #view-all .status-cell-label {
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  font-weight: 400 !important;
  margin: 0 !important;
}
html body #view-all .status-cell-count {
  font-size: 30px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
  margin: 0 !important;
}
html body #view-all .status-cell-sub {
  font-size: 11px !important;
  color: #8A857C !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* === 2) 액션 워크리스트 — 보더 제거, padding 큼직, 호버 시 옅은 배경만 === */
html body #view-all .action-worklist-section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html body #view-all .action-worklist {
  border: 0 !important;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  gap: 2px !important;
}
html body #view-all .action-row {
  display: grid !important;
  grid-template-columns: 60px 1fr 100px 60px !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  font-size: 13px;
  color: #1A1612;
  border-radius: 0 !important;
}
html body #view-all .action-row:hover {
  background: #F4F2EE !important;
}
html body #view-all .action-empty {
  padding: 18px 16px !important;
  text-align: left !important;
  color: #8A857C !important;
  font-size: 12px;
  border: 0 !important;
  background: transparent !important;
}

/* === 3) 이번주 통계 — 보더 제거, gap 으로만 셀 분리, padding 큼직 === */
html body #view-all .week-stats-top {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html body #view-all .week-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1px !important;
  background: #F0EFEC !important;
  border: 0 !important;
}
html body #view-all .week-stat {
  background: #FAFAF7 !important;
  border: 0 !important;
  padding: 18px 22px !important;
}
html body #view-all .week-stat-label {
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  margin-bottom: 8px !important;
}
html body #view-all .week-stat-value {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #1A1612 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
}

/* === 4) 영역 라벨 (상태판 · 지금 액션 · 이번주) — 호흡 + UPPERCASE === */
html body #view-all .status-board-label,
html body #view-all .action-worklist-label,
html body #view-all .week-stats-label {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  margin: 0 0 16px 0 !important;
  font-weight: 400 !important;
}

/* === 5) 상단 영역들 간격 — margin 만, hairline 제거 === */
html body #view-all .status-board {
  margin: 28px 0 40px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body #view-all .action-worklist-section {
  margin: 0 0 40px 0 !important;
}
html body #view-all .week-stats-top {
  margin: 0 0 48px 0 !important;
}

/* === 6) 6 영역 매트릭스 — 잉크 hairline 옅게 (#E5E3DE), summary padding 큼직 === */
html body #view-all .data-fold,
html body #view-all details.section-fold,
html body #view-all details.queue-wrapper {
  border-top: 1px solid #E5E3DE !important;
}
html body #view-all #sec-queue-wrapper {
  border-bottom: 1px solid #E5E3DE !important;
}
html body #view-all .data-fold > summary,
html body #view-all details.section-fold > summary,
html body #view-all details.queue-wrapper > summary {
  padding: 20px 24px !important;
  font-size: 13px !important;
}
html body #view-all .data-fold > summary:hover,
html body #view-all details.section-fold > summary:hover,
html body #view-all details.queue-wrapper > summary:hover {
  background: #F4F2EE !important;
}
html body #view-all .data-fold[open] > summary,
html body #view-all details.section-fold[open] > summary,
html body #view-all details.queue-wrapper[open] > summary {
  border-bottom: 1px solid #E5E3DE !important;
}
html body #view-all .data-fold[open],
html body #view-all details.section-fold[open],
html body #view-all details.queue-wrapper[open] {
  background: transparent !important;
}
/* 열린 본문 padding 큼직 */
html body #view-all .data-fold[open] > section[id^="sec-"],
html body #view-all details.section-fold[open] > section[id^="sec-"],
html body #view-all details.queue-wrapper[open] > section[id^="sec-"],
html body #view-all .data-fold[open] > div[id^="sec-"],
html body #view-all details.section-fold[open] > div[id^="sec-"],
html body #view-all details.queue-wrapper[open] > div[id^="sec-"] {
  padding: 20px 28px !important;
  border-top: 0 !important;
}
html body #view-all .data-fold[open] > section[id^="sec-"] ~ section[id^="sec-"],
html body #view-all details.section-fold[open] > section[id^="sec-"] ~ section[id^="sec-"],
html body #view-all details.queue-wrapper[open] > section[id^="sec-"] ~ section[id^="sec-"],
html body #view-all .data-fold[open] > section[id^="sec-"] ~ div[id^="sec-"],
html body #view-all details.section-fold[open] > section[id^="sec-"] ~ div[id^="sec-"],
html body #view-all details.queue-wrapper[open] > section[id^="sec-"] ~ div[id^="sec-"] {
  border-top: 1px solid #E5E3DE !important;
}

/* === 7) 상단 영역과 6 영역 매트릭스 사이 호흡 === */
html body #view-all #sec-intake-fold {
  margin-top: 0 !important;
}

/* === 8) caret 와 sec-title 간격 더 줘서 호흡 === */
html body #view-all .data-fold > summary,
html body #view-all details.section-fold > summary,
html body #view-all details.queue-wrapper > summary {
  gap: 14px !important;
}

/* ==================================================================
   [SUMI_MAIKI_D5G_INTAKE_MODEL 2026-05-23] 설명 텍스트 제거 — UI 만으로
   ================================================================== */

/* 모든 sec-desc 제거 (영역 라벨만 유지) */
html body #view-all .sec-desc,
html body #view-all .sec-status,
html body #view-all .fold-hint,
html body #view-all .data-fold-sub,
html body #view-all .data-fold-status {
  display: none !important;
}
/* status-cell-sub 도 제거 */
html body #view-all .status-cell-sub {
  display: none !important;
}
/* action-empty 텍스트 짧게 */
html body #view-all .action-empty {
  display: none !important;
}
/* 내부 sec h2 hidden 으로 시각 정리 (summary 가 영역 라벨 담당) */
html body #view-all .data-fold[open] > section[id^="sec-intake"] > h2,
html body #view-all .data-fold[open] > section[id^="sec-dropzone"] > h2 {
  display: none !important;
}
/* 의뢰 처리 보드 안의 h2 는 sub-header 톤 (작게) — 단계별 그룹 라벨 */
html body #view-all #sec-cases-wrapper[open] > section[id^="sec-"] > h2 {
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  font-weight: 400 !important;
  margin: 0 0 14px 0 !important;
}
/* sec-streams (케이스 그룹) 의 stream-summary chip 도 정리 — 잉크/warm gray 로 */
html body #view-all #sec-streams #stream-summary .chip {
  background: transparent !important;
  color: #4A4640 !important;
  border: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  padding: 3px 8px !important;
}
html body #view-all #sec-streams #stream-type-bar .stream-type-btn {
  background: transparent !important;
  color: #4A4640 !important;
  border: 1px solid #C8C4BE !important;
  border-radius: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  padding: 4px 10px !important;
}

/* ==================================================================
   [SUMI_MAIKI_D5H_DROP_GROUPS 2026-05-23] 매트릭스 5칸 → 4칸
   케이스 그룹 셀 제거. status-matrix grid 4칸으로.
   ================================================================== */
html body #view-all .status-matrix {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* ==================================================================
   [SUMI_MAIKI_D6_BLANK_REDESIGN 2026-05-23] 백지 재설계
   메인 = 의뢰 처리 매트릭스 (유형 × 단계). 보조 가로 4분할. legacy hidden.
   ================================================================== */

/* === 영역 라벨 공통 === */
html body #view-all .d6-label {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
  margin: 0 0 14px 0 !important;
}

/* === 1) 의뢰 처리 매트릭스 === */
html body #view-all .d6-matrix-section {
  margin: 28px 0 32px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body #view-all .d6-matrix {
  display: grid !important;
  /* 1열: 유형 라벨 110px, 5단계 column 균등, 합계 80px */
  grid-template-columns: 110px repeat(5, 1fr) 90px !important;
  gap: 1px !important;
  background: #F0EFEC !important;
}
html body #view-all .d6-mx-corner {
  background: #FAFAF7;
}
html body #view-all .d6-mx-head {
  background: #FAFAF7;
  padding: 12px 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A857C;
}
html body #view-all .d6-mx-head.d6-mx-total {
  text-align: right;
  color: #4A4640;
}
html body #view-all .d6-mx-rowhead {
  background: #FAFAF7;
  padding: 14px 12px;
  font-size: 11px;
  color: #4A4640;
  display: flex;
  align-items: center;
}
html body #view-all .d6-mx-cell {
  background: #FAFAF7 !important;
  padding: 14px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  font-family: inherit !important;
  font-size: 18px !important;
  color: #1A1612 !important;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  transition: none !important;
}
html body #view-all .d6-mx-cell:hover {
  background: #F4F2EE !important;
}
html body #view-all .d6-mx-cell .d6-mx-n {
  font-size: 18px;
  line-height: 1;
}
html body #view-all .d6-mx-cell.is-empty .d6-mx-n {
  color: #C8C4BE !important;
}
html body #view-all .d6-mx-cell.is-urgent .d6-mx-n {
  color: #C73E1D !important;
  font-weight: 500;
}
html body #view-all .d6-mx-rowtotal {
  background: #FAFAF7;
  padding: 14px 12px;
  font-size: 18px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
html body #view-all .d6-mx-foothead {
  background: #FAFAF7;
  padding: 14px 12px;
  font-size: 10px;
  color: #4A4640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-top: 1px solid #1A1612;
  display: flex;
  align-items: center;
}
html body #view-all .d6-mx-stagetotal {
  background: #FAFAF7;
  padding: 14px 12px;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid #1A1612;
  display: flex;
  align-items: center;
}
html body #view-all .d6-mx-grandtotal {
  background: #FAFAF7;
  padding: 14px 12px;
  font-size: 22px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid #1A1612;
}

/* === 2) 보조 4분할 === */
html body #view-all .d6-aux-section {
  margin: 0 0 40px 0 !important;
  padding: 0 !important;
}
html body #view-all .d6-aux-grid {
  display: grid !important;
  /* [SUMI_MAIKI_P5A_RESELLER_PAGE 2026-05-24] 5칸 (리셀러 카드 추가) */
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1px !important;
  background: #F0EFEC !important;
}
html body #view-all .d6-aux-card {
  background: #FAFAF7 !important;
  padding: 20px 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  transition: none !important;
}
html body #view-all .d6-aux-card:hover {
  background: #F4F2EE !important;
}
html body #view-all .d6-aux-label {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #8A857C !important;
}
html body #view-all .d6-aux-count {
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #1A1612 !important;
  font-variant-numeric: tabular-nums;
}
html body #view-all .d6-aux-count.is-empty {
  color: #C8C4BE !important;
}
html body #view-all .d6-aux-count.is-urgent {
  color: #C73E1D !important;
}
html body #view-all .d6-aux-sub {
  font-size: 11px !important;
  color: #8A857C !important;
  line-height: 1.4 !important;
}

/* === 3) legacy hidden (D5-C 영역들) === */
html body #view-all #status-board,
html body #view-all #action-worklist-section {
  display: none !important;
}
/* 6 영역 details 들도 기본 hidden — 매트릭스/aux 카드 클릭 시 펼침 (D6-B 후속) */
html body #view-all #sec-intake-fold,
html body #view-all #sec-dropzone-fold,
html body #view-all #sec-cases-wrapper,
html body #view-all #fold-ledger,
html body #view-all #sec-queue-wrapper {
  display: none !important;
}
/* week-stats-top 은 유지 — 하단 통계 */
html body #view-all .week-stats-top {
  margin-top: 24px !important;
  padding-top: 24px !important;
  border-top: 1px solid #E5E3DE !important;
}

/* ==================================================================
   [SUMI_MAIKI_D7_ACCOUNTING_CARD 2026-05-23] 회계 카드 (손익 패턴 C)
   ================================================================== */
html body #view-all .d6-aux-card--pnl .d6-aux-count {
  font-size: 22px !important;
  font-variant-numeric: tabular-nums;
}
html body #view-all .d6-aux-sub--pnl {
  display: flex !important;
  flex-direction: column;
  gap: 4px !important;
  margin-top: 4px !important;
}
html body #view-all .d6-pnl-line {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  color: #4A4640 !important;
  font-variant-numeric: tabular-nums;
}
html body #view-all .d6-pnl-line span:last-child {
  color: #1A1612;
  font-weight: 500;
}
html body #view-all .d6-pnl-line--warn span:last-child {
  color: #C73E1D !important;
}

/* ==================================================================
   [SUMI_MAIKI_D6B_DRAWER 2026-05-23] 매트릭스 셀 클릭 펼침 drawer
   ================================================================== */
html body #view-all .d6-mx-cell.is-selected {
  background: #1A1612 !important;
  color: #FAFAF7 !important;
}
html body #view-all .d6-mx-cell.is-selected .d6-mx-n {
  color: #FAFAF7 !important;
}
html body #view-all .d6-drawer {
  margin-top: 0 !important;
  background: #FAFAF7 !important;
  border: 1px solid #1A1612 !important;
  border-top: 0 !important;
  padding: 0 !important;
}
html body #view-all .d6-drawer[hidden] { display: none !important; }
html body #view-all .d6-drawer-head {
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid #E5E3DE !important;
  background: #FAF6EE !important;
}
html body #view-all .d6-drawer-title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1A1612 !important;
}
html body #view-all .d6-drawer-count {
  font-size: 11px !important;
  color: #8A857C !important;
  letter-spacing: 0.08em !important;
}
html body #view-all .d6-drawer-close {
  margin-left: auto !important;
  background: transparent !important;
  border: 0 !important;
  color: #8A857C !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 0 8px !important;
  line-height: 1 !important;
}
html body #view-all .d6-drawer-close:hover { color: #1A1612 !important; }
html body #view-all .d6-drawer-body {
  padding: 0 !important;
  background: transparent !important;
}
html body #view-all .d6-drawer-row {
  display: grid !important;
  grid-template-columns: 140px 1fr 100px 100px !important;
  gap: 14px !important;
  padding: 12px 22px !important;
  border-bottom: 1px solid #E5E3DE !important;
  font-size: 12px !important;
  color: #1A1612 !important;
  align-items: center;
  cursor: pointer;
}
html body #view-all .d6-drawer-row:last-child { border-bottom: 0 !important; }
html body #view-all .d6-drawer-row:hover { background: #F4F2EE !important; }
html body #view-all .d6-drawer-company {
  color: #4A4640 !important;
  font-size: 11px !important;
}
html body #view-all .d6-drawer-text {
  color: #1A1612 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body #view-all .d6-drawer-meta,
html body #view-all .d6-drawer-case {
  font-size: 10px !important;
  color: #8A857C !important;
  text-align: right;
}
html body #view-all .d6-drawer-case {
  letter-spacing: 0.08em !important;
}
html body #view-all .d6-drawer-empty {
  padding: 22px !important;
  text-align: center !important;
  color: #8A857C !important;
  font-size: 12px !important;
}

/* ==================================================================
   [SUMI_MAIKI_D8B_NEW_INTAKE_MODAL 2026-05-23] + 새 의뢰 진입점 + 모달
   ================================================================== */

/* + 새 의뢰 버튼 — vermillion 강조 (변호사 메인 액션) */
html body #view-all header .meta .btn-new-intake,
html body header .meta .btn-new-intake {
  background: #1A1612 !important;
  color: #FAFAF7 !important;
  border: 1px solid #1A1612 !important;
  border-radius: 0 !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  letter-spacing: 0.04em !important;
  margin-right: 8px !important;
  transition: none !important;
}
html body header .meta .btn-new-intake:hover {
  background: #C73E1D !important;
  border-color: #C73E1D !important;
}

/* 매트릭스 셀 hover 시 우상단 + 표시 */
html body #view-all .d6-mx-cell {
  position: relative !important;
}
html body #view-all .d6-mx-cell::after {
  content: "+";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  color: #C73E1D;
  opacity: 0;
  line-height: 1;
  pointer-events: none;
  transition: none;
}
html body #view-all .d6-mx-cell:hover::after {
  opacity: 1;
}

/* new-intake 모달 폼 행 */
html body #new-intake-modal .ni-row {
  margin-top: 10px;
}
html body #new-intake-modal .ni-row-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
html body #new-intake-modal label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #4A4640;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html body #new-intake-modal input[type=text],
html body #new-intake-modal input[type=email],
html body #new-intake-modal select,
html body #new-intake-modal textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #C8C4BE;
  border-radius: 0;
  font-size: 13px;
  font-family: inherit;
  background: #FAFAF7;
  box-sizing: border-box;
}
html body #new-intake-modal textarea {
  resize: vertical;
  min-height: 80px;
}
html body #new-intake-modal input[type=file] {
  font-size: 12px;
  padding: 6px 0;
}
html body #new-intake-modal .hint {
  font-size: 11px;
  color: #8A857C;
  margin-top: 8px;
  line-height: 1.5;
}
html body #new-intake-modal .hint code {
  background: #F0EFEC;
  padding: 1px 6px;
  font-size: 10px;
}

/* ==================================================================
   [SUMI_MAIKI_P2_6_DRAWER_ROW_CLICK 2026-05-23] drawer 행 클릭 → 의뢰 상세
   ================================================================== */
html body #view-all .d6-drawer-row[data-d6-id] {
  cursor: pointer !important;
}
html body #view-all .d6-drawer-row[data-d6-id]:hover {
  background: #F4F2EE !important;
}
/* 클릭 안 되는 row (리셀러 등) — 시각적 hint */
html body #view-all .d6-drawer-row.is-disabled {
  cursor: default !important;
  opacity: 0.7;
}
html body #view-all .d6-drawer-row.is-disabled:hover {
  background: transparent !important;
}

/* ==================================================================
   [SUMI_MAIKI_P3_6_COMPANY_MINI 2026-05-23] 회계 카드 회사별 미니
   ================================================================== */
html body #view-all .d6-pnl-companies {
  margin-top: 12px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #E5E3DE !important;
  display: flex !important;
  flex-direction: column;
  gap: 4px !important;
}
html body #view-all .d6-pnl-co-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 4px 0 !important;
  font-size: 11px !important;
  color: #4A4640 !important;
  cursor: pointer !important;
  transition: none !important;
}
html body #view-all .d6-pnl-co-row:hover {
  color: #1A1612 !important;
}
html body #view-all .d6-pnl-co-name {
  font-size: 11px;
  color: #4A4640;
}
html body #view-all .d6-pnl-co-row:hover .d6-pnl-co-name {
  color: #C73E1D;
  border-bottom: 1px solid #C73E1D;
}
html body #view-all .d6-pnl-co-stats {
  font-size: 10px;
  color: #8A857C;
  font-variant-numeric: tabular-nums;
}
html body #view-all .d6-pnl-co-stats .unevid {
  color: #C73E1D;
  margin-left: 6px;
}
html body #view-all .d6-pnl-co-empty {
  font-size: 11px;
  color: #C8C4BE;
  padding: 4px 0;
}

/* [SUMI_MAIKI_P5A_RESELLER_PAGE 2026-05-24] 매트릭스 행헤더 클릭 가능 (리셀러 → 페이지) */
html body #view-all .d6-mx-rowhead.d6-mx-rowhead--link {
  cursor: pointer;
  color: #1A1612;
}
html body #view-all .d6-mx-rowhead--link:hover {
  background: #F4F2EE;
}
html body #view-all .d6-mx-rowhead-arrow {
  color: #8A857C;
  font-size: 10px;
  margin-left: 6px;
  letter-spacing: 0;
}
html body #view-all .d6-mx-rowhead--link:hover .d6-mx-rowhead-arrow {
  color: #1A1612;
}

