@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/*
 * 싹싹(Ssak-ssak) 공통 디자인 시스템
 * 토스·에어비앤비 스타일 참고
 * 언제든 backup-before-ux-redesign 태그로 복구 가능
 */

/* ── 1. 색상 토큰 (2026-05-26 modernized — 토스/카뱅 톤) ───────── */
:root {
  /* Primary — 코랄 (브랜드 액센트) */
  --c-pr:    #FF385C;
  --c-pr-d:  #E31C5F;
  --c-pr-l:  #FFF0F3;
  --c-pr-xl: #FFF8F9;
  /* Secondary — Teal (성공/완료) */
  --c-teal:  #00C896;
  --c-teal-d:#00A87A;
  --c-teal-l:#E6FAF5;

  /* Mint — 자연/청결/완료 액센트 (Botanical 영감, 2026-05-27) */
  --c-mint:    #5EEAD4;   /* 메인 민트 */
  --c-mint-d:  #14B8A6;   /* 강조 */
  --c-mint-l:  #D1F4E5;   /* 블롭 배경 */
  --c-mint-xl: #ECFDF5;   /* 옅은 배경 */

  /* Neutral — 토스 색상 톤 (살짝 푸르스름한 짙은 회색 계열) */
  --c-bg:    #F7F8FA;   /* 앱 배경 */
  --c-white: #FFFFFF;
  --c-g100:  #F2F4F6;   /* divider, chip bg */
  --c-g200:  #E5E8EB;   /* border, input border */
  --c-g300:  #D1D6DB;   /* disabled border */
  --c-g400:  #B0B8C1;   /* placeholder, 비활성 */
  --c-g500:  #8B95A1;   /* secondary text — Toss style */
  --c-g700:  #4E5968;   /* body text */
  --c-g900:  #191F28;   /* title text */

  /* Semantic */
  --c-red:   #F04438;
  --c-amber: #F79009;
  --c-blue:  #3B82F6;

  /* ── 2. 간격 & 반경 ─────────────────────────────────────────── */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-full: 9999px;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;

  /* ── 3. Elevation 시스템 (5단계, 강조된 다층 그림자) ───────────
   * Toss·카카오뱅크 스타일 + 입체감 강조
   * 카드 상단 highlight와 함께 쓰면 광원이 위에서 비치는 효과 */
  --sh-xs: 0 1px 2px rgba(20, 30, 50, 0.06), 0 1px 1px rgba(20, 30, 50, 0.04);
  --sh-sm: 0 2px 6px rgba(20, 30, 50, 0.07), 0 6px 12px rgba(20, 30, 50, 0.09), 0 0 0 1px rgba(20, 30, 50, 0.03);
  --sh-md: 0 4px 12px rgba(20, 30, 50, 0.09), 0 12px 24px rgba(20, 30, 50, 0.13), 0 0 0 1px rgba(20, 30, 50, 0.03);
  --sh-lg: 0 8px 20px rgba(20, 30, 50, 0.10), 0 20px 40px rgba(20, 30, 50, 0.17), 0 0 0 1px rgba(20, 30, 50, 0.03);
  --sh-xl: 0 16px 36px rgba(20, 30, 50, 0.14), 0 32px 64px rgba(20, 30, 50, 0.22), 0 0 0 1px rgba(20, 30, 50, 0.03);

  /* 컬러 그림자 — CTA·강조 카드용 (브랜드 색을 자체 발광하는 효과) */
  /* 2026-05-27 A안 톤다운: 코랄/민트 그림자 alpha 30% 축소, 3겹 → 2겹 */
  --sh-pr:   0 3px 10px rgba(255, 56, 92, 0.20), 0 8px 22px rgba(255, 56, 92, 0.12);
  --sh-pr-sm: 0 2px 6px rgba(255, 56, 92, 0.18), 0 4px 10px rgba(255, 56, 92, 0.08);
  --sh-pr-lg: 0 6px 18px rgba(255, 56, 92, 0.28), 0 14px 32px rgba(255, 56, 92, 0.16);
  --sh-teal: 0 3px 10px rgba(0, 200, 150, 0.22), 0 8px 22px rgba(0, 200, 150, 0.12);
  --sh-mint: 0 3px 10px rgba(94, 234, 212, 0.22), 0 8px 22px rgba(20, 184, 166, 0.12);
  --sh-mint-sm: 0 2px 6px rgba(94, 234, 212, 0.18), 0 4px 10px rgba(20, 184, 166, 0.08);

  /* 카드 상단 highlight — inset 1px 흰색으로 광원 시뮬레이션 */
  /* 톤다운: 상단 highlight 미세화 */
  --hl-top:  inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --hl-top-strong: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* 입력 필드 inset (살짝 들어간 느낌) */
  --sh-inset-sm: inset 0 1px 2px rgba(20, 30, 50, 0.04);

  /* ── 3-1. Transition 토큰 (spring easing — Toss 시그니처) ───── */
  --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);   /* 빠르게 도달 후 부드럽게 정착 */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);  /* 일반 ease-out */
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);  /* symmetric */
  --dur-fast:     120ms;
  --dur-normal:   180ms;
  --dur-slow:     280ms;

  /* ── 4. 타이포 (한국 모바일 표준 — 토스/카뱅 트렌드) ────────── */
  --f-xs:    11.5px;   /* meta, label, badge */
  --f-sm:    12.5px;   /* caption, tab, helper */
  --f-md:    14px;     /* body (default) */
  --f-lg:    15px;     /* body-emphasis, button */
  --f-xl:    17px;     /* subtitle, card title */
  --f-2xl:   19px;     /* section title */
  --f-3xl:   22px;     /* page title */
  --f-4xl:   26px;     /* hero (rare) */

  /* font-weight — 800/900 회피, 700이 최상 */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* line-height (한글 가독성) */
  --lh-tight:    1.25;  /* title */
  --lh-normal:   1.5;   /* body */
  --lh-loose:    1.7;   /* description */

  /* letter-spacing (Pretendard 한글 권장) */
  --ls-tight:    -0.025em;  /* title */
  --ls-normal:   -0.015em;  /* body */
  --ls-loose:    0;          /* small caps */
}

/* ── 글로벌 리셋 + base 타이포 ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Noto Sans KR", sans-serif;
  font-size: var(--f-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-normal);
  background: var(--c-bg);
  color: var(--c-g900);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; letter-spacing: var(--ls-normal); }

/* ── 글로벌 접근성 (V1.7 — 2026-06-05) ──────────────────────────── */
/* 1) 키보드 포커스 — 모든 인터랙티브 요소에 명확한 ring */
:where(button, a, input, textarea, select, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--c-pr);
  outline-offset: 2px;
  border-radius: 4px;
}
:where(button, a, input, textarea, select):focus:not(:focus-visible) {
  outline: none;
}
/* 2) 터치 타겟 44×44 (Apple HIG / Material) — 모든 클릭형 버튼 최소 보장 */
:where(button, a[role="button"], .ds-tap, .ds-tap-card, .ds-nav-item,
       .ds-icon-btn, .ds-page-back, [type="button"], [type="submit"]) {
  min-height: 44px;
  min-width: 44px;
}
/* 작은 inline 칩/뱃지는 예외 — 명시 클래스 */
:where(.tile-badge, .ds-chip-sm, .badge-inline) {
  min-height: 0; min-width: 0;
}
/* 3) prefers-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;
  }
}

.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 80px; }

/* ── 카드 (전 페이지 통일 스펙) ─────────────────────────────────── */
.ds-card {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 56, 92, 0.04), transparent 60%),
    var(--c-white);
  border-radius: var(--r-lg);
  box-shadow:
    var(--sh-sm),
    var(--hl-top),
    0 4px 14px rgba(255, 56, 92, 0.05);
  padding: var(--sp-md);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.ds-card + .ds-card { margin-top: 10px; }

/* ── 진입 카드 (탭 메인 액션 — 정밀견적/계약서/완료보고서 통일) ─── */
.ds-entry-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 32px 20px 28px;
  text-align: center;
}
.ds-entry-card + .ds-card { margin-top: 12px; }
.ds-entry-ico {
  font-size: 48px;
  margin-bottom: 14px;
  line-height: 1;
}
.ds-entry-title {
  font-size: var(--f-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--c-g900);
  margin-bottom: 8px;
}
.ds-entry-desc {
  font-size: 13px;
  color: var(--c-g500);
  line-height: 1.7;
  margin-bottom: 24px;
}
.ds-entry-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FF5070 0%, var(--c-pr) 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 50px;
  box-shadow: var(--sh-pr), var(--hl-top-strong);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.ds-entry-btn:active {
  transform: translateY(1px);
  box-shadow: var(--sh-pr-sm), var(--hl-top);
}

/* ── 버튼 시스템 ──────────────────────────────────────────────── */
/* Primary */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--r-md); cursor: pointer;
  font-family: inherit; font-weight: 700;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-normal) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.ds-btn:active { transform: scale(.97); opacity: .85; }
.ds-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.ds-btn-primary {
  background: linear-gradient(180deg, #FF5070 0%, var(--c-pr) 100%);
  color: #fff;
  padding: 14px 20px; font-size: var(--f-lg); width: 100%; border-radius: var(--r-md);
  font-weight: var(--fw-semibold); letter-spacing: var(--ls-normal);
  box-shadow: var(--sh-pr), var(--hl-top-strong);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.ds-btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--sh-pr-sm), var(--hl-top);
}
.ds-btn-secondary {
  background: var(--c-g100); color: var(--c-g700);
  padding: 11px 18px; font-size: var(--f-md);
}
.ds-btn-ghost {
  background: transparent; color: var(--c-pr);
  padding: 9px 16px; font-size: var(--f-md);
  border: 1.5px solid var(--c-pr);
}
.ds-btn-danger {
  background: #FFF0EF; color: var(--c-red);
  padding: 11px 18px; font-size: var(--f-md);
}
.ds-btn-sm { padding: 7px 14px; font-size: var(--f-sm); border-radius: var(--r-sm); }
.ds-btn-icon {
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  background: var(--c-g100); color: var(--c-g700);
  font-size: 18px;
}

