/* Ruach 디자인 표준 — 토큰 (색·모양·그림자). 값의 출처: Ruach Score·Sermon·Bible 의 애플식 토큰, 산본교회 캘린더·포탈·장소 예약.
   브랜드: 기본 = Ruach(인디고) · <html data-brand="sanbon"> = 산본교회(파랑)
   모드: 기기 설정을 따르고, <html data-theme="light|dark"> 로 고정할 수 있다. */
:root {
  /* 바탕 */
  --win: #ffffff;            /* 창(내용이 놓이는 흰 면) */
  --desk: #f2f2f7;           /* 휴대폰 바탕 · 창 뒤 책상 */
  --side: #f5f5f7;           /* 사이드바 */
  --raised: #ffffff;         /* 메뉴·대화창 */
  --group: #f5f5f7;          /* 묶음 상자 (창 안) */
  --fill: rgb(118 118 128 / 0.12);    /* 검색칸·세그먼트·회색 알약 */
  --fill-2: rgb(118 118 128 / 0.08);
  --thumb: #ffffff;          /* 세그먼트 고른 칸 */
  --hover: rgb(0 0 0 / 0.045);
  --press: rgb(0 0 0 / 0.08);
  --sel: rgb(0 0 0 / 0.075); /* 사이드바 고른 줄 */
  --glass: rgb(255 255 255 / 0.78);   /* 위 막대·탭 막대 (blur 와 함께) */
  /* 선 */
  --line: rgb(0 0 0 / 0.09);
  --line-2: rgb(0 0 0 / 0.16);
  --sep: #e5e5e8;            /* 불투명 구분선 */
  /* 글자 */
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  /* 강조 (브랜드) */
  --accent: #3a5bd9;
  --accent-hover: #3250cb;
  --accent-soft: rgb(58 91 217 / 0.11);
  --accent-text: #3150cc;
  --ring: rgb(58 91 217 / 0.28);
  /* 상태 */
  --green: #2a9d55;          /* 스위치 켬 · 완료 */
  --ok: #248a3d;
  --warn: #c25e00;
  --err: #d70015;
  --err-soft: rgb(255 59 48 / 0.1);
  --today: #ff3b30;          /* 달력의 오늘 */
  /* 입력칸 */
  --input: #ffffff;
  --input-line: rgb(0 0 0 / 0.13);
  /* 덮개·그림자 */
  --scrim: rgb(0 0 0 / 0.22);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 30px rgb(0 0 0 / 0.06);
  --shadow-menu: 0 0 0 0.5px rgb(0 0 0 / 0.14), 0 10px 32px rgb(0 0 0 / 0.14), 0 2px 6px rgb(0 0 0 / 0.06);
  --shadow-win: 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 28px 80px rgb(0 0 0 / 0.2), 0 6px 18px rgb(0 0 0 / 0.08);
  --shadow-thumb: 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 2px 5px rgb(0 0 0 / 0.1);
  /* 홈 화면 배경의 색 번짐 (포탈) */
  --mesh-1: #8ec5ff; --mesh-2: #d9b8ff; --mesh-3: #ffc9b8;
  /* 모양 */
  --r-xs: 6px;      /* 메뉴 안 줄 */
  --r-sm: 8px;      /* 단추 */
  --r: 10px;        /* 입력칸 */
  --r-md: 12px;     /* 묶음 상자·메뉴·목록 */
  --r-lg: 18px;     /* 대화창·떠 있는 선택창 */
  --r-xl: 28px;     /* 큰 카드(홈 타일)·로그인 카드 */
  --r-pill: 999px;
  /* 크기 */
  --h-ctl: 32px;    /* 단추 (넓은 화면) */
  --h-input: 36px;  /* 입력칸 (넓은 화면) */
  --h-touch: 44px;  /* 휴대폰의 주 단추·입력칸 */
  --top: 52px;      /* 위 막대 */
  --side-w: 236px;  /* 사이드바 */
  --page-w: 900px;  /* 쪽 내용 최대 폭 */
  /* 글꼴·움직임 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --blur: saturate(180%) blur(20px);
  font-family: var(--font);
  color-scheme: light;
}
:root[data-brand="sanbon"] {
  --accent: #0071e3; --accent-hover: #0077ed; --accent-soft: rgb(0 113 227 / 0.1); --accent-text: #0066cc; --ring: rgb(0 113 227 / 0.26);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --win: #1e1e20; --desk: #000000; --side: #262628; --raised: #2a2a2d; --group: rgb(255 255 255 / 0.045);
    --fill: rgb(118 118 128 / 0.24); --fill-2: rgb(118 118 128 / 0.16); --thumb: #5c5c61;
    --hover: rgb(255 255 255 / 0.06); --press: rgb(255 255 255 / 0.1); --sel: rgb(255 255 255 / 0.1);
    --glass: rgb(30 30 32 / 0.8);
    --line: rgb(255 255 255 / 0.085); --line-2: rgb(255 255 255 / 0.15); --sep: #333336;
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #7c7c82;
    --accent: #5b7cf6; --accent-hover: #6d8bf8; --accent-soft: rgb(91 124 246 / 0.2); --accent-text: #93abff; --ring: rgb(91 124 246 / 0.42);
    --green: #30d158; --ok: #30d158; --warn: #ff9f0a; --err: #ff453a; --err-soft: rgb(255 69 58 / 0.16); --today: #ff453a;
    --input: rgb(255 255 255 / 0.055); --input-line: rgb(255 255 255 / 0.11);
    --scrim: rgb(0 0 0 / 0.5);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
    --shadow-menu: 0 0 0 0.5px rgb(255 255 255 / 0.13), 0 12px 36px rgb(0 0 0 / 0.55);
    --shadow-win: 0 0 0 0.5px rgb(255 255 255 / 0.12), 0 30px 90px rgb(0 0 0 / 0.65);
    --shadow-thumb: 0 1px 3px rgb(0 0 0 / 0.4);
    --mesh-1: #1d4f9c; --mesh-2: #5a2d93; --mesh-3: #8a3b2e;
    color-scheme: dark;
  }
  :root[data-brand="sanbon"]:not([data-theme="light"]) {
    --accent: #2997ff; --accent-hover: #4aa8ff; --accent-soft: rgb(41 151 255 / 0.16); --accent-text: #6cb6ff; --ring: rgb(41 151 255 / 0.4);
  }
}
:root[data-theme="dark"] {
  --win: #1e1e20; --desk: #000000; --side: #262628; --raised: #2a2a2d; --group: rgb(255 255 255 / 0.045);
  --fill: rgb(118 118 128 / 0.24); --fill-2: rgb(118 118 128 / 0.16); --thumb: #5c5c61;
  --hover: rgb(255 255 255 / 0.06); --press: rgb(255 255 255 / 0.1); --sel: rgb(255 255 255 / 0.1);
  --glass: rgb(30 30 32 / 0.8);
  --line: rgb(255 255 255 / 0.085); --line-2: rgb(255 255 255 / 0.15); --sep: #333336;
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #7c7c82;
  --accent: #5b7cf6; --accent-hover: #6d8bf8; --accent-soft: rgb(91 124 246 / 0.2); --accent-text: #93abff; --ring: rgb(91 124 246 / 0.42);
  --green: #30d158; --ok: #30d158; --warn: #ff9f0a; --err: #ff453a; --err-soft: rgb(255 69 58 / 0.16); --today: #ff453a;
  --input: rgb(255 255 255 / 0.055); --input-line: rgb(255 255 255 / 0.11);
  --scrim: rgb(0 0 0 / 0.5);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
  --shadow-menu: 0 0 0 0.5px rgb(255 255 255 / 0.13), 0 12px 36px rgb(0 0 0 / 0.55);
  --shadow-win: 0 0 0 0.5px rgb(255 255 255 / 0.12), 0 30px 90px rgb(0 0 0 / 0.65);
  --shadow-thumb: 0 1px 3px rgb(0 0 0 / 0.4);
  --mesh-1: #1d4f9c; --mesh-2: #5a2d93; --mesh-3: #8a3b2e;
  color-scheme: dark;
}
:root[data-brand="sanbon"][data-theme="dark"] {
  --accent: #2997ff; --accent-hover: #4aa8ff; --accent-soft: rgb(41 151 255 / 0.16); --accent-text: #6cb6ff; --ring: rgb(41 151 255 / 0.4);
}
