.profile-page { max-width:35rem; min-height:calc(100dvh - 19rem); }
.profile-page h1,.profile-page dd { overflow-wrap:anywhere; }
.profile-page h1 { margin-bottom:1.5rem; }
.profile-library {
  display:flex; gap:.7rem; align-items:center; width:fit-content; max-width:100%;
  padding:.8rem 1rem; border:1.5px solid var(--ink); border-radius:.7rem; background:var(--butter);
  color:var(--ink); font-weight:720; text-decoration:none; box-shadow:2px 2px 0 var(--ink);
}
.profile-library:hover { color:var(--ink); background:#ffec78; }
.profile-library span:last-child { margin-left:.75rem; }
.profile-details { margin:2.25rem 0 1.25rem; border-block:1px solid #d7c9b0; padding-bottom:1rem; }
.profile-details h2 { margin:1rem 0 .75rem; }
.profile-details dl { margin:0; }
.profile-details dl div { display:grid; grid-template-columns:4rem 1fr; align-items:baseline; gap:.75rem; padding:.45rem 0; }
.profile-details dt { color:#675c49; }
.profile-details dd { min-width:0; margin:0; font-weight:600; }
.profile-link { font:inherit; font-weight:600; color:#584b35; background:none; border:none; padding:.3rem 0; cursor:pointer; text-decoration:underline; text-underline-offset:.18em; }
#profile-edit { margin-left:.6rem; font-size:.87rem; }
#profile-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:.75rem 0; }
#profile-form label { font-weight:600; font-size:.93rem; }
#profile-form input { display:block; margin-top:.25rem; padding:.6rem .75rem; width:100%; font:inherit; color:var(--ink); background:#fffdf8; border:1px solid #9e9077; border-radius:.55rem; }
.profile-buttons { grid-column:1/-1; display:flex; gap:.5rem; }
#profile-status:empty { display:none; }
@media (max-width:400px) { #profile-form { grid-template-columns:1fr; } }