/* ── 입력 필드 ────────────────────────────────────────────────── */
.ds-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--c-g200); border-radius: var(--r-md);
  background: var(--c-g100); color: var(--c-g900);
  font-size: var(--f-md); font-family: inherit;
  outline: none;
  box-shadow: var(--sh-inset-sm);
  transition: border-color var(--dur-normal) var(--ease-out), background var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}
.ds-input:focus {
  border-color: var(--c-pr); background: var(--c-white);
  box-shadow: var(--sh-inset-sm), 0 0 0 4px rgba(255, 56, 92, 0.08);
}
.ds-input::placeholder { color: var(--c-g400); }

/* ── 배지 ─────────────────────────────────────────────────────── */
.ds-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: var(--f-xs); font-weight: 700; line-height: 1.4;
}
.ds-badge-green { background: #DCFCE7; color: #16A34A; }
.ds-badge-amber { background: #FEF3C7; color: #D97706; }
.ds-badge-red   { background: #FEE2E2; color: #DC2626; }
.ds-badge-blue  { background: #EFF6FF; color: #2563EB; }
.ds-badge-gray  { background: var(--c-g100); color: var(--c-g500); }
.ds-badge-pr    { background: var(--c-pr-l); color: var(--c-pr-d); }
.ds-badge-teal  { background: var(--c-teal-l); color: var(--c-teal-d); }

/* ── 인터랙티브 칩 (44pt 터치 영역, 50대 사장님 손가락 친화) ── */
/* 표시-only는 .ds-badge, 클릭 가능한 chip은 .ds-chip-interactive */
.ds-chip-interactive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--f-md);
  font-weight: 600;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: var(--r-full);
  background: var(--c-g100);
  color: var(--c-g900);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.ds-chip-interactive:hover { background: var(--c-g200); }
.ds-chip-interactive:active { transform: scale(.97); }
.ds-chip-interactive.is-active {
  background: var(--c-pr-l);
  color: var(--c-pr-d);
  border-color: var(--c-pr);
}

/* ── 스피너 ───────────────────────────────────────────────────── */
.ds-spin {
  width: 22px; height: 22px;
  border: 2.5px solid var(--c-g200);
  border-top-color: var(--c-pr);
  border-radius: 50%;
  animation: ds-spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ── 하단 네비 (전 페이지 통일) ─────────────────────────────────── */
/* ── ds-nav (V1.6 — 발광 제거, D indicator 톤) ────────────────────── */
.ds-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff;
  border-top: 1px solid var(--c-g200);
  display: flex;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 100;
}
.ds-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; font-family: inherit;
  font-size: 10px; font-weight: 600; color: var(--c-g400);
  cursor: pointer; padding: 4px 0;
  position: relative;
  transition: color .15s;
}
.ds-nav-item.on { color: var(--c-pr); font-weight: 800; }
/* D 시안 — 활성 표시: 상단 2px 코랄 indicator bar */
.ds-nav-item.on::before {
  content: '';
  position: absolute;
  top: -10px; left: 30%; right: 30%;
  height: 2px;
  background: var(--c-pr);
  border-radius: 0 0 4px 4px;
}
.ds-nav-ico { font-size: 22px; line-height: 1; }

/* ── 토스트 ───────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: rgba(26,31,54,.92); color: #fff;
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: var(--f-sm); font-weight: 600;
  z-index: 9999; opacity: 0; transition: opacity .25s;
  pointer-events: none; white-space: nowrap;
}

/* ── 페이지 타이틀 (h1 시멘틱) ──────────────────────────────────── */
/* 사용: <h1 class="ds-page-title">동료</h1> + <p class="ds-page-subtitle">Coworkers</p> */
/* 헤더 컨텍스트 스케일 (Airbnb host-card 톤, 너무 크지 않음) */
.ds-page-title {
  font-size: var(--f-3xl);     /* 22px */
  font-weight: var(--fw-bold);
  color: var(--c-g900);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin: 0;
}
.ds-page-subtitle {
  font-size: var(--f-xs);      /* 11px */
  font-weight: 600;
  color: var(--c-pr);          /* Rausch 액센트 */
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}

/* ── 섹션 타이틀 ──────────────────────────────────────────────── */
.ds-section-title {
  font-size: var(--f-sm); font-weight: 700;
  color: var(--c-g400); letter-spacing: .3px;
  margin-bottom: 10px; padding: 0 2px;
}

/* ── 구분선 ───────────────────────────────────────────────────── */
.ds-divider { height: 1px; background: var(--c-g100); margin: 12px 0; }

/* ── 빈 상태 ──────────────────────────────────────────────────── */
.ds-empty { text-align: center; padding: 48px 24px; }
.ds-empty-ico { font-size: 44px; margin-bottom: 12px; }
.ds-empty-title { font-size: var(--f-lg); font-weight: 700; color: var(--c-g700); margin-bottom: 6px; }
.ds-empty-sub { font-size: var(--f-md); color: var(--c-g400); line-height: 1.6; }

/* ── 리스트 아이템 (토스 스타일 row) ─────────────────────────────── */
.ds-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-g100);
  cursor: pointer;
}
.ds-row:last-child { border-bottom: none; }
.ds-row-ico {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.ds-row-body { flex: 1; min-width: 0; }
.ds-row-title { font-size: var(--f-md); font-weight: 700; color: var(--c-g900); }
.ds-row-sub   { font-size: var(--f-sm); color: var(--c-g500); margin-top: 2px; }
.ds-row-right { font-size: var(--f-sm); color: var(--c-g400); flex-shrink: 0; }

/* ── 시트 (바텀시트 공통) ─────────────────────────────────────── */
.ds-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20, 30, 50, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  animation: ds-fade-in var(--dur-normal) var(--ease-out);
}
.ds-overlay.on { display: block; }
@keyframes ds-fade-in { from { opacity: 0; } to { opacity: 1; } }
.ds-sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 56, 92, 0.05), transparent 60%),
    var(--c-white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: 201; max-height: 90vh; display: flex; flex-direction: column;
  box-shadow:
    var(--sh-xl),
    var(--hl-top-strong),
    0 -8px 32px rgba(255, 56, 92, 0.10);
  animation: ds-sheet-up var(--dur-slow) var(--ease-spring);
  overflow: visible;
}
/* 시트 상단 핸들 영역에 코랄 글로우 라인 */
.ds-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-pr) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 56, 92, 0.4);
  opacity: 0.5;
  pointer-events: none;
}
@keyframes ds-sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.ds-sheet-handle {
  width: 36px; height: 4px; background: var(--c-g200);
  border-radius: 2px; margin: 12px auto 4px;
  flex-shrink: 0;
}
.ds-sheet-head {
  padding: 4px 20px 14px;
  border-bottom: 1px solid var(--c-g100);
  display: flex; align-items: center;
}
.ds-sheet-title { font-size: var(--f-lg); font-weight: 700; }
.ds-sheet-close {
  margin-left: auto; background: none; border: none;
  font-size: 24px; color: var(--c-g300); cursor: pointer; line-height: 1;
}
.ds-sheet-body { overflow-y: auto; padding: 16px 20px; flex: 1; }
.ds-sheet-foot {
  padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-g100);
}

/* ════════════════════════════════════════════════════════════════
 * 토스 스타일 확장 (2026-05-02)
 * 컨셉: 효율적이고 사용자가 취급하기 좋은 UI/UX
 * 기존 클래스는 그대로 두고 추가만 — 안전 보장
 * ════════════════════════════════════════════════════════════════ */

/* ── 1. 타이포그래피 위계 (토스 스타일 명확한 hierarchy) ──────────── */
.ds-h1 { font-size: 26px; font-weight: 700; color: var(--c-g900); line-height: 1.3; letter-spacing: -.44px; }
.ds-h2 { font-size: 20px; font-weight: 700; color: var(--c-g900); line-height: 1.35; letter-spacing: -.3px; }
.ds-h3 { font-size: 16px; font-weight: 700; color: var(--c-g900); line-height: 1.4; }
.ds-body { font-size: 14px; font-weight: 500; color: var(--c-g700); line-height: 1.55; }
.ds-cap { font-size: 12px; font-weight: 600; color: var(--c-g500); line-height: 1.45; }
.ds-cap-xs { font-size: 11px; font-weight: 600; color: var(--c-g400); line-height: 1.4; letter-spacing: .2px; }

/* ── 2. 토스 시그니처 — 큰 숫자 + 작은 단위 ──────────────────────── */
.ds-num-display {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-feature-settings: 'tnum' 1; /* tabular numbers — 자릿수 정렬 */
  letter-spacing: var(--ls-tight);
}
.ds-num-display .num {
  font-size: 32px; font-weight: 700;
  color: var(--c-g900); line-height: 1;
}
.ds-num-display .unit {
  font-size: 16px; font-weight: 700;
  color: var(--c-g700); line-height: 1;
  margin-left: 2px;
}
/* 더 큰 / 더 작은 변형 */
.ds-num-display.lg .num  { font-size: 40px; }
.ds-num-display.lg .unit { font-size: 18px; }
.ds-num-display.sm .num  { font-size: 22px; }
.ds-num-display.sm .unit { font-size: 13px; }
/* 컬러 변형 */
.ds-num-display.pr  .num { color: var(--c-pr-d); }
.ds-num-display.red .num { color: var(--c-red); }

