/* 포만감 행: 아이콘 열 고정 + 텍스트 한 칸 띄고 좌측 정렬 (스크롤 시 아이콘 줄 맞춤) */
.mealog-wheel--satiety .mealog-wheel__item {
    justify-content: flex-start;
    /* 왼쪽 끝에서 이모티콘(32px급) 하나 정도 띄운 뒤 아이콘 열 시작 */
    padding-left: calc(8px + 2rem);
    padding-right: 8px;
}
.mealog-wheel__satiety-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1ch;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.mealog-wheel__satiety-label {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: inherit;
    white-space: nowrap;
    text-align: left;
    flex: 1;
    min-width: 0;
}
.mealog-wheel--satiety .mealog-wheel__item i {
    font-size: 32px;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
}
.mealog-wheel--satiety .mealog-wheel__item.mealog-wheel__item--active i {
    font-size: 34px;
}
.mealog-wheel--satiety .mealog-wheel__item.mealog-wheel__item--active .mealog-wheel__satiety-label {
    font-size: 15px;
}

/* 기록 모달 게이지 스위치 (기존 대비 약 20% 축소: 22×36 → 18×29, thumb 18→14) */
label.entry-gauge-switch {
    position: relative;
    display: inline-flex;
    height: 18px;
    width: 29px;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
}
label.entry-gauge-switch .entry-gauge-switch__track {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #e2e8f0;
    transition: background-color 0.2s ease;
}
label.entry-gauge-switch input.peer:checked ~ .entry-gauge-switch__track {
    background: #475569; /* slate-600 — 스위치 ON (CTA 초록과 구분) */
}
label.entry-gauge-switch .entry-gauge-switch__thumb {
    pointer-events: none;
    position: absolute;
    left: 2px;
    top: 2px;
    height: 14px;
    width: 14px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.12);
    transition: transform 0.2s ease;
}
label.entry-gauge-switch input.peer:checked ~ .entry-gauge-switch__thumb {
    transform: translateX(11px);
}

/* 기록 모달: 게이지 끔 — 뒤쪽 별·포만감 버튼이 비활성 상태로 더 흐릿하게 보이도록 처리 */
.entry-gauge-dial-wrap--off .entry-gauge-stars,
.entry-gauge-dial-wrap--off .entry-gauge-satiety {
    opacity: 0.12;
    filter: grayscale(1) blur(4px);
    pointer-events: none;
}
.entry-gauge-dial-wrap--off .entry-gauge-stars *,
.entry-gauge-dial-wrap--off .entry-gauge-satiety * {
    opacity: 0.65;
    filter: blur(1px);
}
/* (타임라인·모먼트 등 다른 화면용 mealog-wheel 유지) */
.entry-gauge-dial-wrap--off .mealog-wheel__scroller {
    opacity: 0.08;
    filter: grayscale(1) blur(5px);
    pointer-events: none;
}
.entry-gauge-dial-wrap--off .mealog-wheel__scroller * {
    opacity: 0.65;
    filter: blur(1px);
}
.entry-gauge-dial-wrap--off .mealog-wheel__item,
.entry-gauge-dial-wrap--off .mealog-wheel__satiety-label,
.entry-gauge-dial-wrap--off .mealog-wheel__stars {
    color: transparent;
    text-shadow: 0 0 8px rgb(100 116 139 / 0.28);
}
.entry-gauge-dial-wrap--off .mealog-wheel__indicator {
    opacity: 0.2;
    filter: blur(2px);
}
.entry-gauge-off-layer {
    background-color: rgb(241 245 249 / 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.entry-gauge-off-layer__label {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 1px rgb(255 255 255 / 0.85);
}

/* 기록 모달: 만족도·포만감 입력 밴드 (별 5개 너비에 맞춤) */
.entry-gauge-band {
    width: 12.25rem;
    max-width: 100%;
    margin-left: auto;
}
#ratingGaugeDialWrap,
#snackRatingGaugeDialWrap {
    min-height: 2.25rem;
}
#satietyGaugeDialWrap,
#snackSatietyGaugeDialWrap {
    min-height: 3.75rem;
}
.entry-gauge-stars {
    gap: 0;
}
.entry-gauge-satiety {
    gap: 0.125rem;
}
.entry-gauge-satiety-btn {
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
#entryModal .entry-gauge-satiety-btn i {
    font-size: 1.62rem;
    line-height: 1;
}
#entryModal .entry-gauge-satiety-btn__label {
    font-size: 0.75rem;
}
#entryModal .entry-gauge-satiety-btn--selected {
    filter: none;
    transform: none;
}

