/* Focus stays visible as a single field border rather than an outer orange frame. */
body :is(input,textarea,select,[contenteditable=true]):is(:focus,:focus-visible){outline:none!important;outline-offset:0!important;box-shadow:none!important;border-color:#a77b58!important}
body :is(.search-box,.messenger-search,.messages-recipient-row,.wall-rich-editor-shell):focus-within{outline:none!important;box-shadow:none!important}
.im-ranking-heading,.im-ranking-row{min-width:min(1370px,100%)!important}
#main:has(.im-leaders-hero) .im-ranking-v13.is-expanded .im-ranking-scroll{
  height:auto;max-height:var(--im-ranking-open-height,733px);
}
#main:has(.im-leaders-hero) .im-ranking-v13 #im-ranking-personal{
  position:sticky;bottom:0;z-index:4;
}
/* Conversation geometry and controls use the source palette. */
body[data-page=messages] .messages-sidebar-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
body[data-page=messages] .messages-sidebar-head>.micro-label{grid-column:1/-1}
body[data-page=messages] .messages-sidebar-head h2{margin:0}
body[data-page=messages] .messages-sidebar-head h2 span{display:none!important}
body[data-page=messages] #messages-new-dialog-toggle{grid-column:2;grid-row:2;position:static!important;margin:0!important;width:32px;height:32px;padding:6px;flex:none}
body[data-page=messages] #messages-new-dialog-toggle svg{width:18px;height:18px}
body[data-page=messages] .messages-chat-head{position:relative;display:flex;flex-wrap:wrap;gap:12px;padding:17px 22px}
body[data-page=messages] .messages-chat-user{min-width:0;flex:1 1 140px!important;gap:10px}
body[data-page=messages] .messages-chat-head .messages-profile-link{position:static!important;opacity:1!important;visibility:visible!important;display:inline-flex;align-items:center;color:#dbaf87;font-size:12px;white-space:nowrap;margin:0}
body[data-page=messages] .messages-chat-head .messages-chat-pin-button{position:static!important;opacity:1!important;flex:0 0 30px;width:30px;height:30px;margin:0 0 0 auto;padding:5px}
body[data-page=messages] .im-chat-search-toggle{margin-left:0}
body[data-page=messages] .messages-thread{overflow-x:hidden!important;overflow-y:auto!important;min-width:0;align-items:stretch}
body[data-page=messages] .messages-message-item{display:flex;width:100%!important;max-width:100%;min-width:0;flex:0 0 auto;justify-content:flex-start}
body[data-page=messages] .messages-message-item.is-own{justify-content:flex-end}
body[data-page=messages] .messages-message-item .messages-bubble{width:fit-content!important;min-width:0;max-width:min(560px,90%)!important;flex:none;overflow-wrap:anywhere}
body[data-page=messages] .messages-bubble-text{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
body[data-page=messages] .messages-bubble :is(.messages-bubble-meta,.messages-bubble-actions){position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;align-items:center;justify-content:flex-start!important;gap:7px;width:auto!important;max-width:100%;opacity:1!important}
body[data-page=messages] .messages-bubble-meta{margin-top:10px}
body[data-page=messages] .messages-bubble .messages-bubble-actions{flex:0 1 auto}
body[data-page=messages] .messages-bubble-actions .profile-wall-delete-pair{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 auto}
body[data-page=messages] .messages-bubble-action-button{width:26px!important;height:26px!important;min-width:26px;padding:5px!important;flex:0 0 26px;line-height:1}
body[data-page=messages] .messages-bubble-action-button svg{width:14px;height:14px;display:block}
body[data-page=messages] .messages-chat-avatar,body[data-page=messages] .messages-dialog-avatar{width:40px!important;height:40px!important;min-width:40px;flex:0 0 40px}
body[data-page=messages] :is(.messages-thread,.messages-conversations,.messenger-search-results,.messages-send-input){scrollbar-width:thin!important;scrollbar-color:#936849 #211710!important}
body[data-page=messages] :is(.messages-thread,.messages-conversations,.messenger-search-results,.messages-send-input)::-webkit-scrollbar{width:7px;height:7px}
body[data-page=messages] :is(.messages-thread,.messages-conversations,.messenger-search-results,.messages-send-input)::-webkit-scrollbar-track{background:#211710}
body[data-page=messages] :is(.messages-thread,.messages-conversations,.messenger-search-results,.messages-send-input)::-webkit-scrollbar-thumb{background:#936849;border-radius:0}
@media(max-width:740px){body[data-page=messages] .messages-dialog-item{width:100%;min-width:0;border-right:0;border-bottom:1px solid #4b3527}body[data-page=messages] .messages-chat-head{padding:14px;gap:10px}body[data-page=messages] .messages-chat-user{flex-basis:150px!important}}
body[data-page=messages] .messages-chat-head .messages-profile-link{border:0;border-radius:0;background:transparent;padding:5px 0}
body[data-page=messages] :is(.messages-recipient-empty,.messages-conversations-empty,.messages-thread-empty,.messages-recipient-result){border-radius:0!important;background:#221711!important;border-color:#61422d!important;color:#c9a582!important;box-shadow:none!important;overflow-wrap:anywhere}
body[data-page=messages] .messages-recipient-result{width:100%;min-width:0}
body[data-page=messages] .messages-bubble :is(pre,img,video){max-width:100%;overflow-x:auto}
body :is(button,a,[tabindex]):focus-visible{outline:1px solid #99795d!important;outline-offset:2px!important;box-shadow:none!important}
/* Keep appearance actions visible while only the choice grid scrolls. */
.im-review-modal .m-modal:has(#im-review-appearance){display:flex;flex-direction:column;height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
.im-review-modal .m-modal:has(#im-review-appearance) .m-modal-header{flex:none}
.im-review-modal .m-modal:has(#im-review-appearance) .m-modal-body{display:flex;flex:1;min-height:0;overflow:hidden}
#im-review-appearance{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:16px;margin:0}
#im-review-appearance .im-settings-picker-grid{flex:1;min-height:0;overflow-y:auto;padding:2px 7px 2px 2px;scrollbar-width:thin;scrollbar-color:#936849 #211710}
#im-review-appearance .im-appearance-actions{flex:none;display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding-top:12px;border-top:1px solid #60422d;background:#221711}
#im-review-appearance [role=status]:empty{display:none}
#im-review-appearance .im-appearance-actions p{margin:0}
#im-settings-status-form .m-hint{margin:0 0 14px}
body[data-page=messages] .messages-page-layout{height:730px;min-height:0}
body[data-page=messages] .messages-chat{height:100%;min-height:0;overflow:hidden}
body[data-page=messages] .messages-chat>.messages-thread{flex:1 1 0!important;min-height:0!important;max-height:none!important;height:auto!important}
body[data-page=messages] .messages-chat>:is(.messages-chat-head,.messages-send-form,.messages-thread-note,.messenger-toolbar,.messenger-status){flex-shrink:0}
body[data-page=messages] .messages-send-form{margin-top:auto!important;margin-bottom:0!important}
body[data-page=messages] .messenger-status:empty{display:none}
body[data-page=messages] .messages-recipient-form{padding:16px 17px!important;margin:0!important;border-bottom:1px solid #4b3527}
body[data-page=messages] .messages-recipient-row{margin:0;padding:0}
body[data-page=messages] #messages-recipient-input{display:block;width:100%;height:50px;margin:0;box-sizing:border-box}
body[data-page=messages] .messages-dialog-name{display:flex;align-items:center;gap:8px}
.im-dialog-pin{display:inline-flex;flex:0 0 14px;width:14px;height:14px;color:#dfae76}
.im-dialog-pin svg{width:14px;height:14px;fill:currentColor}
body[data-page=messages] .messages-chat-title-name[href]{cursor:pointer}
body[data-page=messages] .messages-chat-title-name[href]:hover{color:#f2ad71}
@media(max-width:740px){body[data-page=messages] .messages-page-layout{height:auto}body[data-page=messages] .messages-chat{height:600px;min-height:0}body[data-page=messages] .messages-sidebar{flex:none}}
body[data-page=home] .hero-buttons .btn.outline,.hero.hero-forge .hero-buttons .btn.outline{border-color:var(--line)}
body[data-page=messages] .messages-recipient-form{gap:0!important}
body[data-page=messages] .messages-recipient-results:empty{display:none}
/* Avatar decoration follows the avatar box, never the account menu. */
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame,body [data-frame-owner]>.im-author-frame{position:absolute!important;inset:-12%!important;width:124%!important;height:124%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;pointer-events:none;z-index:3;border:0!important;margin:0!important;padding:0!important;background:none!important}
body [data-frame-owner]{position:relative;overflow:visible}
body [data-frame-owner]>.im-author-frame{image-rendering:auto}
#im-review-appearance .im-settings-picker-preview{flex-shrink:0}
#im-review-appearance .im-settings-picker-grid--banners .im-settings-picker-preview{display:block!important;width:100%!important;height:80px!important;min-height:80px;aspect-ratio:auto!important;overflow:hidden}
#im-review-appearance .im-settings-picker-grid--banners .im-settings-picker-preview img{width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:cover!important;object-position:center}
#im-review-appearance .im-appearance-actions .btn{min-height:38px!important;height:38px!important;padding:0 18px!important;font-size:11px;letter-spacing:.08em}
body[data-page=messages] :is(.messages-editing-note,.messages-reply-preview,.messenger-input-hint){color:#d8b18e!important}
body[data-page=messages] .messenger-receipt{color:#987c65!important}
body[data-page=messages] .messenger-receipt.is-read{color:#e4ac72!important}
body[data-page=messages] .messages-send-form:has(.messages-editing-note:not([hidden])),body[data-page=messages] .messages-send-form:has(.messages-reply-preview:not([hidden])){flex-wrap:wrap}
body[data-page=messages] :is(.messages-editing-note,.messages-reply-preview):not([hidden]){flex-basis:100%;display:flex;align-items:center;gap:12px}
.im-message-pending{animation:im-message-enter .16s ease-out}
.im-message-pending-label{color:#bd9470!important;font-size:10px;margin-top:8px}
@keyframes im-message-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.im-message-pending{animation:none}}
.profile-summary-shell[class*="im-profile-banner-"]:not(.im-profile-banner-standard){background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}

body #profile-summary .profile-summary-avatar:has(> .im-review-avatar-frame){overflow:visible!important}
/* Exact source geometry: portrait 78%, frame 100% of the same avatar box. */
body #profile-summary .profile-summary-avatar:has(>.im-review-avatar-frame),body [data-frame-owner]:has(>.im-author-frame){position:relative!important;overflow:hidden!important;isolation:isolate;border:0!important;box-shadow:none!important;background-image:none!important;background-color:transparent!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame,body [data-frame-owner]>.im-author-frame{inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;z-index:2}
body .im-framed-portrait,body [data-frame-owner]:has(>.im-author-frame)>img:not(.im-author-frame){position:absolute!important;inset:11%!important;width:78%!important;height:78%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border:0!important;padding:0!important;margin:0!important;z-index:1}
body .profile-summary-shell[class*="im-profile-banner-"]:not(.im-profile-banner-standard),#im-review-appearance .im-settings-banner-preview[class*="im-profile-banner-"]:not(.im-profile-banner-standard){background-position:left center,right center,center center!important;background-size:auto 100%,auto 100%,100% 100%!important;background-repeat:no-repeat,no-repeat,no-repeat!important}
#im-review-appearance .im-settings-banner-preview{display:block;width:100%;height:100%;position:relative}
#im-review-appearance .im-settings-picker-grid{grid-auto-rows:max-content;align-content:start}

/* Normalize the transparent canvas margins of every original frame PNG. */
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/forge.png"],body [data-frame-owner]>.im-author-frame[src$="/forge.png"]{inset:auto!important;left:-17.16417910447761%!important;top:-14.909478168264112%!important;width:134.75479744136462%!important;height:134.61128860489885%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/inferno.png"],body [data-frame-owner]>.im-author-frame[src$="/inferno.png"]{inset:auto!important;left:-13.200000000000001%!important;top:-8.536585365853659%!important;width:126.4%!important;height:118.57410881801125%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/amethyst.png"],body [data-frame-owner]>.im-author-frame[src$="/amethyst.png"]{inset:auto!important;left:-10.387157695939566%!important;top:-7.9962370649106305%!important;width:119.35788479697828%!important;height:118.90874882408278%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/gilded.png"],body [data-frame-owner]>.im-author-frame[src$="/gilded.png"]{inset:auto!important;left:-21.195039458850058%!important;top:-22.033898305084744%!important;width:142.50281848928975%!important;height:142.82485875706215%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/engineer.png"],body [data-frame-owner]>.im-author-frame[src$="/engineer.png"]{inset:auto!important;left:-42.87812041116006%!important;top:-46.58385093167702%!important;width:185.6093979441997%!important;height:196.27329192546583%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/rune.png"],body [data-frame-owner]>.im-author-frame[src$="/rune.png"]{inset:auto!important;left:-17.57894736842105%!important;top:-10.851926977687627%!important;width:133.05263157894737%!important;height:128.19472616632862%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/medic.png"],body [data-frame-owner]>.im-author-frame[src$="/medic.png"]{inset:auto!important;left:-14.300202839756594%!important;top:-12.037037037037036%!important;width:128.19472616632862%!important;height:130.0411522633745%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/ice.png"],body [data-frame-owner]>.im-author-frame[src$="/ice.png"]{inset:auto!important;left:-19.65065502183406%!important;top:-15.873015873015872%!important;width:137.99126637554588%!important;height:133.75661375661377%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/builder.png"],body [data-frame-owner]>.im-author-frame[src$="/builder.png"]{inset:auto!important;left:-15.176715176715177%!important;top:-8.132530120481928%!important;width:131.3929313929314%!important;height:126.90763052208835%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/forest.png"],body [data-frame-owner]>.im-author-frame[src$="/forest.png"]{inset:auto!important;left:-15.816857440166492%!important;top:-15.954118873826904%!important;width:131.5296566077003%!important;height:131.80396246089677%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/hunter.png"],body [data-frame-owner]>.im-author-frame[src$="/hunter.png"]{inset:auto!important;left:-19.107551487414188%!important;top:-17.725752508361204%!important;width:144.62242562929063%!important;height:140.91415830546265%!important;object-fit:fill!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/miner.png"],body [data-frame-owner]>.im-author-frame[src$="/miner.png"]{inset:auto!important;left:-21.58590308370044%!important;top:-17.880794701986755%!important;width:139.20704845814979%!important;height:139.51434878587196%!important;object-fit:fill!important}

/* Keep the portrait at its original size; decoration extends outside it. */
body #profile-summary .profile-summary-avatar:has(>.im-review-avatar-frame),body [data-frame-owner]:has(>.im-author-frame){overflow:visible!important}
body .im-framed-portrait,body [data-frame-owner]:has(>.im-author-frame)>img:not(.im-author-frame){inset:0!important;width:100%!important;height:100%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/forge.png"],body [data-frame-owner]>.im-author-frame[src$="/forge.png"]{inset:auto!important;left:-40.67164179104478%!important;top:-37.62779552715655%!important;width:181.91897654584224%!important;height:181.7252396166134%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/inferno.png"],body [data-frame-owner]>.im-author-frame[src$="/inferno.png"]{inset:auto!important;left:-35.32000000000001%!important;top:-29.024390243902438%!important;width:170.64000000000001%!important;height:160.0750469043152%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/amethyst.png"],body [data-frame-owner]>.im-author-frame[src$="/amethyst.png"]{inset:auto!important;left:-31.522662889518415%!important;top:-28.294920037629353%!important;width:161.1331444759207%!important;height:160.52681091251176%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/gilded.png"],body [data-frame-owner]>.im-author-frame[src$="/gilded.png"]{inset:auto!important;left:-46.11330326944758%!important;top:-47.2457627118644%!important;width:192.37880496054117%!important;height:192.8135593220339%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/engineer.png"],body [data-frame-owner]>.im-author-frame[src$="/engineer.png"]{inset:auto!important;left:-75.38546255506608%!important;top:-80.38819875776397%!important;width:250.57268722466964%!important;height:264.9689440993789%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/rune.png"],body [data-frame-owner]>.im-author-frame[src$="/rune.png"]{inset:auto!important;left:-41.23157894736842%!important;top:-32.1501014198783%!important;width:179.62105263157895%!important;height:173.0628803245436%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/medic.png"],body [data-frame-owner]>.im-author-frame[src$="/medic.png"]{inset:auto!important;left:-36.80527383367141%!important;top:-33.75%!important;width:173.0628803245436%!important;height:175.55555555555557%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/ice.png"],body [data-frame-owner]>.im-author-frame[src$="/ice.png"]{inset:auto!important;left:-44.028384279475986%!important;top:-38.92857142857143%!important;width:186.2882096069869%!important;height:180.57142857142858%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/builder.png"],body [data-frame-owner]>.im-author-frame[src$="/builder.png"]{inset:auto!important;left:-37.98856548856549%!important;top:-28.478915662650603%!important;width:177.3804573804574%!important;height:171.32530120481928%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/forest.png"],body [data-frame-owner]>.im-author-frame[src$="/forest.png"]{inset:auto!important;left:-38.85275754422477%!important;top:-39.03806047966632%!important;width:177.56503642039542%!important;height:177.93534932221064%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/hunter.png"],body [data-frame-owner]>.im-author-frame[src$="/hunter.png"]{inset:auto!important;left:-43.29519450800916%!important;top:-41.429765886287626%!important;width:195.24027459954235%!important;height:190.2341137123746%!important}
body #profile-summary .profile-summary-avatar>.im-review-avatar-frame[src$="/miner.png"],body [data-frame-owner]>.im-author-frame[src$="/miner.png"]{inset:auto!important;left:-46.640969162995596%!important;top:-41.63907284768212%!important;width:187.9295154185022%!important;height:188.34437086092717%!important}
body .profile-summary-shell:is(.im-profile-banner-fortress,.im-profile-banner-falling-leaves),#im-review-appearance .im-settings-banner-preview:is(.im-profile-banner-fortress,.im-profile-banner-falling-leaves){background-size:auto calc(100% + 4px),auto calc(100% + 4px),100% calc(100% + 4px)!important;border:0!important;outline:0!important}
.im-hero-scroll button{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 14px;color:#d8b393;background:transparent;border:0;box-shadow:none;font:inherit;cursor:pointer}
.im-hero-scroll button span{font:700 9px/1.4 var(--font);letter-spacing:.25em}
.im-hero-scroll button svg{display:block;filter:drop-shadow(0 2px 4px #0009);animation:im-scroll-cue 2s ease-in-out infinite}
.im-hero-scroll button:hover{color:#f1ad70}
@media(prefers-reduced-motion:reduce){.im-hero-scroll button svg{animation:none}}
/* Post/comment avatar links must not clip the outward decoration. */
body .profile-wall-avatar-link:has(.im-author-frame){overflow:visible!important;border:0!important;box-shadow:none!important}
body .profile-wall-avatar-link:has(.im-author-frame)>.profile-wall-avatar{display:block;width:100%;height:100%}

body .profile-summary-shell[class*="im-profile-banner-"]:not(.im-profile-banner-standard):is(.im-profile-banner-fortress,.im-profile-banner-falling-leaves),#im-review-appearance .im-settings-banner-preview[class*="im-profile-banner-"]:not(.im-profile-banner-standard):is(.im-profile-banner-fortress,.im-profile-banner-falling-leaves){background-size:auto calc(100% + 4px),auto calc(100% + 4px),100% calc(100% + 4px)!important}
.m-profile-like{cursor:pointer!important;opacity:1!important;display:inline-flex;align-items:center;gap:5px}
.m-profile-like.is-liked{color:#e7a16b!important}.m-profile-like.is-liked svg{fill:currentColor}
.m-profile-like:disabled{opacity:.65!important;cursor:wait!important}
.im-wall-like-count{font-variant-numeric:tabular-nums;margin-left:3px}
.im-wall-like-status{color:#e1ac83;font-size:11px;flex-basis:100%}
/* Hide the original artwork's one-pixel edge, including its right side. */
#im-review-appearance .im-settings-picker-preview:has(.im-profile-banner-fortress){overflow:hidden!important}
#im-review-appearance .im-settings-banner-preview.im-profile-banner-fortress{position:relative;left:-2px;top:-2px;width:calc(100% + 4px)!important;height:calc(100% + 4px)!important}
body .profile-summary-shell.im-profile-banner-fortress{background-position:left -2px center,right -2px center,center center!important;background-size:auto calc(100% + 4px),auto calc(100% + 4px),calc(100% + 4px) calc(100% + 4px)!important}

#im-review-appearance .im-settings-picker-preview:has(.im-profile-banner-fortress){position:relative;clip-path:inset(0 3px 0 0)}
body .profile-summary-shell[class*="im-profile-banner-"]:not(.im-profile-banner-standard).im-profile-banner-fortress{background-position:left -3px center,right -3px center,center center!important}

/* The character heading starts after the avatar and its gap, like the nickname. */
#main .im-ranking-table--unified .im-ranking-heading > .im-ranking-column-label:nth-child(2){
  justify-content:flex-start;
  padding-inline-start:48px;
  text-align:start;
}
@media(max-width:600px){
  #main .im-ranking-table--unified .im-ranking-heading > .im-ranking-column-label:nth-child(2){
    padding-inline-start:39px;
  }
}