/* ── 3. 마이크로 인터랙션 — 모든 인터랙티브 요소 즉각 피드백 ──────── */
.ds-tap {
  transition: transform .12s ease-out, opacity .12s;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ds-tap:active { transform: scale(.97); opacity: .85; }
/* 카드용: 더 작은 스케일 */
.ds-tap-card { transition: transform .12s ease-out, box-shadow .12s; }
.ds-tap-card:active { transform: scale(.99); box-shadow: var(--sh-md); }
/* 부드러운 등장 */
.ds-fade-in { animation: ds-fade-in .35s ease-out both; }
@keyframes ds-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ds-fade-in-1 { animation-delay: .05s; }
.ds-fade-in-2 { animation-delay: .12s; }
.ds-fade-in-3 { animation-delay: .19s; }

/* ── 4. 로딩 스켈레톤 — spinner 대신 콘텐츠 모양 placeholder ──────── */
.ds-skel {
  background: linear-gradient(90deg, var(--c-g100) 0%, var(--c-g200) 50%, var(--c-g100) 100%);
  background-size: 200% 100%;
  animation: ds-skel-shimmer 1.4s infinite;
  border-radius: var(--r-sm);
  display: block;
}
@keyframes ds-skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ds-skel-line  { height: 14px; margin-bottom: 8px; }
.ds-skel-title { height: 22px; width: 60%; margin-bottom: 12px; }
.ds-skel-num   { height: 32px; width: 80px; }
.ds-skel-card  { height: 100px; border-radius: var(--r-lg); }
.ds-skel-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
}
.ds-skel-circle { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.ds-skel-row .ds-skel-body { flex: 1; }
/* 리스트 카드 통째로 스켈레톤 (workforce/market 등 — 260528) */
.ds-skel-list-item {
  background: #fff;
  border: 1.5px solid #F2F4F6;
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.ds-skel-list-item .ds-skel.av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.ds-skel-list-item .ds-skel-body { flex: 1; min-width: 0; }
.ds-skel-list-item .ds-skel-body .ds-skel { display: block; }
.ds-skel-list-item .ds-skel-body .ds-skel + .ds-skel { margin-top: 6px; }

/* ── 5. 통계 카드 (토스 스타일 그라데이션) ─────────────────────────── */
.ds-stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
  color: #fff;
  border-radius: var(--r-xl); padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(255,56,92,.25);
}
.ds-stat-card-label { font-size: 13px; font-weight: 700; opacity: .9; margin-bottom: 8px; }
.ds-stat-card-num { font-size: 36px; font-weight: 700; letter-spacing: var(--ls-tight); line-height: 1.1; }
.ds-stat-card-sub { font-size: 12px; font-weight: 600; opacity: .85; margin-top: 8px; }
.ds-stat-card-deco {
  position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.1); pointer-events: none;
}

/* ── 6. 토스트 변형 (성공/에러/안내) ──────────────────────────────── */
#toast.ds-toast-success { background: var(--c-pr-d); }
#toast.ds-toast-error   { background: var(--c-red); }
#toast.ds-toast-info    { background: var(--c-g900); }

/* ── 7. 작은 라벨 (인텐트/태그) — 컴팩트, 컬러풀 ───────────────────── */
.ds-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; letter-spacing: .1px;
  background: var(--c-g100); color: var(--c-g700);
  white-space: nowrap;
}
.ds-tag-pr    { background: var(--c-pr-l);  color: var(--c-pr-d); }
.ds-tag-blue  { background: #EFF6FF;        color: #2563EB; }
.ds-tag-amber { background: #FEF3C7;        color: #D97706; }
.ds-tag-red   { background: #FEE2E2;        color: #DC2626; }
.ds-tag-purple{ background: #F3E8FF;        color: #7C3AED; }
.ds-tag-pink  { background: #FCE7F3;        color: #DB2777; }

/* ── 8. 리스트 카드 (카드 안의 row 리스트) ────────────────────────── */
.ds-list-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 4px 16px;
  overflow: hidden;
}

/* ── 9. 펄스 표시 (라이브/처리중) ──────────────────────────────────── */
.ds-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-pr); display: inline-block;
  position: relative; vertical-align: middle;
}
.ds-pulse-dot::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--c-pr);
  animation: ds-pulse 1.5s ease-out infinite;
}
@keyframes ds-pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── 9b. 글로벌 토스트 #toast (260528 통일) ──────────────────────── */
/* 페이지마다 6가지 변형으로 흩어져 있던 토스트 — 한 곳에서 관리. */
/* id=toast HTML 엘리먼트가 있으면 자동 적용. 페이지별 #toast 정의는 제거. */
#toast {
  position: fixed;
  bottom: 90px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  letter-spacing: var(--ls-base);
  z-index: 999;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 85vw;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
#toast.show { opacity: 1; }
/* 게스트(견적/예약) 페이지 — 헤더 아래 상단 토스트 */
#toast.ds-toast-top {
  top: 60px; bottom: auto;
}

/* ── 10. 컴팩트 헤더 (토스 미니멀 헤더) ────────────────────────────── */
.ds-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; min-height: 52px;
  background: var(--c-white);
  position: sticky; top: 0; z-index: 50;
}
.ds-hd-back {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 22px; color: var(--c-g700);
  margin-left: -8px;
  transition: background .12s;
}
.ds-hd-back:active { background: var(--c-g100); }
.ds-hd-title { flex: 1; font-size: 17px; font-weight: 700; color: var(--c-g900); }
.ds-hd-action {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 18px; color: var(--c-g700);
  transition: background .12s;
}
.ds-hd-action:active { background: var(--c-g100); }

/* ── 11. CTA 풀바 (하단 고정 액션) ─────────────────────────────────── */
.ds-cta-bar {
  position: sticky; bottom: 76px; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, var(--c-bg) 30%);
  padding: 16px;
  z-index: 90;
}
.ds-cta-btn {
  width: 100%; padding: 16px;
  background: var(--c-pr); color: #fff;
  border: none; border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,56,92,.3);
  transition: transform .12s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
.ds-cta-btn:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(0,200,150,.25); }
.ds-cta-btn:disabled {
  background: var(--c-g200); color: var(--c-g400);
  box-shadow: none; cursor: not-allowed;
}

/* ── 12. 인풋 행 (라벨 + 인풋 그룹) ───────────────────────────────── */
.ds-field {
  margin-bottom: 14px;
}
.ds-field-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--c-g700); margin-bottom: 6px;
}
.ds-field-help {
  font-size: 11.5px; color: var(--c-g400);
  margin-top: 5px;
}
.ds-field-error {
  font-size: 11.5px; color: var(--c-red);
  margin-top: 5px; font-weight: 600;
}

/* ── 13. 진행 인디케이터 (단계 표시) ──────────────────────────────── */
.ds-steps { display: flex; gap: 6px; padding: 12px 0; }
.ds-step-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--c-g200); transition: background .25s;
}
.ds-step-dot.done   { background: var(--c-pr); }
.ds-step-dot.active { background: var(--c-pr); position: relative; }
.ds-step-dot.active::after {
  content: ''; position: absolute; inset: -2px -1px;
  border-radius: 3px; background: var(--c-pr);
  animation: ds-step-pulse 1.5s ease-in-out infinite;
}
@keyframes ds-step-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* ── 14. 분리 헬퍼 ────────────────────────────────────────────────── */
.ds-mt-sm { margin-top: 8px; }
.ds-mt-md { margin-top: 16px; }
.ds-mt-lg { margin-top: 24px; }
.ds-px    { padding-left: 16px; padding-right: 16px; }
.ds-py    { padding-top: 12px; padding-bottom: 12px; }
.ds-flex-row { display: flex; align-items: center; gap: 8px; }
.ds-flex-col { display: flex; flex-direction: column; gap: 8px; }
.ds-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ds-grow { flex: 1; }

/* ══════════════════════════════════════════════════════════════
   15. 공통 앱 헤더 (고정) — .ds-app-header
   ─────────────────────────────────────────────────────────────
   모든 페이지 헤더에 class="... ds-app-header" 추가하면 적용.
   페이지 고유 padding·overflow는 기존 클래스에서 유지.
═══════════════════════════════════════════════════════════════ */
.ds-app-header {
  position: sticky;
  top: 0;
  /* iOS 노치·Dynamic Island 안전 영역 자동 확보 */
  padding-top: max(env(safe-area-inset-top, 0px), 0px);
  z-index: 100;
  /* 스크롤 전: 그림자 없음 */
  box-shadow: none;
  /* padding 변화까지 함께 애니메이션 */
  transition: box-shadow .22s ease, padding .28s ease;
}
/* 스크롤 시 JS가 .scrolled 추가 → 부드러운 그림자 */
.ds-app-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
}

/* ══════════════════════════════════════════════════════════════
   16. 선택 컨트롤 (Selection Controls) — 앱 공통
   ─────────────────────────────────────────────────────────────
   A. 선택 칩     .ds-chip  /  .ds-chip.on
   B. 세그먼트    .ds-seg-wrap > .ds-seg-btn  /  .ds-seg-btn.on
   C. 필터 칩     .ds-filter-chip  /  .ds-filter-chip.on
   D. 체크 항목   .ds-check-item  /  .ds-check-item.on
══════════════════════════════════════════════════════════════ */

/* ── A. 선택 칩 ─────────────────────────────────────────── */
/* 복수 선택 가능한 둥근 칩. on → 코랄 채우기 + 그림자 */
.ds-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--c-g200);
  border-radius: 20px;
  background: #fff;
  color: var(--c-g500);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .1s;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ds-chip:active { transform: scale(.95); }