/* 하루 기록: 체중·혈당 토글 오프 — 뒤 입력 영역을 더 흐리게 */
.daily-journal-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.daily-journal-metric-wrap--off .daily-journal-metric-field {
    opacity: 0.04;
    filter: grayscale(1) blur(8px);
    pointer-events: none;
}
.daily-journal-metric-wrap--off .daily-journal-vital-input,
.daily-journal-metric-wrap--off .daily-journal-metric-field span {
    color: transparent !important;
    text-shadow: 0 0 10px rgb(100 116 139 / 0.35);
}
#timelineView .daily-journal-section .daily-journal-metric-off-layer {
    background-color: rgb(248 250 252 / 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
#timelineView .daily-journal-section .daily-journal-metric-off-layer .entry-gauge-off-layer__label {
    color: #334155;
    font-weight: 800;
    text-shadow: 0 1px 2px rgb(255 255 255 / 0.95), 0 0 1px rgb(255 255 255 / 1);
}

/* 가로 휠(간식 만족도): 좌우 스냅 */
.mealog-wheel--x .mealog-wheel__indicator {
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 120px; /* 별 5개(1행) 기준 중앙 윈도우 너비 */
    height: auto;
    transform: translateX(-50%);
}
.mealog-wheel--x .mealog-wheel__scroller {
    overflow-y: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}
.mealog-wheel--x .mealog-wheel__pad {
    width: calc(50% - 60px);
    height: 1px;
    flex: 0 0 auto;
}
.mealog-wheel--x .mealog-wheel__item {
    width: 120px;
    height: 100%;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

/* 기록 모달 — 시간 휠 피커 */
.mealog-wheel--time-picker-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.375rem;
}
.mealog-wheel--time-col {
    flex: 1;
    min-width: 0;
    max-width: 6.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.mealog-wheel--time-col__label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
}
.mealog-wheel--time {
    width: 100%;
}
/**
 * 시간 휠은 열 너비가 화면에 따라 달라져, 기본 지시자의 「고정 폭 + 음수 마진」 중앙정렬을
 * 쓸 수 없다. 좌우를 같은 값으로 물려 폭을 스스로 정하게 둔다 — 퍼센트 마진으로 되돌리지 말 것
 * (margin의 %는 부모 **너비** 기준이라 폭이 바뀌면 중앙이 어긋난다).
 */
.mealog-wheel--time .mealog-wheel__indicator {
    left: 0.25rem;
    right: 0.25rem;
    width: auto;
    margin-left: 0;
}
.mealog-wheel--time .mealog-wheel__item {
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

/* 기록 모달 — 만족도·포만감 라벨 옆 초기화(확장 버튼과 동일 크기) */
#entryModal .entry-gauge-reset-toggle.entry-field-quick-toggle {
    background: #ffffff;
}
#entryModal .entry-gauge-reset-toggle.entry-field-quick-toggle:hover {
    background: #ffffff;
}
#entryModal .entry-sheet-zone--metrics .entry-axis-label-group .entry-field-quick-toggle__icon.fa-rotate-left {
    font-size: 0.5625rem;
}
/* 트랙 안 아이콘 3개(이전/현재/다음) */
.mealog-dial-track-icons {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    pointer-events: none;
}
.mealog-dial-track-icons i {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    color: #cbd5e1; /* slate-300 */
    font-size: 14px;
}
.mealog-dial-track-icons i.dial-cur {
    font-size: 22px;
}
.mealog-dial-track-icons i.dial-adj {
    font-size: 16px;
    color: #94a3b8; /* slate-400 */
}

/* 만족도: 중앙 별 묶음 */
.rating-star-pack {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    left: 50%;
}
.rating-star-pack .fa-star {
    color: #facc15; /* yellow-400 */
    font-size: 18px;
}

/* 기록 완료 중앙 팝업 (0.5s) */
/* 중앙 축하 팝업(기록 완료·웰컴): 배경 스크롤·터치 차단 — JS scroll-lock과 함께 사용 */
html.mealog-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}
body.mealog-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}
/*
 * position:fixed 스크롤 고정 핵은 "스크롤을 되돌리며 잠글 때"(scrollY>0, iOS Safari 대응)만 쓴다.
 * Chromium 148에서 html.mealog-landing-login(로그인 화면) 상태의 body에 position:fixed가 걸리면
 * 컴포지터가 새 프레임 생산을 멈춰 화면이 마지막 프레임으로 동결된다 — 로그인 화면에서 어떤
 * 팝업을 열어도 "초록 화면"만 남던 원인. scrollY=0이면 되돌릴 스크롤이 없어 핵 자체가 불필요하다.
 * (트리거·해제 모두 스크린샷 이분탐색으로 실측 확인)
 */
body.mealog-scroll-locked.mealog-scroll-locked--pinned {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}
html.mealog-scroll-locked #mainApp,
html.mealog-scroll-locked #landingPage {
    pointer-events: none;
    touch-action: none;
}
#successPopup:not(.hidden),
#attendancePopup:not(.hidden) {
    touch-action: none;
    overscroll-behavior: contain;
}
#successPopupBackdrop,
#attendancePopupBackdrop {
    touch-action: none;
}
@keyframes successPopupFade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes successPopupPop {
    0% { transform: scale(0.92); opacity: 0; }
    25% { transform: scale(1.03); opacity: 1; }
    60% { transform: scale(1.0); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0; }
}
@keyframes successCheckCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes successCheckMark {
    to { stroke-dashoffset: 0; }
}

