/* ===========================================================================
   My Profile page.
   =========================================================================== */

.pf-page { display: flex; flex-direction: column; gap: 16px; }

.pf-banner {
    background: linear-gradient(120deg, #f7ecef 0%, #faf3ee 55%, #f6f3fb 100%);
    border: 1px solid #f1e6e8; border-radius: 18px; padding: 12px 24px;
}
.pf-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; margin-bottom: 4px; color: #6b5f63; }
.pf-crumb a { color: #6b5f63; text-decoration: none; }
.pf-crumb a:hover { color: var(--primary-color); text-decoration: underline; }
.pf-crumb strong { color: #1c1416; font-weight: 700; }
.pf-crumb__sep { color: #cdbfc3; }
.pf-title { font-size: 1.5rem; font-weight: 800; color: #1c1416; margin: 0 0 2px; }
.pf-sub { color: #6b5f63; font-size: .88rem; margin: 0; }

.pf-card {
    background: #fff; border: 1px solid #eef0f3; border-top: 3px solid #e9c7d2; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 20, 40, .04); padding: 18px 22px 20px; min-width: 0;
}
.pf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-card__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.1rem; font-weight: 700; color: #1c1416; }
.pf-accent { width: 4px; height: 18px; border-radius: 3px; background: var(--primary-color); flex: none; }
.pf-h3 { margin: 18px 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b5f63; }

.pf-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* left: profile card */
.pf-id {
    position: relative; background: #fff; border: 1px solid #eceae8; border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(20, 20, 40, .04);
}
.pf-id__cover { height: 112px; background: radial-gradient(circle at 50% 10%, #9b1f5c 0%, #7a1640 55%, #5e0f33 100%); }
.pf-id__avatar {
    width: 140px; height: 140px; margin: -70px auto 0; position: relative; border-radius: 50%;
    background: #fff; padding: 7px; box-sizing: border-box; box-shadow: 0 6px 18px rgba(60, 10, 30, .18);
}
.pf-id__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #f3dfe8; }
.pf-id__noimg { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f3dfe8; color: #7a1640; font-size: 84px; }
.pf-id__who { text-align: center; padding: 14px 20px 18px; border-bottom: 1px solid #f0eeec; }
.pf-id__name { font-size: 1.6rem; font-weight: 800; color: #1c1416; line-height: 1.2; overflow-wrap: anywhere; }
.pf-id__role { margin-top: 4px; color: #6b5f63; font-size: 1rem; }
.pf-id__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #f1edeb; color: #3d3236; font-size: .84rem; font-weight: 700; }
.pf-chip--ok { background: #e3f3ea; color: #0d6a40; }
.pf-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }

.pf-id__rows { list-style: none; margin: 0; padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.pf-id__rows li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-id__rows li > div { min-width: 0; }
.pf-id__icon {
    flex: none; width: 40px; height: 40px; border-radius: 10px; background: #f8e8ed; color: #7a1640;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pf-id__rows label { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b5f63; }
.pf-id__rows b { display: block; font-size: 1rem; font-weight: 600; color: #1c1416; overflow-wrap: anywhere; }
.pf-tag { padding: 1px 7px; border-radius: 999px; background: #fdf0d5; color: #7a4f00; font-size: .64rem; letter-spacing: .02em; text-transform: none; }

/* read-only fields */
.pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.pf-field--wide { grid-column: 1 / -1; }
.pf-field label { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 600; color: #6b5f63; }
.pf-value {
    padding: 10px 12px; border: 1px solid #e6e8ec; border-radius: 10px; background: #f8f8f9;
    color: #1c1416; font-size: .95rem; overflow-wrap: anywhere;
}
.pf-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: #6b5f63; font-size: .84rem; }
.pf-note .material-symbols-rounded { font-size: 17px; }

.pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-list li { display: flex; gap: 12px; align-items: flex-start; }
.pf-list li > .material-symbols-rounded {
    flex: none; width: 36px; height: 36px; border-radius: 10px; background: #e3f3ea; color: #0d6a40;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pf-list b { display: block; color: #1c1416; font-size: .92rem; }
.pf-list span { color: #5b6270; font-size: .86rem; }

/* login activity */
.pf-sample { margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; background: #fdf0d5; color: #7a4f00; font-size: .76rem; font-weight: 700; }
.pf-card__hint { margin-bottom: 14px; color: #8a8f99; font-size: .82rem; }
.pf-empty { padding: 22px; text-align: center; color: #6b5f63; font-size: .9rem; border: 1px dashed #e3d8db; border-radius: 12px; }
.pf-acts { border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; }
.pf-act { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.pf-act + .pf-act { border-top: 1px solid #f0f1f4; }
.pf-act:hover { background: #fcf8f9; }
.pf-act__icon {
    flex: none; width: 38px; height: 38px; border-radius: 10px; background: #f6e9ed; color: var(--primary-color);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pf-act__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-act__text b { color: #1c1416; font-size: .94rem; }
.pf-act__text span { color: #6b5f63; font-size: .84rem; }
.pf-act__when { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pf-act__when span { color: #3d3236; font-size: .86rem; }
.pf-ago { padding: 3px 10px; border-radius: 999px; background: #f1edeb; color: #5b6270 !important; font-size: .78rem !important; font-weight: 600; }
.pf-act__when small { color: #8a8f99; font-size: .76rem; font-weight: 600; }

@media (max-width: 1000px) { .pf-layout { grid-template-columns: 1fr; } .pf-id { max-width: 480px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) {
    .pf-fields { grid-template-columns: 1fr; }
    .pf-act { flex-wrap: wrap; }
    .pf-act__when { align-items: flex-start; text-align: left; width: 100%; padding-left: 52px; }
}