.ds-chip.on {
  background: var(--c-pr);
  border-color: var(--c-pr);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 56, 92, .28);
}

/* ── B. Segmented Control ───────────────────────────────── */
/* 탭형 단일 선택 (2~5개). on → 흰 카드 + 그림자 부상 */
.ds-seg-wrap {
  display: flex;
  background: var(--c-g100);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.ds-seg-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  color: var(--c-g500);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.ds-seg-btn.on {
  background: #fff;
  color: var(--c-pr);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .10);
}
.ds-seg-btn:not(.on):active { background: rgba(0,0,0,.04); }

/* ── C. 필터 칩 (가로 스크롤용) ────────────────────────── */
/* 지역/카테고리 필터. on → 코랄 채우기 */
.ds-filter-chip {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  padding: 6px 15px;
  font-size: 12.5px; font-weight: 600; font-family: inherit;
  border: 1.5px solid var(--c-g200);
  border-radius: 20px;
  background: #fff;
  color: var(--c-g600);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.ds-filter-chip.on {
  background: var(--c-pr);
  border-color: var(--c-pr);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 56, 92, .25);
}

/* ── D. 체크 항목 버튼 ──────────────────────────────────── */
/* 완료보고서 항목 등. on → 코랄 테두리 + 연핑크 배경 + 그림자 */
.ds-check-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border: 1.5px solid var(--c-g200);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ds-check-item.on {
  background: #FFF0F3;
  border-color: var(--c-pr);
  box-shadow: 0 2px 8px rgba(255, 56, 92, .14);
}
.ds-check-box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--c-g300);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  transition: background .15s, border-color .15s;
}
.ds-check-item.on .ds-check-box {
  background: var(--c-pr);
  border-color: var(--c-pr);
  color: #fff;
}
.ds-check-item.on .ds-check-box::after { content: '✓'; }

/* ════════════════════════════════════════════════════════════════
 * 2026-05-26 추가: 공통 헤더 / 상태 탭 / 스와이프 카드
 * 페이지 인라인 CSS 중복 제거 위함. 기존 클래스는 그대로 둠.
 * ════════════════════════════════════════════════════════════════ */

/* ── 페이지 헤더 (그라데이션 + sticky + 우측 액션 슬롯) ──────────────── */
/* 헤더 입체감 A안 (2026-05-26):
   1) 앰비언트 오브 ::before
   2) 컬러 그림자 (코랄 톤)
   3) 메쉬 라디얼 그라데이션 배경
   4) 하단 라인 글로우 ::after */
/* ── ds-page-header (V1.6 — 발광 제거, Toss 분할 톤) ──────────────── */
.ds-page-header {
  background: #fff;
  border-bottom: 1px solid var(--c-g100);
  padding: 14px var(--sp-md) 12px;
  position: sticky; top: 0; z-index: 50;
}
/* 신규: 8px 회색 분할 갭 — Toss/카카오 톤. 헤더 + .ds-section-gap + 회색 본문 */
.ds-section-gap {
  height: 8px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-g100);
  border-bottom: 1px solid var(--c-g100);
}
/* 신규: 회색 본문 영역 — 카드들이 그 위에 떠 있는 구조 */
.ds-content-area {
  background: var(--c-bg);
  min-height: calc(100vh - 240px);
}

/* ══════════════════════════════════════════════════════════════
 * V1.7.x — Today Forecast (weather hero 패턴)
 * 사장님 하루를 일기예보처럼 시각화. 매출 표시 ✗ (일정/진척만).
 * ══════════════════════════════════════════════════════════════ */

