@charset "UTF-8";
/* 펫카드 디자인 체계 — 따뜻한 아이보리 바탕, 깊은 숲색 브랜드, 살구색 강조. */
@font-face{font-family:"Pretendard";font-weight:400;font-style:normal;font-display:swap;src:url("fonts/Pretendard-Regular.subset.97213db5c578.woff2") format("woff2")}
@font-face{font-family:"Pretendard";font-weight:600;font-style:normal;font-display:swap;src:url("fonts/Pretendard-SemiBold.subset.3ba9cd1e8bcb.woff2") format("woff2")}
@font-face{font-family:"Pretendard";font-weight:700;font-style:normal;font-display:swap;src:url("fonts/Pretendard-Bold.subset.40b92fb6e0e4.woff2") format("woff2")}
:root{
  --bg:#f5f2ec;--bg-deep:#ece6dc;--surface:#fff;--surface-2:#faf8f4;
  --ink:#16201c;--text:#36403b;--muted:#68716c;--faint:#9ba29d;
  --line:#e8e3da;--line-strong:#d7d0c4;
  --brand:#1e4b3d;--brand-hover:#163a2f;--brand-soft:#e4eee8;--brand-tint:#f0f5f2;
  --accent:#f08a52;--accent-soft:#fdeee4;--accent-ink:#a3471b;
  --ok:#2c7a54;--ok-soft:#e3f1e9;--danger:#bf3f2a;--danger-soft:#fbe9e5;
  --r-sm:10px;--r:14px;--r-lg:20px;--r-xl:28px;
  --shadow-sm:0 1px 2px rgba(22,32,28,.06);
  --shadow:0 1px 2px rgba(22,32,28,.05),0 10px 30px rgba(22,32,28,.07);
  --shadow-lg:0 2px 8px rgba(22,32,28,.06),0 30px 70px rgba(22,32,28,.14);
  --ring:0 0 0 3px rgba(30,75,61,.22);
  --font:"Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;color:var(--text);background:var(--bg);font-family:var(--font);font-size:15px;line-height:1.6;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:break-word;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:progress;opacity:.55}
h1,h2,h3,p,dl,dd{margin:0}
h1,h2,h3{color:var(--ink);font-weight:700;letter-spacing:-.025em;line-height:1.3}
h1{font-size:30px}h2{font-size:18px}h3{font-size:16px}
img{max-width:100%;display:block}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;letter-spacing:0}
svg.icon{width:20px;height:20px;flex:none;vertical-align:middle}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:8px}
.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.skip-link{position:fixed;top:-80px;left:16px;background:var(--brand);color:#fff;padding:10px 14px;border-radius:10px;z-index:100}
.skip-link:focus{top:12px}
.muted{color:var(--muted)}.small{font-size:13px}

/* 브랜드 */
.brand{display:inline-flex;align-items:center;gap:9px;color:var(--ink);font-weight:700;font-size:20px;letter-spacing:-.04em;line-height:1}
.brand-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:var(--brand);color:#fff;flex:none}
.brand-mark:after{content:"";position:absolute;top:-3px;right:-3px;width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid var(--bg)}
.brand-mark .logo{width:22px;height:22px}
.brand-light{color:#fff}.brand-light .brand-mark{background:#fff;color:var(--brand)}.brand-light .brand-mark:after{border-color:var(--brand)}
.section-kicker{display:inline-block;font-size:13px;font-weight:700;color:var(--accent-ink);letter-spacing:0}

/* 버튼 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid transparent;font-size:14.5px;font-weight:600;line-height:1.2;white-space:nowrap;transition:background-color .15s,border-color .15s,color .15s,transform .1s}
.btn:active{transform:scale(.98)}
.btn .icon{width:18px;height:18px}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-hover)}
.btn-outline{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.btn-outline:hover{border-color:var(--ink)}
.btn-ghost{background:transparent;border-color:var(--line-strong);color:var(--ink)}
.btn-ghost:hover{background:var(--surface)}
.btn-light{background:#fff;color:var(--brand)}
.btn-light:hover{background:var(--brand-tint)}
.btn-plain{color:var(--muted)}
.btn-plain:hover{color:var(--ink)}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger:hover{background:#a3321f}
.btn-full{width:100%}
.btn-small{min-height:36px;padding:0 13px;font-size:13.5px;border-radius:10px}
.btn-large{min-height:54px;padding:0 22px;font-size:16px;border-radius:14px}
.btn-square{padding:0;width:54px;flex:none}
.button-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.button-row.center{justify-content:center}
.text-link{display:inline-flex;align-items:center;gap:5px;color:var(--brand);font-size:14px;font-weight:600}
.text-link:hover{text-decoration:underline;text-underline-offset:3px}
.text-link .icon{width:16px;height:16px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;color:var(--muted);flex:none}
.icon-button:hover{color:var(--ink);background:var(--bg)}
.icon-button .icon{width:19px;height:19px}

/* 공통 요소 */
.square-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:13px;background:var(--brand-soft);color:var(--brand);margin-bottom:14px}
.square-icon .icon{width:22px;height:22px}
.stat-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px}
.stat-icon .icon{width:19px;height:19px}
.sage{background:var(--brand-soft);color:var(--brand)}
.sand{background:#f6eedd;color:#8a6420}
.blue{background:#e5eef4;color:#2f5f80}
.rose{background:var(--accent-soft);color:var(--accent-ink)}
.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:600;line-height:1.5;white-space:nowrap;vertical-align:middle}
.badge .icon{width:13px;height:13px}
.badge-green{color:var(--ok);background:var(--ok-soft)}
.badge-rose{color:var(--accent-ink);background:var(--accent-soft)}
.badge-gray{color:var(--muted);background:var(--bg)}
.badge-white{color:var(--brand);background:#fff}
.badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.count-pill{display:inline-flex;align-items:center;font-size:14px;font-weight:600;background:var(--surface);border:1px solid var(--line);color:var(--muted);padding:1px 11px;border-radius:999px;letter-spacing:0}
.avatar{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none;font-weight:700}
.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ok);flex:none}
.notice{display:flex;align-items:flex-start;gap:10px;background:var(--brand-tint);border:1px solid var(--brand-soft);color:var(--brand);padding:13px 16px;border-radius:var(--r);font-size:14px;line-height:1.6;margin-bottom:18px}
.notice .icon{width:18px;height:18px;margin-top:2px}
.notice.error{display:block;background:var(--danger-soft);border-color:#f3cfc7;color:#8f2d1c;font-weight:600}
.notice.error .errorlist{margin:6px 0 0;color:inherit}
.notice.soft{background:var(--surface);border-color:var(--line);color:var(--text)}
.notice.soft .icon{color:var(--brand)}
.notice.info{background:#eef4f8;border-color:#d8e5ee;color:#25506d}
.messages{margin-bottom:6px}
.errorlist{list-style:none;padding:0;margin:6px 0 0;color:var(--danger);font-size:13.5px;font-weight:600;line-height:1.6}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,16px);max-width:min(92vw,440px);width:max-content;padding:13px 18px;border-radius:14px;background:var(--ink);color:#fff;font-size:14px;font-weight:600;box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.has-call-bar .toast{bottom:calc(100px + env(safe-area-inset-bottom))}

/* 입력 */
.field{min-width:0}
.field>label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:7px}
.required{color:var(--accent-ink);margin-left:3px}
input,select,textarea{width:100%;min-height:48px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--ink);padding:11px 14px;font-size:15px;line-height:1.45;transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none}
textarea{resize:vertical;line-height:1.65;min-height:96px}
select{padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368716c' 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 14px center;background-size:18px}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:hover,select:hover,textarea:hover{border-color:#bfb6a8}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring)}
input[type=checkbox]{-webkit-appearance:auto;appearance:auto;width:20px;height:20px;min-height:0;padding:0;margin:2px 0 0;flex:none;accent-color:var(--brand);border-radius:6px}
input[type=file]{min-height:0;padding:0;border:0;background:none;font-size:14px;color:var(--muted);box-shadow:none}
input[type=file]::file-selector-button{margin-right:12px;padding:10px 16px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}
input[type=date],input[type=datetime-local]{min-height:48px}
.has-error input,.has-error select,.has-error textarea{border-color:var(--danger);background:#fffaf9}
.field-help{display:block;font-size:13px;line-height:1.6;color:var(--muted);margin-top:7px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.field-wide{grid-column:1/-1}
.stack-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:26px}
.check-list{display:grid;gap:2px;margin:16px 0}
.check-list label{display:flex;align-items:flex-start;gap:12px;padding:12px 0;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer}
.check-list small{display:block;font-weight:400;color:var(--muted);font-size:13px;margin-top:2px}
.consent-box{border-top:1px solid var(--line);padding-top:18px;margin:18px 0}
.consent-box label{display:flex;align-items:flex-start;gap:12px;font-size:14px;color:var(--text);line-height:1.6;cursor:pointer}
.upload-zone{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:26px 20px;margin-bottom:20px;border:1.5px dashed var(--line-strong);border-radius:var(--r);background:var(--surface-2)}
.upload-zone>.icon{width:30px;height:30px;color:var(--brand);margin-bottom:6px}
.upload-zone strong{font-size:15px;color:var(--ink)}
.upload-zone p{font-size:13px;color:var(--muted);margin-bottom:12px}
.upload-zone input[type=file]{width:auto;max-width:100%}
.upload-selection{font-size:13px;color:var(--brand);font-weight:600;margin-top:6px;min-height:0}
.upload-preview{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
.upload-preview:empty{display:none}
.upload-preview img{width:64px;height:64px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}

/* 홈 */
.landing{background:var(--bg)}
.landing-header{max-width:1180px;margin:0 auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between}
.landing-hero{max-width:1180px;margin:0 auto;padding:40px 28px 90px;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.hero-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px 7px 11px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13.5px;font-weight:600;color:var(--brand)}
.hero-chip .icon{width:17px;height:17px;color:var(--accent)}
.landing-copy h1{font-size:clamp(38px,5.4vw,62px);line-height:1.18;letter-spacing:-.045em;margin:22px 0 20px}
.landing-copy h1 em{font-style:normal;color:var(--brand);position:relative;white-space:nowrap}
.landing-copy h1 em:after{content:"";position:absolute;left:0;right:0;bottom:.06em;height:.22em;background:var(--accent);opacity:.28;border-radius:4px;z-index:-1}
.landing-copy>p{font-size:17px;line-height:1.75;color:var(--muted);margin-bottom:32px}
.landing-art{position:relative;display:flex;justify-content:center;padding:20px 0}
.landing-art:before{content:"";position:absolute;width:440px;height:440px;max-width:100%;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff 0,#f1ebdf 60%,transparent 61%);top:50%;left:50%;transform:translate(-50%,-50%)}
.phone{position:relative;width:286px;padding:10px;border-radius:44px;background:#11181a;box-shadow:var(--shadow-lg)}
.phone-screen{border-radius:35px;overflow:hidden;background:#fff}
.phone-photo{position:relative;height:250px;background:var(--bg-deep)}
.phone-photo img{width:100%;height:100%;object-fit:cover}
.status-chip{position:absolute;left:14px;top:14px;display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.94);font-size:11.5px;font-weight:700;color:var(--ok)}
.status-chip .icon{width:13px;height:13px}
.phone-body{padding:18px 18px 20px}
.phone-body strong{display:block;font-size:26px;letter-spacing:-.04em;color:var(--ink)}
.phone-body>span{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.phone-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0}
.phone-facts i{font-style:normal;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:7px 4px;text-align:center;font-size:10.5px;color:var(--muted)}
.phone-facts b{display:block;font-size:13px;color:var(--ink);margin-top:1px}
.phone-call{display:flex;align-items:center;justify-content:center;gap:6px;height:42px;border-radius:12px;background:var(--brand);color:#fff;font-size:13px;font-weight:700}
.phone-call .icon{width:16px;height:16px}
.art-tag{position:absolute;left:4%;bottom:16%;width:86px;height:86px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);border:5px solid #fff}
.art-tag .logo{width:44px;height:44px}
.art-tag-ring{position:absolute;inset:-18px;border-radius:50%;border:2px solid var(--accent);opacity:.45}
.art-note{position:absolute;right:0;top:16%;display:flex;align-items:center;gap:11px;padding:13px 16px;border-radius:16px;background:#fff;box-shadow:var(--shadow);border:1px solid var(--line)}
.art-note>.icon{width:26px;height:26px;color:var(--accent)}
.art-note strong{display:block;font-size:14px;color:var(--ink)}
.art-note small{display:block;font-size:12.5px;color:var(--muted)}
.landing-section{max-width:1180px;margin:0 auto;padding:0 28px 80px}
.section-head{margin-bottom:28px}
.section-head h2{font-size:clamp(26px,3vw,34px);letter-spacing:-.035em;margin-top:8px}
.section-head>p{color:var(--muted);font-size:16px;margin-top:10px}
.start-panel{background:var(--brand-tint);border:1px solid var(--brand-soft);border-radius:var(--r-xl);padding:40px}
.start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.start-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:24px}
.start-art{display:block;width:96px;height:96px;margin-bottom:14px}
.sa-body{fill:var(--bg);stroke:var(--brand);stroke-width:2.5}
.sa-screen{fill:#fff;stroke:var(--line-strong);stroke-width:1.5}
.sa-cam{fill:var(--bg-deep);stroke:var(--brand);stroke-width:1.5}
.sa-frame{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sa-qr rect{fill:var(--brand)}
.sa-zone{fill:var(--accent);fill-opacity:.28;stroke:var(--accent);stroke-width:2;stroke-dasharray:4 3}
.sa-wave{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}
.start-card h3{font-size:18px;margin-bottom:8px}
.start-card p{color:var(--text);font-size:15px;line-height:1.7}
.start-card p b{color:var(--accent-ink)}
.start-card small{display:block;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line);color:var(--muted);font-size:13.5px;line-height:1.6}
.start-tip{display:flex;align-items:center;gap:10px;margin-top:18px;color:var(--brand);font-size:14.5px;font-weight:600}
.start-tip .icon{width:20px;height:20px;flex:none;color:var(--accent)}
.how-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.how-steps li{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:26px}
.how-steps li>span{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;font-weight:700;margin-bottom:18px}
.how-steps h3{font-size:18px;margin-bottom:8px}
.how-steps p{color:var(--muted);font-size:15px;line-height:1.7}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding-top:12px;border-top:1px solid var(--line)}
.feature-grid article{padding:22px 4px}
.feature-grid .icon{width:26px;height:26px;color:var(--brand);margin-bottom:14px}
.feature-grid h3{font-size:17px;margin-bottom:6px}
.feature-grid p{font-size:15px;color:var(--muted);line-height:1.7}
.landing-footer{max-width:1180px;margin:0 auto;padding:26px 28px 40px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}

/* 관리자 로그인 */
.login-page{background:var(--surface)}
.login-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
.login-story{position:relative;overflow:hidden;background:var(--brand);padding:44px 52px;display:flex;flex-direction:column}
.login-story-copy{position:relative;z-index:1;margin-top:auto;margin-bottom:auto;max-width:440px}
.login-story .section-kicker{color:#ffc9a8}
.login-story h1{font-size:36px;line-height:1.35;color:#fff;margin:12px 0 14px;letter-spacing:-.035em}
.login-story p{font-size:16px;color:rgba(255,255,255,.72);line-height:1.7}
.login-dog{position:absolute;right:-60px;bottom:-80px;width:62%;border-radius:50%;opacity:.22;mix-blend-mode:luminosity}
.login-story-footer{position:relative;z-index:1;font-size:13px;color:rgba(255,255,255,.6)}
.login-form-side{display:flex;align-items:center;justify-content:center;padding:48px 24px}
.login-card{width:100%;max-width:380px}
.login-mobile-brand{display:none;margin-bottom:40px}
.login-card h2{font-size:28px;margin-bottom:8px;letter-spacing:-.035em}
.login-card>.muted{font-size:15px}
.login-card .stack-form>.errorlist{margin:0;padding:12px 14px;border-radius:12px;background:var(--danger-soft);color:#8f2d1c}
.login-help{display:flex;gap:10px;align-items:flex-start;border-top:1px solid var(--line);padding-top:20px;margin-top:28px;font-size:13.5px;color:var(--muted);line-height:1.6}
.login-help .icon{width:17px;height:17px;margin-top:2px}
.login-card>.text-link{margin-top:20px;color:var(--muted);font-weight:600}

/* 관리 화면 뼈대 */
.management{background:var(--bg)}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--surface);border-right:1px solid var(--line);padding:24px 16px 0;display:flex;flex-direction:column;z-index:40;overflow-y:auto}
.sidebar>.brand{padding:4px 8px}
.workspace-label{font-size:12.5px;color:var(--muted);padding:0 8px;margin:10px 0 26px}
.nav-label{font-size:12px;font-weight:700;color:var(--faint);padding:0 12px;margin-bottom:6px}
.nav-label.second{margin-top:26px}
.nav-item{display:flex;align-items:center;gap:11px;height:42px;padding:0 12px;margin:2px 0;border-radius:11px;color:var(--text);font-weight:600;font-size:14.5px}
.nav-item .icon{width:19px;height:19px;color:var(--muted)}
.nav-item:hover{background:var(--bg)}
.nav-item.active{background:var(--brand);color:#fff}
.nav-item.active .icon{color:#fff}
.nav-sub{font-size:14px}
.user-block{display:flex;align-items:center;gap:10px;margin:auto -16px 0;padding:16px 18px;border-top:1px solid var(--line)}
.user-block>div{min-width:0;flex:1}
.user-block strong{display:block;font-size:14px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-block small{font-size:12.5px;color:var(--muted)}
.user-avatar{background:var(--brand-soft);color:var(--brand);font-size:15px}
.app-shell{margin-left:248px;min-height:100vh;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:20;height:64px;display:flex;align-items:center;gap:12px;padding:0 36px;background:rgba(245,242,236,.86);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.breadcrumb{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);font-weight:600}
.breadcrumb span{color:var(--line-strong)}
.topbar-right{margin-left:auto;font-size:13.5px;color:var(--muted)}
.mobile-menu{display:none}
.sidebar-scrim{display:none}
.main-content{flex:1;width:100%;max-width:1440px;padding:32px 36px 0}
.app-footer{display:flex;justify-content:space-between;padding:36px 0 28px;color:var(--faint);font-size:13px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.page-heading h1{display:flex;align-items:center;gap:12px;font-size:28px;letter-spacing:-.035em}
.page-heading h1 .badge{font-size:13px}
.page-heading p{margin-top:6px;color:var(--muted);font-size:15px}
.back-link{display:inline-block;color:var(--muted);font-size:14px;font-weight:600;margin-bottom:10px}
.back-link:hover{color:var(--ink)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 16px}
.panel-heading h2{font-size:17px}
.panel-heading p{font-size:13.5px;color:var(--muted);margin-top:3px}
.panel-heading>.icon{color:var(--faint)}
.form-panel{padding:26px}
.form-panel>h2{margin-bottom:16px;font-size:18px}
.form-panel .compact{padding:0 0 14px}

/* 대시보드 */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.stat-card{display:block;padding:20px 22px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);transition:border-color .15s,box-shadow .15s}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;color:var(--muted)}
.stat-number{font-size:36px;font-weight:700;letter-spacing:-.04em;color:var(--ink);line-height:1.2;margin-top:14px;font-variant-numeric:tabular-nums}
.stat-number small{font-size:15px;font-weight:600;color:var(--muted);margin-left:4px;letter-spacing:0}
.stat-caption{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--muted);margin-top:6px}
.stat-caption .icon{width:15px;height:15px}
.stat-link:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}
.stat-link.is-alert{border-color:#f5c9ad;background:linear-gradient(180deg,#fff 0,#fff8f3 100%)}
.stat-link.is-alert .stat-number{color:var(--accent-ink)}
.dashboard-middle{display:grid;grid-template-columns:1fr 1.1fr;gap:16px;margin-bottom:20px}
.welcome-banner{position:relative;overflow:hidden;min-height:240px;padding:28px;border-radius:var(--r-lg);background:var(--brand);color:#fff}
.welcome-banner>div:first-child{position:relative;z-index:1;max-width:300px}
.welcome-banner .section-kicker{color:#ffc9a8}
.welcome-banner h2{font-size:26px;line-height:1.35;color:#fff;margin:8px 0 10px}
.welcome-banner p{font-size:14.5px;color:rgba(255,255,255,.75);line-height:1.65}
.welcome-banner .btn{margin-top:20px}
.banner-card{position:absolute;right:28px;bottom:-26px;width:190px;height:122px;padding:16px;border-radius:18px;background:#fff;transform:rotate(-8deg);box-shadow:0 20px 40px rgba(0,0,0,.25)}
.banner-card .brand-mark:after{border-color:#fff}
.banner-card i{display:block;height:9px;border-radius:5px;background:var(--bg-deep);margin-top:12px;width:70%}
.banner-card i+i{width:45%;margin-top:7px}
.banner-card b{position:absolute;right:14px;top:14px;color:var(--accent)}
.banner-card b .icon{width:26px;height:26px}
.chart-panel{padding-bottom:14px}
.chart-total{font-size:28px;font-weight:700;letter-spacing:-.04em;color:var(--ink)}
.chart-total small{font-size:14px;color:var(--muted);margin-left:3px;letter-spacing:0}
.bar-chart{display:block;width:calc(100% - 40px);height:150px;margin:0 20px}
.chart-axis{stroke:var(--line)}
.chart-bar{fill:var(--brand-soft)}
.bar-chart g:last-of-type .chart-bar{fill:var(--brand)}
.bar-chart text{fill:var(--muted);font-size:11px;font-family:var(--font)}
.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.activity-panel{padding-bottom:16px}
.activity-row{display:flex;gap:12px;padding:9px 24px;align-items:flex-start}
.activity-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);margin-top:8px;flex:none;box-shadow:0 0 0 4px var(--brand-soft)}
.activity-row strong{display:block;font-size:14.5px;color:var(--ink);font-weight:600}
.activity-row small{display:block;font-size:13px;color:var(--muted)}
.checklist-panel{padding:26px}
.checklist-panel h2{font-size:18px;margin-bottom:8px}
.checklist-panel p{font-size:14.5px;color:var(--muted);line-height:1.75;max-width:440px}
.checklist-panel .text-link{margin-top:16px}
.empty-inline{padding:4px 24px 20px;color:var(--muted);font-size:14px}

/* 표·목록 */
.table-scroll{position:relative;overflow-x:auto;max-width:100%;min-width:0}
table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:14.5px}
th{padding:11px 24px;background:var(--surface-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:13px;font-weight:600}
td{padding:14px 24px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:var(--surface-2)}
.pet-cell{display:flex;align-items:center;gap:12px}
.pet-cell strong{display:block;font-size:15px;color:var(--ink);font-weight:700}
.pet-cell small,.table-small{display:block;font-size:13px;color:var(--muted);font-weight:400;margin-top:1px}
.pet-avatar{width:44px;height:44px;border-radius:13px;background:#f6eedd;color:#8a6420}
.pet-avatar.cat{background:#e5eef4;color:#2f5f80}
.pet-avatar.rabbit{background:var(--accent-soft);color:var(--accent-ink)}
.pet-avatar img{width:100%;height:100%;object-fit:cover}
.pet-avatar .icon{width:22px;height:22px}
.owner-avatar{background:var(--brand-soft);color:var(--brand);border-radius:13px}
.table-name{font-weight:600;color:var(--ink)}
.date-cell{font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.filter-row{display:flex;align-items:center;gap:10px;padding:18px 24px;flex-wrap:wrap}
.search-input{display:flex;align-items:center;gap:10px;flex:1;min-width:220px;height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--muted)}
.search-input:focus-within{border-color:var(--brand);box-shadow:var(--ring)}
.search-input input{border:0;min-height:0;height:40px;padding:0;background:none;box-shadow:none!important}
.search-input .icon{width:18px;height:18px}
.filter-row select{width:auto;min-width:130px;min-height:44px}
.filter-row .btn{min-height:44px}
.filter-row .field{width:120px}
.filter-row .field input{min-height:44px}
.pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.pagination>div{display:flex;gap:8px}
.empty-state{text-align:center;padding:48px 20px 52px;white-space:normal}
.empty-state>.icon{width:38px;height:38px;color:var(--faint);margin-bottom:12px}
.empty-state h3{font-size:17px;margin-bottom:6px}
.empty-state p{color:var(--muted);font-size:14.5px}
.empty-state .btn{margin-top:20px}

/* 등록·수정 양식 */
.editor-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:20px;align-items:start}
.editor-main{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.section-title{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.section-title h2{font-size:18px}
.section-title p{font-size:14px;color:var(--muted);margin-top:2px}
.section-title .square-icon{margin:0}
.step-number{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-weight:700;font-size:14px;flex:none;font-variant-numeric:tabular-nums}
.sticky-panel{position:sticky;top:84px}
.existing-photos{margin-top:16px}
.photo-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:16px}
.photo-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;margin-bottom:8px}
.photo-item form .btn{width:100%}
.narrow-form{max-width:820px}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin:18px 0}
.danger-link{display:inline-block;padding:14px 0;font-size:14px;font-weight:600;color:var(--danger)}
.danger-link:hover{text-decoration:underline;text-underline-offset:3px}

/* 반려동물 상세 */
.detail-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}
.detail-main{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.detail-cover{background:var(--bg-deep)}
.detail-cover img{width:100%;aspect-ratio:1;object-fit:cover}
.detail-summary-body{padding:22px 24px 24px}
.detail-summary-body h2{font-size:28px;letter-spacing:-.04em}
.detail-summary-body>.muted{font-size:14.5px;margin-top:2px}
.info-list{margin:18px 0 22px}
.info-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.info-list>div:last-child{border-bottom:0}
.info-list dt{color:var(--muted);flex:none}
.info-list dd{text-align:right;color:var(--ink);font-weight:600}
.privacy-label{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:var(--bg);color:var(--muted);font-size:12px;font-weight:600}
.text-info{font-size:15px}
.text-info dt{font-size:13px;font-weight:600;color:var(--muted);margin:18px 0 4px}
.text-info dt:first-child{margin-top:0}
.text-info dd{color:var(--ink);line-height:1.7;overflow-wrap:anywhere}
.connected-tag{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--line)}
.connected-tag>div{min-width:0}
.connected-tag strong{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--ink)}
.connected-tag small{display:block;font-size:13.5px;color:var(--muted);margin:2px 0 6px}
.connected-tag code{display:block;color:var(--muted);overflow-wrap:anywhere;white-space:normal}
.connected-tag .button-row{margin-top:10px;gap:16px}
.private-panel{background:var(--surface-2)}
.private-panel h2{display:flex;align-items:center;gap:8px;font-size:17px}
.private-panel h2 .icon{width:18px;height:18px;color:var(--muted)}
.tag-url-card>.btn{margin-top:10px}
.url-box{display:block;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--ink);word-break:break-all;line-height:1.6}
.steps-list{padding-left:20px;font-size:14.5px;color:var(--text);margin:8px 0 0}
.steps-list li{padding:7px 0;line-height:1.7}
.steps-list li::marker{color:var(--brand);font-weight:700}
.delete-card{max-width:560px;margin:56px auto;padding:40px;text-align:center}
.delete-card>.stat-icon{width:56px;height:56px;margin-bottom:18px}
.delete-card h1{font-size:24px}
.delete-card h2{font-size:17px;margin-top:10px;color:var(--muted)}
.delete-card p{font-size:15px;color:var(--muted);line-height:1.75;margin:14px 0 24px}
.delete-card .button-row{justify-content:center}

/* 공개 카드 · 보호자 화면 */
.public-page{background:var(--bg-deep)}
.public-wrap{max-width:480px;margin:28px auto 48px;background:var(--surface);border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-lg)}
.public-header{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 22px;background:var(--surface)}
.public-header .brand{font-size:18px}
.public-header .brand-mark{width:28px;height:28px;border-radius:9px}
.public-header .brand-mark .logo{width:19px;height:19px}
.public-header>span{font-size:13px;font-weight:600;color:var(--muted)}
.public-hero{position:relative;aspect-ratio:1/1;max-height:480px;background:var(--bg-deep)}
.public-hero>img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.public-status{position:absolute;left:18px;top:18px;display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.95);color:var(--ok);font-size:13.5px;font-weight:700;box-shadow:var(--shadow-sm)}
.public-status .icon{width:16px;height:16px}
.public-status.is-lost{background:var(--accent);color:#fff}
.public-content{position:relative;margin-top:-26px;padding:28px 24px 8px;background:var(--surface);border-radius:var(--r-xl) var(--r-xl) 0 0}
.public-content>.messages .notice{font-size:14.5px}
.profile-intro h1{font-size:34px;letter-spacing:-.045em;line-height:1.2}
.profile-intro>p{font-size:15.5px;color:var(--muted);margin-top:4px}
.public-gallery{display:flex;gap:8px;margin-top:16px;overflow-x:auto;padding:2px}
.public-gallery button{flex:0 0 60px;border-radius:12px;border:2px solid transparent;overflow:hidden}
.public-gallery button.selected{border-color:var(--brand)}
.public-gallery img{width:56px;height:56px;object-fit:cover}
.profile-facts{display:grid;grid-template-columns:repeat(3,1fr);margin-top:20px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.profile-facts>div{padding:14px 6px;text-align:center;border-left:1px solid var(--line)}
.profile-facts>div:first-child{border-left:0}
.profile-facts dt{font-size:13px;color:var(--muted)}
.profile-facts dd{font-size:16px;font-weight:700;color:var(--ink);margin-top:2px}
.lost-notice{display:flex;gap:12px;margin-top:20px;padding:18px;border-radius:var(--r);background:var(--accent-soft);border:1px solid #f7d2bb}
.lost-notice>.icon{width:24px;height:24px;color:var(--accent-ink);margin-top:1px}
.lost-notice h2{font-size:17px;color:#7a3212}
.lost-notice p{font-size:14.5px;color:#7a3212;line-height:1.65;margin-top:6px}
.lost-notice small{display:block;font-size:13px;color:var(--accent-ink);margin-top:8px;font-weight:600}
.lost-place{display:flex;align-items:center;gap:5px;font-weight:700}
.lost-place .icon{width:16px;height:16px}
.public-section{padding:22px 0;border-bottom:1px solid var(--line)}
.public-section h2{display:flex;align-items:center;gap:7px;font-size:16px}
.public-section h2 .icon{width:18px;height:18px}
.public-section p{font-size:15.5px;color:var(--text);line-height:1.75;margin-top:10px;overflow-wrap:anywhere}
.color-chip{display:inline-block;margin-top:12px;padding:4px 12px;border-radius:999px;background:var(--bg);font-size:13.5px;font-weight:600;color:var(--text)}
.care-section{margin-top:20px;padding:18px;border:1px solid #f0dfb5;border-radius:var(--r);background:#fdf8eb}
.care-section h2{color:#7c5a12}
.care-section h2 .icon{color:#b0841f}
.care-section p{color:#5f4a1c}
.contact-section{border-bottom:0}
.contact-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:16px 18px;border-radius:var(--r);background:var(--brand-tint);border:1px solid var(--brand-soft)}
.contact-card span{display:block;font-size:13.5px;color:var(--muted);font-weight:600}
.contact-number{display:block;font-size:22px;font-weight:700;letter-spacing:-.01em;color:var(--brand);font-variant-numeric:tabular-nums;margin-top:2px}
.contact-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--brand);border:1px solid var(--brand-soft);flex:none}
.contact-icon .icon{width:21px;height:21px}
.alternate-contact{display:flex;align-items:center;gap:8px;margin-top:10px;padding:13px 18px;border-radius:var(--r);border:1px solid var(--line);font-size:14.5px}
.alternate-contact span{color:var(--muted)}
.alternate-contact strong{color:var(--ink);font-variant-numeric:tabular-nums}
.alternate-contact .icon{width:18px;height:18px;margin-left:auto;color:var(--brand)}
.contact-private{display:flex;align-items:center;gap:8px;margin-top:12px;padding:15px 16px;border-radius:var(--r);background:var(--surface-2);font-size:14.5px;color:var(--muted)}
.contact-private .icon{width:17px;height:17px}
.owner-entry{padding:16px 0 20px;text-align:center}
.owner-entry .text-link{color:var(--muted);font-size:14px}
.owner-entry .text-link:hover{color:var(--ink)}
.public-footer{display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 24px 26px;background:var(--surface-2);border-top:1px solid var(--line);text-align:center}
.public-footer .brand{font-size:15px;gap:7px}
.public-footer .brand-mark{width:22px;height:22px;border-radius:7px}
.public-footer .brand-mark:after{width:8px;height:8px;border-width:1.5px;border-color:var(--surface-2)}
.public-footer .brand-mark .logo{width:15px;height:15px}
.public-footer span{font-size:12.5px;color:var(--muted)}
.call-bar{position:sticky;bottom:0;z-index:30;display:flex;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line)}
.call-bar .btn-primary{flex:1}
.self-page{background:var(--bg-deep)}
.self-page .public-wrap{background:var(--bg)}
.self-content{padding:4px 16px 24px}
.self-intro{text-align:center;padding:22px 8px 20px}
.intro-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--brand);margin-bottom:12px}
.intro-badge .icon{width:16px;height:16px;color:var(--accent)}
.self-intro h1{font-size:26px;letter-spacing:-.04em}
.self-intro p{font-size:15.5px;color:var(--muted);line-height:1.7;margin-top:8px}
.self-content>.notice{margin:0 0 12px}
.self-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.self-section{padding:22px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.self-section h2{display:flex;align-items:center;gap:10px;font-size:18px;margin-bottom:16px}
.self-section h2>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-size:13.5px;flex:none}
.self-section h2 .icon{width:20px;height:20px;color:var(--accent-ink)}
.self-form .form-grid{grid-template-columns:1fr;gap:16px}
.self-form .field>label{font-size:15px}
.self-form input:not([type=checkbox]):not([type=file]),.self-form select,.self-form textarea{font-size:16px;min-height:52px}
.self-form textarea{min-height:96px}
.self-form .check-list{margin:0}
.self-form .check-list label{font-size:16px}
.self-form .check-list small{font-size:14px}
.self-form input[type=checkbox]{width:22px;height:22px;margin-top:1px}
.self-form .upload-zone{margin-bottom:18px}
.self-help{font-size:14px;color:var(--muted);line-height:1.65;margin:12px 0 0}
.self-section h2+.self-help{margin:-6px 0 14px}
.self-center{text-align:center;margin:18px 0 6px}
.self-consent{margin:4px 0;padding:18px 20px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}
.self-consent label{font-size:14.5px}
.self-lost{background:var(--accent-soft);border-color:#f7d2bb}
.self-lost .check-list label{color:#7a3212}
.self-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.self-photo{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted);cursor:pointer}
.self-photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}
.self-photo span{display:flex;align-items:center;gap:6px}
.self-photo:has(input:checked) img{opacity:.35}
.self-logout{margin-top:8px}
.self-content>.btn-plain{margin-top:6px}
.error-body{background:var(--bg)}
.error-page{max-width:520px;margin:0 auto;padding:12vh 24px 40px;text-align:center}
.error-page>.brand{margin-bottom:56px}
.error-page>.square-icon{width:56px;height:56px;border-radius:16px}
.error-page h1{font-size:26px;letter-spacing:-.035em}
.error-page p{font-size:15.5px;color:var(--muted);line-height:1.75;margin:14px 0 28px}

/* 행사용 칩 기록 */
.nfc-writer{margin-bottom:16px}
.nfc-writer-head{display:flex;gap:14px;align-items:flex-start}
.nfc-writer-head .square-icon{margin:0;flex:none}
.nfc-writer-head p{margin-top:4px;font-size:14.5px}
.nfc-current{margin:20px 0 12px;padding:20px;border-radius:var(--r);background:var(--brand-tint);border:1px solid var(--brand-soft);text-align:center}
.nfc-current span{display:block;font-size:14px;font-weight:600;color:var(--muted)}
.nfc-current strong{display:block;font-size:52px;line-height:1.15;letter-spacing:.02em;color:var(--brand);font-variant-numeric:tabular-nums}
.nfc-current small{display:block;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.nfc-state{min-height:24px;font-size:15px;font-weight:600;color:var(--ink);margin-bottom:12px}
.nfc-lock{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:14px;color:var(--accent-ink)}

/* QR 카드 인쇄 — A4 한 장에 3 x 4 */
.print-page{background:var(--bg-deep)}
.print-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:210mm;margin:20px auto;padding:18px 22px;background:#fff;border-radius:var(--r-lg)}
.print-toolbar p{font-size:14px;color:var(--muted);margin-top:4px}
.print-toolbar.print-warning{background:var(--danger-soft);color:#8f2d1c;font-weight:700;font-size:15px;margin-top:-8px}
.print-sheet{width:210mm;margin:0 auto 40px;padding:8mm 7.5mm;background:#fff;display:grid;grid-template-columns:repeat(3,65mm);grid-auto-rows:70mm;justify-content:center}
.qr-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.2mm;padding:3mm;text-align:center;border:1px dashed #c9c1b4;break-inside:avoid;page-break-inside:avoid}
.qr-card-brand{display:flex;align-items:center;gap:1.8mm;font-weight:700;font-size:12pt;letter-spacing:-.04em;color:var(--ink)}
.qr-card-brand .brand-mark{width:6.5mm;height:6.5mm;border-radius:2mm}
.qr-card-brand .brand-mark:after{width:2.4mm;height:2.4mm;top:-.7mm;right:-.7mm;border-width:.4mm;border-color:#fff}
.qr-card-brand .logo{width:4.6mm;height:4.6mm}
.qr-card-code{padding:1.5mm;border-radius:3mm;border:.3mm solid #e2dccf}
.qr-card-code svg{display:block;width:34mm;height:34mm}
.qr-card strong{font-size:10pt;line-height:1.35;color:var(--ink);letter-spacing:-.03em}
.qr-card small{font-size:7pt;color:var(--muted);letter-spacing:0}
@media print{
  @page{size:A4;margin:0}
  .print-page{background:#fff}
  .print-toolbar{display:none}
  .print-sheet{margin:0;padding:8mm 7.5mm}
  .qr-card-brand .brand-mark,.qr-card-brand .brand-mark:after{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* 반응형 */
@media(max-width:1200px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-layout{grid-template-columns:280px minmax(0,1fr)}
  .landing-hero{gap:32px}
}
@media(max-width:1000px){
  .dashboard-middle,.bottom-grid{grid-template-columns:1fr}
  .editor-layout{grid-template-columns:1fr}
  .editor-aside{grid-row:1}
  .sticky-panel{position:static}
  .detail-layout{grid-template-columns:1fr}
  .pet-summary{display:grid;grid-template-columns:260px 1fr}
  .detail-cover img{height:100%;aspect-ratio:auto;min-height:280px}
  .landing-hero{grid-template-columns:1fr;padding-top:24px;padding-bottom:64px}
  .landing-art{margin-top:8px}
  .how-steps,.feature-grid,.start-grid{grid-template-columns:1fr}
  .start-card{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:16px}
  .start-art{width:72px;height:72px;margin:0;grid-row:1/span 3}
  .wide-only{display:none}
}
@media(max-width:860px){
  .sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:var(--shadow-lg)}
  .menu-open .sidebar{transform:none}
  .menu-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:35;background:rgba(22,32,28,.35)}
  .app-shell{margin-left:0}
  .mobile-menu{display:inline-flex}
  .topbar{padding:0 16px;height:58px}
  .main-content{padding:22px 16px 0}
}
@media(max-width:640px){
  body{font-size:15px}
  h1{font-size:26px}
  .landing-header{padding:16px}
  .landing-hero{padding:16px 16px 56px}
  .landing-copy h1{margin:18px 0 14px}
  .landing-copy>p{font-size:16px;margin-bottom:24px}
  .landing-copy .button-row .btn{flex:1}
  .landing-art{transform:scale(.92);margin:-8px 0}
  .art-note{right:-4px;top:6%}
  .art-tag{left:0;top:40%;bottom:auto;width:72px;height:72px}
  .art-tag .logo{width:36px;height:36px}
  .landing-section{padding:0 16px 56px}
  .how-steps li{padding:22px}
  .start-panel{padding:24px 16px;border-radius:var(--r-lg);margin:0 -4px}
  .start-card{padding:18px;grid-template-columns:56px minmax(0,1fr);column-gap:14px}
  .start-art{width:56px;height:56px}
  .start-tip{align-items:flex-start}
  .landing-footer{padding:22px 16px 32px}
  .page-heading{align-items:flex-start;margin-bottom:18px}
  .page-heading h1{font-size:24px}
  .page-heading>.button-row,.page-heading>.btn{width:100%}
  .page-heading>.button-row .btn{flex:1}
  .stats-grid{gap:10px}
  .stat-card{padding:16px}
  .stat-number{font-size:30px;margin-top:10px}
  .stat-caption{font-size:12.5px}
  .welcome-banner{padding:24px;min-height:220px}
  .banner-card{width:150px;height:100px;right:-18px;opacity:.95}
  .panel-heading{padding:18px 18px 14px}
  td,th{padding-left:16px;padding-right:16px}
  .filter-row{padding:14px 16px}
  .search-input{flex-basis:100%}
  .filter-row select{flex:1}
  .form-panel{padding:20px}
  .form-grid{grid-template-columns:1fr;gap:16px}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
  .pet-summary{display:block}
  .detail-cover img{aspect-ratio:4/3;min-height:0;height:auto}
  .login-layout{grid-template-columns:1fr}
  .login-story{display:none}
  .login-mobile-brand{display:block}
  .login-form-side{padding:56px 20px;min-height:100vh;align-items:flex-start}
  .public-page,.self-page{background:var(--surface)}
  .self-page{background:var(--bg)}
  .public-wrap{margin:0;border-radius:0;box-shadow:none;max-width:none;min-height:100vh}
  .public-header{position:sticky;top:0;z-index:20;height:58px;padding:0 16px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
  .self-page .public-header{background:rgba(245,242,236,.92)}
  .public-content{padding:26px 20px 8px}
  .delete-card{margin:24px auto;padding:28px 20px}
  .print-toolbar{margin:12px;flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
