/* 웹 보호자 화면 — 가족 일상(P-19)의 영상 · 댓글 · «일별 · 주별 · 월별» 보기 · 달력. portal.css 의 틀(.pt-card · .pt-row · .pt-seg · .pt-chip …)을 그대로 쓰고 더한 것만 둔다. */

/* 보기 선택 · 기간 막대 */
.pt-feedbar { gap: 8px; }
.pt-feedbar .pt-seg { display: flex; }
.pt-feedbar .pt-seg__b { flex: 1 1 0; padding: 0 8px; }
.pt-feed-periodrow { display: flex; align-items: center; gap: 4px; }
.pt-feed-periodmid { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.pt-feed-period { font-size: 16px; }
.pt-feed-periodrow .pt-icon-btn { font-size: 28px; line-height: 1; color: var(--ink); }
.pt-icon-btn:disabled { opacity: .3; cursor: default; }
.pt-feedstrip { display: grid; gap: 8px; }

/* 날짜 칸 — 달력 · 주 표시 */
.pt-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pt-cal__name, .pt-week__name { text-align: center; font-size: 14px; font-weight: 700; color: var(--sub); padding: 4px 0; }
.pt-cal__name.is-sun, .pt-week__name.is-sun { color: #D14B4B; }
.pt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pt-week__col { display: grid; gap: 2px; align-content: start; min-width: 0; }
.pt-daycell { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; margin: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: rgba(23, 37, 30, .06); color: var(--ink); font: inherit; text-align: left; cursor: default; }
.pt-daycell.is-future { opacity: .5; }
.pt-daycell.has-posts { background: var(--brand-soft); cursor: pointer; }
.pt-daycell.is-today { border-color: rgba(46, 158, 107, .6); }
.pt-daycell.is-selected { border-color: var(--brand-ink); border-width: 3px; }
.pt-daycell:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 1px; }
.pt-daycell__img, .pt-daycell__video, .pt-daycell__text { position: absolute; inset: 0; }
.pt-daycell__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-daycell__img.is-broken { background: rgba(23, 37, 30, .15); }
.pt-daycell__video { background: #202124; display: flex; align-items: center; justify-content: center; }
.pt-daycell__video .pt-play { width: 26px; height: 26px; }
.pt-daycell__text { padding: 17px 4px 2px; font-size: 10px; line-height: 1.1; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-all; }
.pt-daycell__n { position: absolute; left: 3px; top: 2px; padding: 0 2px; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.pt-daycell.is-today .pt-daycell__n { font-weight: 800; }
.pt-daycell.is-future .pt-daycell__n { color: rgba(23, 37, 30, .5); }
.pt-daycell.on-media .pt-daycell__n { background: rgba(0, 0, 0, .55); color: #fff; padding: 0 5px; }
.pt-daycell__count { position: absolute; right: 3px; bottom: 3px; padding: 1px 6px; border-radius: 8px; background: var(--brand-ink); color: #fff; font-size: 11px; line-height: 1.4; }
.pt-cal__sum { text-align: center; }
.pt-cal__loading { width: 100%; accent-color: var(--brand); }
.pt-day-head { margin: 8px 4px 8px; font-size: 16px; letter-spacing: -.01em; }
.pt-feed-more { display: flex; justify-content: center; padding: 8px 0; }

/* 글 카드 */
.pt-post__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-comment-btn { gap: 6px; }
.pt-comment-btn .ic { width: 18px; height: 18px; }
button.pt-photo-box { width: 100%; padding: 0; border: 0; font: inherit; cursor: pointer; }
.pt-play { fill: rgba(255, 255, 255, .78); }
.pt-video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #202124; cursor: pointer; }
.pt-video .pt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); }
.pt-video:hover .pt-play { fill: #fff; }
.pt-video:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.pt-video__badge { position: absolute; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; line-height: 1.4; }
.pt-video__size { left: 8px; }
.pt-video__len { right: 8px; }

/* 올리기 — 영상 · 찍기 */
.pt-feed-addrow { flex-wrap: wrap; }
.pt-row.pt-feed-addrow > * { flex: 0 0 auto; }
.pt-feed-add[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pt-videopick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 10px 14px; border-radius: 10px; background: #202124; color: #fff; }
.pt-videopick__text { display: grid; gap: 2px; min-width: 0; }
.pt-videopick__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-videopick__text small { color: rgba(255, 255, 255, .72); font-size: 13px; }
.pt-videopick__x { color: #fff; font-size: 22px; line-height: 1; }
.pt-videopick__x:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.pt-upload { display: grid; gap: 6px; }
.pt-upload progress, .pt-video-body progress { width: 100%; accent-color: var(--brand); }

/* 영상 재생 · 댓글 창 */
.pt-dlg--video { gap: 12px; }
.pt-video-body video { display: block; width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.pt-video-body { display: grid; gap: 8px; min-height: 80px; align-content: center; }
.pt-video-fail { display: grid; gap: 12px; justify-items: center; padding: 24px 0; text-align: center; }
.pt-comments-dlg { gap: 10px; }
.pt-comments__head { display: flex; align-items: center; justify-content: space-between; }
.pt-comments__head .pt-icon-btn { font-size: 24px; line-height: 1; }
.pt-comments { max-height: min(46vh, 420px); overflow-y: auto; display: grid; gap: 2px; align-content: start; }
.pt-comments__more { display: flex; justify-content: center; }
.pt-comment { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.pt-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pt-comment__body { flex: 1 1 auto; min-width: 0; }
.pt-comment__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-dlg .pt-comment__text { margin: 2px 0 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.pt-comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.pt-comment-input { min-height: 48px; resize: vertical; }