/* 출석 팝업: 입장 후 사라지지 않도록 끝 프레임을 유지 (기록 완료 팝업 키프레임과 분리) */
@keyframes attendancePopupBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes attendancePopupContentIn {
    0% { transform: scale(0.92); opacity: 0; }
    55% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-popup-anim #successPopupBackdrop {
    animation: successPopupFade 800ms ease-out both;
}
.success-popup-anim #successPopupContent {
    animation: successPopupPop 800ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

/* 출석/연속 기록 팝업 — 입장만 재생, forwards로 표시 유지 */
.attendance-popup-anim #attendancePopupBackdrop {
    animation: attendancePopupBackdropIn 380ms ease-out forwards;
}
.attendance-popup-anim #attendancePopupContent {
    animation: attendancePopupContentIn 500ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.attendance-popup-anim .success-check__circle-bg,
.attendance-popup-anim .success-check__mark-bg {
    stroke: #ffffff;
    stroke-width: 12.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.attendance-popup-anim .success-check__circle {
    stroke: var(--green);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: successCheckCircle 260ms ease-out forwards;
}
.attendance-popup-anim .success-check__mark {
    stroke: var(--green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successCheckMark 220ms 120ms ease-out forwards;
}
/* 웰컴 팝업: 붉은 하트 + 흰 보더, 등장 후 가볍게 두근(회전·스케일) 반복 */
.attendance-popup-anim #attendancePopupContent .attendance-popup-heart-path {
    opacity: 0;
    animation: attendancePopupHeartIn 260ms 110ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.attendance-popup-anim #attendancePopupContent .attendance-popup-heart-flutter {
    transform-origin: 12px 11px;
    animation: attendancePopupHeartFlutter 1.15s ease-in-out 380ms infinite;
}
@keyframes attendancePopupHeartIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes attendancePopupHeartFlutter {
    0%,
    100% {
        transform: rotate(-5deg) scale(1);
    }
    25% {
        transform: rotate(4deg) scale(1.06);
    }
    50% {
        transform: rotate(-3deg) scale(1);
    }
    75% {
        transform: rotate(5deg) scale(1.05);
    }
}
@media (prefers-reduced-motion: reduce) {
    .attendance-popup-anim #attendancePopupContent .attendance-popup-heart-flutter {
        animation: none;
    }
}
/* 웰컴(기록 있음): 따봉 — 컬러 이모지는 text-stroke 미적용이라 text-shadow만 사용.
   문구 대비 이전 근사 두께의 50%, 십자 방향만(대각 제거)으로 덜 지저분하게 */
