/* Shared author identity. */
.person-line{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-width:0;vertical-align:middle;line-height:1.25;color:#d4b392;text-align:left;white-space:normal}
.person-line button{font:inherit;color:inherit;cursor:pointer;border:0;box-shadow:none;margin:0;min-height:0}
.person-avatar{display:inline-grid;place-items:center;width:27px;height:27px;flex:0 0 27px;padding:0!important;border-radius:50%;overflow:hidden;background:#4a392a!important;color:#e7c9a8!important;font-size:12px!important;font-weight:600;isolation:isolate}
.person-avatar img,.person-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.person-label{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.person-name{display:block!important;flex:0 1 auto;min-width:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent!important;padding:3px 0!important;font-size:12px!important;line-height:1.3!important;font-weight:600!important;text-align:left;text-decoration:none}
.person-name:hover{color:#f2d5b4}.person-status-slot{display:contents}.person-status{padding:0!important;background:transparent!important;width:17px;height:20px;flex:0 0 17px;display:grid;place-items:center;border-radius:4px}
.person-status img{display:block;width:16px;height:16px;object-fit:contain}.person-medals{display:none;min-width:0}.person-medals.has-medals{display:flex;align-items:center;gap:4px;flex:1 1 152px;min-width:22px;max-width:152px;contain:inline-size;height:26px;overflow:hidden}
.person-medal,.person-medals-more{display:grid;place-items:center;flex:0 0 22px;width:22px;height:24px;padding:0!important;background:transparent!important;border-radius:6px;font-size:17px!important;line-height:1!important}
.person-medal img{display:block;width:20px;height:20px;object-fit:contain}.person-medal:hover,.person-medals-more:hover,.person-status:hover{background:#b78b6124!important}.person-medals-more{color:#c9a887!important;font-weight:700!important}
.person-line [hidden]{display:none!important}.person-line button:focus-visible,.person-popover button:focus-visible,.person-profile-dialog button:focus-visible,.profile-medal-order button:focus-visible{outline:2px solid #c89b6d;outline-offset:2px}
.person-medal>.medal-placeholder,.person-award-icon>.medal-placeholder,.person-popover header>.medal-placeholder,.person-profile-medal>.medal-placeholder,.profile-medal-info>.medal-placeholder{display:inline-grid;place-items:center;width:100%;height:100%;color:#d4ac77;font-size:20px;background:radial-gradient(circle,#ba874d29,transparent 72%);line-height:1}
.comm-chat .chat-message{min-width:min(200px,80%)}.comm-chat .message-author{display:flex;margin:0 5px 4px;min-width:0;max-width:100%}.comm-chat .message-author>.person-line{width:100%}
.forum-comment-author .person-line,.forum-compose-person .person-line,.forum-topic-byline .person-line{font-size:12px}.forum-comment-author>.person-line{flex:1;min-width:0}.library-comment>.person-line,.channel-comment>.person-line{width:100%;margin-bottom:2px}
.person-popover{position:fixed;inset:auto;margin:0;z-index:4000;box-sizing:border-box;width:max-content;max-width:min(310px,calc(100vw - 20px));max-height:min(440px,calc(100dvh - 20px));overflow:auto;overscroll-behavior:contain;padding:13px 15px;border:1px solid #81634780;border-radius:13px;background:#241f1a;color:#e9ded3;box-shadow:0 12px 36px #0008;font-size:13px;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere}
.person-popover::backdrop{background:transparent}.person-popover p{margin:6px 0;white-space:pre-wrap}.person-popover>p:only-child{margin:0}.person-popover header{display:flex;align-items:center;gap:9px;min-width:0}.person-popover header>img,.person-popover header>.medal-placeholder{width:34px;height:34px;object-fit:contain;flex:0 0 34px}.person-popover strong{font-size:13px;color:#e6c5a0;font-weight:600}.person-popover small{display:block;color:#b4a28f;white-space:pre-wrap;font-size:11px;margin-top:7px}.person-popover header strong>span{font-size:11px;color:#a5907b;margin-left:6px}.person-popover-close{margin-left:auto;border:0;background:transparent;color:#bca895;width:26px;height:26px;padding:0;font-size:23px;cursor:pointer;border-radius:6px}.person-popover-medals{width:296px}.person-award-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:12px}.person-award-icon{border:1px solid transparent;background:#ffffff04;border-radius:9px;aspect-ratio:1;display:grid;place-items:center;min-width:0;padding:5px;cursor:pointer}.person-award-icon img{width:100%;height:100%;object-fit:contain}.person-award-icon:hover,.person-award-icon.active{border-color:#b48b6180;background:#b48b611c}.person-award-detail{padding-top:12px;margin-top:12px;border-top:1px solid #ffffff10}.person-award-detail[hidden]{display:none}
.person-profile-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-width:100%;max-height:90dvh;margin:auto;padding:27px 25px 17px;border:1px solid #82603f80;border-radius:22px;background:#191613;color:#e8dfd5;box-shadow:0 25px 100px #000a;overflow:auto;overscroll-behavior:contain;font-size:14px}
.person-profile-dialog::backdrop{background:#080605b8;backdrop-filter:blur(5px)}.person-profile-close{position:absolute;right:10px;top:9px;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#bfa68d;font-size:25px;cursor:pointer}.person-profile-close:hover{background:#ffffff0a}.person-profile-hero{display:flex;align-items:center;gap:16px;margin:6px 0 20px;padding-right:10px;min-width:0}.person-profile-hero>div:last-child{min-width:0}.person-profile-avatar{display:grid;place-items:center;overflow:hidden;flex:0 0 64px;width:64px;height:64px;border-radius:50%;background:#493626;color:#e8c3a0;font-size:26px;font-weight:500}.person-profile-eyebrow{color:#998572;font-size:10px;letter-spacing:.11em;text-transform:uppercase}.person-profile-hero h2{font-size:23px;line-height:1.2;letter-spacing:-.03em;font-weight:550;margin:5px 0;overflow-wrap:anywhere}.person-profile-status{display:flex;align-items:flex-start;gap:6px;font-size:11px;color:#bc9d7b;line-height:1.4;margin-top:7px}.person-profile-status img{width:17px;height:17px;object-fit:contain;flex:0 0 17px}.person-profile-about{font-size:13px;line-height:1.6;color:#c4b6a8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 20px}.person-profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.person-profile-actions .btn{font-size:12px;min-height:36px;padding:8px 14px;border-radius:11px}.person-friend-state{font-size:12px;color:#bc9c7a;border:1px solid #aa80572b;background:#aa80570c;border-radius:9px;padding:8px 12px}.person-friend-reason{font-size:11px;color:#a99887;line-height:1.5;margin:0 0 18px}.person-profile-awards{border-top:1px solid #ffffff10;padding-top:15px;margin-top:20px}.person-profile-awards>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.person-profile-awards h3{font-size:13px;font-weight:550;margin:0}.person-profile-awards>header>span{font-size:11px;color:#9e8874}.person-profile-medals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.person-profile-medal{display:flex;align-items:center;gap:9px;text-align:left;min-width:0;padding:9px 10px;border:1px solid #ffffff07;border-radius:10px;background:#ffffff03;color:#c7b29c;font:inherit;font-size:11px;cursor:pointer}.person-profile-medal:hover{background:#b48b6115;border-color:#b48b6138}.person-profile-medal img,.person-profile-medal>.medal-placeholder{width:28px;height:28px;object-fit:contain;flex:0 0 28px}.person-profile-medal>span:last-child{overflow-wrap:anywhere}.person-profile-medals>p{grid-column:1/-1;font-size:12px}.person-profile-feedback{font-size:12px;color:#dfaa91;margin:12px 0 0}.person-profile-feedback:empty{display:none}.person-profile-loading{padding:35px 0;color:#a9937c;font-size:13px}.person-profile-loading h2{font-size:23px;color:#e2d1c0}
.profile-awards{padding:20px 0;margin-top:20px;border-top:1px solid #ffffff10}.profile-awards>header{display:flex;justify-content:space-between;align-items:start;gap:16px}.profile-awards h2{font-size:17px;margin:0 0 7px}.profile-awards header p{font-size:12px;line-height:1.5;margin:0 0 14px;max-width:440px}.profile-awards [data-medal-order-status]{font-size:11px;color:#c1a17e;flex:0 1 auto;max-width:180px}.profile-medal-order{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none}.profile-medal-order>li,.medal-drag-ghost{display:flex;align-items:center;gap:5px;min-width:0;padding:6px 7px 6px 2px;border:1px solid #ffffff0a;background:#ffffff03;border-radius:11px}.profile-medal-order>li.is-dragging{opacity:.3;border-style:dashed;border-color:#c2996b}.medal-grip{flex:0 0 27px;width:27px;height:36px;min-height:0;padding:0;border:0;background:transparent;color:#907961;font-size:23px;cursor:grab;touch-action:none;user-select:none}.profile-medal-info{display:flex;flex:1;align-items:center;gap:9px;min-width:0;text-align:left;background:transparent;border:0;color:#d2bda6;font:inherit;font-size:12px;padding:3px 0;cursor:pointer}.profile-medal-info img,.profile-medal-info>.medal-placeholder{width:30px;height:30px;object-fit:contain;flex:0 0 30px}.profile-medal-info>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.medal-order-actions{display:flex;flex:0 0 auto;gap:1px}.medal-order-actions button{width:25px;height:30px;min-height:0;border:0;border-radius:6px;padding:0;background:transparent;color:#a78b6d;font-size:17px;cursor:pointer}.medal-order-actions button:hover{background:#b48b6122;color:#f0cfab}.medal-drag-ghost{position:fixed;top:0;left:0;z-index:5000;box-sizing:border-box;pointer-events:none;opacity:.95!important;background:#33281f;box-shadow:0 12px 24px #0008}.profile-status-editor{padding:12px;border:1px solid #ffffff12;border-radius:12px}.profile-status-editor legend{padding:0 5px;color:#cdb394;font-size:12px}.profile-status-editor .upload-line{display:flex;gap:7px;align-items:center}.profile-status-editor input{min-width:0;flex:1}.friend-rule-list{display:grid;gap:8px;margin:20px 0 28px}.friend-rule-list article{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #ffffff0b;background:#ffffff02;border-radius:12px}.friend-rule-list article>div{flex:1;min-width:0}.friend-rule-list strong{font-size:13px;overflow-wrap:anywhere}.friend-rule-list small{display:block;color:#a18e7b;font-size:10px;margin-bottom:4px}.friend-rule-list article>span{color:#9e7956}.friend-rules>.muted{max-width:650px;font-size:13px}
@media(max-width:600px){.person-profile-dialog{width:100%;max-width:100%;max-height:92dvh;border-radius:22px 22px 0 0;margin-bottom:0;padding:25px 21px max(22px,env(safe-area-inset-bottom))}.person-profile-hero h2{font-size:22px}.person-profile-avatar{width:58px;height:58px;flex-basis:58px}.profile-medal-order{grid-template-columns:1fr}.profile-awards>header{gap:10px}.profile-awards [data-medal-order-status]{max-width:110px}.medal-order-actions button{width:30px;height:33px}.friend-rule-list article{flex-wrap:wrap;gap:9px;padding:11px}.friend-rule-list article>.link-button{margin-left:auto}.person-popover{max-height:70dvh}.comm-chat .chat-message{min-width:min(190px,88%)}}
@media(prefers-reduced-motion:reduce){.person-profile-dialog::backdrop{backdrop-filter:none}}
/* Keep author rows intact inside existing forum headers. */
.person-line{width:100%}.person-label{flex:1 1 auto}.person-medals.has-medals{flex:0 1 152px;width:152px}.forum-comment-card>header>.person-line,.forum-byline>.person-line{display:inline-flex;flex:1;min-width:0}.forum-comment-card>header>span:last-child:not(.person-line){flex:0 0 auto;font-size:10px}.forum-compose-person>.person-line{flex:1;min-width:0}.forum-compose-person>div{flex:0 0 auto;max-width:42%;font-size:10px}
.forum-shell,.forum-thread-copy,.forum-comments{min-width:0}.forum-byline{min-width:0;flex-wrap:wrap;row-gap:5px}.forum-byline>.person-line{flex:1 1 260px;max-width:100%}.forum-byline>span:not(.person-line){flex:0 1 auto;min-width:0}
.forum-comments,.forum-comment-tree,.forum-compose{grid-template-columns:minmax(0,1fr)}.forum-comment,.forum-comment-card,.forum-compose,.forum-compose-person{min-width:0}.forum-comments-head{flex-wrap:wrap}

.person-label>.person-name{flex:0 0 auto;max-width:calc(100% - var(--person-reserve,0px))}
