/* HANA Feed v0.5.2 — 네이버 밴드 모바일 앱 풀 동기화 */

.hana-feed * { box-sizing: border-box; }
.hana-feed { font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", sans-serif; color: var(--text-primary); background: var(--bg-card); min-height: 100vh; padding-bottom: 80px; }

/* App Bar - 검정 굵게 + 좌측 정렬 (밴드 모바일 동일) */
.hana-appbar { position: sticky; top: 0; z-index: 50; background: var(--bg-card); border-bottom: 1px solid var(--border-light); padding: 14px 16px; display: flex; align-items: center; gap: 8px; }
.hana-appbar__back { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text-primary); font-size: 22px; line-height: 1; }
.hana-appbar__title { font-size: 19px; font-weight: 700; color: var(--text-primary); flex: 1; text-decoration: none; }
.hana-appbar__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hana-appbar__icon { width: 36px; height: 36px; border-radius: 999px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--text-primary); font-size: 18px; text-decoration: none; }
.hana-appbar__icon:hover { background: var(--border-light); }

/* Top Tabs - 4개 (모바일 앱 동일) */
.hana-toptabs { display: flex; background: var(--bg-card); border-bottom: 1px solid var(--border-light); position: sticky; top: 60px; z-index: 49; }
.hana-toptabs__tab { flex: 1; padding: 16px 8px; text-align: center; font-size: 16px; font-weight: 500; color: var(--text-secondary); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; text-decoration: none; }
.hana-toptabs__tab.is-active { color: var(--text-primary); font-weight: 700; border-bottom-color: var(--text-primary); }

/* Sort + View toggle bar */
.hana-controlbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border-light); }
.hana-sort { display: flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--text-primary); padding: 6px 8px; border-radius: 6px; }
.hana-viewtoggle { display: flex; gap: 4px; }
.hana-viewtoggle__btn { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; border-radius: 6px; display: grid; place-items: center; color: var(--text-tertiary); }
.hana-viewtoggle__btn.is-active { color: var(--text-primary); }

/* Search */
.hana-search { padding: 8px 16px 12px; background: var(--bg-card); border-bottom: 1px solid var(--border-light); }
.hana-search__input { width: 100%; padding: 10px 14px 10px 40px; border: 0; background: var(--bg-app); border-radius: 999px; font-size: 14px; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; }

/* Category Chips - 흰배경 + 회색테두리 (밴드 모바일 동일) */
.hana-chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; background: var(--bg-card); border-bottom: 1px solid var(--border-light); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hana-chips::-webkit-scrollbar { display: none; }
.hana-chips__item { flex: 0 0 auto; padding: 8px 18px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-color); font-size: 14px; color: var(--text-primary); cursor: pointer; white-space: nowrap; transition: all .15s; text-decoration: none; font-weight: 500; }
.hana-chips__item:hover { border-color: var(--text-primary); }
.hana-chips__item.is-active { background: var(--accent); color: var(--accent-on); border-color: var(--accent); font-weight: 700; }
.hana-chips__lock { color: var(--accent); margin-left: 4px; font-size: 11px; }

