/* Per-character Life Trajectory read-only product UI v0.3B-2C */

#phone-screen {
    background: linear-gradient(180deg, #fbfaf8 0%, #f5f3ef 100%);
}

.life-trajectory-product {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: max(18px, env(safe-area-inset-top)) 18px calc(86px + env(safe-area-inset-bottom));
    color: #292824;
}

.life-trajectory-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto 18px;
}

.life-trajectory-character {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.life-trajectory-avatar,
.life-trajectory-avatar-fallback {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 17px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(71, 64, 54, 0.13);
}

.life-trajectory-avatar-fallback {
    display: grid;
    place-items: center;
    background: #ded8cd;
    color: #645d53;
    font-size: 19px;
    font-weight: 700;
}

.life-trajectory-avatar-fallback[hidden] {
    display: none;
}

.life-trajectory-eyebrow {
    margin: 0 0 2px;
    color: #8b8174;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.life-trajectory-hero h1 {
    overflow: hidden;
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.life-trajectory-retry {
    flex: 0 0 auto;
    border: 1px solid rgba(74, 68, 59, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #675f54;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
}

.life-trajectory-retry:disabled {
    opacity: 0.55;
}

.life-trajectory-state {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto 16px;
    border: 1px solid rgba(97, 89, 77, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    padding: 12px 14px;
    color: #746b5f;
    font-size: 13px;
    line-height: 1.55;
}

.life-trajectory-tabs {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto 16px;
    border-radius: 15px;
    background: rgba(224, 219, 210, 0.64);
    padding: 4px;
}

.life-trajectory-tabs button {
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #7b7368;
    padding: 9px 4px;
    font: inherit;
    font-size: 13px;
}

.life-trajectory-tabs button.active {
    background: #fff;
    color: #2f2d29;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(70, 64, 55, 0.08);
}

.life-trajectory-content {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0 auto;
}

.life-trajectory-card,
.life-trajectory-empty {
    box-sizing: border-box;
    margin: 0 0 12px;
    border: 1px solid rgba(95, 87, 75, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 26px rgba(78, 70, 58, 0.055);
}

.life-trajectory-card h2 {
    margin: 0;
    padding: 14px 16px 9px;
    color: #665f55;
    font-size: 13px;
    font-weight: 600;
}

.life-trajectory-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-top: 1px solid rgba(98, 91, 80, 0.07);
}

.life-trajectory-row-copy {
    min-width: 0;
}

.life-trajectory-row h3 {
    margin: 0;
    color: #302e2a;
    font-size: 15px;
    line-height: 1.4;
}

.life-trajectory-row p {
    margin: 5px 0 0;
    color: #81786c;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.life-trajectory-row-meta {
    flex: 0 0 auto;
    max-width: 34%;
    color: #9a9083;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.life-trajectory-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 28px;
    color: #91887c;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .life-trajectory-product * {
        scroll-behavior: auto !important;
    }
}