.ds-today-fc {
  margin: 16px var(--sp-md) 0;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(165deg, #DCE9F5 0%, #CFE0F0 55%, #B8D2EA 100%);
  box-shadow: 0 14px 40px rgba(80, 120, 180, 0.16), 0 2px 0 rgba(15, 15, 18, 0.04);
  color: #1B2A3F;
  position: relative;
  cursor: pointer;
}
.ds-today-fc-top {
  padding: 18px 22px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.ds-today-fc-label {
  font-size: 11px; font-weight: 700;
  color: rgba(27, 42, 63, 0.6);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ds-today-fc-date {
  font-size: 11px; color: rgba(27, 42, 63, 0.55);
  font-weight: 600; margin-top: 2px;
}
.ds-today-fc-state {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11px; font-weight: 800;
  color: #B45309;
  display: inline-flex; align-items: center; gap: 5px;
}

/* Hero scene — sun + cloud + sparkles */
.ds-today-fc-scene {
  position: relative; height: 120px; margin-top: 4px;
}
.ds-today-sun {
  position: absolute; left: 22px; top: 24px;
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF7CE 0%, #FFD66B 60%, #FFA437 100%);
  box-shadow: 0 0 0 7px rgba(255, 210, 90, 0.22), 0 0 30px rgba(255, 160, 40, 0.22);
  animation: ds-sun-bob 5s ease-in-out infinite;
}
.ds-today-sun .ray {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 2.5px;
  background: rgba(255, 210, 80, 0.55);
  transform-origin: 0 50%; border-radius: 3px;
}
@keyframes ds-sun-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.ds-today-cloud {
  position: absolute; right: 18px; top: 38px;
  width: 115px; height: 48px;
  filter: drop-shadow(0 4px 6px rgba(80, 100, 140, 0.15));
  animation: ds-cloud-drift 7s ease-in-out infinite;
}
@keyframes ds-cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}
.ds-today-sparkles {
  position: absolute; inset: 0; pointer-events: none;
}
.ds-today-sparkle {
  position: absolute; color: #FFD66B;
  font-size: 16px; font-weight: 900;
  animation: ds-sparkle-pop 3s ease-in-out infinite;
  opacity: 0.85;
}
.ds-today-sparkle.s1 { left: 42%; top: 12px; }
.ds-today-sparkle.s2 { left: 55%; top: 36px; font-size: 11px; animation-delay: 0.7s; }
.ds-today-sparkle.s3 { left: 68%; top: 74px; font-size: 13px; animation-delay: 1.4s; }
.ds-today-sparkle.s4 { left: 30%; top: 82px; font-size: 10px; animation-delay: 2.1s; }
@keyframes ds-sparkle-pop {
  0%, 100% { transform: scale(0.6); opacity: 0; }
  40% { transform: scale(1.0); opacity: 1; }
  70% { transform: scale(0.8); opacity: 0.6; }
}

/* Big number — 오늘 일정 수 (매출 ✗) */
.ds-today-fc-amount {
  padding: 4px 22px 2px;
  display: flex; align-items: baseline; gap: 5px;
  color: #1B2A3F;
}
.ds-today-fc-num {
  font-size: 64px; font-weight: 900;
  letter-spacing: -0.05em; line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.ds-today-fc-unit {
  font-size: 22px; font-weight: 700;
  opacity: 0.65; margin-left: 4px;
}
.ds-today-fc-sub {
  padding: 0 22px 8px;
  font-size: 12px; color: rgba(27, 42, 63, 0.7);
  font-weight: 600;
}
.ds-today-fc-sub b { color: #047857; font-weight: 800; }

/* Footer cells — 진척/시간 (매출 ✗) */
.ds-today-fc-foot {
  margin: 10px 20px 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; justify-content: space-between; gap: 6px;
}
.ds-today-fc-cell { text-align: left; min-width: 0; }
.ds-today-fc-cell-lbl {
  font-size: 10px; color: rgba(27, 42, 63, 0.55);
  font-weight: 600; margin-bottom: 2px;
}
.ds-today-fc-cell-val {
  font-size: 13px; font-weight: 800; color: #1B2A3F;
  font-variant-numeric: tabular-nums;
}
.ds-today-fc-cell-val.up { color: #047857; }

/* ── Timeline (시간별 일정 가로 스크롤) ─────────────────────── */
.ds-timeline {
  margin: 14px 0 0;
  padding: 12px 0 12px var(--sp-md);
  overflow-x: auto; display: flex; gap: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ds-timeline::-webkit-scrollbar { display: none; }
.ds-tl-item {
  flex-shrink: 0; width: 108px;
  background: var(--c-white, #fff);
  border-radius: 16px;
  padding: 13px 12px;
  box-shadow: 0 4px 14px rgba(15, 15, 18, 0.05);
  text-align: left; position: relative;
  cursor: pointer;
}
.ds-tl-item.now {
  background: #047857; color: #fff;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.28);
}
.ds-tl-time {
  font-size: 11px; font-weight: 700; opacity: 0.7;
}
.ds-tl-item.now .ds-tl-time { opacity: 0.9; }
.ds-tl-state { font-size: 18px; margin: 5px 0 3px; }
.ds-tl-customer {
  font-size: 12px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.2;
}
.ds-tl-job {
  font-size: 10px; opacity: 0.7; margin-top: 2px;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-tl-item.now .ds-tl-job { opacity: 0.85; }
.ds-tl-dot {
  position: absolute; top: 9px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%;
}
.ds-tl-dot.done { background: #047857; }
.ds-tl-dot.pending { background: #F59E0B; }
.ds-tl-dot.open { background: var(--c-g500); opacity: 0.4; }
.ds-tl-item.now .ds-tl-dot.pending { background: #FCD34D; }
.ds-tl-empty {
  flex-shrink: 0; padding: 13px 18px;
  font-size: 12px; color: var(--c-g500);
  background: var(--c-white, #fff); border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 15, 18, 0.05);
}

/* ── Weekly forecast (요일별 일정 건수 — 매출 ✗) ───────────── */
.ds-week-fc {
  margin: 14px var(--sp-md) 0;
  background: var(--c-white, #fff);
  border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: 0 6px 16px rgba(15, 15, 18, 0.05);
}
.ds-week-fc-title {
  font-size: 11px; font-weight: 700; color: var(--c-g500);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; justify-content: space-between;
}
.ds-week-fc-title .total {
  color: var(--c-g900); font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ds-week-fc-bars {
  display: flex; justify-content: space-between; gap: 6px;
  align-items: flex-end; height: 80px;
}
.ds-wb {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.ds-wb-bar {
  width: 100%; max-width: 24px;
  background: linear-gradient(180deg, #B8D2EA, #CFE0F0);
  border-radius: 6px 6px 2px 2px;
  position: relative;
}
.ds-wb-count {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; color: var(--c-g500);
  font-variant-numeric: tabular-nums;
}
.ds-wb.today .ds-wb-bar { background: linear-gradient(180deg, #047857, #10B981); }
.ds-wb.today .ds-wb-count { color: #047857; }
.ds-wb.future .ds-wb-bar {
  background: repeating-linear-gradient(45deg, #E5E7EB, #E5E7EB 4px, #F3F4F6 4px, #F3F4F6 8px);
}
.ds-wb-lbl { font-size: 10px; color: var(--c-g500); font-weight: 600; }
.ds-wb.today .ds-wb-lbl { color: #047857; font-weight: 800; }

.ds-page-header-row {
  display: flex; align-items: center; gap: var(--sp-sm);
}
.ds-page-back {
  background: none; border: none; font-size: 22px; color: var(--c-g500);
  cursor: pointer; padding: 4px 6px; font-family: inherit; line-height: 1;
}
.ds-page-titles { flex: 1; min-width: 0; }
.ds-page-titles .ds-page-title { font-size: 21px; font-weight: 700; }
.ds-page-h-sub {
  font-size: var(--f-sm); color: var(--c-g500); font-weight: 500; margin-top: 2px;
}
.ds-page-actions {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}

/* 헤더 우측 아이콘 버튼 (예: 휴지통 배지) */
.ds-icon-btn {
  background: none; border: none; cursor: pointer; padding: 8px;
  position: relative; color: var(--c-g500);
  font-size: 18px; font-family: inherit; line-height: 1;
  border-radius: var(--r-sm);
}
.ds-icon-btn:active { background: var(--c-g100); }
.ds-icon-btn-badge {
  position: absolute; top: 2px; right: 0;
  background: var(--c-pr); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: var(--r-full);
  min-width: 14px; padding: 1px 4px; line-height: 1.2;
}

/* 헤더 우측 primary 액션 버튼 (예: + 새 요청) */
.ds-header-cta {
  background: linear-gradient(180deg, #FF5070 0%, var(--c-pr) 100%);
  color: #fff; border: none;
  padding: 9px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-pr-sm), var(--hl-top-strong);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.ds-header-cta:active {
  transform: translateY(1px) scale(.98);
  box-shadow: 0 1px 4px rgba(255,56,92,0.15), var(--hl-top);
}

/* ── 상태 탭 (가로 스크롤 + 우측 fade) ──────────────────────────── */
.ds-status-tabs-wrap {
  position: relative; margin-top: 10px;
}
.ds-status-tabs-wrap::after {
  /* 우측 fade — 더 있는 탭 hint */
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 24px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--c-white));
}
.ds-status-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-right: 24px;
}
.ds-status-tabs::-webkit-scrollbar { display: none; }
.ds-status-tab {
  flex-shrink: 0; padding: 7px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--c-g200); background: var(--c-white);
  font-size: 12.5px; font-weight: 700; color: var(--c-g500);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.ds-status-tab.on {
  background: var(--c-g900); border-color: var(--c-g900); color: #fff;
}
.ds-status-tab-count {
  display: inline-block;
  background: var(--c-g100); color: var(--c-g500);
  margin-left: 5px; padding: 1px 7px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 700;
}
.ds-status-tab.on .ds-status-tab-count {
  background: rgba(255,255,255,0.22); color: #fff;
}

/* ── 스와이프 카드 (좌측 슬라이드 → 우측 액션 노출) ──────────────── */
.ds-swipe-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--sh-sm), var(--hl-top);
  margin: 10px var(--sp-md) 0;
  transition: box-shadow var(--dur-normal) var(--ease-out);
}
.ds-swipe-wrap:active { box-shadow: var(--sh-xs), var(--hl-top); }
.ds-swipe-wrap .ds-swipe-card {
  position: relative; z-index: 1;
  background: var(--c-white);
  padding: 14px 16px;
  transition: transform var(--dur-slow) var(--ease-spring);
  will-change: transform;
  touch-action: pan-y;
  cursor: pointer;
}
.ds-swipe-action {
  position: absolute; top: 0; right: 0;
  height: 100%; width: 76px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: #DC2626; color: #fff;
  font-size: 11.5px; font-weight: 700;
  border: none; cursor: pointer;
  font-family: inherit; z-index: 0;
}
.ds-swipe-action::before { content: '🗑'; font-size: 18px; }

/* ── 리스트 카드 콘텐츠 (스와이프 카드 안에 들어가는 표준 구조) ─── */
.ds-list-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.ds-list-time {
  font-size: var(--f-xs); color: var(--c-g400);
  margin-left: auto; flex-shrink: 0;
}
.ds-list-name {
  font-size: 15px; font-weight: 700; color: var(--c-g900);
  margin-bottom: 2px;
}
.ds-list-sub {
  font-size: 13px; color: var(--c-g500);
  font-variant-numeric: tabular-nums;
}
.ds-list-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.ds-list-tag {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; background: var(--c-g100);
  color: var(--c-g700); border-radius: var(--r-full);
}
.ds-list-amount {
  font-size: 15px; font-weight: 700;
  color: var(--c-g900); margin-top: 8px;
}

/* 새 항목 강조: 좌측 컬러 바 */
.ds-swipe-wrap.is-new .ds-swipe-card {
  border-left: 3px solid var(--c-pr);
  padding-left: 13px;
}

/* ════════════════════════════════════════════════════════════════
 * 2026-05-26 추가: 글로벌 입체감 HOOK
 * 마이그레이션 안 된 페이지(인라인 .btn, .header, .card 등)도
 * 자동으로 입체감을 갖도록 글로벌 셀렉터로 box-shadow + transition 부여.
 * 페이지에서 명시적으로 override하지 않으면 자동 적용됨.
 * ════════════════════════════════════════════════════════════════ */

/* ── 페이지 공통 헤더 hook (V1.6 — 발광 제거) ───────────────────── */
/* .header, .home-header, .page-header 자동 sticky + 단순 흰 배경 + 1px 분할 */
:where(.header, .home-header, .page-header):not(.ds-page-header):not(.no-design-hook) {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-g100);
}
/* V1.6: 발광 box-shadow, ::before 앰비언트 오브, ::after 코랄 글로우 라인 모두 제거 */
:where(.header, .page-header, .home-header):not(.ds-page-header):not(.no-design-hook)::before,
:where(.header, .page-header, .home-header):not(.ds-page-header):not(.no-design-hook)::after {
  display: none !important;
}
/* .home-header inline ::before (페이지 정의) override — 동일 제거 */
.home-header::before { display: none !important; }
/* 헤더 직계 자식 z-index 안전망 */
:where(.header, .home-header, .page-header):not(.ds-page-header):not(.no-design-hook) > * {
  position: relative;
  z-index: 1;
}

/* ── 페이지 공통 카드 hook (페이지별 자체 카드 클래스도 포함) ───── */
:where(
  .card,
  .req-card,
  .booking-card,
  .mockup-card,
  .menu-item,
  .stat-card,
  .today-card,
  .quick-btn,
  .post-card,
  .listing-card,
  .item-card,
  .worker-card,
  .job-card,
  .chat-card,
  .chat-item,
  .sign-card,
  .contract-card,
  .amount-card,
  .month-cell,
  .day-cell
):not(.ds-card):not(.ds-swipe-card) {
  box-shadow: var(--sh-sm), var(--hl-top);
  transition: box-shadow var(--dur-normal, 180ms) var(--ease-out, ease-out),
              transform var(--dur-fast, 120ms) var(--ease-spring, ease-out);
}
:where(
  .card,
  .req-card,
  .booking-card,
  .today-card,
  .quick-btn,
  .post-card,
  .listing-card,
  .worker-card,
  .job-card,
  .menu-item
):active {
  transform: translateY(1px);
  box-shadow: var(--sh-xs), var(--hl-top);
}

/* 강조 카드 (오늘 할 일·CTA 카드) — md 강도 + hl-top-strong */
:where(.today-card, .amount-card, .stat-card.primary):not(.ds-card) {
  box-shadow: var(--sh-md), var(--hl-top-strong);
}

/* ── 페이지 공통 Primary 버튼 hook (코랄 색 사용 + 일정 크기) ──── */
:where(button.btn, .btn-primary, .btn-new, .btn-add, .btn-send, .btn-pr):not(.ghost):not(.ds-btn-ghost):not(.ds-btn-secondary):not([disabled]) {
  background: linear-gradient(180deg, #FF5070 0%, var(--c-pr) 100%) !important;
  color: #fff !important;
  box-shadow: var(--sh-pr), var(--hl-top-strong);
  transition: box-shadow var(--dur-normal, 180ms) var(--ease-out, ease-out),
              transform var(--dur-fast, 120ms) var(--ease-spring, ease-out),
              opacity var(--dur-fast, 120ms);
}
:where(button.btn, .btn-primary, .btn-new):not(.ghost):not(.ds-btn-ghost):active {
  transform: translateY(1px);
  box-shadow: var(--sh-pr-sm), var(--hl-top);
}

/* ── Ghost/Secondary 버튼은 컬러 그림자 제외 ───────────────────── */
:where(.btn.ghost, .btn-ghost, .btn-secondary, .btn-cancel) {
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--dur-normal, 180ms) var(--ease-out, ease-out),
              transform var(--dur-fast, 120ms) var(--ease-spring, ease-out);
}

/* ── 입력 필드 hook (input/textarea — 모든 페이지) ────────────── */
:where(input[type="text"], input[type="tel"], input[type="number"], input[type="email"], input[type="password"], textarea):not(.ds-input):not([readonly]) {
  box-shadow: var(--sh-inset-sm);
  transition: border-color var(--dur-normal, 180ms) var(--ease-out, ease-out),
              background var(--dur-normal, 180ms) var(--ease-out, ease-out),
              box-shadow var(--dur-normal, 180ms) var(--ease-out, ease-out);
}
:where(input:focus, textarea:focus):not(.ds-input) {
  box-shadow: var(--sh-inset-sm), 0 0 0 4px rgba(255, 56, 92, 0.10);
}

/* ── 오버레이 hook (모든 페이지의 .ov / .overlay / .modal-overlay) ─ */
:where(.ov, .overlay, .modal-overlay):not(.ds-overlay) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── 바텀시트 hook (모든 페이지의 .sh / .sheet / .bottom-sheet) ── */
:where(.sh, .sheet, .bottom-sheet):not(.ds-sheet) {
  box-shadow: var(--sh-xl), var(--hl-top-strong);
}

/* ── V1.9.12: 하단 네비 Glassmorphism (B안) — iOS 17 스타일 ───── */
.ds-nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 -1px 0 rgba(20, 30, 50, 0.04), 0 -8px 24px rgba(20, 30, 50, 0.05);
  padding: 10px 0 max(12px, env(safe-area-inset-bottom));
}

/* 활성 indicator — 발광 코랄 bar */
.ds-nav-item.on::before {
  top: -1px !important;
  left: 50% !important; right: auto !important;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--c-pr);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 8px rgba(255, 56, 92, 0.55);
}

/* SVG 라인 아이콘 시스템 */
.ds-nav-ico {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0; /* emoji fallback 숨김 (svg 사용 시) */
  transition: transform .2s ease, filter .2s ease;
}
.ds-nav-ico svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-width .15s ease;
}
.ds-nav-item.on .ds-nav-ico {
  transform: translateY(-2px);
  filter: drop-shadow(0 3px 8px rgba(255, 56, 92, 0.42));
}
.ds-nav-item.on .ds-nav-ico svg {
  stroke-width: 2.4;
}
.ds-nav-item { font-size: 10.5px !important; }
.ds-nav-item.on { font-weight: 900 !important; }
/* 미사용/구 emoji fallback — svg 없으면 emoji 다시 보이게 */
.ds-nav-ico:not(:has(svg)) { font-size: 22px; }

/* ── 카드 active feedback (전 페이지 공통) ─────────────────────── */
.ds-card:active,
.ds-swipe-wrap:active .ds-swipe-card:not(:has(.swipe-action.open)) {
  /* 카드가 살짝 함몰 */
}

/* ════════════════════════════════════════════════════════════════
 * 2026-05-27 추가: Botanical 영감 — 블롭 + 민트 시스템
 * (Pinterest Maëlline의 Botanical 앱 영감)
 *
 * 컨셉:
 * - 카드/요소 뒤에 둥근 캡슐형 컬러 블롭 → 시각 위계 + 자연 친화
 * - 민트 그린 secondary 액센트 → 청결·완료 메타포
 * - 블롭 스타일 활성 탭 → 부드러운 인터랙션
 * ════════════════════════════════════════════════════════════════ */

/* ── 블롭 카드 (카드 안에 컬러 블롭 배경 — Botanical 식물 카드 패턴) ─ */
/* 사용: <div class="ds-blob-card ds-blob-pr">...</div> */
.ds-blob-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  background: var(--c-white);
  box-shadow: var(--sh-sm), var(--hl-top);
  transition: box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.ds-blob-card::before {
  /* 블롭 배경 — 카드 우상단 라운드 캡슐 */
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 70%; height: 140%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease-spring);
}
.ds-blob-card > * { position: relative; z-index: 1; }

/* 블롭 색상 variant */
.ds-blob-pr::before    { background: radial-gradient(circle, var(--c-pr-l) 0%, transparent 70%); }
.ds-blob-mint::before  { background: radial-gradient(circle, var(--c-mint-l) 0%, transparent 70%); }
.ds-blob-teal::before  { background: radial-gradient(circle, var(--c-teal-l) 0%, transparent 70%); }

/* 블롭 카드 active: 블롭이 살짝 회전 (재미있는 인터랙션) */
.ds-blob-card:active::before {
  transform: rotate(-8deg) scale(1.05);
}

/* ── 블롭 스타일 활성 탭 (status-tabs.on을 둥근 블롭으로) ──────── */
.ds-status-tab.is-blob {
  background: transparent;
  border-color: transparent;
  position: relative;
  color: var(--c-g500);
  font-weight: var(--fw-semibold);
}
/* 2026-05-27 A안: 활성 탭은 흰 배경 + 진한 컬러 글씨 (segmented control과 통일, 가독성 ↑) */
.ds-status-tab.is-blob.on {
  background: var(--c-white);
  border-color: transparent;
  color: var(--c-pr-d);
  box-shadow:
    var(--sh-sm),
    0 2px 6px rgba(255, 56, 92, 0.12);
}
.ds-status-tab.is-blob.on::after {
  /* 활성 탭 아래 작은 점 indicator */
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-pr);
  box-shadow: 0 0 4px rgba(255, 56, 92, 0.35);
}

/* 민트 variant (완료/긍정 카테고리용) */
.ds-status-tab.is-blob.is-mint.on {
  background: var(--c-white);
  color: var(--c-mint-d);
  box-shadow:
    var(--sh-sm),
    0 2px 6px rgba(94, 234, 212, 0.14);
}
.ds-status-tab.is-blob.is-mint.on::after {
  background: var(--c-mint-d);
  box-shadow: 0 0 4px rgba(20, 184, 166, 0.35);
}

/* ── 민트 배지 (.ds-badge-mint) — Botanical 톤 ─────────────────── */
.ds-badge-mint {
  background: var(--c-mint-l);
  color: var(--c-mint-d);
}

/* ── 민트 CTA 버튼 (서브 액션용 — 완료·신선·자연) ───────────────── */
.ds-btn-mint {
  background: linear-gradient(180deg, #6FFFE0 0%, var(--c-mint) 100%);
  color: var(--c-g900);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: var(--f-md);
  font-weight: var(--fw-semibold);
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--sh-mint), var(--hl-top-strong);
  transition: box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-fast) var(--ease-spring);
}
.ds-btn-mint:active {
  transform: translateY(1px);
  box-shadow: var(--sh-mint-sm), var(--hl-top);
}

/* ── 카드 안 블롭 (작은 thumbnail용) ───────────────────────────── */
.ds-thumb-blob {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-mint-l) 0%, var(--c-mint-xl) 70%);
  font-size: 28px;
  flex-shrink: 0;
}
.ds-thumb-blob.is-pr { background: radial-gradient(circle at 30% 30%, var(--c-pr-l) 0%, var(--c-pr-xl) 70%); }
.ds-thumb-blob.is-teal { background: radial-gradient(circle at 30% 30%, var(--c-teal-l) 0%, #F0FDF9 70%); }

/* ════════════════════════════════════════════════════════════════
 * 글로벌 .tab 액티브 — Botanical 영감 점 indicator + 발광 강화
 * ssak-quote, workforce, community, schedule 등 .tab/.tabs-seg 패턴
 * (segmented control 구조 보존, 활성 시 indicator 추가)
 * ════════════════════════════════════════════════════════════════ */

/* segmented control 활성 탭에 코랄 발광 강화 */
:where(.tab.active, .tab.on):not(.ds-status-tab) {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F5 100%) !important;
  box-shadow:
    var(--sh-sm, 0 2px 6px rgba(20,30,50,.07)),
    inset 0 1px 0 rgba(255,255,255,.95),
    0 4px 14px rgba(255, 56, 92, 0.18) !important;
}

/* 활성 탭 아래 작은 코랄 점 indicator (Botanical 영감) */
:where(.tab.active, .tab.on):not(.ds-status-tab)::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-pr);
  box-shadow: 0 0 8px rgba(255, 56, 92, 0.6);
  pointer-events: none;
  animation: ds-dot-fade-in var(--dur-normal, 180ms) var(--ease-out, ease-out);
}
@keyframes ds-dot-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-3px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* tabs 컨테이너 자체에 살짝 입체감 */
:where(.tabs-seg, .tabs):not(.ds-status-tabs) {
  box-shadow: var(--sh-inset-sm, inset 0 1px 2px rgba(20,30,50,.04));
}

/* ════════════════════════════════════════════════════════════════
 * 빈 상태 SVG 일러스트 (utils.js의 svgIcon/emptySvg와 짝)
 * 청소 도구 SVG가 발광 원 안에 떠있는 효과
 * ════════════════════════════════════════════════════════════════ */
.ds-empty-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 18px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--c-pr-xl) 0%, var(--c-bg) 75%);
  position: relative;
}
.ds-empty-svg::before {
  /* 살짝 빛 발산 (Botanical 영감) */
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 56, 92, 0.10), transparent 65%);
  filter: blur(8px);
  z-index: -1;
}
.ds-empty-svg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 3px rgba(255, 56, 92, 0.08));
}