/* Pinned Notice Box */
.hana-pinned { background: var(--bg-card); border-bottom: 1px solid var(--border-light); padding: 14px 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; color: var(--text-primary); }
.hana-pinned__icon { font-size: 16px; }
.hana-pinned__label { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.hana-pinned__count { background: var(--accent); color: var(--accent-on); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; min-width: 20px; text-align: center; }
.hana-pinned__title { flex: 1; font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hana-pinned__arrow { color: var(--text-tertiary); }

/* Card - 본문 큰 글씨 + 우측 썸네일 (밴드 모바일 풀 동기화) */
.hana-feed__list { display: flex; flex-direction: column; gap: 0; padding: 0; }
.hana-card { background: var(--bg-card); padding: 20px 16px; border-bottom: 8px solid var(--bg-app); position: relative; }
.hana-card__header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.hana-card__avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--text-tertiary); object-fit: cover; flex: 0 0 auto; position: relative; }
.hana-card__avatar--leader { box-shadow: 0 0 0 2px var(--accent); position: relative; }
.hana-card__avatar--leader::after { content: "👑"; position: absolute; top: -6px; right: -4px; font-size: 12px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.hana-card__user { flex: 1; min-width: 0; padding-top: 2px; }
.hana-card__name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.hana-card__badge { background: var(--band-green); color: #fff; padding: 1px 5px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.hana-card__meta { font-size: 13px; color: var(--text-tertiary); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hana-card__meta-cat { color: var(--text-secondary); }
.hana-card__menu { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text-tertiary); border-radius: 4px; font-size: 18px; }
.hana-card__menu:hover { background: var(--border-light); color: var(--text-primary); }

/* Card body + thumbnail row (밴드 모바일 패턴) */
.hana-card__main { display: flex; gap: 12px; align-items: flex-start; }
.hana-card__body-wrap { flex: 1; min-width: 0; }
.hana-card__body { font-size: 18px; line-height: 1.5; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; font-weight: 500; }
.hana-card__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.hana-card__more { color: var(--text-tertiary); cursor: pointer; }
.hana-card__thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; position: relative; background: var(--border-light); cursor: pointer; }
.hana-card__thumb img, .hana-card__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hana-card__thumb-count { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.hana-card__thumb-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.hana-card__thumb-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 999px; background: rgba(0,0,0,0.5); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* Multi-image grid (full-width, 1/2/3+장) */
.hana-media { margin-top: 12px; display: grid; gap: 2px; border-radius: 8px; overflow: hidden; }
.hana-media__item { position: relative; cursor: pointer; background: var(--border-light); aspect-ratio: 4/3; overflow: hidden; }
.hana-media__item img, .hana-media__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hana-media--1 { grid-template-columns: 1fr; }
.hana-media--1 .hana-media__item { aspect-ratio: 16/10; }
.hana-media--2 { grid-template-columns: 1fr 1fr; }
.hana-media--2 .hana-media__item { aspect-ratio: 1/1; }
.hana-media--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hana-media--3 .hana-media__item:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
.hana-media--4 { grid-template-columns: 1fr 1fr; }
.hana-media--4 .hana-media__item { aspect-ratio: 1/1; }
.hana-media--many { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hana-media--many .hana-media__item:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
.hana-media__more { position: absolute; inset: 0; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; pointer-events: none; }
.hana-media__video::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: rgba(0,0,0,0.6); border-radius: 999px; color: #fff; display: grid; place-items: center; font-size: 18px; }

/* Single page media (full bleed, contain) */
.hana-media--single { display: block; border-radius: 0; }
.hana-media--single .hana-media__item { aspect-ratio: auto; margin-bottom: 4px; }
.hana-media--single img, .hana-media--single video { object-fit: contain; height: auto; max-height: 80vh; }

/* Action Bar - 밴드 모바일 동일 (좌측 좋아요+댓글, 우측 조회) */
.hana-actions { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; margin-top: 14px; border-top: 1px solid var(--border-light); }
.hana-actions__group { display: flex; gap: 16px; }
.hana-action { display: flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px 4px; border-radius: 6px; color: var(--text-secondary); font-size: 14px; transition: all .15s; text-decoration: none; }
.hana-action:hover { color: var(--text-primary); }
.hana-action.is-active { color: var(--accent); }
.hana-action__count { font-weight: 500; font-size: 14px; }
.hana-action--views { color: var(--text-tertiary); cursor: default; }

/* Card Menu Dropdown */
.hana-menu { position: absolute; right: 16px; top: 56px; background: var(--bg-card); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.16); padding: 8px 0; min-width: 200px; z-index: 60; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.hana-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hana-menu__item { display: block; width: 100%; padding: 13px 20px; background: none; border: 0; text-align: center; font-size: 15px; color: var(--text-primary); cursor: pointer; transition: background .1s; text-decoration: none; }
.hana-menu__item:hover { background: var(--border-light); }
.hana-menu__item--danger { color: #DC2626; }

/* FAB */
.hana-fab { position: fixed; right: 20px; bottom: 80px; z-index: 40; padding: 0; width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: var(--accent-on); border: 0; cursor: pointer; box-shadow: 0 4px 12px rgba(255,107,0,0.35); font-size: 22px; display: grid; place-items: center; }
.hana-fab:hover { background: var(--accent-dark); }

/* Bottom Tab Bar */
.hana-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: var(--bg-card); border-top: 1px solid var(--border-light); display: flex; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0)); }
.hana-tabbar__tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; cursor: pointer; padding: 6px 4px; color: var(--text-tertiary); text-decoration: none; }
.hana-tabbar__tab.is-active { color: var(--accent); }
.hana-tabbar__icon { font-size: 22px; }
.hana-tabbar__label { font-size: 11px; font-weight: 500; }

/* Image Viewer Modal */
.hana-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.95); display: none; flex-direction: column; }
.hana-viewer.is-open { display: flex; }
.hana-viewer__header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; }
.hana-viewer__counter { font-size: 14px; }
.hana-viewer__close { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; padding: 4px 12px; }
.hana-viewer__stage { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.hana-viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hana-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 999px; cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.hana-viewer__nav--prev { left: 16px; }
.hana-viewer__nav--next { right: 16px; }
.hana-viewer__toolbar { display: flex; justify-content: center; gap: 8px; padding: 16px; background: rgba(0,0,0,0.5); }
.hana-viewer__tool { background: rgba(255,255,255,0.1); color: #fff; border: 0; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.hana-viewer__tool:hover { background: rgba(255,255,255,0.2); }

/* Empty State */
.hana-empty { padding: 64px 16px; text-align: center; color: var(--text-tertiary); }
.hana-empty__icon { font-size: 48px; margin-bottom: 12px; }
.hana-empty__text { font-size: 14px; }

/* Composer Sheet */
.hana-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.5); display: none; align-items: flex-end; }
.hana-sheet.is-open { display: flex; }
.hana-sheet__panel { background: var(--bg-card); width: 100%; max-height: 100vh; height: 100vh; display: flex; flex-direction: column; }
.hana-sheet__header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.hana-sheet__title { font-size: 17px; font-weight: 700; }
.hana-sheet__close { background: none; border: 0; cursor: pointer; font-size: 24px; padding: 6px 10px; color: var(--text-primary); }
.hana-sheet__submit { background: none; border: 0; cursor: pointer; font-size: 15px; padding: 8px 14px; color: var(--text-tertiary); font-weight: 700; }
.hana-sheet__submit:not(:disabled) { color: var(--accent); }
.hana-sheet__body { flex: 1; padding: 16px; overflow-y: auto; }
.hana-sheet__tag-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; background: var(--bg-app); border: 0; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--text-secondary); margin-bottom: 16px; }
.hana-sheet__textarea { width: 100%; min-height: 200px; border: 0; outline: none; font-size: 17px; resize: none; font-family: inherit; line-height: 1.6; }
.hana-sheet__toolbar { display: flex; gap: 4px; padding: 8px 16px; border-top: 1px solid var(--border-light); overflow-x: auto; }
.hana-sheet__tool { width: 40px; height: 40px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--text-secondary); flex: 0 0 auto; font-size: 18px; }

