/* Profile page (v8/profile.js). A normal page in the main column: nothing here overlays content. */
.pf { max-width: 920px; padding-bottom: 130px; } /* room to scroll past the floating assistant buttons */
.pf-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 28px; border-radius: 22px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--panel); margin-bottom: 18px; }
.pf-av-wrap { position: relative; flex-shrink: 0; }
.pf-av { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg); box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px var(--border2), 0 10px 30px -12px rgba(79,70,229,.45); }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-mark { width: 46%; height: 46%; display: inline-flex; }
.pf-mark svg { width: 100%; height: 100%; }
.pf-av-edit { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--border2); color: var(--text2); cursor: pointer; transition: transform .15s ease, color .15s ease; }
.pf-av-edit:hover { color: var(--text); transform: scale(1.06); }
.pf-av-edit svg { width: 14px; height: 14px; }
.pf-id { min-width: 0; flex: 1; }
.pf-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.pf-email { color: var(--text2); font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-brand { position: absolute; right: -18px; top: -18px; width: 150px; height: 150px; color: var(--text); opacity: .045; pointer-events: none; }
.pf-brand svg { width: 100%; height: 100%; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pf-card { padding: 18px 20px; border-radius: 16px; margin: 0; }
.pf-h { font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.pf-k { font-size: 12px; color: var(--text3); }
.pf-plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-plan-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.pf-meter { height: 8px; border-radius: 8px; background: var(--hover); overflow: hidden; margin: 14px 0 8px; }
.pf-meter span { display: block; height: 100%; border-radius: 8px; background: var(--grad); transition: width .4s ease; }
.pf-sub { color: var(--text2); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; font-size: 12.5px; color: var(--text3); }
.pf-field .field { height: 38px; }
.pf-field .field:disabled { opacity: .75; cursor: default; }
.pf-conn { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.pf-h + .pf-conn { border-top: 0; padding-top: 0; }
.pf-conn-t { min-width: 0; flex: 1; }
.pf-conn-t b { display: block; font-size: 14px; font-weight: 600; }
.pf-conn-t small { color: var(--text3); font-size: 12.5px; overflow-wrap: anywhere; }
.pf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border2); flex-shrink: 0; }
.pf-dot.on { background: var(--ok, #10b981); box-shadow: 0 0 0 3px var(--ok-soft, rgba(16,185,129,.15)); }
.pf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-stat { padding: 12px; border-radius: 12px; background: var(--hover); }
.pf-stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pf-stat small { color: var(--text3); font-size: 12px; }
.pf-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

/* Sidebar: the name and plan open the profile. */
.side-foot .who { background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 4px 6px; margin: -4px -2px; border-radius: 8px; cursor: pointer; transition: background .15s ease; }
.side-foot .who:hover, .side-foot .who.on { background: var(--hover); }
.side-foot .who:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

@media (max-width: 720px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-hero { flex-direction: column; align-items: flex-start; padding: 22px; gap: 16px; }
  .pf-name { font-size: 22px; }
}