/* 민트 variant (휴지통 빈 상태 = 깨끗함 메타포) */
.ds-empty-svg.is-mint {
  background: radial-gradient(circle at 30% 30%, var(--c-mint-xl) 0%, var(--c-bg) 75%);
}
.ds-empty-svg.is-mint::before {
  background: radial-gradient(circle, rgba(94, 234, 212, 0.14), transparent 65%);
}
.ds-empty-svg.is-mint svg {
  filter: drop-shadow(0 1px 3px rgba(94, 234, 212, 0.10));
}

/* ════════════════════════════════════════════════════════════════
 * 하단 네비 SVG 아이콘 (utils.js initNavIcons()와 짝)
 * 3가지 클래스 시스템 모두 커버:
 *   - .nav-icon  (schedule.html, my.html)
 *   - .ni-ico    (workforce/community/market.html)
 *   - .ds-nav-ico (index.html ds-nav 시스템)
 * 모두 SVG 변환 후 .nav-icon-svg 클래스가 추가됨
 * ════════════════════════════════════════════════════════════════ */
.nav-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  line-height: 1;
  font-size: 0;  /* 이모지 잔여 텍스트 숨김 */
  color: var(--c-g500);  /* 비활성 색상 */
  transition: color var(--dur-normal, 180ms) var(--ease-out, ease-out),
              transform var(--dur-fast, 120ms) var(--ease-spring, ease-out);
}
.nav-icon-svg svg {
  width: 100%;
  height: 100%;
}
/* 활성 네비 아이템의 SVG = 코랄 색 + 살짝 키움 (3가지 부모 클래스 모두) */
.nav-item.active .nav-icon-svg,
.nav-item.on .nav-icon-svg,
.ni.on .nav-icon-svg,
.ni.active .nav-icon-svg,
.ds-nav-item.on .nav-icon-svg,
.ds-nav-item.active .nav-icon-svg {
  color: var(--c-pr);
  transform: scale(1.05);
  filter: drop-shadow(0 1px 3px rgba(255, 56, 92, 0.12));
}
/* 활성 네비 아이콘에 옅은 코랄 pill 배경 — 홈 탭(.ds-nav-item.on)과 동일 효과 통일 */
.nav-item.active .nav-icon, .nav-item.on .nav-icon,
.ni.on .ni-ico, .ni.active .ni-ico,
.ds-nav-item.on .ds-nav-ico, .ds-nav-item.active .ds-nav-ico {
  background: var(--c-pr-l) !important;
  border-radius: 10px;
  padding: 3px 10px;
  color: var(--c-pr) !important;
  transition: background .18s var(--ease-out, ease-out),
              padding .18s var(--ease-spring, cubic-bezier(.16,1,.3,1)),
              color .15s;
}
/* 비활성 탭의 아이콘 축소·페이드 — 선택 탭이 자연스럽게 강조 (260528) */
.nav-item:not(.active):not(.on) .nav-icon-svg,
.ni:not(.on):not(.active) .nav-icon-svg,
.ds-nav-item:not(.on):not(.active) .nav-icon-svg {
  transform: scale(.82);
  opacity: 0.55;
  transition: transform .22s var(--ease-spring, cubic-bezier(.16,1,.3,1)),
              opacity .18s var(--ease-out, ease-out);
}
/* 비활성 탭 라벨도 살짝 옅게 (위계 강조) */
.nav-item:not(.active):not(.on) > div:not(.nav-icon):not(.nav-icon-svg),
.ni:not(.on):not(.active) > div:not(.ni-ico):not(.nav-icon-svg),
.ds-nav-item:not(.on):not(.active) > div:not(.ds-nav-ico):not(.nav-icon-svg) {
  opacity: 0.7;
  transition: opacity .18s var(--ease-out, ease-out);
}
/* 누를 때 살짝 함몰 */
.nav-item:active .nav-icon-svg,
.ni:active .nav-icon-svg,
.ds-nav-item:active .nav-icon-svg {
  transform: scale(.92);
}

