/* 사용자 제공 초기/상세 스킨. 데이터 및 이벤트 처리는 app.js의 기존 흐름을 사용합니다. */
:root{--ink:#4a2e1b;--green:#9b5826;--cream:#faf4e9;--line:#e7d5c0;--orange:#b86e35}
body{background-color:#faf4e9;background-image:linear-gradient(to right,#e7d5c080 1px,transparent 1px),linear-gradient(to bottom,#e7d5c080 1px,transparent 1px);background-size:32px 32px}
header{padding:14px max(24px,calc((100vw - 1312px)/2));border-bottom:2px solid var(--line);background:#fffdf7f5;box-shadow:0 2px 4px #723b1708}
.brand{padding-left:60px;font-size:20px}.brand::before{width:43px;height:45px;border:2px solid #4a2e1b;border-radius:3px;background:#e8bc8c url('/static/paw.svg') center/27px no-repeat;mask:none;top:0}.brand span{font-size:10px;letter-spacing:0;color:#b86e35}.edition{font-size:11px;letter-spacing:0;border:1px solid var(--line);border-radius:30px;padding:8px 15px}
main{max-width:1360px;padding:0 24px}.hero.notebook-hero{display:flex;gap:26px;padding:40px 36px;margin:24px 0;border:2px solid #d98a4a99;border-radius:26px;background:radial-gradient(circle,#ffffff9c 1px,transparent 1px) 0 0/14px 14px,linear-gradient(130deg,#fffdf8,#f8ebd4);box-shadow:2px 3px 0 #e5d2ba,0 8px 24px #9b582614;min-height:380px;overflow:hidden}
.notebook-hero::before,.notebook-hero::after{content:'';position:absolute;top:-8px;width:125px;height:24px;background:#f9dc9fbf;transform:rotate(-3deg);left:64px;pointer-events:none}.notebook-hero::after{left:auto;right:25%;width:110px;background:#e8d2baab;transform:rotate(2deg)}
.hero.notebook-hero>.hero-copy{flex:1;min-width:0}.hero .eyebrow{font-size:11px;letter-spacing:0;background:#9b582610;border:1px solid #d98a4a55;border-radius:25px;padding:6px 12px;display:inline-block;margin:0 0 12px}.hero h1{font-size:36px;line-height:1.2;margin:0;color:#4a2e1b}.hero h1 em{text-decoration:underline wavy #d98a4a;text-underline-offset:6px;font-style:normal}.hero h1 span{font-family:'Song Myung',serif;font-size:34px;color:#723b17;margin-top:2px}.hero .intro{font-size:14px;line-height:1.7;margin:18px 0 14px;color:#61432d;max-width:none}.hero-tags{display:flex;flex-wrap:wrap;gap:8px}.hero-tags span{padding:5px 10px;border-radius:20px;background:#ffffffe6;border:1px solid var(--line);font-size:10px;font-weight:700}
.hero.notebook-hero>.box-cat{flex:0 0 190px;height:190px;margin-left:16px;position:relative}.box-ear{position:absolute;top:-30px;width:47px;height:45px;background:#171717;clip-path:polygon(50% 0,100% 100%,0 100%)}.box-ear.left{left:10px;transform:rotate(-12deg)}.box-ear.right{right:10px;transform:rotate(12deg)}.box-tail{position:absolute;left:-40px;bottom:13px;width:56px;height:111px;border:10px solid #171717;border-right:0;border-radius:100% 0 0 100%;transform:rotate(8deg)}.parcel{height:100%;background:#e8bc8c;border:4px solid #4a2e1b;border-radius:17px;position:relative;overflow:hidden;box-shadow:0 9px 22px #723b171a}.parcel-tape{position:absolute;left:38%;width:25%;height:100%;background:#f6cf9baa;border-left:2px dashed #c58e57;border-right:2px dashed #c58e57}.parcel-paw{position:absolute;left:27%;top:25%;width:48%;height:48%;background:#4a2e1b;mask:var(--paw) center/contain no-repeat}.parcel-label{position:absolute;bottom:8px;left:8px;right:8px;display:flex;justify-content:space-between;align-items:center;background:#dfaa77;border-top:2px solid #4a2e1b;padding:7px;font-size:9px}.parcel-label b{background:#fffdf7;padding:2px 5px;color:#9b5826;border-radius:3px}.parcel-badge{position:absolute;right:-8px;top:-12px;background:#9b5826;color:white;border:1px solid white;border-radius:20px;padding:5px 10px;font-size:10px;transform:rotate(6deg)}
.notebook-memo{flex:0 0 270px;position:relative;background:#fff;border:2px solid #4a2e1b;border-radius:12px;padding:22px 18px;transform:rotate(1deg);box-shadow:2px 3px 0 #e5d2ba;font-size:12px}.memo-pin{position:absolute;top:-16px;left:24px;border:2px solid #4a2e1b;background:#e8bc8c;padding:6px;border-radius:50%;font-size:11px}.notebook-memo>p{font-family:Gaegu,cursive;text-align:center;border-bottom:1px dashed var(--line);padding-bottom:10px;color:#b86e35}.notebook-memo small{display:block;font-size:11px;line-height:1.7;color:#b86e35;margin:10px 0}.notebook-memo>div{background:#f8efe0;border:1px solid var(--line);padding:10px;border-radius:8px;font-size:10px;display:flex;justify-content:space-between}
.explore{border:0;padding:0}.explore-head{background:#ffffffec;border:2px solid var(--line);border-radius:17px;padding:16px;margin-bottom:0;box-shadow:0 8px 24px #723b1710}.explore-head .eyebrow{display:none}.explore-head h2{font-size:16px;margin:0}.explore-head .muted{font-size:11px;margin:5px 0 0}.center-actions{background:#f8efe0;border:1px solid var(--line);padding:4px;border-radius:12px;gap:4px}.center-actions button{font-size:11px;padding:8px 10px;border-radius:8px}.status{margin:10px 16px 0;font-size:12px}#location-status{margin:5px 16px 16px;font-size:11px}.workspace{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px}.map-wrap{padding:18px 20px 40px;border:2px solid var(--line);border-radius:25px;background:#fffdf7;box-shadow:0 10px 28px #723b1712}.map-heading{display:flex;justify-content:space-between;font-size:11px;margin:0 2px 14px;gap:8px}.map-heading span{color:#b86e35}#map{height:540px;border:2px solid var(--line);border-radius:17px}.map-key{bottom:10px;left:24px;box-shadow:none;background:none}.list-panel{padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}.list-top{background:#f8efe0;border:2px solid var(--line);border-radius:16px;padding:16px;margin-bottom:15px}.list-top h3{font-size:15px}.list-top>span{font-size:10px}#cards{height:570px;max-height:570px;padding-right:4px}
.card{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:17px 16px 12px;margin-bottom:13px;border:2px solid var(--line);border-radius:16px;background:#fffdf7;box-shadow:0 2px 3px #723b1708;min-height:165px}.card:hover{background:#fffdf7;border-color:#9b5826;transform:translateY(-2px)}.card::before{display:none}.card-no{position:relative;min-width:40px;width:40px;height:40px;border:2px solid #745137;border-radius:12px;background:#e8bc8c;color:#4a2e1b;font-size:16px;mask:none}.card-no::before,.card-no::after{content:'';position:absolute;top:-8px;width:9px;height:8px;background:#4a2e1b;clip-path:polygon(50% 0,100% 100%,0 100%);left:3px;mask:none}.card-no::after{left:auto;right:3px}.card-copy{min-width:0}.card-copy small{display:inline-block;color:#9b5826;background:#fef4de;border:1px solid #f9dc9f;border-radius:4px;padding:2px 5px;font-size:10px;margin:0 0 8px}.card-copy b{font-size:16px;margin:0 0 7px}.card-copy p{font-family:'Song Myung',serif;font-size:12px;line-height:1.65;color:#a45b27;font-style:italic}.card-distance{position:absolute;right:13px;top:13px;margin:0;background:#fef4de;border:1px solid #efd8b2;border-radius:20px;padding:3px 8px;color:#9b5826;font-size:10px}.card-bottom{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:9px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#b86e35;font-weight:400}.card-bottom>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-bottom b{white-space:nowrap}.actions{margin:18px 0 0 58%;gap:12px}.actions button{flex:1;padding:14px 10px;border:2px solid #9b5826;border-radius:16px;background:#fffdf7;font-size:11px}.actions .primary{background:#9b5826;color:#fff}.primary span{margin-left:6px}.how{background:#fffdf7;border:2px dashed var(--line);border-radius:24px;margin:26px 0 60px;padding:20px;gap:20px}.how p{font-size:11px}footer{max-width:none;width:100%;background:#faf3e3;border-top:2px solid var(--line);padding:45px 24px;display:flex;flex-direction:column;text-align:center;align-items:center;gap:12px}footer::before{content:'🐾';display:block;width:40px;height:43px;padding-top:10px;background:#e8bc8c;border:2px solid #4a2e1b}
dialog#detail{width:min(576px,calc(100% - 28px));padding:38px 24px 25px;border:4px solid #4a2e1b;border-radius:25px;background:#fffdf7;max-height:calc(100dvh - 48px);margin:auto;box-shadow:0 25px 70px #4a2e1b55;overflow:auto}dialog#detail::backdrop{background:#4a2e1b99;backdrop-filter:blur(4px)}dialog#detail::before,dialog#detail::after{content:'';position:absolute;top:7px;left:-8px;width:65px;height:18px;background:#e8d2baaf;transform:rotate(-45deg);pointer-events:none}dialog#detail::after{left:auto;right:-8px;transform:rotate(45deg)}.notebook-tab{position:absolute;top:6px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:700;padding:5px 16px;border:2px solid white;border-radius:25px;background:#dfaa77;color:#4a2e1b;box-shadow:0 3px 4px #4a2e1b15}#close-detail{top:16px;right:15px;width:35px;height:35px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fbf5eb;z-index:3}#close-detail::before{display:none}.detail-badges{display:flex;gap:7px;flex-wrap:wrap;padding-right:28px;margin-bottom:13px;letter-spacing:0;font-size:10px}.detail-badges span{padding:3px 8px;border-radius:18px;border:1px solid #f5c997;background:#fffae6;color:#9b5826}.detail-badges span:first-child{background:#542e16;color:#fff;border-color:#542e16}#detail-body>h2,#shared-content>h2{font-size:27px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:2px dashed var(--line);padding-bottom:14px;margin:0 0 16px}.detail-stamp{font-size:23px;flex-shrink:0;background:#fff4d6;border:2px dashed #e4b26f;border-radius:16px;padding:8px;transform:rotate(-8deg)}.one-line-story{padding:17px 18px 17px 42px;background:linear-gradient(90deg,#fffbea,#fef4de);border:2px dashed #eac18c;border-radius:16px;font-family:'Song Myung',serif;font-style:italic;font-size:14px;line-height:1.65;margin:0 0 16px;position:relative}.one-line-story::before{content:'🐾';position:absolute;left:14px;top:16px;font-size:14px}.story{font-size:13px;line-height:1.8;border:1px solid var(--line);background:#fbf7ee;border-radius:16px;padding:17px 17px 17px 40px;margin:0 0 16px}.facts{padding:14px 17px;border:2px solid var(--line);border-radius:16px;background:white;margin:0 0 15px;grid-template-columns:95px minmax(0,1fr);gap:0;font-size:11px;box-shadow:0 3px 10px #4a2e1b08}.facts dt,.facts dd{padding:10px 0;border-bottom:1px dashed var(--line);color:#9b5826}.facts dd{text-align:right}.facts dt:last-of-type,.facts dd:last-of-type{border-bottom:0}.detective-memo{display:flex;align-items:center;gap:12px;padding:12px 14px;border:2px dashed #e7bb81;border-radius:16px;background:#f8efe0;margin:14px 0 18px}.detective-memo>span{font-size:23px}.detective-memo b{font-size:10px}.detective-memo p{font:14px Gaegu,cursive;color:#9b5826;margin:4px 0 0}#detail-body>h3,#shared-content>h3{font-size:12px;margin:0 0 9px}.map-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.map-links a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:86px;border:2px solid #a0f0cc;border-radius:16px;background:linear-gradient(110deg,#edfff6,#d4fbe8);color:#005638;font-size:12px;font-weight:800;padding:10px 4px;box-shadow:0 2px 4px #4a2e1b08}.map-links a[data-provider=kakao]{border-color:#ffd34a;background:linear-gradient(110deg,#fffbed,#fff2ba);color:#854500}.map-links a[data-provider=tmap]{border-color:#b8d5ff;background:linear-gradient(110deg,#f0f6ff,#dfebff);color:#2450a3}.map-links a::before{margin:0 0 7px;width:22px;height:22px}.map-links a::after{font-size:9px;font-weight:400;content:'길찾기 바로가기';margin-top:4px}.map-links a[data-provider=kakao]::after{content:'도보 경로 안내'}.map-links a[data-provider=tmap]::after{content:'내비 연동'}.map-note{font-size:10px;line-height:1.6;color:#a17a58;margin:8px 0}.share-section{margin-top:16px;border-top:2px dashed var(--line);padding-top:13px;display:flex;flex-wrap:wrap;gap:9px;justify-content:space-between;align-items:center}.share-section h3{font:14px Gaegu,cursive;margin:0}.share-actions{gap:8px;display:flex}.share-actions button{font-size:11px;padding:7px 10px;border-radius:12px;background:white}.share-actions button[data-share=kakaotalk]{background:#fffbea;border-color:#f5d995}.share-status,.local-share-note,.share-url{flex-basis:100%;font-size:10px;margin:0}.share-status:empty{display:none}.shared-view{max-width:650px;margin:28px auto;background:#fffdf7;border:3px solid #4a2e1b;border-radius:24px;padding:25px}.leaflet-tooltip{width:max-content;max-width:230px}.shared-entry .notebook-hero{display:none}
@media(max-width:1100px){.hero.notebook-hero{gap:22px;padding:36px 26px}.hero.notebook-hero>.box-cat{flex-basis:145px;height:145px;margin-left:10px}.notebook-memo{flex-basis:220px}.hero h1{font-size:29px}.hero h1 span{font-size:28px}.hero .intro{font-size:12px}.hero-tags span{font-size:9px}.card-distance{position:static;grid-column:2;grid-row:2;justify-self:start}.card-bottom{grid-row:3}.card-copy p{font-size:12px}.card{gap:8px 12px}.list-top>span{display:none}}
@media(max-width:760px){header{padding:14px 16px}.brand{font-size:16px;padding-left:49px}.brand span{font-size:8px;max-width:270px}.brand::before{width:36px;height:39px}.edition{display:none}main{padding:0 14px}.hero.notebook-hero{flex-wrap:wrap;gap:24px;padding:36px 22px 24px;margin:18px 0;min-height:0}.hero.notebook-hero>.box-cat{flex:0 0 105px;height:105px;margin:4px auto 0}.box-ear{width:30px;height:32px;top:-22px}.box-tail{height:64px;width:32px;left:-22px;border-width:7px;bottom:10px}.parcel{border-width:3px;border-radius:12px}.parcel-label{font-size:6px;padding:4px;bottom:4px;left:4px;right:4px}.parcel-label b{font-size:6px;padding:1px}.parcel-badge{font-size:8px;padding:3px 6px}.hero.notebook-hero>.hero-copy{flex:1 1 100%}.hero .eyebrow{font-size:9px;padding:5px 8px}.hero h1{font-size:29px}.hero h1 span{font-size:28px;display:block}.hero .intro{font-size:12px;margin-top:14px}.notebook-memo{flex:1 1 100%;padding:15px 17px;margin:6px 0 0}.notebook-memo>p{margin:6px 0 10px}.notebook-memo small{font-size:11px}.explore-head{flex-direction:column;align-items:stretch;gap:12px;padding:14px}.explore-head h2{font-size:15px}.center-actions{align-self:flex-start}.workspace{grid-template-columns:minmax(0,1fr);gap:18px}.map-wrap{padding:12px 12px 35px;border-radius:20px}.map-heading{font-size:9px}.map-heading span{display:none}#map{height:330px}.list-panel{padding:0}.list-top{padding:13px}.list-top h3{font-size:14px}#cards{height:auto;max-height:530px}.card{min-height:150px}.card-distance{position:absolute;grid-column:auto;right:12px;top:13px}.card-copy small{max-width:calc(100% - 85px)}.card-bottom{grid-row:auto}.actions{margin:16px 0 0;gap:8px}.actions button{font-size:10px;padding:12px 6px}.actions button::before{display:none}.how{padding:16px 12px;gap:12px;margin:22px 0 30px;grid-template-columns:1fr}.how>div{gap:12px}.how p{margin:0}footer{padding:32px 20px}.facts{grid-template-columns:78px minmax(0,1fr);padding:9px 12px}dialog#detail{margin:auto;width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:42px 16px 20px;border-radius:23px;border-width:3px}#detail-body>h2,#shared-content>h2{font-size:23px}.detail-badges{font-size:9px;gap:4px}.detail-badges span{padding:3px 6px}.detail-stamp{font-size:18px;padding:7px}.one-line-story{font-size:13px;padding:13px 12px 13px 36px}.story{font-size:12px;padding:14px 12px 14px 34px}.map-links{gap:7px}.map-links a{font-size:11px;min-height:83px}.share-actions{width:100%}.share-actions button{flex:1}.shared-view{padding:20px 16px}.notebook-tab{font-size:9px}.notebook-memo,.parcel-badge{transform:none}}
@media(prefers-reduced-motion:reduce){.card:hover{transform:none}}
/* 이전 테마의 모바일 정렬값이 새 수첩 레이아웃에 섞이지 않도록 명시합니다. */
.hero.notebook-hero{flex-direction:row}.box-cat{width:190px;min-width:190px}.card-distance{bottom:auto;transform:none}.how>div{flex-direction:row}.detail-badges span{font-family:'Noto Sans KR',sans-serif;letter-spacing:0}dialog#detail::before,dialog#detail::after{border:0;border-radius:2px}
@media(max-width:1100px){.box-cat{width:145px;min-width:145px}}
@media(max-width:760px){.box-cat{width:105px;min-width:105px}.card-distance{bottom:auto;top:13px;right:12px}.card-copy{padding-right:0}.card-bottom{position:static}.card-bottom b{display:block}.how>div{align-items:center}.hero.notebook-hero>.box-cat{align-self:center}}
@media(max-width:760px){.card-distance{grid-area:auto}.how>div{display:flex;flex-direction:row;align-items:center}.how>div span{flex-shrink:0}.how>div p{margin:0}}