#attendancePopupContent .attendance-popup-thumbs-emoji {
    display: inline-block;
    color: inherit;
    text-shadow:
        1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff,
        0 -2px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 4px 0 0 #fff, -4px 0 0 #fff,
        0 4px 0 #fff, 0 -4px 0 #fff, 5px 0 0 #fff, -5px 0 0 #fff, 0 5px 0 #fff, 0 -5px 0 #fff, 6px 0 0 #fff,
        -6px 0 0 #fff, 0 6px 0 #fff, 0 -6px 0 #fff, 7px 0 0 #fff, -7px 0 0 #fff, 0 7px 0 #fff, 0 -7px 0 #fff;
}
/* 위 규칙이 .hidden(display:none)보다 구체성이 높아 숨김이 깨짐 → 따봉/새싹 동시 노출 방지 */
#attendancePopupContent .attendance-popup-thumbs-emoji.hidden {
    display: none !important;
}
.attendance-popup-anim #attendancePopupContent .attendance-popup-thumbs-emoji {
    transform-origin: 55% 88%;
    animation: attendancePopupThumbs 0.92s ease-in-out 0.25s infinite;
}
@keyframes attendancePopupThumbs {
    0%,
    100% {
        transform: rotate(-7deg) translateY(0) scale(1);
    }
    40% {
        transform: rotate(9deg) translateY(-3px) scale(1.07);
    }
    70% {
        transform: rotate(-4deg) translateY(-1px) scale(1.03);
    }
}
@media (prefers-reduced-motion: reduce) {
    .attendance-popup-anim #attendancePopupContent .attendance-popup-thumbs-emoji {
        animation: none;
    }
}
.success-check svg {
    overflow: visible;
}
.success-popup-anim .success-check__circle-bg,
.success-popup-anim .success-check__mark-bg {
    stroke: #ffffff;
    stroke-width: 12.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.success-popup-anim .success-check__circle {
    stroke: var(--green); /* emerald-500 */
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: successCheckCircle 260ms ease-out forwards;
}
.success-popup-anim .success-check__mark {
    stroke: var(--green); /* emerald-500 */
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: successCheckMark 220ms 120ms ease-out forwards;
}

/* 기록 완료·출석: 패널/박스 없음 — 체크·버튼만 링 보더. 문구는 SVG 글자 stroke만 */
.popup-celebrate-ring {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* 체크: 래퍼 보더 없음 — 흰 윤곽은 SVG circle-bg / mark-bg stroke 12.5·#fff */
.popup-celebrate-ring--check {
    flex-shrink: 0;
    border-radius: 9999px;
    /* 아래 패딩만 줄여 체크와 문구 SVG 사이 시각 거리 축소 */
    padding: 0.38rem 0.38rem 0.1rem;
    border: none;
    box-shadow: none;
}
/* 흰 stroke가 overflow로 아래로 퍼져 문구 보더와 겹칠 때 — 레이아웃 슬롯은 유지하고 그림만 위로 */
#successPopupContent .popup-celebrate-ring--check,
#attendancePopupContent .popup-celebrate-ring--check {
    transform: translateY(-0.45rem);
}
.popup-celebrate-ring--btn {
    box-sizing: border-box;
    margin-top: 0.075rem;
    width: 100%;
    max-width: 8rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    text-align: center;
    cursor: pointer;
    background: var(--green-deep);
    border: 3px solid #ffffff;
    box-shadow: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.12s ease;
}
.popup-celebrate-ring--btn:hover {
    background: #065f46;
    border-color: #ffffff;
}
.popup-celebrate-ring--btn:active {
    transform: scale(0.98);
}
.popup-celebrate-ring--btn:focus {
    outline: none;
}
.popup-celebrate-ring--btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* 두꺼운 stroke가 viewBox 밖으로 나가도 잘리지 않게 */
#successPopupTextSvg,
#attendancePopupTextSvg {
    overflow: visible;
}
/* flex gap만 줄여도 SVG 박스·출석 topPad 때문에 거의 안 줄어듦 → 위로 당겨 체크와 문구 간격 축소 */
#successPopupContent #successPopupTextSvg,
#attendancePopupContent #attendancePopupTextSvg {
    margin-top: -0.5rem;
}

/* 부가 문구 있을 때: 메인 SVG와 박스 사이 — JS에서 vbH·하단 패딩 축소 + 살짝 당김, +10px 여유 */
#attendancePopupContent.attendance-popup-has-aux .attendance-popup-aux-wrap {
    margin-top: calc(-0.3rem + 10px);
}

/* 부가 박스 ↔ 닫기(무기록 등 차트 없을 때): flex gap 기준 세로 여유 */
#attendancePopupContent.attendance-popup-has-aux > #attendancePopupCloseBtnBare {
    margin-top: calc(0.15625rem * 2);
}