/* ════════════════════════════════════════════════════════════════
 * 2026 트렌드: Liquid Glass (iOS 26 영감, 260528)
 * - 글라스 요소에 대각선 specular highlight (좌상→우하 빛 반사)
 * - inset box-shadow로 inner glow + depth
 * - 입력 필드(replaced element)는 inset shadow만, 카드는 ::before로
 * ════════════════════════════════════════════════════════════════ */
:where(.ds-card.liquid, .liquid-glass, .card-glass, .celebration .done-card):not(.no-liquid) {
  position: relative;
  overflow: hidden;  /* specular가 모서리 밖으로 안 새어나가도록 */
}
:where(.ds-card.liquid, .liquid-glass, .card-glass, .celebration .done-card):not(.no-liquid)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.18) 18%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0.10) 85%,
    rgba(255,255,255,0.40) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.92;
  z-index: 1;
}
:where(.ds-card.liquid, .liquid-glass, .card-glass, .celebration .done-card):not(.no-liquid) > * {
  position: relative;
  z-index: 2;  /* 컨텐츠가 specular 위로 */
}

/* Liquid Glass 입력 필드 — inset box-shadow로 specular 표현 */
:where(input.liquid, .liquid-input, .pill-glass) {
  box-shadow:
    0 8px 22px rgba(20, 30, 50, 0.10),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 3px 3px 12px -4px rgba(255, 255, 255, 0.55),
    inset -3px -4px 10px -4px rgba(20, 30, 50, 0.06);
}

/* 글로벌 hook: login.html의 input/btn (별도 클래스 없이 자동 적용) */
body:has(.bg-photo) input[type="tel"],
body:has(.bg-photo) input[type="text"] {
  box-shadow:
    0 8px 22px rgba(20, 30, 50, 0.10),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 3px 3px 12px -4px rgba(255, 255, 255, 0.5),
    inset -3px -4px 10px -4px rgba(20, 30, 50, 0.06);
}

/* ════════════════════════════════════════════════════════════════
 * 2026 트렌드: View Transitions API (260528)
 * - utils.js navigate() 호출 시 페이지 morph 트랜지션
 * - 지원: Chrome 111+, Safari 18+ (미지원 브라우저는 즉시 이동)
 * ════════════════════════════════════════════════════════════════ */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 220ms cubic-bezier(0.4, 0, 0.2, 1) both vt-fade-out;
}
::view-transition-new(root) {
  animation: 280ms cubic-bezier(0.16, 1, 0.3, 1) both vt-fade-in;
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* ════════════════════════════════════════════════════════════════
 * 글로벌 아바타 시스템 (260528) — 모든 페이지 공유
 * 사용:
 *   <div class="ds-avatar ds-avatar-md av-mint">김</div>
 *   <div class="ds-avatar ds-avatar-lg av-amber"><img src="..."></div>
 * 색 자동 분배 (utils.js):
 *   const cls = avatarColor(nickname); → 'av-mint' | 'av-amber' | ...
 * ════════════════════════════════════════════════════════════════ */
.ds-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC9D3 0%, #FF385C 100%);  /* 기본 코랄 */
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  overflow: hidden; position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 56, 92, 0.18);
}
.ds-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 사이즈 (모바일 친화) */
.ds-avatar-xs { width: 32px; height: 32px; font-size: 13px; }
.ds-avatar-sm { width: 42px; height: 42px; font-size: 17px; }
.ds-avatar-md { width: 48px; height: 48px; font-size: 20px; }
.ds-avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.ds-avatar-xl { width: 88px; height: 88px; font-size: 36px; }

