/* Parent Portal — login-gated daily-report viewer. */

.lyra-bt-pp {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
}
.lyra-bt-pp *, .lyra-bt-pp *::before, .lyra-bt-pp *::after { box-sizing: border-box; }

.lyra-bt-pp__heading {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}
.lyra-bt-pp__subheading {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 16px;
}

/* ── Logged-out / locked state ───────────────────────────────────────── */
.lyra-bt-pp__locked {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 28px;
    text-align: center;
}
.lyra-bt-pp__lock {
    color: #94a3b8;
    margin-bottom: 14px;
}
.lyra-bt-pp__locked-msg {
    margin: 0 0 18px;
    font-size: 16px;
    color: #475569;
}
.lyra-bt-pp__login-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}
.lyra-bt-pp__login-btn:hover { background: #1e293b; }

/* No children */
.lyra-bt-pp__no-children-msg {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 18px 22px;
    border-radius: 10px;
}

/* ── Child tabs ──────────────────────────────────────────────────────── */
.lyra-bt-pp__children-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.lyra-bt-pp__child-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lyra-bt-pp__child-tab:hover { border-color: #94a3b8; }
/* .is-active colors injected inline */

.lyra-bt-pp__child-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.lyra-bt-pp__child-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
}

/* ── Date navigation ─────────────────────────────────────────────────── */
.lyra-bt-pp__date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
}
.lyra-bt-pp__date-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    /* color injected inline */
}
.lyra-bt-pp__date-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    background: #fff;
}
.lyra-bt-pp__date-today-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.lyra-bt-pp__date-today-btn:hover { background: #f1f5f9; }
.lyra-bt-pp__date-display {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
}

/* ── Report container & sections ─────────────────────────────────────── */
.lyra-bt-pp__report {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.lyra-bt-pp__report.is-loading { opacity: 0.5; pointer-events: none; }

.lyra-bt-pp__no-report {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    color: #64748b;
}
.lyra-bt-pp__no-report svg { color: #94a3b8; margin-bottom: 8px; }
.lyra-bt-pp__no-report p { margin: 0; font-size: 15px; }

.lyra-bt-pp__mood {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #facc15;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #854d0e;
    align-self: flex-start;
}
.lyra-bt-pp__mood-emoji { font-size: 24px; }

.lyra-bt-pp__section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}
.lyra-bt-pp__section-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lyra-bt-pp__section-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    /* color injected inline */
}
.lyra-bt-pp__section--notes .lyra-bt-pp__note {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 15px;
}

.lyra-bt-pp__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lyra-bt-pp__list-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.lyra-bt-pp__list-item:last-child { border-bottom: none; }
.lyra-bt-pp__list-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    font-size: 13px;
}
.lyra-bt-pp__list-main { color: #0f172a; }
.lyra-bt-pp__list-meta {
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

.lyra-bt-pp__photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.lyra-bt-pp__photo-link {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
}
.lyra-bt-pp__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.lyra-bt-pp__photo-link:hover .lyra-bt-pp__photo { transform: scale(1.04); }

@media (max-width: 640px) {
    .lyra-bt-pp { padding: 24px 16px; }
    .lyra-bt-pp__list-item { grid-template-columns: 70px 1fr; }
    .lyra-bt-pp__list-meta { grid-column: 1 / -1; margin-left: 82px; }
    .lyra-bt-pp__date-today-btn { padding: 8px 10px; }
}
