/* 멍글 — 디자인 토큰과 공통 부품 "포근한 크림 + 살구 테라코타" (kit/design/선택한 디자인.md)
   따뜻한 크림 바탕 + 짙은 갈색 글자 + 포인트는 살구 테라코타(--accent) 하나. 상태색(ok·warn·danger·info)은 배지·안내에만.
   대비 WCAG AA 이상, 움직임 줄이기 존중. 보호자 화면은 휴대폰이 먼저(모바일 우선), 관리자는 PC 우선.
   크기는 rem 으로만(1rem = 1rem). 색·간격은 var(--토큰) 만 — 담당 CSS 도 hex 를 직접 쓰지 않는다.
   공유 파일: 담당은 고치지 말고 자기 CSS(public/assets/css/<담당>.css)에 접두어 클래스로 추가. */
:root {
  /* 바탕·면 */
  --bg: #FBF8F3;          /* 따뜻한 크림 바탕 */
  --surface: #FFFFFF;
  --surface-2: #F4EEE6;   /* 옅은 베이지 면 */
  --surface-3: #FDFBF8;
  --paper: #F7EFE6;       /* 띠 섹션 */
  /* 글자 */
  --ink: #2B241F;         /* 짙은 갈색 */
  --ink-2: #4A413A;
  --ink-3: #6B6158;
  /* 선 */
  --line: #EBE3D9;
  --line-strong: #D6CABD;
  --line-input: #8C8076;  /* 입력칸 테두리(3:1 이상) */
  /* 포인트: 살구 테라코타(하나) */
  --accent: #B4501E;
  --accent-hover: #96410F;
  --accent-soft: #FBEADF;
  --accent-ink: #9A3F14;
  --accent-line: #EBC2A8;
  /* 어두운 띠(푸터·관리자 메뉴) — 따뜻한 밤색 */
  --night: #2B241F;
  --night-2: #3A312B;
  --night-line: #4A3F37;
  --on-night: #FBF5EE;
  --on-night-2: #CFC2B5;
  --accent-on-night: #F7C9A8;
  --scrim: rgba(43, 36, 31, .55);
  --glass: rgba(255, 255, 255, .94);   /* 사진 위 칩 */
  --hero-shade: linear-gradient(90deg, rgba(251, 248, 243, .97) 0%, rgba(251, 248, 243, .9) 38%, rgba(251, 248, 243, .2) 70%, rgba(251, 248, 243, 0) 100%);
  --hero-shade-m: linear-gradient(180deg, rgba(251, 248, 243, 0) 0%, rgba(251, 248, 243, .75) 45%, rgba(251, 248, 243, 1) 100%);
  --login-shade: linear-gradient(0deg, rgba(43, 36, 31, .9) 0%, rgba(43, 36, 31, .15) 70%);
  --photo-shade: linear-gradient(180deg, rgba(43, 36, 31, 0) 50%, rgba(43, 36, 31, .55) 100%);
  --on-accent: #FFFFFF;
  /* 반려견 이름 동그라미(4가지, 글자 대비 AA) */
  --dog-1: #FBEADF; --dog-1-ink: #8A3A12;
  --dog-2: #E6F1EA; --dog-2-ink: #2D5E3E;
  --dog-3: #E8EEF7; --dog-3-ink: #2F4F7A;
  --dog-4: #F6EBD3; --dog-4-ink: #74531A;
  /* 상태 */
  --ok: #2D6A40;      --ok-soft: #E4F2E7;
  --info: #2C5A86;    --info-soft: #E5EEF7;
  --warn: #8A5A00;    --warn-soft: #FBF0D6;
  --danger: #B42318;  --danger-soft: #FCE6E3;
  --muted: #5F5650;   --muted-soft: #F0EBE5;

  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --fs-xs: .8125rem;  /* 0.8125rem */
  --fs-sm: .875rem;   /* 0.875rem */
  --fs-md: 1rem;      /* 1rem */
  --fs-lg: 1.125rem;  /* 1.125rem */
  --fs-h4: 1.25rem;   /* 1.25rem */
  --fs-h3: 1.5rem;    /* 1.5rem */
  --fs-h2: 1.875rem;  /* 1.875rem */
  --fs-h1: 2.875rem;  /* 2.875rem */

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
  --r-sm: .625rem; --r: 1rem; --r-lg: 1.5rem; --r-pill: 62.4375rem;   /* 둥글고 부드러운 모서리 */
  --shadow-sm: 0 .0625rem .125rem rgba(43, 36, 31, .06);
  --shadow: 0 .0625rem .125rem rgba(43, 36, 31, .05), 0 .75rem 1.75rem -.875rem rgba(90, 55, 30, .28);
  --shadow-lg: 0 .125rem .375rem rgba(43, 36, 31, .07), 0 1.625rem 3.25rem -1.25rem rgba(90, 55, 30, .38);
  --shadow-up: 0 -.375rem 1.25rem -.75rem rgba(43, 36, 31, .25);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-short: 150ms; --t-mid: 300ms; --t-long: 600ms;

  --tap: 2.875rem;        /* 2.875rem — 누르는 곳 2.75rem 이상 */
  --wrap: 75rem;
  --gutter: 2rem;
  --header-h: 4.25rem;
  --tabbar-h: 0rem;       /* 모바일 아래 탭 바 높이(site.css 가 바꿈) */
  --focus: 0 0 0 .1875rem var(--surface), 0 0 0 .375rem var(--accent);
}
html { font-size: 1rem; }
@media (max-width: 760px) {
  :root { --gutter: 1rem; --header-h: 3.5rem; --fs-h1: 2rem; --fs-h2: 1.5rem; --fs-h3: 1.3rem; }
}