/* 색 variant — 닉네임 해시로 자동 분배 (5색 + 기본 코랄) */
.av-coral, .ds-avatar.av-coral { background: linear-gradient(135deg, #FFC9D3 0%, #FF385C 100%); box-shadow: 0 3px 10px rgba(255, 56, 92, 0.18); }
.av-mint,  .ds-avatar.av-mint  { background: linear-gradient(135deg, #A7F3D0 0%, #14B8A6 100%); box-shadow: 0 3px 10px rgba(20, 184, 166, 0.20); }
.av-amber, .ds-avatar.av-amber { background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%); box-shadow: 0 3px 10px rgba(245, 158, 11, 0.18); }
.av-blue,  .ds-avatar.av-blue  { background: linear-gradient(135deg, #BFDBFE 0%, #3B82F6 100%); box-shadow: 0 3px 10px rgba(59, 130, 246, 0.18); }
.av-purple,.ds-avatar.av-purple{ background: linear-gradient(135deg, #DDD6FE 0%, #8B5CF6 100%); box-shadow: 0 3px 10px rgba(139, 92, 246, 0.18); }

/* 검증 체크 마크 (옵션) */
.ds-avatar .ds-verified {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #14B8A6; border: 2px solid #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-size: 11px; font-weight: 900; line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   푸시 알림 priming · denied 가이드 · iOS PWA 안내 (Phase 5-B)
   utils.js: ssakShowPushPrime / ssakShowPushDeniedGuide / ssakShowIOSInstallGuide
   ══════════════════════════════════════════════════════════════════ */
.ds-push-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 32, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1100;
  animation: ds-push-fade 0.18s ease-out;
}
@keyframes ds-push-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-push-slide-up { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ds-push-card {
  background: #fff;
  width: 100%; max-width: 420px;
  border-radius: 22px 22px 0 0;
  padding: 28px 22px 22px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  animation: ds-push-slide-up 0.24s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 480px) {
  .ds-push-overlay { align-items: center; }
  .ds-push-card { border-radius: 22px; max-width: 380px; }
}
.ds-push-emoji {
  font-size: 38px; text-align: center; margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(255, 56, 92, 0.22));
}
.ds-push-title {
  font-size: 18px; font-weight: 800; color: #1A1F2C;
  text-align: center; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ds-push-body {
  font-size: 13.5px; color: #6B7684; text-align: center;
  line-height: 1.55; margin-bottom: 16px;
}
.ds-push-bullets {
  list-style: none; padding: 0;
  background: #F7F8FA; border-radius: 13px;
  padding: 12px 14px; margin: 0 0 18px;
}
.ds-push-bullets li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-size: 13.5px; color: #2A3140; font-weight: 500;
}
.ds-push-bullets li span:first-child { font-size: 17px; line-height: 1; flex-shrink: 0; }
.ds-push-steps {
  margin: 0 0 18px; padding: 12px 14px 12px 30px;
  background: #FFF6F4; border: 1px solid #FFE3DC; border-radius: 13px;
  font-size: 13px; color: #2A3140; line-height: 1.7;
}
.ds-push-steps li { margin: 2px 0; }
.ds-push-actions {
  display: flex; gap: 8px;
}
.ds-push-btn-primary, .ds-push-btn-ghost {
  flex: 1; padding: 13px 14px;
  border-radius: 12px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; transition: transform 0.08s, opacity 0.15s;
  border: none;
}
.ds-push-btn-primary {
  background: #FF385C; color: #fff;
  box-shadow: 0 3px 12px rgba(255, 56, 92, 0.28);
}
.ds-push-btn-primary:active { transform: scale(0.97); }
.ds-push-btn-primary:disabled { opacity: 0.6; cursor: progress; }
.ds-push-btn-ghost {
  background: #fff; color: #6B7684;
  border: 1px solid #E4E9EE;
}
.ds-push-btn-ghost:active { background: #F2F4F6; }

/* ══════════════════════════════════════════════════════════════════
   홈 사진 hero + 조합 패턴 (Phase 6 — 2026-05-29)
   사진 hero 헤더 + Status-First + Number-Led KPI + Floating CTA
   ══════════════════════════════════════════════════════════════════ */

/* ── 사진 hero 헤더 ── */
.ds-hero-photo {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  margin-bottom: -14px;
  z-index: 1;
}
.ds-hero-photo .ds-hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.95);
}
.ds-hero-photo .ds-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.12) 0%,
      rgba(0,0,0,0.05) 35%,
      rgba(26,31,44,0.55) 70%,
      rgba(26,31,44,0.82) 100%);
}
.ds-hero-photo .ds-hero-top {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end; gap: 8px;
  padding: calc(16px + env(safe-area-inset-top)) 18px 0;
}
.ds-hero-photo .ds-hero-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; cursor: pointer;
  position: relative;
}
.ds-hero-photo .ds-hero-btn .ds-hero-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #FFD600; border: 1.5px solid rgba(255,255,255,0.8);
}
.ds-hero-photo .ds-hero-body {
  position: absolute; z-index: 2;
  bottom: 22px; left: 22px; right: 22px;
  color: #fff;
}
.ds-hero-greet {
  font-size: 12.5px; font-weight: 600;
  opacity: 0.92; letter-spacing: -0.01em;
}
.ds-hero-name {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.025em; margin-top: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  color: #fff;
}
/* 회사명 sub-line — 사진 hero 모드 (흰색 + 그림자) */
.ds-hero-photo .ds-hero-company {
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em; margin-top: 4px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  display: flex; align-items: center; gap: 6px;
}
.ds-hero-photo .ds-hero-company::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
}
.ds-hero-rev-row {
  display: flex; align-items: end; gap: 8px;
  margin-top: 12px;
}
.ds-hero-rev-lbl {
  font-size: 11px; font-weight: 600;
  opacity: 0.85; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ds-hero-rev-val {
  font-size: 32px; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.ds-hero-rev-val .ds-hero-rev-unit {
  font-size: 16px; font-weight: 700; opacity: 0.85;
}
.ds-hero-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 700;
  background: rgba(16,185,129,0.92); color: #fff;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  margin-left: 6px; margin-bottom: 6px;
}
.ds-hero-trend.down { background: rgba(239,68,68,0.92); }

/* ── 콘텐츠 래퍼 (헤더 위에 살짝 올라오는) ── */
.ds-home-content {
  position: relative; z-index: 2;
  background: var(--c-bg, #F7F8FA);
  border-radius: 28px 28px 0 0;
  padding: 16px 16px 0;
}

/* ── Status-First 카드 ── */
.ds-status-card {
  background: #fff;
  border: 1px solid var(--c-g100, #F2F4F6);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  cursor: pointer;
}
.ds-status-card:active { transform: scale(0.99); transition: transform .12s; }
.ds-status-ico {
  width: 44px; height: 44px; border-radius: 13px; background: #FFF0F3;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0; position: relative;
}
.ds-status-ico.has-task::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-pr, #FF385C); border: 2px solid #fff;
  animation: ds-status-pulse 1.8s ease-out infinite;
}
@keyframes ds-status-pulse {
  0% { opacity: 1; transform: scale(1); }
  70% { opacity: 0.4; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}
.ds-status-body { flex: 1; min-width: 0; }
.ds-status-title {
  font-size: 15.5px; font-weight: 800; color: var(--c-g900, #1A1F2C);
  letter-spacing: -0.01em;
}
.ds-status-title .num { color: var(--c-pr, #FF385C); }
.ds-status-sub {
  font-size: 12.5px; color: var(--c-g500, #8B95A1);
  margin-top: 3px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-status-arr { color: var(--c-g400, #B0B8C1); font-size: 20px; flex-shrink: 0; }

/* ── KPI 3-col 한 줄 ── */
.ds-kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-top: 10px;
}
.ds-kpi-card {
  background: #fff;
  border: 1px solid var(--c-g100, #F2F4F6);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.ds-kpi-val {
  font-size: 18px; font-weight: 800; color: var(--c-g900, #1A1F2C);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.ds-kpi-val.pr { color: var(--c-pr, #FF385C); }
.ds-kpi-lbl {
  font-size: 11px; color: var(--c-g500, #8B95A1);
  margin-top: 2px; font-weight: 600;
}

/* ── Floating CTA (+ 새 견적) ── */
.ds-fab {
  position: fixed; bottom: 78px;
  right: calc(50% - 240px + 20px);
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-pr, #FF385C); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: none; cursor: pointer; z-index: 50;
  box-shadow:
    0 10px 30px rgba(255,56,92,0.4),
    0 4px 12px rgba(255,56,92,0.25);
  transition: transform .12s;
  font-family: inherit;
}
.ds-fab:active { transform: scale(0.92); }
.ds-fab-ico { font-size: 22px; font-weight: 300; line-height: 1; }
.ds-fab-lbl { font-size: 9px; font-weight: 800; margin-top: 1px; letter-spacing: 0.04em; }
@media (max-width: 480px) { .ds-fab { right: 20px; } }

/* ── 사진 미설정 모드 (default) — 토스 톤 흰 헤더 + 큰 KPI ── */
.ds-hero-photo.no-photo {
  height: auto;
  background: linear-gradient(160deg, #FFF8F5 0%, #FFFFFF 60%);
  border-radius: 0;
  margin-bottom: 0;
  padding-bottom: 18px;
}
.ds-hero-photo.no-photo::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--c-pr, #FF385C) 0%, #FC8181 100%);
}
.ds-hero-photo.no-photo .ds-hero-img,
.ds-hero-photo.no-photo .ds-hero-overlay { display: none; }
.ds-hero-photo.no-photo .ds-hero-top {
  padding: calc(16px + env(safe-area-inset-top)) 18px 8px;
}
.ds-hero-photo.no-photo .ds-hero-btn {
  background: #fff;
  border: 1px solid var(--c-g100, #F2F4F6);
  color: var(--c-g700, #4E5968);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 2px 6px rgba(20,30,50,.05);
}
.ds-hero-photo.no-photo .ds-hero-btn .ds-hero-dot {
  border-color: rgba(255,56,92,0.6);
}
.ds-hero-photo.no-photo .ds-hero-body {
  position: relative;
  bottom: auto; left: auto; right: auto;
  padding: 0 22px;
  margin-top: 6px;
  color: var(--c-g900, #1A1F2C);
}
.ds-hero-photo.no-photo .ds-hero-greet {
  color: var(--c-g500, #8B95A1);
  opacity: 1;
}
.ds-hero-photo.no-photo .ds-hero-name {
  color: var(--c-g900, #1A1F2C);
  text-shadow: none;
  font-size: 24px;
}
/* 회사명 sub-line — 흰 헤더 모드 (코랄 액센트로 전문성/브랜드 강조) */
.ds-hero-photo.no-photo .ds-hero-company {
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.01em; margin-top: 4px;
  color: var(--c-pr, #FF385C);
  text-shadow: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF0F3;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,56,92,0.18);
}
.ds-hero-photo.no-photo .ds-hero-company::before {
  content: '🏢';
  font-size: 11px;
  filter: grayscale(0.2);
}
.ds-hero-photo.no-photo .ds-hero-rev-row {
  margin-top: 14px;
  align-items: end;
}
.ds-hero-photo.no-photo .ds-hero-rev-lbl {
  color: var(--c-g500, #8B95A1);
  opacity: 1;
}
.ds-hero-photo.no-photo .ds-hero-rev-val {
  color: var(--c-g900, #1A1F2C);
  font-size: 38px;
  text-shadow: none;
}
.ds-hero-photo.no-photo .ds-hero-rev-val .ds-hero-rev-unit {
  color: var(--c-g500, #8B95A1);
  font-size: 18px;
}
.ds-hero-photo.no-photo .ds-hero-trend {
  background: #ECFDF5;
  color: #10B981;
  text-shadow: none;
}
.ds-hero-photo.no-photo .ds-hero-trend.down {
  background: #FEF2F2;
  color: #EF4444;
}