/* 기록 있음(차트 박스): 박스 안 닫기 사용 · 바깥 닫기 숨김 */
#attendancePopupContent.attendance-popup-welcome-charts > #attendancePopupCloseBtnBare {
    display: none;
}
/* 연속 기록 문구 ↔ 차트 박스 세로 간격 약 1/2로 */
#attendancePopupContent.attendance-popup-welcome-charts .attendance-popup-welcome-charts-wrap {
    margin-top: -0.55rem;
}
/* AI리포트 탭: 웰컴 콘텐츠는 플로팅 폭 토큰을 따름 */
#attendancePopupContent:has(#attendanceWelcomeReportPanel:not(.hidden)) {
    overflow: visible;
}
#attendancePopupContent:has(#attendanceWelcomeReportPanel:not(.hidden)) > .popup-celebrate-ring--check,
#attendancePopupContent:has(#attendanceWelcomeReportPanel:not(.hidden)) > #attendancePopupTextSvg {
    width: 100%;
    max-width: 22rem;
    align-self: center;
}
#attendancePopupWelcomeCharts {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}
.attendance-welcome-chart-shell {
    background: #fff;
    border: 1px solid var(--line, #d0c6ba);
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(43, 40, 37, 0.06), 0 6px 18px rgba(43, 40, 37, 0.07);
    backdrop-filter: blur(2px);
}
/* Soft Mint 탭 — 밀당 분석(dashboard-view-v2)과 동일 톤 */
.attendance-welcome-kind-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--line, #d0c6ba);
    background: #fff;
    box-shadow: 0 1px 0 rgba(43, 40, 37, 0.06);
    box-sizing: border-box;
}
button.attendance-welcome-kind-btn {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    border-radius: 10px;
    padding: 8px 4px;
    min-height: 2rem;
    /* 좁은 폭에서 접히면 탭 줄 높이가 들쭉날쭉해진다 */
    white-space: nowrap;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--muted, #7a7268);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
button.attendance-welcome-kind-btn.attendance-welcome-kind--active {
    background: var(--green-soft, #eaf8f2);
    color: var(--ink, #241f1c);
    font-weight: 600;
    box-shadow: none;
}
button.attendance-welcome-kind-btn:not(.attendance-welcome-kind--active):hover {
    color: var(--ink-2, #4f4841);
}
#attendanceWelcomeBtnReport.hidden,
#attendanceWelcomeBtnPeriod.hidden {
    display: none;
}
/* 주간/월간 탭 — 가장 최근 리포트 본문(4:5 장)을 팝업 안에서 바로 넘긴다. 머리 줄·쪽수·더보기 없이 리포트만 크게.
   장 마크업·.mg-* 스타일은 잡지 리더와 같다(08-analysis-reports.css). 색 변수는 리더(.pr-reader)에만 있어 여기서도 둔다 */
#attendanceWelcomePeriodContent {
    --mg-paper: #f4f1ea;
    --mg-card: #fffdf8;
    --mg-ink: #1c1a17;
    --mg-ink-2: #4a4741;
    --mg-dim: #8b857a;
    --mg-rule: #d8d2c4;
    --mg-accent: #a8341f;
    --mg-accent-soft: rgba(168, 52, 31, 0.13);
    --mg-accent-line: rgba(168, 52, 31, 0.35);
    --mg-photo: #e8e3d8;
    --mg-avatar: #eeeae0;
    --mg-serif: 'Noto Serif KR', ui-serif, Georgia, 'Batang', serif;
}
/* 패널 좌우 여백을 걷고, 카드는 위 탭 선택 줄과 같은 폭(양옆 10px — 머리 줄의 px-2.5)으로 선다. ‹ › 는 카드 가장자리에 겹친다 */
#attendanceWelcomePeriodPanel {
    padding-left: 0;
    padding-right: 0;
}
.attendance-welcome-period-stage {
    position: relative;
}
/* 장(.mg-slide)은 size 컨테이너라 덱에 높이가 있어야 한다.
   카드 폭이 덱 폭 - 20px 이라 4:5 카드 높이 ≈ 덱 폭 × 1.17 — 남는 위아래 띠가 없게 6:7 */
.attendance-welcome-period-deck {
    display: flex;
    width: 100%;
    aspect-ratio: 6 / 7;
    max-height: 68vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.attendance-welcome-period-deck::-webkit-scrollbar {
    display: none;
}
/* 리더는 카드 둘레에 14px·10px 여백을 두지만 팝업에선 탭 선택 줄 폭에 맞춘다 */
#attendanceWelcomePeriodContent .mg-frame {
    width: min(calc(100cqw - 20px), calc(100cqh * 0.8));
}
/* 화살표는 식사·간식 차트 넘기기와 같은 모양 — 카드 가장자리에 걸쳐 「옆으로 넘긴다」를 알린다 */
/* 매거진 머리글의 제호와 호수 사이 빈자리에 앉히는 「지난 리포트」 —
   리포트 장 안이 아니라 위에 띄운다(공유 캡처에 찍히지 않게) */
.attendance-welcome-period-more {
    position: absolute;
    top: 13px;
    left: 61%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 241, 234, 0.82);
    color: #6f675d;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.attendance-welcome-period-more:active {
    opacity: 0.6;
}
.attendance-welcome-period-stage .attendance-welcome-chart-nav {
    border: 1px solid var(--line, #d0c6ba);
    color: var(--ink-2, #4f4841);
    box-shadow: 0 1px 4px rgba(43, 40, 37, 0.12);
}
.attendance-welcome-record-count {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink-2, #4f4841);
}
.attendance-welcome-analysis-more {
    border: 0;
    background: transparent;
    padding: 0.2rem 0.35rem;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--green-deep, #2d9f74);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: color-mix(in srgb, var(--green, #3cb889) 55%, transparent);
    cursor: pointer;
}
.attendance-welcome-analysis-more:hover {
    color: var(--ink, #241f1c);
}
.attendance-welcome-chart-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4px;
    padding: 12px 12px 14px;
    border-top: 1px solid var(--line, #d0c6ba);
    background: var(--page, #fffcfa);
}
.attendance-welcome-chart-actions .mealog-btn {
    width: 100%;
}
/* 주간/월간 리포트를 펼친 동안 — 리더와 같은 닫기 · SNS · 모먼트 한 줄 */
.attendance-welcome-chart-actions--share {
    flex-direction: row;
    gap: 8px;
}
.attendance-welcome-chart-actions--share .mealog-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}
.attendance-welcome-share-btn.hidden {
    display: none;
}
.attendance-welcome-chart-actions--share .mealog-btn {
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
}
.attendance-welcome-share-btn .pr-reader__btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#attendancePopupCloseBtnBare.attendance-popup-close-bare {
    margin-top: 0.35rem;
    width: 100%;
    max-width: 8.5rem;
}
.attendance-welcome-report-empty {
    border-radius: 0.75rem;
    border: 1px dashed rgb(226 232 240);
    background: rgb(248 250 252 / 0.9);
    padding: 0.875rem 0.75rem;
    text-align: center;
}
.attendance-welcome-report-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 5.5rem;
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 700;
}
/* 터치는 시작 요소의 touch-action이 적용됨 — 자식(SVG 등)이 auto면 가로 팬이 브라우저 스크롤로 소모되어 스와이프가 취소됨. pan-y만 허용해 가로 드래그는 JS(Pointer)로 처리 */
.attendance-welcome-chart-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.attendance-welcome-chart-viewport,
.attendance-welcome-chart-viewport * {
    touch-action: pan-y;
}
.attendance-welcome-chart-viewport {
    flex: 1 1 auto;
    min-width: 0;
    cursor: grab;
}
.attendance-welcome-chart-viewport:active {
    cursor: grabbing;
}
/* 식사·간식 도넛/상세 좌우 스와이프 힌트 — 콘텐츠 폭을 줄이지 않도록 뷰포트 위에 오버레이 */
.attendance-welcome-chart-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--page, #fffcfa) 88%, transparent);
    color: var(--muted, #7a7268);
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--line, #d0c6ba);
    transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.attendance-welcome-chart-nav--prev {
    left: 0.1rem;
}
.attendance-welcome-chart-nav--next {
    right: 0.1rem;
}
.attendance-welcome-chart-nav [data-lucide],
.attendance-welcome-chart-nav .lucide {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}
.attendance-welcome-chart-nav:hover:not(:disabled):not(.attendance-welcome-chart-nav--disabled) {
    color: var(--green-deep, #2d9f74);
    background: var(--green-soft, #eaf8f2);
}
.attendance-welcome-chart-nav:disabled,
.attendance-welcome-chart-nav.attendance-welcome-chart-nav--disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}
.attendance-welcome-chart-nav.hidden {
    display: none !important;
}
/* flex 아이템 기본 min-width:auto(콘텐츠 최소폭) 때문에 표 텍스트가 줄바꿈 대신 슬라이드를 밀어 넓히는 것 방지 */
.attendance-welcome-detail-slide {
    min-width: 0;
}
.attendance-welcome-detail-slide-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.attendance-welcome-detail-slide-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted, #7a7268);
}
.attendance-welcome-detail-slide-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink, #241f1c);
}
.attendance-welcome-detail-slide-body {
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
    -webkit-overflow-scrolling: touch;
}
/* 표가 좁은 슬라이드 폭보다 넓어지지 않도록 열 폭 고정 + 긴 텍스트 줄바꿈 (분석 > 상세 팝업 표와는 별개로 이 안에서만 적용) */
.attendance-welcome-detail-slide-body table {
    table-layout: fixed;
}
.attendance-welcome-detail-slide-body td {
    overflow-wrap: break-word;
    word-break: break-word;
}
.attendance-welcome-detail-slide-body::-webkit-scrollbar {
    width: 2px;
}
.attendance-welcome-detail-slide-body::-webkit-scrollbar-track {
    background: transparent;
}
.attendance-welcome-detail-slide-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}
.attendance-welcome-legend-swatch {
    width: 0.45rem;
    height: 0.45rem;
    min-width: 0.45rem;
}
.attendance-welcome-legend::-webkit-scrollbar {
    width: 4px;
}
.attendance-welcome-legend::-webkit-scrollbar-thumb {
    background: rgb(203 213 225);
    border-radius: 9999px;
}
.attendance-welcome-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--muted, #7a7268);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}
.attendance-welcome-dot--active {
    background: var(--green-deep, #2d9f74);
    transform: scale(1.15);
}

/* 기록 완료·웰컴 문구 흰 윤곽 두께 — 이모지(-webkit-text-stroke)와 동일 값 공유 */
#successPopupContent,
#attendancePopupContent {
    --celebrate-popup-text-outline: calc(36px * 0.42);
}
/* 기록 완료·웰컴: 동일 Yeon Sung + 흰 stroke — font-size는 showSuccessPopup / showAttendancePopup에서 지정 */
.success-popup-text-core,
.attendance-popup-text-core {
    font-family: 'Yeon Sung', serif;
    font-weight: 600;
    font-synthesis: none;
    letter-spacing: 0.04em;
    fill: #0f172a;
    stroke: #ffffff;
    stroke-linejoin: round;
    paint-order: stroke fill;
    stroke-width: var(--celebrate-popup-text-outline);
}