/* ── 기본 ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.65; color: var(--ink); background: var(--bg); min-height: 100vh; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 750; letter-spacing: -0.02em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 0.0625rem 0.375rem; border-radius: 0.375rem; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 0.375rem; }
.sr-only { position: absolute !important; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 0.75rem; top: -5rem; z-index: 100; background: var(--ink); color: var(--on-night); padding: 0.75rem 1.125rem; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 0.75rem; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: var(--sp-2); } .mt-16 { margin-top: var(--sp-4); } .mt-24 { margin-top: var(--sp-5); } .mt-32 { margin-top: var(--sp-6); } .mt-48 { margin-top: var(--sp-7); }
.mb-8 { margin-bottom: var(--sp-2); } .mb-16 { margin-bottom: var(--sp-4); } .mb-24 { margin-bottom: var(--sp-5); }
.row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.stack-16 { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-24 { display: flex; flex-direction: column; gap: var(--sp-5); }
.grow { flex: 1 1 auto; min-width: 0; }
.ic { width: 1.176rem; height: 1.176rem; flex: 0 0 auto; vertical-align: middle; stroke-width: 1.75; }
.ic-sm { width: 1rem; height: 1rem; }
.ic-lg { width: 1.647rem; height: 1.647rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(42.5rem + var(--gutter) * 2); }
.wrap-mid { max-width: calc(57.5rem + var(--gutter) * 2); }
.section { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.section-top { padding-top: var(--sp-5); padding-bottom: var(--sp-7); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.section-head > div { max-width: 46rem; }
.section-head p:not(.eyebrow):not(.eyebrow-on-dark) { color: var(--ink-3); margin-top: var(--sp-2); font-size: var(--fs-lg); }
.h-sec { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; }
.h-sub { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.eyebrow, .eyebrow-on-dark { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--fs-sm); font-weight: 750; letter-spacing: .02em; color: var(--accent-ink); margin-bottom: var(--sp-2); }
.eyebrow::before, .eyebrow-on-dark::before { content: ""; width: 1.4rem; height: 0.125rem; background: currentColor; }
.eyebrow-on-dark { color: var(--accent-on-night); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.75; }

/* ── 버튼 ─────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--tap); padding: 0 1.176rem; border-radius: var(--r-sm); font-weight: 700; font-size: var(--fs-md); line-height: 1.2; border: 0.125rem solid transparent; transition: background var(--t-short) var(--ease), color var(--t-short) var(--ease), border-color var(--t-short) var(--ease), transform var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease); text-align: center; white-space: nowrap; }
.btn:active { transform: translateY(0.0625rem); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0.375rem 1rem -0.5rem var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-input); }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface-3); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 .75rem; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--on-accent); }
.btn-danger:hover { background: var(--accent-hover); }
.btn-on-dark { background: transparent; color: var(--on-night); border-color: var(--on-night-2); }
.btn-on-dark:hover { background: var(--night-2); border-color: var(--on-night); }
.btn-sm, .btn[data-size="sm"] { min-height: 2.353rem; padding: 0 .824rem; font-size: var(--fs-sm); }
.btn-lg, .btn[data-size="lg"] { min-height: 3.294rem; padding: 0 1.647rem; font-size: var(--fs-lg); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--surface-2); color: var(--ink-3); border-color: transparent; cursor: not-allowed; box-shadow: none; }
.btn[aria-busy="true"] { opacity: .75; }
.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; }
.center-row { justify-content: center; }
.link { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.1875rem; }
.link:hover { color: var(--accent-hover); }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-sm); color: var(--ink-2); position: relative; transition: background var(--t-short) var(--ease); flex: 0 0 auto; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ── 카드·표면 ─────────────────────── */
.card { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.card-link { display: block; transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.card-link:hover { transform: translateY(-0.125rem); box-shadow: var(--shadow); border-color: var(--line-strong); }
.divider { height: 0.0625rem; background: var(--line); border: 0; margin: var(--sp-4) 0; }
.ico-box { display: inline-grid; place-items: center; width: 2.588rem; height: 2.588rem; border-radius: var(--r); background: var(--accent-soft); color: var(--accent-ink); flex: 0 0 auto; }
.ico-box.lg { width: 3.529rem; height: 3.529rem; border-radius: var(--r-lg); }
.ico-box.lg .ic { width: 1.647rem; height: 1.647rem; }
.ico-box.muted { background: var(--surface-2); color: var(--ink-2); }
.ico-box.danger { background: var(--danger-soft); color: var(--danger); }
.avatar { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; flex: 0 0 auto; }
.avatar.sm { width: 2rem; height: 2rem; font-size: var(--fs-sm); }

/* ── 배지 ───────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 1.647rem; padding: 0 .588rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); border: 0.0625rem solid transparent; }
.badge .ic { width: .882rem; height: .882rem; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--muted-soft); color: var(--muted); }
.badge-warm, .badge-accent-soft { background: var(--accent-soft); color: var(--accent-ink); }
.badge-accent { background: var(--accent); color: var(--on-accent); }
.badge-ink { background: var(--ink); color: var(--on-night); }
.badge-outline { background: var(--surface); color: var(--accent-ink); border: 0.0625rem dashed var(--accent); }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--tap); padding: 0 1rem; border-radius: var(--r-pill); border: 0.125rem solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 650; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-current="page"], .chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-night); }

/* ── 폼 ─────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.field > label, .field .label, .field > legend { font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.field > legend { margin-bottom: var(--sp-2); }
.req { color: var(--danger); margin-left: 0.125rem; font-weight: 700; }
.req-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; color: var(--danger); background: var(--danger-soft); border-radius: var(--r-sm); padding: 0 0.375rem; margin-left: 0.25rem; vertical-align: 0.0625rem; }
.opt-tag { color: var(--ink-3); font-weight: 500; font-size: var(--fs-sm); margin-left: 0.25rem; }
.hint { font-size: var(--fs-sm); color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 3rem; padding: .588rem .824rem; border: 0.0938rem solid var(--line-input); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-md); transition: border-color var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease); appearance: none; -webkit-appearance: none; }
.textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .85; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 0.25rem var(--accent-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.input[readonly], .input:disabled { background: var(--surface-2); color: var(--ink-3); }
.select { padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%233A3F44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .76rem center; cursor: pointer; }
input[type="date"].input { min-width: 0; }
.input-group { display: flex; gap: var(--sp-2); }
.input-group .input { flex: 1; min-width: 0; }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit .input { padding-right: 3.2rem; text-align: right; }
.input-unit .unit { position: absolute; right: .824rem; color: var(--ink-3); font-weight: 600; pointer-events: none; font-size: var(--fs-sm); }
.field-err { display: flex; align-items: flex-start; gap: 0.375rem; font-size: var(--fs-sm); color: var(--danger); font-weight: 650; }
.field-err .ic { width: 1.059rem; height: 1.059rem; margin-top: 0.1875rem; }
.check, .radio { display: flex; align-items: flex-start; gap: .65rem; min-height: var(--tap); padding: .5rem 0; cursor: pointer; line-height: 1.5; }
.check input, .radio input, .seg-opt input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 1.412rem; height: 1.412rem; margin-top: 0.0625rem; border: 0.0938rem solid var(--line-input); background: var(--surface) center/70% no-repeat; cursor: pointer; transition: background-color var(--t-short) var(--ease), border-color var(--t-short) var(--ease); }
.check input { border-radius: 0.3125rem; }
.radio input { border-radius: 50%; }
.check input:hover, .radio input:hover { border-color: var(--ink); }
.check input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.radio input:checked { border-color: var(--accent); box-shadow: inset 0 0 0 0.3125rem var(--accent); }
.check input:focus-visible, .radio input:focus-visible { box-shadow: var(--focus); }
.check input[aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-soft); }
.check input:disabled, .radio input:disabled { background-color: var(--surface-2); cursor: not-allowed; }
.check > span { display: flex; flex-direction: column; gap: 0.125rem; }
.check small { color: var(--ink-3); font-size: var(--fs-sm); }
/* 버튼처럼 생긴 라디오 묶음 */
.seg-radio { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.seg-opt { position: relative; flex: 1 1 7rem; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: var(--tap); padding: 0 .9rem; border: 0.0938rem solid var(--line-input); border-radius: var(--r-sm); background: var(--surface); font-weight: 650; color: var(--ink-2); transition: all var(--t-short) var(--ease); text-align: center; }
.seg-opt:hover span { border-color: var(--ink); color: var(--ink); }
.seg-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-night); }
.seg-opt input:checked + span::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-on-night); }
.seg-opt input:focus-visible + span { box-shadow: var(--focus); }
.seg-opt input:disabled + span { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; min-height: var(--tap); }
.switch input { appearance: none; -webkit-appearance: none; width: 2.94rem; height: 1.7rem; border-radius: var(--r-pill); background: var(--line-input); position: relative; transition: background var(--t-short) var(--ease); cursor: pointer; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: calc(1.7rem - 0.375rem); height: calc(1.7rem - 0.375rem); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--t-mid) var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(1.24rem); }
.switch input:focus-visible { box-shadow: var(--focus); }

