/* Isolated portrait experiment: existing profile cards retain their styles. */
.mini-profile .portrait-card{--portrait-ink:#ecf4ef;--portrait-muted:#9db3b2;--portrait-accent:#bce9cd;box-sizing:border-box;min-width:0;margin:0 0 16px;overflow:hidden;border:1px solid #c2e8d125;border-radius:24px;background:#12212a;color:var(--portrait-ink);font:14px/1.65 'Segoe UI',system-ui,sans-serif;box-shadow:0 12px 35px #0002;text-align:left}
.portrait-card *{box-sizing:border-box}
.mini-profile .portrait-card h2,.mini-profile .portrait-card h3,.mini-profile .portrait-card h4,.mini-profile .portrait-card p{margin:0}
.mini-profile .portrait-card a{color:var(--portrait-accent);text-decoration:none}
.mini-profile .portrait-card a:focus-visible{outline:2px solid var(--portrait-accent);outline-offset:4px}
.portrait-card .portrait-header{position:relative;padding:28px;background:radial-gradient(ellipse at 100% 0,#6eb49124,transparent 65%),linear-gradient(135deg,#203a37,#172731);border-bottom:1px solid #c2e8d118}
.portrait-card .portrait-kicker{display:flex;align-items:center;gap:8px;color:#b0cdbe;font-size:10px;font-weight:700;letter-spacing:2px}
.portrait-card .portrait-dot{width:6px;height:6px;border-radius:50%;background:#bce9cd;box-shadow:0 0 14px #bce9cd55}
.portrait-card .portrait-preview{margin-left:auto;padding:4px 8px;border:1px solid #cfb68a30;border-radius:5px;color:#d1bb96;font-size:8px;letter-spacing:1px}
.portrait-card .portrait-title-row{display:flex;align-items:center;gap:20px;margin-top:22px}
.mini-profile .portrait-card h2{font:600 clamp(24px,3vw,34px)/1.22 Georgia,serif;letter-spacing:-.6px;color:#eef5ed}
.portrait-card h2 em{font-weight:400;color:#bce9cd}
.mini-profile .portrait-card .portrait-title-row p{margin-top:14px;color:#b4c9c3;font-size:12px}
.portrait-card .portrait-monogram{display:grid;place-items:center;flex:none;width:72px;height:88px;margin-left:auto;border:1px solid #c1dfc736;border-radius:40px 40px 14px 14px;background:linear-gradient(150deg,#bce9cd18,#bce9cd03);font:italic 44px/1 Georgia,serif;color:#d2e7c7;box-shadow:inset 0 0 0 5px #15252a66}
.mini-profile .portrait-card .portrait-edit{display:inline-flex;align-items:center;gap:10px;min-height:40px;margin-top:20px;padding:8px 13px;border:1px solid #bce9cd35;border-radius:10px;background:#bce9cd08;font-size:12px}
.portrait-card .portrait-intro,.portrait-card .portrait-section{padding:25px 28px}
.portrait-card .portrait-section{border-top:1px solid #c2e8d112}
.portrait-card .portrait-section-no{display:block;color:#8baea1;font-size:9px;letter-spacing:1.8px;font-weight:700}
.mini-profile .portrait-card .portrait-narrative{margin-top:12px;font-size:16px;line-height:1.9;color:#c0d1cd;overflow-wrap:anywhere}
.portrait-card .portrait-narrative strong{font-weight:600;color:#e5f5e9}
.portrait-card .portrait-bio{margin-top:16px;color:#b4c9c6;white-space:normal;overflow-wrap:anywhere}
.portrait-card .portrait-mood{margin-top:20px;padding:13px 16px;border-left:2px solid #bce9cd77;background:#bce9cd06;border-radius:0 10px 10px 0}
.portrait-card .portrait-mood>span{font-size:8px;letter-spacing:1.5px;color:#9cbcab}
.mini-profile .portrait-card .portrait-mood p{margin-top:5px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.portrait-card .portrait-quote{position:relative;margin:0 28px 24px;padding:22px;border:1px solid #d0b88724;border-radius:15px;background:linear-gradient(120deg,#d0b8870c,transparent);text-align:center}
.portrait-card .portrait-quote>span{display:block;font:44px/.8 Georgia,serif;color:#d0b887}
.mini-profile .portrait-card .portrait-quote p{font:italic 19px/1.6 Georgia,serif;color:#e9ddc7;overflow-wrap:anywhere}
.portrait-card .portrait-quote cite{display:block;margin-top:10px;font:9px/1.4 system-ui;letter-spacing:1px;color:#b6a686}
.mini-profile .portrait-card h3{margin-top:7px;color:#e7f1eb;font:600 19px/1.3 Georgia,serif}
.mini-profile .portrait-card .portrait-section-heading>p{margin-top:6px;color:#9db3b2;font-size:12px}
.portrait-card .portrait-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:18px 0 0}
.portrait-card .portrait-facts>div{padding:12px 10px 12px 0;border-bottom:1px solid #ffffff08;min-width:0}
.portrait-card dt{font-size:10px;color:#94aaa9}
.portrait-card dt i{margin-right:6px;color:#a3c4b5}
.portrait-card dd{margin:5px 0 0;color:#e1eee6;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.portrait-card .portrait-chip-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.portrait-card .portrait-chip-list>span{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #bce9cd22;border-radius:8px;background:#bce9cd05;color:#cce6d6;font-size:12px}
.mini-profile .portrait-card h4{font:600 12px/1.4 system-ui;color:#cbdfd3}
.mini-profile .portrait-card .portrait-connections h4{margin-top:24px}
.portrait-card .portrait-places{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.portrait-card .portrait-places>span{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:10px 12px;border:1px solid #ffffff0d;border-radius:10px;background:#ffffff03;min-width:0;max-width:100%;overflow-wrap:anywhere}
.portrait-card .portrait-places i{grid-row:span 2;align-self:center;color:#ceba94}
.portrait-card .portrait-places b{font-size:12px;font-weight:500}
.portrait-card .portrait-places small{color:#93aaa7;font-size:10px}
.portrait-card .portrait-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;align-items:start}
.portrait-card .portrait-chapter{padding:17px;border:1px solid #c2e8d11a;border-radius:14px;background:#ffffff02;min-width:0}
.portrait-card .portrait-chapter:nth-child(2n){background:#bce9cd04}
.portrait-card .portrait-chapter dl{margin:14px 0 0}
.portrait-card .portrait-chapter dl>div+div{margin-top:14px;padding-top:12px;border-top:1px solid #ffffff09}
.portrait-card .portrait-invitation{display:flex;gap:15px;margin:4px 28px 25px;padding:18px;border:1px dashed #bce9cd30;border-radius:14px;background:#bce9cd04}
.portrait-card .portrait-invitation>span{font-size:25px;color:#c9b788}
.mini-profile .portrait-card .portrait-invitation h3{margin:0;font-size:17px}
.mini-profile .portrait-card .portrait-invitation p{margin-top:8px;color:#9db3b2;font-size:12px}
.portrait-card .portrait-invitation a{display:inline-block;margin-top:12px;font-size:12px}
.portrait-card .portrait-footer{padding:22px 28px;background:#08151c66;border-top:1px solid #c2e8d116}
.portrait-card .portrait-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}
.portrait-card .portrait-stats>div+div{border-left:1px solid #ffffff12;padding-left:18px}
.portrait-card .portrait-stats strong{display:block;font:26px/1.2 Georgia,serif;color:#e4e8cc}
.portrait-card .portrait-stats span{font-size:10px;color:#9db3b2}
.mini-profile .portrait-card .portrait-footer p{margin-top:16px;color:#859f9d;font-size:10px}
.portrait-card .portrait-footer p strong{color:#acbfba;font-weight:500}
.portrait-editor>p{color:#a3b8bd;font-size:13px;line-height:1.6}
.portrait-editor-group{margin-top:12px;border:1px solid #bce9cd22;border-radius:14px;padding:0 14px}
.portrait-editor-group summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:15px 0;color:#d6eadf;font-size:14px;font-weight:600}
.portrait-editor-group summary::after{content:'+';font-size:20px;color:#bce9cd}
.portrait-editor-group[open] summary::after{content:'−'}
.portrait-editor-group summary small{margin-left:auto;color:#94aaa9;font-size:11px}
.portrait-editor-group .pf-clean-grid{padding-bottom:16px}
.portrait-editor-group textarea{width:100%;min-height:74px;resize:vertical;padding:10px;border:1px solid #ffffff20;border-radius:10px;background:#0e1b26;color:#e1eee6;font:14px/1.5 system-ui}
.portrait-editor-group .pf-control>small{font-size:10px;color:#8ca4a7}
@media(max-width:600px){
  .mini-profile .portrait-card{border-radius:18px;margin-bottom:12px}
  .portrait-card .portrait-header{padding:22px 18px}
  .portrait-card .portrait-intro,.portrait-card .portrait-section{padding:20px 18px}
  .portrait-card .portrait-monogram{width:52px;height:67px;font-size:32px}
  .portrait-card .portrait-title-row{gap:10px}
  .portrait-card .portrait-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portrait-card .portrait-chapters{grid-template-columns:1fr}
  .portrait-card .portrait-quote{margin:0 18px 20px;padding:18px}
  .portrait-card .portrait-invitation{margin:0 18px 20px;padding:15px}
  .portrait-card .portrait-footer{padding:20px 18px}
  .mini-profile .portrait-card .portrait-narrative{font-size:14px}
}