/* 웰컴 팝업 부가 문구: 본문과 동일 Pretendard·기본 크기, 테두리 박스 */
#attendancePopupAuxBox.attendance-popup-aux-box {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.45;
    color: #334155;
    white-space: pre-wrap;
    word-break: keep-all;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(226 232 240);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* 기록 완료 컨페티 */
#successPopupConfetti {
    pointer-events: none;
}
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}
.success-popup-anim .confetti-piece {
    animation: confettiBurst 800ms ease-out forwards;
}
@keyframes confettiBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
    }
    10% { opacity: 1; }
    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 120px)))
            rotate(var(--rot, 180deg))
            scale(1);
    }
}

/* 로딩 오버레이: 음식 아이콘 — 오른쪽에서 들어와 왼쪽으로 나가는 순환 — 주기는 관리자·기본값 */
:root {
    --loading-food-duration: 0.5s;
    /* FAB 전용 — 전면 오버레이보다 빠른 아이콘 전환 */
    --loading-food-fab-slot: 0.2s;
}
/* 한 아이콘당 한 슬롯(표시 구간) — 전체 한 바퀴(5아이콘) = calc(var(--loading-food-duration)*5) */
/* 각 아이콘 슬롯 20% 중 대부분을 중앙 고정(표시), 입·출만 짧게 — 공백 구간 최소화 */
@keyframes loadingFoodSlideRTL0 {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(2.5em);
    }
    2.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    17.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    20%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-2.5em);
    }
}
@keyframes loadingFoodSlideRTL1 {
    0%,
    20% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(2.5em);
    }
    22.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    37.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    40%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-2.5em);
    }
}
@keyframes loadingFoodSlideRTL2 {
    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(2.5em);
    }
    42.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    57.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    60%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-2.5em);
    }
}
@keyframes loadingFoodSlideRTL3 {
    0%,
    60% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(2.5em);
    }
    62.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    77.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    80%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-2.5em);
    }
}
@keyframes loadingFoodSlideRTL4 {
    0%,
    80% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(2.5em);
    }
    82.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    97.5% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-2.5em);
    }
}
.loading-food-icons {
    overflow: hidden;
}
/* 전면 로딩: 스피너 이모지 뒤 회색 원(박스와 동일 직경) */
#loadingOverlay .loading-food-icons--overlay {
    /* 기본 3.5rem(h-14) 대비 10% 큰 회색 원 */
    width: calc(3.5rem * 1.1);
    height: calc(3.5rem * 1.1);
    min-width: calc(3.5rem * 1.1);
    min-height: calc(3.5rem * 1.1);
    border-radius: 9999px;
    background-color: rgb(226 232 240 / 0.92);
    box-shadow: inset 0 1px 2px rgb(15 23 42 / 0.07);
    border: 1px solid rgb(203 213 225 / 0.8);
}
.loading-food-icon {
    left: 50%;
    top: 50%;
    opacity: 0;
    background: transparent;
    will-change: transform, opacity;
    /* 이모지 주변 1px 검정 윤곽 (text-stroke는 이모지에서 미지원이라 text-shadow로 구현) */
    text-shadow:
        1px 0 0 #000,
        -1px 0 0 #000,
        0 1px 0 #000,
        0 -1px 0 #000,
        1px 1px 0 #000,
        -1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000;
    line-height: 1;
}
.loading-food-icon:nth-child(1) {
    animation: loadingFoodSlideRTL0 calc(var(--loading-food-duration, 0.5s) * 5) linear infinite;
}
.loading-food-icon:nth-child(2) {
    animation: loadingFoodSlideRTL1 calc(var(--loading-food-duration, 0.5s) * 5) linear infinite;
}
.loading-food-icon:nth-child(3) {
    animation: loadingFoodSlideRTL2 calc(var(--loading-food-duration, 0.5s) * 5) linear infinite;
}
.loading-food-icon:nth-child(4) {
    animation: loadingFoodSlideRTL3 calc(var(--loading-food-duration, 0.5s) * 5) linear infinite;
}
.loading-food-icon:nth-child(5) {
    animation: loadingFoodSlideRTL4 calc(var(--loading-food-duration, 0.5s) * 5) linear infinite;
}

