.profile-main { padding: 24px 28px 40px; }
.profile-main a, footer a { color: #874000; }
.local-note { margin: 10px 0 25px; color: #68685f; font-size: 12px; line-height: 1.6; }
.profile-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.forum-panel { border: 1px solid #aaa99a; background: #fffff9; margin-bottom: 22px; box-shadow: 2px 2px 0 #d5d5c8; min-width: 0; }
.identity { padding: 16px; text-align: center; }
.identity h1 { text-align: left; font-size: 18px; padding-bottom: 10px; border-bottom: 1px dotted #aaa99a; margin-bottom: 18px; }
.avatar { width: 140px; height: 140px; padding: 8px; margin: 0 auto; color: #cc5500; border: 2px inset #d0d0c5; background-color: #eeeee5; }
.avatar svg { display: block; width: 100%; height: 100%; }
.member-caption { font-size: 12px; line-height: 1.6; color: #68685f; margin: 12px 0 22px; }
.identity label { text-align: left; }
.color-control { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.color-control input { width: 43px; height: 32px; padding: 2px; cursor: pointer; }
.small-note { font-size: 12px; line-height: 1.6; color: #68685f; }
.small-note:empty { display: none; }
.sidebar-note { padding: 0 4px; }
.profile-nav h2, .panel-heading { background: #e7e7dc; border-bottom: 1px solid #aaa99a; padding: 10px 14px; }
.profile-nav h2 { font-size: 14px; margin: 0; }
.profile-nav a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 14px; border-bottom: 1px dotted #c3c3b6; }
.profile-nav a:last-child { border: 0; }
.profile-nav a:hover { background: #fff0cf; }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.panel-heading h2 { font-size: 18px; margin: 0; }
.panel-heading span { font-size: 12px; color: #6b6b60; }
.composer { padding: 16px; }
.composer input + label { margin-top: 14px; }
textarea { display: block; width: 100%; resize: vertical; min-height: 88px; padding: 10px; font: inherit; line-height: 1.5; color: #242424; background: white; border: 2px inset #c2c2b8; border-radius: 0; }
textarea::placeholder { color: #77776b; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.retro-button { padding: 7px 12px; font: bold 14px 'Courier New', Courier, monospace; color: #222; background: #e7e7dc; border: 2px outset #e7e7dc; cursor: pointer; min-height: 36px; }
.retro-button:hover { background: #fff0cf; }
.retro-button:active { border-style: inset; }
.composer-actions .retro-button { margin-left: auto; }
#post-form .retro-button { background: #ff6600; border-color: #ffc18f; }
.entry-list { border-top: 1px solid #c3c3b6; }
.empty-state { margin: 0; padding: 24px 16px; color: #77776b; font-size: 14px; line-height: 1.7; }
.entry { padding: 18px 16px; border-bottom: 1px dotted #aaa99a; overflow-wrap: anywhere; }
.entry:last-child { border-bottom: 0; }
.entry h3 { margin: 10px 0; font-size: 16px; line-height: 1.5; }
.entry-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #727268; }
.entry-body { white-space: pre-wrap; line-height: 1.65; font-size: 16px; margin: 12px 0 0; }
.entry-tag { font-weight: bold; color: #804000; }
.creation-box > summary { padding: 14px 16px; color: #874000; cursor: pointer; font-size: 14px; }
.creation-box[open] > summary { border-bottom: 1px dotted #aaa99a; }
.section-status { margin: 10px 16px; }
.update-box { margin-top: 18px; border: 1px solid #c3c3b6; background: #f6f6ef; }
.update-box > summary { padding: 10px 12px; }
.update-box .composer { padding: 12px; }
.project-updates { margin-top: 16px; border-left: 2px solid #d5d5c8; padding-left: 14px; }
.project-update + .project-update { border-top: 1px dotted #c3c3b6; margin-top: 12px; padding-top: 12px; }
.project-update p { margin: 7px 0 0; }
textarea[aria-invalid="true"] { background: #fff4dc; outline: 1px solid #a00000; outline-offset: -2px; }
section[id] { scroll-margin-top: 15px; }
@media (max-width: 760px) {
  .profile-main { padding: 20px 16px 30px; }
  .profile-layout { grid-template-columns: 1fr; gap: 0; }
  .profile-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .sidebar-note { display: none; }
  .avatar { width: 112px; height: 112px; }
}
@media (max-width: 420px) {
  .profile-sidebar { display: block; }
  .profile-nav { margin-bottom: 20px; }
  .identity { text-align: left; }
  .avatar { margin: 0; }
  .member-caption { margin-bottom: 14px; }
  .panel-heading span { width: 100%; }
  .composer, .entry { padding: 14px 12px; }
}

/* Bio editor, section subheads and the signed-out profile state. */
.panel-subhead { margin: 0; padding: 12px 16px 6px; font-size: 13px; color: #6b6b60; text-transform: uppercase; letter-spacing: 1px; }
.bio-form { padding: 0 0 4px; text-align: left; }
.bio-form textarea { min-height: 62px; font-size: 14px; }
.bio-form .composer-actions { margin-top: 8px; }
.identity .small-note { text-align: left; }
.signed-out-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.signed-out-actions a { display: inline-block; padding: 7px 12px; background: #ff6600; border: 2px outset #ffc18f; color: #151515; font-weight: bold; font-size: 14px; text-decoration: none; }
.signed-out-actions a:active { border-style: inset; }
.member-meta { margin: 0; padding: 12px 16px; border-top: 1px solid #cecec3; font-size: 14px; line-height: 1.7; }
.entry-list + .panel-subhead { border-top: 1px solid #c3c3b6; }

/* ---- Account controls, titles and lists added with the real backend. */
.member-role { margin: 0 0 14px; text-align: left; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 16px 0; }
.danger-box { margin-top: 12px; border-top: 1px solid #cecec3; }
.danger-box > summary { color: #980000; }
.plain-list { margin: 0; padding: 14px 16px 16px 34px; font-size: 14px; line-height: 1.8; color: #4a4a44; }
.card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.entry-meta .link-button { margin-left: auto; }