/* ── 탭·목록·표 ───────────────────── */
.tabs { display: flex; gap: 0.25rem; border-bottom: 0.125rem solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { min-height: var(--tap); display: inline-flex; align-items: center; gap: 0.375rem; padding: 0 1rem; font-weight: 700; color: var(--ink-3); border-bottom: 0.1875rem solid transparent; margin-bottom: -0.125rem; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.seg { display: inline-flex; padding: 0.1875rem; gap: 0.125rem; border-radius: var(--r-sm); background: var(--surface-2); flex-wrap: wrap; }
.seg-btn { min-height: 2.35rem; padding: 0 .9rem; border-radius: 0.375rem; font-weight: 650; color: var(--ink-2); font-size: var(--fs-sm); }
.seg-btn:hover { color: var(--ink); background: var(--surface-3); }
.seg-btn[aria-pressed="true"], .seg-btn[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.list { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--r); overflow: hidden; }
.list > li, .list > a, .list > .li { display: flex; align-items: center; gap: var(--sp-3); padding: .9rem 1.059rem; border-bottom: 0.0625rem solid var(--line); min-height: 3.3rem; }
.list > :last-child { border-bottom: 0; }
.list > a:hover { background: var(--surface-3); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.4rem; }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 650; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 0.125rem; } .kv dd { margin-bottom: .6rem; } }
.table-wrap { position: relative; overflow-x: auto; border: 0.0625rem solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-wrap.flat { border: 0; border-radius: 0; }
.table { min-width: 37.5rem; }
.table th, .table td { padding: .75rem .9rem; text-align: left; border-bottom: 0.0625rem solid var(--line); vertical-align: middle; }
.table thead th { background: var(--surface-3); color: var(--ink-2); font-weight: 700; white-space: nowrap; font-size: var(--fs-sm); }
.table tbody th { font-weight: 650; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-3); }
.table .num { text-align: right; }
.table a.row-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.1875rem; }
.table a.row-link:hover { color: var(--accent-ink); }
.bar { display: inline-block; width: 5rem; height: .5rem; border-radius: 0.25rem; background: var(--surface-2); overflow: hidden; vertical-align: middle; margin-right: .5rem; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 0.25rem; }