/* 기록 로딩 FAB — 오버레이와 별도 슬롯(빠른 전환) */
#initialRecordsLoadFab .loading-food-icon:nth-child(1),
#galleryMomentsRefreshFab .loading-food-icon:nth-child(1),
#timelineRefreshFab .loading-food-icon:nth-child(1) {
    animation: loadingFoodSlideRTL0 calc(var(--loading-food-fab-slot, 0.2s) * 5) linear infinite;
}
#initialRecordsLoadFab .loading-food-icon:nth-child(2),
#galleryMomentsRefreshFab .loading-food-icon:nth-child(2),
#timelineRefreshFab .loading-food-icon:nth-child(2) {
    animation: loadingFoodSlideRTL1 calc(var(--loading-food-fab-slot, 0.2s) * 5) linear infinite;
}
#initialRecordsLoadFab .loading-food-icon:nth-child(3),
#galleryMomentsRefreshFab .loading-food-icon:nth-child(3),
#timelineRefreshFab .loading-food-icon:nth-child(3) {
    animation: loadingFoodSlideRTL2 calc(var(--loading-food-fab-slot, 0.2s) * 5) linear infinite;
}
#initialRecordsLoadFab .loading-food-icon:nth-child(4),
#galleryMomentsRefreshFab .loading-food-icon:nth-child(4),
#timelineRefreshFab .loading-food-icon:nth-child(4) {
    animation: loadingFoodSlideRTL3 calc(var(--loading-food-fab-slot, 0.2s) * 5) linear infinite;
}
#initialRecordsLoadFab .loading-food-icon:nth-child(5),
#galleryMomentsRefreshFab .loading-food-icon:nth-child(5),
#timelineRefreshFab .loading-food-icon:nth-child(5) {
    animation: loadingFoodSlideRTL4 calc(var(--loading-food-fab-slot, 0.2s) * 5) linear infinite;
}

