/* 13000-uloca-mountain-log — 산행 기록·사진. 12000 의 --umt-* 변수·버튼·칩을 그대로 쓴다.
 * 사진이 돋보이게(글자는 사진 밖), 휴대폰 우선, 360px 에서 가로 스크롤 없음.
 * 시트·크게 보기·산 고르기는 body 에 붙으므로 요소 자체에 .umt 를 달아 변수를 받는다. */
.umt { --mlog-g3: #17553a; --mlog-g2: #2f7d5b; --mlog-g1: #8a6d3b; }
html.mlog-lock { overflow: hidden; }
.mlog-err { color: var(--umt-bad); font-size: 14px; margin: 6px 0; }
.mlog-link { padding: 0; border: 0; background: none; color: var(--umt-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.mlog-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--umt-soft); color: var(--umt-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.mlog-empty { padding: 24px 16px; text-align: center; background: var(--umt-soft); border-radius: var(--umt-r); }
.mlog-empty p { margin: 0 0 14px; }
.mlog-kakao { background: #fee500 !important; border-color: #fee500 !important; color: #191600 !important; }
.mlog-agree { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.mlog-agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--umt-accent); }
.mlog-setup .umt-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--umt-line); border-radius: 10px; font: inherit; font-size: 16px; }
.mlog-setup.is-busy, .is-busy { opacity: .6; pointer-events: none; }
.mlog-danger { color: var(--umt-bad) !important; }
.mlog-toast { position: fixed; left: 50%; bottom: 90px; z-index: 1200; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(20, 30, 25, .92); color: #fff; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }

/* 증거 배지 ▲ 정상 사진 / 📍 산에서 찍음 / ✋ 본인 기록 */
.mlog-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.mlog-badge--3 { background: #e3f1e8; color: var(--mlog-g3); }
.mlog-badge--2 { background: #eaf3ee; color: var(--mlog-g2); }
.mlog-badge--1 { background: #f5efe4; color: var(--mlog-g1); }

/* 떠 있는 '+ 사진' 버튼. 12000 '맨 위로' 버튼은 그 위로 올린다 */
.mlog-fab { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--umt-accent, #1f6b45); color: #fff; font: inherit; font-size: 16px; font-weight: 800; box-shadow: 0 6px 18px rgba(23, 85, 58, .35); cursor: pointer; font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
.mlog-fab:hover { background: #17553a; }
.mlog-fab:focus-visible { outline: 3px solid #1f2a24; outline-offset: 2px; }
.mlog-fab-on .umt-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.mlog-sheet-on .mlog-fab { display: none; }

/* 바닥 시트·작은 창 */
.mlog-sheet, .mlog-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 25, 20, .5); }
.mlog-sheet[hidden], .mlog-modal[hidden] { display: none; }
.mlog-modal { z-index: 1100; }
.mlog-sheet__panel, .mlog-modal__panel { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); }
.mlog-sheet__panel:focus { outline: none; }
.mlog-sheet__head, .mlog-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.mlog-sheet__head h2 { margin: 0; font-size: 19px; }
.mlog-sheet__h { margin: 18px 0 8px; font-size: 16px; }
.mlog-sheet__notice { margin: 14px 0 0; font-size: 12.5px; color: var(--umt-muted); }
.mlog-sheet__foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.mlog-sheet__foot > * { flex: 1 1 140px; }
@media (min-width: 768px) {
	.mlog-sheet, .mlog-modal { align-items: center; }
	.mlog-sheet__panel, .mlog-modal__panel { border-radius: 18px; max-height: 86vh; }
}
.mlog-drop { display: grid; justify-items: center; gap: 4px; padding: 30px 16px; border: 2px dashed #b9cdbf; border-radius: 16px; background: var(--umt-soft); text-align: center; cursor: pointer; }
.mlog-drop:hover, .mlog-drop:focus-within { border-color: var(--umt-accent); }
.mlog-drop input, .mlog-more input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mlog-more { position: relative; }
.mlog-drop__ico { font-size: 34px; line-height: 1; }
.mlog-drop b { font-size: 17px; }
.mlog-drop small { color: var(--umt-muted); font-size: 13px; }
.mlog-def { padding: 8px 10px; border-radius: 10px; background: #f1f7f2; }

/* 올리는 중: 장마다 썸네일 + 진행 막대 */
.mlog-qhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin: 0 0 8px; }
.mlog-queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 420px) { .mlog-queue { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mlog-q { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--umt-soft); border: 2px solid transparent; }
.mlog-q img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlog-q.is-wait img { opacity: .55; }
.mlog-q.is-fail { border-color: var(--umt-bad); }
.mlog-q__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.mlog-q__bar i { display: block; height: 100%; background: var(--umt-accent); transition: width .3s; }
.mlog-q.is-ok .mlog-q__bar, .mlog-q.is-fail .mlog-q__bar { display: none; }
.mlog-q__st { position: absolute; left: 0; top: 0; padding: 1px 6px; border-radius: 0 0 8px 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 11px; }
.mlog-q.is-ok .mlog-q__st { background: var(--umt-accent); }
.mlog-q.is-fail .mlog-q__st { background: var(--umt-bad); }
.mlog-q__retry { position: absolute; inset: auto 6px 6px 6px; min-height: 30px; border: 0; border-radius: 8px; background: #fff; color: var(--umt-bad); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* 결과 묶음 */
.mlog-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mlog-group { padding: 10px 12px; border: 1px solid var(--umt-line); border-radius: var(--umt-r); }
.mlog-group--none { border-color: #e9c46a; background: #fffbea; }
.mlog-group__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mlog-group__head p { margin: 0; min-width: 0; }
.mlog-group__head small { color: var(--umt-muted); }
.mlog-group__head .umt-btn { flex: none; }
.mlog-group__thumbs { display: flex; gap: 4px; margin: 8px 0 0; overflow: hidden; }
.mlog-group__thumbs img { width: 48px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; }
.mlog-hikeform { margin: 8px 0 0; }
.mlog-hikeform summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--umt-accent); }
.mlog-hikeform form { display: grid; gap: 8px; margin: 8px 0 0; }
.mlog-hikeform input[type=text] { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--umt-line); border-radius: 10px; font: inherit; font-size: 16px; }
.mlog-hikeform .umt-btn { justify-self: start; }

/* 완료: 도장 찍기 */
.mlog-done { display: grid; justify-items: center; gap: 6px; padding: 10px 0 0; text-align: center; }
.mlog-done h3 { margin: 4px 0 0; font-size: 22px; }
.mlog-done__prog { margin: 0 0 8px; color: var(--umt-muted); }
.mlog-done__prog b { color: var(--umt-accent); font-size: 22px; }
.mlog-stamp-anim { display: grid; place-items: center; width: 92px; height: 92px; border: 5px solid var(--mlog-g3); border-radius: 50%; color: var(--mlog-g3); font-size: 44px; font-weight: 900; transform: rotate(-12deg); animation: mlog-stamp .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes mlog-stamp { from { opacity: 0; transform: scale(2.2) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .mlog-stamp-anim { animation: none; } }

/* 산 고르기 */
.mlog-picker .umt-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--umt-line); border-radius: 10px; font: inherit; font-size: 16px; }
.mlog-picker__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.mlog-picker__list button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--umt-line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.mlog-picker__list button { color: var(--umt-ink) !important; }
.mlog-picker__list b, .mlog-picker__list strong { font-weight: 700; }
.mlog-picker__list button:hover, .mlog-picker__list button:focus, .mlog-picker__list button.is-on { border-color: var(--umt-accent); background: #f1f7f2; color: var(--umt-ink) !important; }
.mlog-picker__list span { font-size: 13px; color: var(--umt-muted); }

/* 크게 보기 */
.mlog-viewer { position: fixed; inset: 0; z-index: 1050; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: rgba(8, 12, 10, .94); color: #fff; }
.mlog-viewer:focus { outline: none; }
.mlog-viewer.is-busy { opacity: 1; }
.mlog-viewer.is-busy .mlog-viewer__tools { opacity: .5; pointer-events: none; }
.mlog-viewer__fig { display: grid; place-items: center; min-height: 0; margin: 0; padding: 56px 8px 8px; }
.mlog-viewer__fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; cursor: zoom-out; } /* 누르면 닫힘 */
.mlog-viewer__x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255, 255, 255, .15); color: #fff; }
.mlog-viewer__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 64px; margin-top: -60px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; cursor: pointer; }
.mlog-viewer__nav.is-prev { left: 8px; }
.mlog-viewer__nav.is-next { right: 8px; }
.mlog-viewer__info { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, .35); }
.mlog-viewer__n { float: right; font-size: 12px; opacity: .7; }
.mlog-viewer__cap { margin: 0; font-weight: 700; }
.mlog-viewer__by { margin: 2px 0 0; font-size: 13px; opacity: .85; }
.mlog-viewer a { color: #b7e4c7 !important; }
.mlog-viewer a:hover, .mlog-viewer a:focus { color: #fff !important; background: none; } /* 어두운 배경 위 링크: 마우스를 올리면 흰 글자(테마 hover 색이 묻히지 않게) */
.mlog-viewer__tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.mlog-viewer__tools .umt-note { color: #d8e8de; }
.mlog-viewer__report { flex: 1 1 180px; }
.mlog-viewer__report span { color: #d8e8de !important; }
.mlog-viewer__report select { width: 100%; min-height: 36px; border-radius: 8px; font: inherit; font-size: 16px; }

/* 수첩·프로필 머리 */
.mlog-book__head h1 small { font-size: .55em; }
.mlog-prog { padding: 14px; border-radius: var(--umt-r); background: linear-gradient(180deg, #f1f7f2, #fff); border: 1px solid var(--umt-line); }
.mlog-prog__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.mlog-prog__top select { min-height: 36px; border: 1px solid var(--umt-line); border-radius: 8px; font: inherit; font-weight: 700; font-size: 16px; }
.mlog-prog__num { color: var(--umt-muted); font-variant-numeric: tabular-nums; }
.mlog-prog__num b { font-size: 26px; color: var(--umt-accent); }
.mlog-bar { height: 10px; border-radius: 999px; background: #e3ebe5; overflow: hidden; }
.mlog-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--umt-accent), #3f9a6b); }
.mlog-prog__sub { margin: 8px 0 0; font-size: 13.5px; color: var(--umt-muted); }
.mlog-book__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }

/* 탭 (0.4.1): 탭마다 색(--t 진한 색, --ts 연한 바탕, --tb 테두리, 선택 때 --tf 바탕·--to 글자)·아이콘. 선택 = 기본은 그 색으로 꽉 채우고 글자 흰색 */
.mlog-tabs { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; padding: 8px 0; background: #fff; }
.admin-bar .mlog-tabs { top: 32px; }
@media (max-width: 782px) { .admin-bar .mlog-tabs { top: 46px; } }
.mlog-tab--photos { --t: #b4532a; --ts: #fff5ef; --tb: #f6cbb5; --tf: #f3a683; --to: #7a2e14; } /* 파스텔 단풍: 선택 = 연한 단풍 바탕에 진한 갈색 글자(0.4.2) */
.mlog-tab--stamps { --t: var(--umt-accent); --ts: #ebf5ef; --tb: #bcdcc9; }
.mlog-tab--hikes { --t: #1d6390; --ts: #ebf3fa; --tb: #bdd6ea; }
.mlog-tabs .mlog-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 60px; padding: 8px 10px; border: 1.5px solid var(--tb); border-radius: 14px; background: var(--ts); color: var(--t); font: inherit; font-size: 16px; font-weight: 800; line-height: 1.25; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mlog-tab__ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.mlog-tab__ico svg { width: 22px; height: 22px; }
.mlog-tabs .mlog-tab:hover { border-color: var(--t); background: var(--ts); color: var(--t); transform: translateY(-1px); box-shadow: 0 4px 10px -6px var(--t); }
.mlog-tabs .mlog-tab:focus { background: var(--ts); color: var(--t); outline: none; }
.mlog-tabs .mlog-tab:focus-visible { outline: 3px solid var(--t); outline-offset: 2px; }
.mlog-tabs .mlog-tab.is-on, .mlog-tabs .mlog-tab.is-on:hover, .mlog-tabs .mlog-tab.is-on:focus { border-color: var(--tf, var(--t)); background: var(--tf, var(--t)); color: var(--to, #fff); box-shadow: 0 6px 14px -6px var(--tf, var(--t)); }
.mlog-tab.is-on .mlog-tab__ico { background: rgba(255, 255, 255, .2); }
.mlog-tab--photos.is-on .mlog-tab__ico { background: rgba(255, 255, 255, .45); }
@media (max-width: 600px) {
	.mlog-tabs { gap: 6px; }
	.mlog-tabs .mlog-tab { flex-direction: column; gap: 3px; min-height: 68px; padding: 6px 2px; font-size: 14px; }
	.mlog-tab__ico { width: 30px; height: 30px; }
	.mlog-tab__ico svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mlog-tabs .mlog-tab { transition: none; } .mlog-tabs .mlog-tab:hover { transform: none; } }

/* 사진 탭: 지도 + 3열(넓으면 5열) 정사각 그리드 */
.mlog-mapwrap { position: relative; margin: 0 0 12px; }
.mlog-map { aspect-ratio: 3 / 2; width: 100%; height: auto; border-radius: var(--umt-r); border: 1px solid var(--umt-line); z-index: 0; } /* 가로 꽉 차게, 세로 = 가로의 2/3 */
@media (max-width: 600px) { .mlog-map { aspect-ratio: 1; } } /* 휴대폰: 남북으로 긴 대한민국이 작아지지 않게 */
@media (min-width: 1100px) { .mlog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* 넓은 화면(추천안 A, 2026-10-20): 지도 왼쪽 절반·화면 높이에 맞춰 따라 내려옴, 썸네일은 오른쪽에서 스크롤 */
@media (min-width: 900px) {
	.mlog-ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
	.mlog-ph .mlog-mapwrap { position: sticky; top: 72px; margin: 0; }
	.mlog-ph .mlog-map { aspect-ratio: auto; height: clamp(420px, calc(100vh - 110px), 760px); }
	.mlog-ph .mlog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1300px) { .mlog-ph .mlog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mlog-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--umt-line); border-radius: var(--umt-r); background: #f1f7f2; }
.mlog-focus p { flex: 1 1 auto; margin: 0; font-size: 15px; }
.mlog-all { position: absolute; top: 10px; left: 50%; z-index: 500; transform: translateX(-50%); min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--umt-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
.mlog-pt { border-radius: 50%; }
.mlog-pt img, .mlog-pt i { display: block; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; background: var(--mlog-g2); box-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
.mlog-pt--g3 img, .mlog-pt--g3 i { border-color: var(--mlog-g3); }
.mlog-pt--g1 i, .mlog-pt--g0 i { background: var(--mlog-g1); }
.mlog-cl span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--umt-accent); color: #fff; font-weight: 800; font-size: 14px; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.mlog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; scroll-margin-top: 60px; }
@media (min-width: 768px) { .mlog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } }
.mlog-ghead { grid-column: 1 / -1; margin: 12px 0 4px !important; font-size: 15px !important; }
.mlog-cell, .mlog-strip__img { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; background: var(--umt-soft); overflow: hidden; cursor: zoom-in; }
.mlog-cell img, .mlog-strip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlog-cell:focus-visible, .mlog-strip__img:focus-visible { outline: 3px solid var(--umt-accent); outline-offset: -3px; }
.mlog-cell__g { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mlog-g3); color: #fff; font-size: 11px; }
.mlog-cell__lock { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; }

/* 다녀온 산: 도장판 */
.mlog-sfilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.mlog-sfilter p { margin: 0; font-weight: 700; }
.mlog-sfilter [aria-pressed=true] { background: var(--umt-accent); border-color: var(--umt-accent); color: #fff !important; }
.mlog-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .mlog-stamps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .mlog-stamps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 12px; } }
.mlog-stamps .umt-empty, .mlog-stamps .umt-note { grid-column: 1 / -1; }
.mlog-stamp > a, .mlog-stamp > button { display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: none; color: inherit !important; font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.mlog-stamp__img { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #e3efe7, #c9ddd0); border: 3px solid transparent; }
.mlog-stamp__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlog-stamp.is-todo .mlog-stamp__img { filter: grayscale(1); opacity: .45; }
.mlog-stamp.is-done .mlog-stamp__img { border-color: var(--mlog-g2); }
.mlog-stamp.g3 .mlog-stamp__img { border-color: var(--mlog-g3); }
.mlog-stamp.g1 .mlog-stamp__img { border-color: var(--mlog-g1); }
.mlog-stamp__badge { position: absolute; right: 4%; bottom: 4%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--mlog-g3); font-size: 15px; font-weight: 900; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.mlog-stamp__name { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.mlog-stamp.is-todo .mlog-stamp__name { color: var(--umt-muted); font-weight: 600; }
.mlog-stamp__sub { font-size: 11.5px; color: var(--umt-muted); }

/* 산행 카드 */
.mlog-hikes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 480px) { .mlog-hikes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .mlog-hikes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .mlog-hikes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mlog-hike { display: flex; flex-direction: column; border: 1px solid var(--umt-line); border-radius: var(--umt-r); background: #fff; overflow: hidden; }
.mlog-hike__cover { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--umt-soft); cursor: zoom-in; }
.mlog-hike__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlog-hike__body { min-width: 0; padding: 10px 12px 12px; }
.mlog-hike h3 { margin: 0 0 4px !important; font-size: 17px !important; }
.mlog-hike h3 a { color: var(--umt-ink) !important; text-decoration: none; }
.mlog-hike h3 small { font-size: 13px; font-weight: 500; color: var(--umt-muted); }
.mlog-hike__meta { margin: 0; font-size: 13px; color: var(--umt-muted); }
.mlog-hike__note { margin: 6px 0 0; font-size: 14.5px; }
.mlog-hmore { text-align: center; margin: 14px 0; }

/* 산 상세 블록 */
.mlog-item { margin: 0 0 26px; }
.mlog-item:empty { display: none; }
.mlog-item h2 small { font-size: 14px; font-weight: 500; color: var(--umt-muted); }
.mlog-item__me { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--umt-soft); font-size: 14.5px; }
.mlog-item__me.is-done { background: #e3f1e8; }
.mlog-item__me.is-done b { color: var(--mlog-g3); }
.mlog-item__first { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 1px dashed #b9cdbf; border-radius: var(--umt-r); background: var(--umt-soft); }
.mlog-item__first p { margin: 0; font-weight: 600; }
.mlog-strip { display: flex; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0 0 6px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.mlog-strip > li { flex: 0 0 132px; min-width: 0; scroll-snap-align: start; }
.mlog-strip__img { width: 100%; border-radius: 10px; }
.mlog-strip__by { display: block; margin: 2px 0 0; font-size: 12px; color: var(--umt-muted) !important; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlog-strip__date { display: block; font-size: 11.5px; color: var(--umt-muted); }
.mlog-strip__more { display: grid; place-items: center; }
/* 최근 산행: 가로 카드(사진 위·글 아래), 폭에 맞춰 2~4열 */
.mlog-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.mlog-mini { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--umt-line); border-radius: 10px; overflow: hidden; background: #fff; }
.mlog-mini img { width: 100%; height: auto; aspect-ratio: 4 / 3; flex: none; border-radius: 0; object-fit: cover; }
.mlog-mini > div { padding: 8px 10px 10px; }
.mlog-mini > div { min-width: 0; }
.mlog-mini p { margin: 0; }
.mlog-mini__top { font-size: 13px; color: var(--umt-muted); }
.mlog-mini__note { font-size: 14px; }

/* 탐색 카드 '다녀옴' 표시·'안 가본 산만' */
.mlog-mark { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--mlog-g3); font-size: 12px; font-weight: 800; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); pointer-events: none; }
.mlog-only-new .mlog-been { display: none !important; }
.mlog-item__me a { white-space: nowrap; }

/* 테마(GeneratePress) 버튼 기본값 막기: 글자 흰색, 마우스오버·포커스 때 진한 회색 배경(#3f4047)이 우리 버튼에 끼어든다 */
.mlog-link:hover, .mlog-link:focus { background: none; color: var(--umt-accent); }
.mlog-x:hover, .mlog-x:focus { background: var(--umt-line); color: var(--umt-ink); }
.mlog-q__retry:hover, .mlog-q__retry:focus { background: #fff; color: var(--umt-bad); }
.mlog-cell:hover, .mlog-cell:focus, .mlog-strip__img:hover, .mlog-strip__img:focus, .mlog-hike__cover:hover, .mlog-hike__cover:focus { background: var(--umt-soft); }
.mlog-sfilter .umt-chip:hover, .mlog-sfilter .umt-chip:focus { background: #fff; color: var(--umt-ink) !important; }
.mlog-sfilter [aria-pressed=true]:hover, .mlog-sfilter [aria-pressed=true]:focus { background: var(--umt-accent); color: #fff !important; }
.mlog-viewer__nav:hover, .mlog-viewer__nav:focus, .mlog-viewer__x:hover, .mlog-viewer__x:focus { background: rgba(255, 255, 255, .28); color: #fff; }
/* 선택·포커스 규칙(사용자 결정 2026-10-20): 배경이 어두우면 글자는 흰색. 테마 button:hover/focus 가 배경만 어둡게 바꾸지 못하게 한다 */
.mlog-stamp > button:hover, .mlog-stamp > button:focus { background: none; color: inherit !important; }
.mlog-all:hover, .mlog-all:focus { background: var(--umt-ink); color: #fff; }
.mlog-fab:focus { background: var(--umt-accent); color: #fff; }
.umt .umt-btn.mlog-danger:hover, .umt .umt-btn.mlog-danger:focus, .mlog-viewer .umt-btn.mlog-danger:hover, .mlog-viewer .umt-btn.mlog-danger:focus { color: var(--umt-bad) !important; }
/* 사진 ↔ 지도 연동: 지금 보는 사진 */
.mlog-cell.is-cur { outline: 3px solid #d84315; outline-offset: -3px; }