/* Comment Input Bar */
.hana-comment-input { position: sticky; bottom: 0; background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 10px 12px; display: flex; align-items: center; gap: 8px; z-index: 30; }
.hana-comment-input__plus { width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--bg-app); color: var(--text-secondary); cursor: pointer; font-size: 18px; flex: 0 0 auto; }
.hana-comment-input__field { flex: 1; padding: 9px 14px; border: 0; background: var(--bg-app); border-radius: 999px; font-size: 14px; outline: none; }
.hana-comment-input__send { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--text-tertiary); color: #fff; cursor: pointer; font-size: 14px; transition: background .15s; flex: 0 0 auto; }
.hana-comment-input__send.is-active { background: var(--band-green); }

/* Desktop layout */
@media (min-width: 768px) {
  .hana-feed { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
  .hana-tabbar { display: none; }
  .hana-fab { bottom: 24px; }
}

/* Comments */
.hana-comments { background: var(--bg-card); padding: 16px; border-top: 8px solid var(--bg-app); }
.hana-comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.hana-comment__avatar { width: 32px; height: 32px; border-radius: 999px; flex: 0 0 auto; }
.hana-comment__body { flex: 1; min-width: 0; }
.hana-comment__name { font-weight: 700; font-size: 14px; }
.hana-comment__text { font-size: 14px; line-height: 1.5; color: var(--text-primary); margin-top: 2px; }
.hana-comment__time { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }


/* Album View */
.hana-album__controls { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border-light); position: sticky; top: 60px; z-index: 49; }
.hana-album__count { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.hana-album__btn { padding: 6px 14px; border: 1px solid var(--border-color); background: var(--bg-card); border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--text-primary); }
.hana-album__btn:hover { background: var(--border-light); }
.hana-album__btn--primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent); font-weight: 600; }
.hana-album__btn--primary:hover { background: var(--accent-dark); }
.hana-album__group { background: var(--bg-card); padding: 12px 0; border-bottom: 8px solid var(--bg-app); }
.hana-album__date { font-size: 13px; color: var(--text-secondary); padding: 4px 16px 12px; font-weight: 500; }
.hana-album__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 2px; }
@media (max-width: 480px) { .hana-album__grid { grid-template-columns: repeat(3, 1fr); } }
.hana-album__item { aspect-ratio: 1/1; position: relative; cursor: pointer; overflow: hidden; background: var(--border-light); }
.hana-album__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.hana-album__item:hover img { transform: scale(1.04); }
.hana-album__check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; cursor: pointer; display: none; accent-color: var(--accent); z-index: 2; }
.hana-album.is-selecting .hana-album__check { display: block; }
.hana-album__item.is-selected::after { content: ""; position: absolute; inset: 0; background: rgba(255,107,0,0.25); border: 3px solid var(--accent); pointer-events: none; }
.hana-album__bulkbar { position: fixed; bottom: 0; left: 0; right: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0)); background: var(--bg-card); border-top: 1px solid var(--border-color); display: none; justify-content: space-between; align-items: center; z-index: 60; box-shadow: 0 -4px 12px rgba(0,0,0,0.06); }
.hana-album__bulkbar.is-active { display: flex; }
.hana-album__selected { font-size: 14px; font-weight: 500; }