/* ── 상태 화면 ─────────────────────── */
.empty { text-align: center; padding: var(--sp-7) var(--sp-5); border: 0.0938rem dashed var(--line-strong); border-radius: var(--r); background: var(--surface-3); }
.empty .ico-box { width: 3.4rem; height: 3.4rem; border-radius: var(--r-lg); margin: 0 auto var(--sp-3); }
.empty h3 { font-size: var(--fs-lg); }
.empty p { color: var(--ink-3); margin-top: 0.375rem; }
.empty .btn-row { justify-content: center; margin-top: var(--sp-4); }
.todo-meta { font-size: var(--fs-sm); margin-top: var(--sp-2); }
.notice { display: flex; gap: var(--sp-3); align-items: flex-start; padding: .9rem 1.059rem; border-radius: var(--r-sm); background: var(--info-soft); color: var(--info); line-height: 1.6; border: 0.0625rem solid var(--info-soft); }
.notice > .ic { margin-top: 0.1875rem; }
.notice > div { color: var(--ink); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.notice-warm { background: var(--accent-soft); color: var(--accent-ink); }
.notice strong { font-weight: 750; }
.status-hero { text-align: center; padding: var(--sp-6) var(--sp-4); }
.status-hero .ico-box { margin: 0 auto var(--sp-4); }
.status-hero h1 { font-size: var(--fs-h3); }
.status-hero p { color: var(--ink-3); margin-top: var(--sp-2); }
.status-hero .btn-row { margin-top: var(--sp-5); }
.err-code { font-size: 4rem; line-height: 1; font-weight: 850; color: var(--line-strong); letter-spacing: -0.04em; margin-bottom: var(--sp-3); }
.skeleton { display: flex; flex-direction: column; gap: .6rem; padding: var(--sp-4); }
.sk-line { display: block; height: .9rem; border-radius: 0.375rem; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── 토스트·모달 ───────────────────── */
.toasts { position: fixed; z-index: 90; right: 1.5rem; bottom: calc(1.5rem + var(--tabbar-h)); display: flex; flex-direction: column; gap: 0.5rem; width: min(27.5rem, calc(100% - 2rem)); }
.toast { display: flex; align-items: center; gap: 0.625rem; padding: .85rem 1rem; border-radius: var(--r); background: var(--ink); color: var(--on-night); box-shadow: var(--shadow-lg); animation: toast-in var(--t-mid) var(--ease); }
.toast-err { background: var(--danger); }
.toast span { flex: 1; }
.toast-x { color: var(--on-night); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 0.375rem; }
.toast-x:hover { background: var(--night-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(0.625rem); } }
@media (max-width: 760px) { .toasts { right: 1rem; left: 1rem; width: auto; } }
dialog.modal { margin: auto; border: 0; padding: 0; border-radius: var(--r-lg); width: min(30rem, calc(100% - 2rem)); max-height: calc(100vh - 3rem); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: var(--scrim); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: 1.1rem 1.2rem 0; }
.modal-head h2 { font-size: var(--fs-h4); }
.modal-body { padding: 1rem 1.2rem; overflow-y: auto; }
.modal-foot { display: flex; gap: var(--sp-2); padding: 0 1.2rem 1.2rem; }
.modal-foot .btn { flex: 1; }
.sheet-page { min-height: 60vh; display: grid; place-items: center; padding: var(--sp-6) 0; }
.sheet { width: min(35rem, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 0.0625rem solid var(--line); }

/* ── 이동 표시·페이지·단계 ─────────── */
.crumbs { display: flex; align-items: center; gap: 0.25rem; font-size: var(--fs-sm); color: var(--ink-3); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.crumbs a { text-decoration: underline; text-underline-offset: 0.1875rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { width: .94rem; height: .94rem; }
.pager { display: flex; justify-content: center; gap: 0.375rem; margin-top: var(--sp-5); flex-wrap: wrap; }
.pager a, .pager span { min-width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: var(--r-sm); font-weight: 700; color: var(--ink-2); }
.pager a:hover { background: var(--surface-2); }
.pager .is-cur { background: var(--ink); color: var(--on-night); }
.pager .is-off { color: var(--line-strong); }
.page-head { padding: var(--sp-5) 0 var(--sp-4); }
.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; }
.page-head p:not(.eyebrow) { color: var(--ink-3); margin-top: 0.375rem; font-size: var(--fs-lg); max-width: 46rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ink-2); font-weight: 650; min-height: var(--tap); }
.back-link:hover { color: var(--ink); text-decoration: underline; }
/* 단계 표시 — 점과 선을 같은 줄(그리드)에 두고 선은 점 가운데(top 50%)를 지난다 */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: var(--sp-2) 0 var(--sp-6); counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-rows: 2.235rem auto; justify-items: center; text-align: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-3); font-weight: 650; }
.steps .dot { position: relative; z-index: 1; width: 2.235rem; height: 2.235rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-weight: 800; border: 0.1875rem solid var(--bg); }
.steps .dot .ic { width: 1.06rem; height: 1.06rem; }
.steps li::before { content: ""; position: absolute; top: 1.1175rem; transform: translateY(-50%); left: calc(-50% + 1.4rem); right: calc(50% + 1.4rem); height: 0.125rem; background: var(--line-strong); }
.steps li:first-child::before { display: none; }
.steps .lbl { display: flex; flex-direction: column; gap: 0.125rem; padding: 0 .3rem; }
.steps .lbl small { font-weight: 500; color: var(--ink-3); font-size: var(--fs-xs); }
.steps li.is-done .dot { background: var(--ink); color: var(--on-night); }
.steps li.is-done::before, .steps li.is-now::before { background: var(--ink); }
.steps li.is-now .dot { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0.25rem var(--accent-soft); }
.steps li.is-done, .steps li.is-now { color: var(--ink); font-weight: 750; }
@media (max-width: 560px) {
  .steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .steps li { grid-template-rows: none; grid-template-columns: 2.235rem 1fr; justify-items: start; text-align: left; align-items: start; gap: .75rem; padding-bottom: var(--sp-4); }
  .steps li::before { display: none; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1175rem; top: 2.235rem; bottom: 0; width: 0.125rem; transform: translateX(-50%); background: var(--line-strong); }
  .steps li.is-done:not(:last-child)::after { background: var(--ink); }
  .steps .lbl { padding: .3rem 0 0; }
}

/* ── 통계 카드 ─────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--sp-3); }
.stat { display: flex; flex-direction: column; background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.stat .k { font-size: var(--fs-sm); color: var(--ink-3); display: flex; align-items: center; gap: 0.375rem; font-weight: 650; }
.stat .v { font-size: 1.9rem; line-height: 1.2; font-weight: 800; margin-top: 0.375rem; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: var(--fs-md); font-weight: 600; color: var(--ink-3); margin-left: 0.125rem; }
.stat .d { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.125rem; }
.stat-link { transition: border-color var(--t-short) var(--ease), box-shadow var(--t-short) var(--ease); }
.stat-link:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.stat.is-alert { border-color: var(--accent); background: var(--accent-soft); }

/* ── 글 본문(약관·방침) ─────────────── */
.prose { line-height: 1.85; color: var(--ink-2); }
.prose h2 { font-size: var(--fs-h4); color: var(--ink); margin: var(--sp-6) 0 var(--sp-2); }
.prose h3 { font-size: var(--fs-lg); color: var(--ink); margin: var(--sp-5) 0 var(--sp-2); }
.prose p, .prose ul, .prose ol, .prose table { margin: var(--sp-2) 0; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose table { border: 0.0625rem solid var(--line); }
.prose th, .prose td { border: 0.0625rem solid var(--line); padding: .5rem .65rem; text-align: left; }
.prose th { background: var(--surface-3); }

/* ── 로고(고객·기사·관리자 공용) ─────── */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--ink); flex: 0 0 auto; }
.logo-mark { width: 2.375rem; height: 2.375rem; flex: none; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.lm-bg { fill: var(--accent); }
.lm-paw { fill: var(--on-accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 1.5rem; font-weight: 850; letter-spacing: -0.04em; }
.logo-text small { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 650; margin-top: 0.1875rem; }
.logo-on-dark { color: var(--on-night); }
.logo-on-dark .logo-text small { color: var(--on-night-2); }

.photo-ph { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-3); }

/* ── 움직임 — 움직임 줄이기 설정이면 끔 ─── */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(1rem); animation: rise var(--t-long) var(--ease) forwards; }
  .rise.d1 { animation-delay: 90ms; } .rise.d2 { animation-delay: 180ms; } .rise.d3 { animation-delay: 270ms; }
  .reveal { opacity: 0; transform: translateY(1.125rem); transition: opacity var(--t-long) var(--ease), transform var(--t-long) var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .tabbar, .toasts, .ic-side, .ic-top, .side, .topbar, .no-print { display: none !important; } body { background: var(--surface); } }