/* 전면 로딩: 순환 문구 줄바꿈(관리자 textarea) */
#loadingOverlayMessage {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

/* 로그인 랜딩: body(max-w-md) 안 문서 흐름 — 전역 fixed 레이어가 아님 */
#landingPage {
    position: relative;
    width: 100%;
    /* 세이프탑은 padding-top에만 포함 → 내부 플렉·스크롤 영역 높이 ≈ 100dvh − padding-top − (아래 index 규칙의 padding-bottom) */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    box-sizing: border-box;
    padding-top: var(--safe-top);
    z-index: var(--z-landing);
    /* 스플래시(아이콘만): 흰 배경 — 로그인은 딥민트 */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: visible;
}
#landingPage.landing-show-login,
#landingPage.landing-buttons-visible {
    background: var(--green-deep, #2d9f74);
}
.star-btn { 
    padding: 4px; 
    transition: color 0.2s; 
}
/* 스크롤바 숨기기 (가로 스크롤 시 깔끔하게) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
/* 모먼트 피드·밀톡 카드: 하트·댓글·북마크 아이콘 윤곽 두께 +1px (Font Awesome 글리프) */
.social-action-icon-stroke {
    -webkit-text-stroke: 1px currentColor;
    paint-order: stroke fill;
}

/* 모먼트/밀톡 사진 스와이프: 한장한장 구분감 (미끄러짐 감소) */
.gallery-photo-scroll {
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    gap: 2px;
}
.gallery-photo-scroll > * {
    scroll-snap-stop: always;
    scroll-snap-align: start;
}
.gallery-photo-scroll img {
    -webkit-user-drag: none;
    user-select: none;
}
/* 기록 모달: 사진 순서 롱프레스 시 아래 레이블/텍스트가 선택되지 않도록 */
#photoPreviewContainer,
#snackPhotoPreviewContainer {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
#photoPreviewContainer .photo-preview-item img,
#snackPhotoPreviewContainer .photo-preview-item img {
    -webkit-user-drag: none;
}
/* Comment 줄바꿈 및 제한 스타일 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 기간 표시 높이 통일 */
#periodDisplay {
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 직접 설정(더보기): 시작/종료 — 주간/월간 탭과 동일 타이포·높이에 맞춤 */
.custom-date-range {
    width: 100%;
}
.custom-date-range-inner {
    display: flex;
    align-items: stretch;
    background: var(--page);
    border-radius: 10px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    min-height: 2rem;
    height: auto;
    box-sizing: border-box;
}
.custom-date-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}
.custom-date-section:first-child {
    padding-right: 0.5rem;
}
.custom-date-section:last-child {
    padding-left: 0.5rem;
}
.custom-date-label {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--muted, #7a7268);
    white-space: nowrap;
    flex-shrink: 0;
}
.custom-date-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0;
}
.custom-date-placeholder {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--muted, #7a7268);
    pointer-events: none;
    display: none;
}
.custom-date-input-wrap.is-empty .custom-date-placeholder {
    display: block;
}
.custom-date-input-wrap.is-empty .custom-date-input::-webkit-datetime-edit {
    color: transparent;
}
.custom-date-input-wrap.is-empty .custom-date-input::-webkit-datetime-edit-fields-wrapper {
    visibility: hidden;
}
.custom-date-input {
    flex: 0 0 auto;
    width: 8.75rem;
    min-height: 1.5rem;
    padding: 0 0.25rem 0 0;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink, #241f1c);
    background: transparent;
    border: none;
    outline: none;
    box-sizing: content-box;
}
.custom-date-input::-webkit-datetime-edit {
    color: var(--ink, #241f1c);
}
.custom-date-input::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.7;
    cursor: pointer;
    margin-left: 0;
    width: 1.15em;
    height: 1.15em;
}
.custom-date-divider {
    width: 1px;
    background: var(--line);
    flex-shrink: 0;
    margin: 0.2rem 0;
}
/* 분석창 카드 — 시안 v2: 인셋·라운드 (풀폭 제거) */