/* Calendar View */
.hana-cal__nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border-light); position: sticky; top: 60px; z-index: 49; }
.hana-cal__navbtn { width: 36px; height: 36px; border-radius: 999px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; font-size: 22px; color: var(--text-primary); text-decoration: none; }
.hana-cal__navbtn:hover { background: var(--border-light); }
.hana-cal__title { font-size: 17px; font-weight: 700; min-width: 120px; text-align: center; }
.hana-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg-card); border-bottom: 8px solid var(--bg-app); padding: 8px; }
.hana-cal__dow { padding: 8px 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.hana-cal__dow--sun { color: #ef4444; }
.hana-cal__dow--sat { color: #3b82f6; }
.hana-cal__cell { aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 8px; cursor: pointer; border-radius: 8px; position: relative; text-decoration: none; color: var(--text-primary); font-size: 14px; }
.hana-cal__cell:hover { background: var(--border-light); }
.hana-cal__cell--blank { cursor: default; }
.hana-cal__cell--blank:hover { background: none; }
.hana-cal__cell--today .hana-cal__num { background: var(--accent); color: var(--accent-on); border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 700; }
.hana-cal__cell--sun { color: #ef4444; }
.hana-cal__cell--sat { color: #3b82f6; }
.hana-cal__num { font-weight: 500; }
.hana-cal__dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); margin-top: 4px; }
.hana-cal__list { background: var(--bg-card); }
.hana-cal__day { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.hana-cal__day-header { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.hana-cal__event { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-app); border-radius: 8px; margin-bottom: 6px; text-decoration: none; color: var(--text-primary); border-left: 3px solid var(--accent); }
.hana-cal__event:hover { background: var(--border-light); }
.hana-cal__event-time { font-size: 13px; font-weight: 600; color: var(--accent); flex: 0 0 auto; }
.hana-cal__event-title { flex: 1; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hana-cal__event-cat { font-size: 11px; padding: 2px 8px; background: var(--bg-card); border-radius: 999px; color: var(--text-tertiary); flex: 0 0 auto; }



/* === HANA Responsive (v1.2) — PC/Tablet 반응형 === */
/* 모바일 (default): 412px 기준 풀스크린 모바일 앱 형태 유지 */

/* === Tablet (768px+) === */
@media (min-width: 768px) {
  body { background: var(--bg-app, #f5f5f5); }
  
  /* 본문 컨테이너 */
  .hana-feed { max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--bg-card, #fff); box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }
  
  /* 헤더 - 전체 너비 가운데 정렬 + 좌우 padding */
  .hana-appbar { padding-left: 24px; padding-right: 24px; }
  
  /* 탭바 */
  .hana-toptabs { padding: 0 24px; }
  
  /* 칩/콘트롤바 */
  .hana-chips, .hana-controlbar { padding-left: 24px; padding-right: 24px; }
  
  /* 카드 - 좌우 padding + 더 부드러운 디자인 */
  .hana-feed__list { padding: 0 16px; }
  .hana-card { border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border-light, #f0f0f0); }
  
  /* 핀 공지 */
  .hana-pinned { margin: 8px 16px; border-radius: 12px; }
  
  /* FAB - 본문 카드 너비에 맞춰서 */
  .hana-fab { right: max(24px, calc(50vw - 360px - 60px)); bottom: 32px; width: 56px; height: 56px; box-shadow: 0 4px 16px rgba(255,107,0,0.35); }
  
  /* 에디터 sheet → 모달처럼 */
  .hana-sheet__panel { max-width: 800px; margin: 40px auto; max-height: calc(100vh - 80px); border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,0.18); }
  .hana-sheet { background: rgba(0,0,0,0.4); }
  
  /* 에디터 본문 padding */
  .hana-editor__body { min-height: 400px; }
  
  /* 카드 메뉴 popup 위치 조정 */
  .hana-menu { right: 16px; }
  
  /* viewer는 그대로 fullscreen */
}

/* === Desktop (1024px+) === */
@media (min-width: 1024px) {
  body { background: linear-gradient(180deg, #f7f7f9 0%, #f0f0f2 100%); min-height: 100vh; }
  
  /* 본문 폭 늘림 */
  .hana-feed { max-width: 760px; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03); border-radius: 0; min-height: 100vh; }
  
  /* 헤더 */
  .hana-appbar { padding-left: 32px; padding-right: 32px; }
  .hana-appbar__title { font-size: 22px; }
  
  /* 탭/칩 */
  .hana-toptabs { padding: 0 32px; gap: 24px; }
  .hana-toptabs__tab { font-size: 16px; padding: 14px 4px; }
  .hana-chips, .hana-controlbar { padding-left: 24px; padding-right: 24px; }
  
  /* 카드 grid - 호버 효과 */
  .hana-feed__list { padding: 0 24px; }
  .hana-card { transition: transform .15s, box-shadow .15s; }
  .hana-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
  .hana-card__title { font-size: 17px; }
  .hana-card__body { font-size: 15px; line-height: 1.6; }
  
  /* FAB - 우하단 고정 */
  .hana-fab { right: max(32px, calc(50vw - 380px - 80px)); bottom: 40px; width: 60px; height: 60px; font-size: 24px; }
  
  /* 에디터 모달 */
  .hana-sheet__panel { max-width: 880px; margin: 56px auto; max-height: calc(100vh - 112px); }
  .hana-editor__body { min-height: 480px; font-size: 16px; }
  .hana-editor__title-input { font-size: 22px; }
  
  /* 단일 카드 (single 페이지) */
  .hana-card--single { max-width: 760px; margin: 0 auto; padding: 32px; border: 1px solid var(--border-light); border-radius: 12px; }
  .hana-card--single .hana-card__title { font-size: 24px; line-height: 1.4; }
  .hana-card--single .hana-card__body { font-size: 16px; line-height: 1.7; padding: 24px 0; }
  .hana-comments { max-width: 760px; margin: 24px auto; padding: 0 16px; }
}

/* === Wide Desktop (1280px+) - 사이드바 레이아웃 === */
@media (min-width: 1280px) {
  body { display: block; }
  
  /* 메인 그리드: 사이드바(좌) + 본문(가운데) + 위젯(우) */
  .hana-feed {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 0 32px;
    background: transparent;
    box-shadow: none;
  }
  
  /* 헤더는 grid에서 빠져서 전체 너비 */
  .hana-feed > .hana-appbar {
    grid-column: 1 / -1;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid var(--border-light);
    padding: 12px 24px;
  }
  
  /* 탭바를 사이드바로 변환 */
  .hana-feed > .hana-toptabs {
    grid-column: 1;
    grid-row: 2 / span 4;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    height: fit-content;
    position: sticky;
    top: 80px;
    border-bottom: 1px solid var(--border-light);
  }
  .hana-toptabs__tab {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    border-bottom: 0 !important;
    font-size: 15px;
  }
  .hana-toptabs__tab.is-active {
    background: var(--accent-light, rgba(255,107,0,0.1));
    color: var(--accent);
  }
  
  /* 콘트롤바 */
  .hana-feed > .hana-controlbar { grid-column: 2; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; padding: 8px 16px; margin: 0; }
  
  /* 칩 */
  .hana-feed > .hana-chips { grid-column: 2; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; padding: 12px 16px; margin: 0; }
  
  /* 핀 공지 */
  .hana-feed > .hana-pinned { grid-column: 2; margin: 0; }
  
  /* 피드 리스트 */
  .hana-feed > .hana-feed__list { grid-column: 2; padding: 0; }
  .hana-card { background: var(--bg-card); border-radius: 12px; padding: 20px; margin-bottom: 12px; }
  
  /* 글쓰기 sheet */
  .hana-feed > #hana-editor-sheet { grid-column: 1 / -1; }
  
  /* FAB 위치 - 그리드 우측에 */
  .hana-fab { right: max(40px, calc(50vw - 600px + 32px)); }
  
  /* single 페이지 - desktop에서는 카드 자체를 가운데 가시 */
  .hana-card--single { max-width: 800px; }
}

/* === Ultra Wide (1536px+) === */
@media (min-width: 1536px) {
  .hana-feed { max-width: 1320px; grid-template-columns: 260px 1fr 320px; }
  /* 우측 위젯 자리 (현재 비어있음 - 추후 추가 가능) */
}



/* === HANA Calendar (v1.3) - 반응형 + CRUD === */
.hana-calendar { padding-bottom: 80px; }
.hana-cal__nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-light); background: var(--bg-card); }
.hana-cal__nav-btn { color: var(--text-primary); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.hana-cal__nav-btn:hover { background: var(--bg-app); }
.hana-cal__title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.hana-cal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border-light); background: var(--bg-card); }
.hana-cal__wd { text-align: center; padding: 10px 0; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.hana-cal__wd--sun { color: #ef4444; }
.hana-cal__wd--sat { color: #3b82f6; }
.hana-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg-card); border-bottom: 1px solid var(--border-light); }
.hana-cal__cell { aspect-ratio: 1 / 1.2; min-height: 64px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 4px; position: relative; cursor: pointer; transition: background .12s; overflow: hidden; }
.hana-cal__cell:nth-child(7n) { border-right: 0; }
.hana-cal__cell:hover { background: var(--bg-app); }
.hana-cal__cell--blank { cursor: default; background: transparent; }
.hana-cal__cell--blank:hover { background: transparent; }
.hana-cal__cell.is-today { background: rgba(255,107,0,0.08); }
.hana-cal__cell.is-today .hana-cal__num { color: var(--accent); font-weight: 700; }
.hana-cal__num { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.hana-cal__cell--sun .hana-cal__num { color: #ef4444; }
.hana-cal__cell--sat .hana-cal__num { color: #3b82f6; }
.hana-cal__events { display: flex; flex-direction: column; gap: 2px; }
.hana-cal__event-pill { background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 4px; font-size: 10px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.hana-cal__event-pill:hover { background: var(--accent-dark, #e85a00); }
.hana-cal__event-time { display: none; }
.hana-cal__event-more { font-size: 10px; color: var(--text-secondary); padding: 0 4px; }

.hana-cal__list { padding: 16px; background: var(--bg-app); }
.hana-cal__list-title { font-size: 14px; font-weight: 700; margin: 0 0 12px 4px; color: var(--text-primary); }
.hana-cal__day { background: var(--bg-card); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.hana-cal__day-header { padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-secondary); background: var(--bg-app); border-bottom: 1px solid var(--border-light); }
.hana-cal__list-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background .1s; }
.hana-cal__list-item:last-child { border-bottom: 0; }
.hana-cal__list-item:hover { background: var(--bg-app); }
.hana-cal__list-item .hana-cal__event-time { display: inline; font-size: 13px; color: var(--accent); font-weight: 600; min-width: 40px; }
.hana-cal__list-item .hana-cal__event-title { flex: 1; font-size: 14px; color: var(--text-primary); white-space: normal; overflow: visible; }
.hana-cal__event-cat { font-size: 11px; color: var(--text-secondary); background: var(--bg-app); padding: 2px 8px; border-radius: 999px; }
.hana-cal__edit-btn { background: none; border: 0; color: var(--text-secondary); cursor: pointer; padding: 4px 8px; font-size: 16px; }

/* 일정 등록/수정 모달 */
.hana-event-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 150; align-items: center; justify-content: center; padding: 16px; }
.hana-event-modal.is-open { display: flex; }
.hana-event-modal__panel { background: var(--bg-card); border-radius: 16px; width: 100%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.18); }
.hana-event-modal__header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.hana-event-modal__close { background: none; border: 0; font-size: 22px; cursor: pointer; padding: 0; line-height: 1; color: var(--text-primary); }
.hana-event-modal__title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; color: var(--text-primary); }
.hana-event-modal__save { background: var(--accent); color: var(--accent-on); border: 0; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.hana-event-modal__body { padding: 16px; overflow-y: auto; flex: 1; }
.hana-event-modal__field { display: block; margin-bottom: 14px; }
.hana-event-modal__label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.hana-event-modal__field input, .hana-event-modal__field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; color: var(--text-primary); background: var(--bg-card); outline: none; box-sizing: border-box; font-family: inherit; }
.hana-event-modal__field input:focus, .hana-event-modal__field textarea:focus { border-color: var(--accent); }
.hana-event-modal__field textarea { resize: vertical; min-height: 80px; }
.hana-event-modal__actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.hana-event-modal__delete { background: #fee2e2; color: #ef4444; border: 0; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hana-event-modal__delete:hover { background: #fecaca; }

/* === Tablet (768px+) - 캘린더 셀 더 크게 === */
@media (min-width: 768px) {
  .hana-cal__cell { min-height: 88px; padding: 6px; aspect-ratio: 1 / 1; }
  .hana-cal__num { font-size: 14px; }
  .hana-cal__event-pill { font-size: 11px; padding: 3px 6px; }
  .hana-cal__event-pill .hana-cal__event-time { display: inline; margin-right: 4px; opacity: 0.85; }
}

/* === Desktop (1024px+) - 캘린더 풀사이즈 === */
@media (min-width: 1024px) {
  .hana-calendar { max-width: 1100px; margin: 0 auto; }
  .hana-cal__nav { padding: 16px 24px; }
  .hana-cal__title { font-size: 18px; }
  .hana-cal__weekdays { padding: 0 0; }
  .hana-cal__wd { padding: 14px 0; font-size: 13px; }
  .hana-cal__cell { min-height: 110px; padding: 8px; }
  .hana-cal__num { font-size: 15px; margin-bottom: 4px; }
  .hana-cal__events { gap: 3px; }
  .hana-cal__event-pill { font-size: 12px; padding: 4px 8px; border-radius: 6px; }
  .hana-cal__list { padding: 24px; }
  .hana-cal__list-title { font-size: 16px; }
  .hana-cal__list-item { padding: 14px 18px; }
  .hana-cal__list-item .hana-cal__event-time { font-size: 14px; min-width: 50px; }
  .hana-cal__list-item .hana-cal__event-title { font-size: 15px; }
  .hana-event-modal__panel { max-width: 560px; }
  .hana-event-modal__body { padding: 24px; }
}

/* === Wide Desktop (1280px+) - 그리드에 맞춰 === */
@media (min-width: 1280px) {
  .hana-calendar { max-width: 100%; }
  .hana-cal__cell { min-height: 130px; }
}


/* v1.4 - Calendar/Album/Bookmarks/Search/Notifications: wide-grid 비활성, 단일 칼럼 가운데 정렬 */
@media (min-width: 1280px) {
  .hana-feed.hana-calendar,
  .hana-feed.hana-album,
  .hana-feed.hana-bookmarks,
  .hana-feed.hana-search,
  .hana-feed.hana-notifications {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 880px !important;
    background: var(--bg-card, #fff) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 16px auto !important;
  }
  .hana-feed.hana-calendar > *,
  .hana-feed.hana-album > *,
  .hana-feed.hana-bookmarks > *,
  .hana-feed.hana-search > *,
  .hana-feed.hana-notifications > * {
    grid-column: auto !important;
    grid-row: auto !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
  }
  .hana-feed.hana-calendar > .hana-appbar,
  .hana-feed.hana-album > .hana-appbar,
  .hana-feed.hana-bookmarks > .hana-appbar,
  .hana-feed.hana-search > .hana-appbar,
  .hana-feed.hana-notifications > .hana-appbar {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
    background: var(--bg-card) !important;
  }
  /* 캘린더 그리드 칸 충분한 높이 */
  .hana-feed.hana-calendar .hana-cal__grid > div {
    min-height: 90px !important;
  }
}

/* 모바일/태블릿에서도 .hana-cal 그리드의 셀 높이 적정 유지 */
.hana-feed.hana-calendar .hana-cal__grid {
  min-height: auto;
}


/* v1.4.1 - Calendar 페이지 button 색상 명시 (wide-grid override가 color 깎는 이슈 fix) */
.hana-feed.hana-calendar .hana-cal__today {
  color: var(--text-primary, #222) !important;
  background: transparent !important;
  border: 1px solid var(--border-color, #ddd) !important;
}
.hana-feed.hana-calendar .hana-cal__today:hover {
  background: var(--bg-app, #f5f5f5) !important;
}
.hana-feed.hana-calendar .hana-cal__add-btn {
  color: #fff !important;
  background: var(--accent, #FF6B00) !important;
}
/* Calendar 그리드 셀 내부 텍스트 가독성 */
.hana-feed.hana-calendar .hana-cal__grid > div {
  color: var(--text-primary, #222);
}
.hana-feed.hana-calendar .hana-cal__grid > div[style*="color:#ef4444"] { color: #ef4444 !important; }
.hana-feed.hana-calendar .hana-cal__grid > div[style*="color:#3b82f6"] { color: #3b82f6 !important; }
/* Calendar 모달 입력 텍스트 가독성 */
.hana-feed.hana-calendar #hana-event-modal input,
.hana-feed.hana-calendar #hana-event-modal select,
.hana-feed.hana-calendar #hana-event-modal textarea,
.hana-feed.hana-calendar #hana-search-modal input,
.hana-feed.hana-calendar #hana-export-modal input,
.hana-feed.hana-calendar #hana-export-modal select {
  color: var(--text-primary, #222) !important;
  background: #fff !important;
}


/* v1.4.2 - GP 부모테마 헤더/푸터 PC에서도 숨기기 (모바일은 이미 숨김) */
body.hana-feed-page .site-header,
body.hana-feed-page .site-footer,
body.hana-feed-page #masthead,
body.hana-feed-page #colophon,
body.hana-feed-page .main-navigation,
body.hana-feed-page .inside-header,
body.hana-feed-page .footer-widgets,
body.hana-feed-page .site-info,
body.hana-feed-page .footer-bar {
  display: none !important;
}
/* GP container padding 제거 */
body.hana-feed-page .site-content,
body.hana-feed-page .site.grid-container,
body.hana-feed-page .container.grid-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.hana-feed-page #page,
body.hana-feed-page .site {
  padding-top: 0 !important;
}
/* admin bar 있을 때 상단 마진 보존 (admin만 보임) */
body.hana-feed-page.admin-bar { padding-top: 32px; }
@media (max-width: 782px) {
  body.hana-feed-page.admin-bar { padding-top: 46px; }
}


/* v1.4.3 - 모달은 fixed로 띄워서 wide-grid override의 position:static에서 제외 */
@media (min-width: 1280px) {
  .hana-feed.hana-calendar > #hana-event-modal,
  .hana-feed.hana-calendar > #hana-search-modal,
  .hana-feed.hana-calendar > #hana-export-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,0.5) !important;
    display: none;
  }
  .hana-feed.hana-calendar > #hana-event-modal[style*="display: block"],
  .hana-feed.hana-calendar > #hana-search-modal[style*="display: block"],
  .hana-feed.hana-calendar > #hana-export-modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .hana-feed.hana-calendar > .hana-sheet > .hana-sheet__panel,
  .hana-feed.hana-calendar #hana-event-modal .hana-sheet__panel,
  .hana-feed.hana-calendar #hana-search-modal .hana-sheet__panel,
  .hana-feed.hana-calendar #hana-export-modal .hana-sheet__panel {
    margin: 0 auto !important;
    background: #fff !important;
    border-radius: 16px !important;
    max-width: 520px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
  }
}
/* 모달이 일반 .hana-sheet인 경우에도 z-index */
.hana-sheet { z-index: 9999 !important; }


/* v1.4.2 - GP 부모 테마 헤더/푸터 PC에서도 숨김 (모바일은 이미 숨겨짐) */
body.hana-feed-page .site-header,
body.hana-feed-page .main-navigation,
body.hana-feed-page .site-footer,
body.hana-feed-page .footer-widgets {
  display: none !important;
}
/* GP 컨테이너 padding 제거 - HANA 본문이 풀 너비 사용 */
body.hana-feed-page .site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.hana-feed-page .site.grid-container {
  max-width: 100% !important;
  padding: 0 !important;
}
body.hana-feed-page #page {
  padding: 0 !important;
}
/* WP admin bar는 admin 사용자에게는 보이게 둠 (정상) */


/* v1.4.2 - GP 부모 테마 헤더/푸터 숨김 (모바일 + PC 동일) */
body.hana-feed-page .site-header,
body.hana-feed-page .site-footer,
body.hana-feed-page #masthead,
body.hana-feed-page #colophon,
body.hana-feed-page .main-navigation,
body.hana-feed-page footer.site-info {
  display: none !important;
}
body.hana-feed-page .site-content { padding-top: 0 !important; }
body.hana-feed-page #page,
body.hana-feed-page .site.grid-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
body.hana-feed-page.admin-bar { padding-top: 0 !important; }


/* v1.4.2 - hana-feed-page에서 GP 부모 테마 헤더/푸터/사이드바 숨김 (PC 포함) */
body.hana-feed-page .site-header,
body.hana-feed-page .main-navigation,
body.hana-feed-page .site-footer,
body.hana-feed-page .footer-widgets,
body.hana-feed-page .sidebar,
body.hana-feed-page #left-sidebar,
body.hana-feed-page #right-sidebar {
  display: none !important;
}
body.hana-feed-page .site-content,
body.hana-feed-page .content-area,
body.hana-feed-page #primary {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
body.hana-feed-page .site.grid-container,
body.hana-feed-page .inside-article,
body.hana-feed-page .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.hana-feed-page #page {
  padding: 0 !important;
  margin: 0 !important;
}


/* v1.4.2 - GP 부모테마 헤더/푸터 hana-feed-page에서 모든 viewport 숨김 */
body.hana-feed-page .site-header,
body.hana-feed-page .main-navigation,
body.hana-feed-page .site-footer,
body.hana-feed-page .footer-widgets,
body.hana-feed-page .footer-bar {
  display: none !important;
}
body.hana-feed-page .site-content { padding-top: 0 !important; }
body.hana-feed-page .site.grid-container { max-width: none !important; padding: 0 !important; }
body.hana-feed-page #page { padding: 0 !important; }


/* v1.4.2 - GP 부모 테마 헤더/푸터 숨기기 (PC + 모바일 공통) */
body.hana-feed-page .site-header,
body.hana-feed-page .main-navigation,
body.hana-feed-page .site-footer,
body.hana-feed-page .footer-widgets,
body.hana-feed-page .footer-widgets-container {
  display: none !important;
}
body.hana-feed-page .site-content {
  padding: 0 !important;
}
body.hana-feed-page #page,
body.hana-feed-page .site.grid-container.container.hfeed {
  max-width: none !important;
  padding: 0 !important;
  background: var(--bg-app, #f5f5f5) !important;
}
body.hana-feed-page .inside-article {
  padding: 0 !important;
}
/* admin bar 위에 본문 시작점 보정 (admin 로그인 시) */
body.hana-feed-page.admin-bar { padding-top: 0; }



/* v1.5 - GP 부모테마 헤더/푸터 PC에서도 숨김 (모바일과 동일) */
body.hana-feed-page .site-header,
body.hana-feed-page .main-navigation,
body.hana-feed-page .site-footer,
body.hana-feed-page footer.site-info {
  display: none !important;
}
body.hana-feed-page .site-content {
  margin: 0 !important;
  padding: 0 !important;
}
body.hana-feed-page #page,
body.hana-feed-page .site,
body.hana-feed-page .container {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}



/* v1.5 - media gallery wide-grid 비활성 */
@media (min-width: 1280px) {
  .hana-feed.hana-media {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 1100px !important;
    background: var(--bg-card, #fff) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 16px auto !important;
  }
  .hana-feed.hana-media > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .hana-feed.hana-media .hana-media__row {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
}

/* v1.5 - 캘린더 modal 본문 영역 가독성 */
.hana-feed.hana-calendar #hana-event-modal .hana-ev-richbody {
  color: var(--text-primary, #222);
}
.hana-feed.hana-calendar #hana-event-modal .hana-ev-richbody img,
.hana-feed.hana-calendar #hana-event-modal .hana-ev-richbody video {
  max-width: 100% !important;
  border-radius: 6px;
}



/* v1.4.2 - GP 부모 테마 헤더/footer/사이드바 PC에서도 숨김 (모바일은 이미 숨김) */
body.hana-feed-page > .site-header,
body.hana-feed-page > header.site-header,
body.hana-feed-page #masthead,
body.hana-feed-page > .site-footer,
body.hana-feed-page > footer.site-footer,
body.hana-feed-page #colophon,
body.hana-feed-page #right-sidebar,
body.hana-feed-page #left-sidebar,
body.hana-feed-page .widget-area {
  display: none !important;
}
body.hana-feed-page .site.grid-container {
  max-width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}
body.hana-feed-page .site-content,
body.hana-feed-page main#main,
body.hana-feed-page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}
body.hana-feed-page .content-area {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}
body.hana-feed-page article {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.hana-feed-page .entry-header,
body.hana-feed-page .entry-meta,
body.hana-feed-page .entry-footer,
body.hana-feed-page .post-navigation,
body.hana-feed-page .nav-below,
body.hana-feed-page .comments-area {
  display: none !important;
}


/* v1.5 - media gallery wide-grid 비활성 */
@media (min-width: 1280px) {
  .hana-feed.hana-media {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 1100px !important;
    background: var(--bg-card, #fff) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 16px auto !important;
  }
  .hana-feed.hana-media > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .hana-feed.hana-media .hana-media__row {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
}

/* v1.5 - 갤러리 grid hover */
.hana-media__cell { transition: transform .15s; }
.hana-media__cell:hover { transform: scale(1.02); z-index:2; }

/* v1.5 - 캘린더 modal richbody 가독성 */
.hana-feed.hana-calendar #hana-event-modal .hana-ev-richbody {
  color: var(--text-primary, #222);
}
.hana-feed.hana-calendar #hana-event-modal .hana-ev-richbody img,
.hana-feed.hana-calendar #hana-event-modal .hana-ev-richbody video {
  max-width: 100% !important;
  border-radius: 6px;
}



/* v1.6.2 - 일정 있는 셀에 작은 dot indicator 표시 */
.hana-cal__cell { position: relative; }
.hana-cal__cell.has-events::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #FF6B00);
  box-shadow: 0 0 0 1px rgba(255,107,0,0.2);
  pointer-events: none;
}
/* 일정 2개 이상일 때 점 강조 (그냥 살짝 큰 점) */
.hana-cal__cell.has-events[data-count="2"]::before { width: 7px; height: 7px; }
.hana-cal__cell.has-events[data-count="3"]::before { width: 8px; height: 8px; box-shadow: 0 0 0 2px rgba(255,107,0,0.15); }
.hana-cal__cell.has-events[data-count="4"]::before,
.hana-cal__cell.has-events[data-count="5"]::before,
.hana-cal__cell.has-events[data-count="6"]::before,
.hana-cal__cell.has-events[data-count="7"]::before,
.hana-cal__cell.has-events[data-count="8"]::before,
.hana-cal__cell.has-events[data-count="9"]::before {
  width: 9px; height: 9px; box-shadow: 0 0 0 2px rgba(255,107,0,0.15);
}
.hana-cal__cell:hover { background: rgba(255,107,0,0.04) !important; }

/* v1.6.2 - 모바일 popover full-width */
@media (max-width: 600px) {
  #hana-day-popover {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
  }
}


/* === Sort dropdown (B 기능 추가) === */
.hana-sort-wrap { position: relative; }
.hana-sort-menu { position: absolute; top: 100%; left: 0; z-index: 50; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 4px; margin: 4px 0 0; min-width: 140px; list-style: none; }
.hana-sort-menu[hidden] { display: none; }
.hana-sort-menu li { margin: 0; padding: 0; }
.hana-sort-item { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--text-primary); white-space: nowrap; }
.hana-sort-item:hover { background: #f3f4f6; }
.hana-sort-item.is-active { color: #FF6B00; font-weight: 600; }

/* === Viewtoggle as links === */
.hana-viewtoggle__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 4px; text-decoration: none; color: var(--text-secondary, #6b7280); cursor: pointer; }
.hana-viewtoggle__btn.is-active { color: var(--text-primary, #111); background: #f3f4f6; }

/* === Grid view mode === */
.hana-feed.is-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hana-feed.is-grid > article,
.hana-feed.is-grid > .hana-card { font-size: 13px; }
.hana-feed.is-grid img { max-width: 100%; height: auto; }