/* ── 반려견·알림장 공용 부품(보호자·관리자 함께) ───────────────── */
/* 반려견 이름 동그라미 */
.dog-av { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-weight: 800; font-size: 1.125rem; flex: 0 0 auto; overflow: hidden; background: var(--dog-1); color: var(--dog-1-ink); }
.dog-av img { width: 100%; height: 100%; object-fit: cover; }
.dog-av.tone-1 { background: var(--dog-2); color: var(--dog-2-ink); }
.dog-av.tone-2 { background: var(--dog-3); color: var(--dog-3-ink); }
.dog-av.tone-3 { background: var(--dog-4); color: var(--dog-4-ink); }
.dog-av.sm { width: 2.25rem; height: 2.25rem; font-size: var(--fs-sm); }
.dog-av.lg { width: 4.5rem; height: 4.5rem; font-size: 1.625rem; }
/* 하루 기록 칩(식사·배변·산책·컨디션) */
.rep-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem .75rem; font-size: var(--fs-sm); color: var(--ink-2); }
.rep-chips li { display: flex; align-items: center; gap: .375rem; min-width: 0; }
.rep-chips .ic { width: 1rem; height: 1rem; color: var(--accent-ink); }
/* 사진 그리드(3열 · 모바일 2열) */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: .375rem; }
.photo-grid a { display: block; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--t-long) var(--ease); }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid figcaption { font-size: var(--fs-sm); color: var(--ink-3); }
.photo-file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; aspect-ratio: 4 / 3; color: var(--ink-2); font-weight: 650; font-size: var(--fs-sm); border: .0625rem dashed var(--line-strong); }
@media (max-width: 760px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } }
/* 요약 숫자 줄 */
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--ink-2); font-size: var(--fs-sm); }
.facts > span { display: inline-flex; align-items: center; gap: .3125rem; }
.facts .ic { width: 1rem; height: 1rem; color: var(--ink-3); }
/* 정원 막대 */
.cap { display: flex; align-items: center; gap: .625rem; min-width: 0; font-size: var(--fs-sm); }
.cap-track { flex: 1 1 auto; height: .5rem; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; min-width: 3rem; }
.cap-fill { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: var(--r-pill); }
.cap.is-full .cap-fill { background: var(--danger); }
.cap-num { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 키·값 카드 줄 */
.sum-list { display: flex; flex-direction: column; }
.sum-list > div { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .625rem 0; border-bottom: .0625rem solid var(--line); }
.sum-list > div:last-child { border-bottom: 0; }
.sum-list dt { color: var(--ink-3); flex: 0 0 auto; }
.sum-list dd { font-weight: 650; text-align: right; min-width: 0; }
.err-list { margin-top: .25rem; padding-left: 1.1em; list-style: disc; }
.err-list a { text-decoration: underline; }
.dot-cnt { position: absolute; top: .25rem; right: .125rem; min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 800; line-height: 1.125rem; text-align: center; }
.text-danger { color: var(--danger); font-weight: 800; }
