/* Painted edge tiles replace duplicate CSS keylines. Real focus outlines stay intact. */
html #crm :is(.uo-chronicle-hero,.uo-side-panel,.uo-commerce-title,.uo-realm-heading){border-color:transparent!important;border-radius:0!important;box-shadow:none!important}
html #crm .uo-chronicle-hero::after,html #crm .uo-side-panel::before,html #crm .uo-commerce-title::after{border-image-repeat:round!important}
html #crm .uo-portal-nav{border-color:transparent!important;box-shadow:none!important}
html #crm .uo-portal-nav::before{border-image-repeat:round!important}
html #crm .uo-portal-nav button{border-right:0!important}
html #crm .uo-portal-nav button.is-active{box-shadow:none!important}
html #crm .sidebar{border-left:0!important;border-right:0!important;box-shadow:none!important}
html #crm .sidebar::after{content:'';position:absolute;inset:0;pointer-events:none;border:0 solid transparent;border-right-width:13px;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 0 13px 0 0 / 0 round;opacity:.8}
html #crm.dock-right .sidebar::after{border-right-width:0;border-left-width:13px;border-image-width:0 0 0 13px}
html #crm.dock-top .sidebar::after{border-right-width:0;border-bottom-width:13px;border-image-width:0 0 13px 0}
html #crm :is(.sb-logo,.sb-bottom,.sb-grp+.sb-grp){border-color:transparent!important}
html #crm .sidebar:not(.mini) .sb-nav .sb-item{border-color:transparent!important;box-shadow:none!important}
html #crm .sidebar:not(.mini) .sb-nav .sb-item::after{content:'';position:absolute;inset:auto 12px 0;height:7px;pointer-events:none;border:0 solid transparent;border-bottom-width:7px;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 0 0 7px / 0 round;opacity:.48}
html #crm .sidebar .sb-item.active{background-color:#b59b4820}
html #crm .uo-events-preview{position:relative;border:0!important;border-radius:0!important;box-shadow:none!important;padding:4px 6px 9px}
html #crm .uo-events-preview::after{content:'';position:absolute;inset:0;pointer-events:none;border:15px solid transparent;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 15px / 0 round;opacity:.72}
html #crm :is(.uo-events-header,.uo-events-row){border:0!important}
html #crm .uo-events-row:nth-child(even){background:#7796b108}
html #crm .uo-events-header{padding-bottom:8px}
html #crm .hn-quicklinks .uo-art-link{border:0!important;border-radius:0!important;box-shadow:none!important}
html #crm .hn-quicklinks .uo-art-link::after{inset:0;border:13px solid transparent;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 13px / 0 round;opacity:.7}
html #crm .uo-service{border-top:0!important}
html #crm :is(.uo-realm-hero,.uo-connect-hero,.uo-platform-card){box-shadow:none!important}
@media(max-width:600px){html #crm .sidebar::after{border-image-width:0 10px 0 0}html #crm .uo-events-preview{padding-left:2px;padding-right:2px}html #crm .uo-events-preview::after{border-width:11px;border-image-width:11px}}
@media(forced-colors:active){html #crm .sidebar::after,html #crm .uo-events-preview::after,html #crm .sidebar .sb-item::after{display:none}html #crm :is(.uo-events-preview,.hn-quicklinks .uo-art-link,.uo-side-panel,.uo-chronicle-hero){border:1px solid CanvasText!important}html #crm .sidebar .sb-item.active,html #crm .uo-portal-nav button.is-active{outline:2px solid Highlight;outline-offset:-3px}}
@media(min-width:601px){html #crm .sidebar{position:relative}}
html #crm #tb-logo{width:122px;height:49px;object-fit:contain;opacity:1;filter:none!important;margin-right:4px}
html .login-logo{content:normal;filter:none!important;object-fit:contain}
html[data-uo-theme='night'] #crm #tb-logo{filter:drop-shadow(0 1px 2px #0005)!important}
@media(min-width:601px) and (max-width:1050px){html #crm #tb-logo{width:100px;height:42px}}
@media(max-width:600px){html #crm #tb-logo{display:none}}
/* Daylight popovers live under body, outside #crm, so theme them explicitly. */
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip,#plr-tip,#vend-tooltip,.nav-ctx,.fctx,#twk-card,#vend-modal>div,#path-modal>div){background:#f8f7ef!important;color:#2d4351!important;border-color:#99a8ae!important;box-shadow:0 8px 26px #263d4c30!important;backdrop-filter:none!important;font-family:'Segoe UI',Arial,sans-serif;font-size:13px;line-height:1.5}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip,#plr-tip,#vend-modal>div,#path-modal>div,#twk-card) :is(div,span,td,b,strong){color:#2d4351!important}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip,#plr-tip,#vend-modal>div,#path-modal>div,#twk-card) :is([style*='color:#5b6472'],[style*='color:#666'],[style*='color:#888'],[style*='color:#8b95a5'],[style*='color:var(--muted)'],.plr-info){color:#536775!important}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip,#plr-tip) :is([style*='color:#c9a44a'],[style*='color:var(--g1)'],.tip-name,.plr-name){color:#76521c!important;font-weight:700}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip) :is([style*='color:#86efac'],[style*='color:#22c55e'],.tip-stat){color:#21633a!important}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip) :is([style*='color:#c084fc'],.tip-info){color:#754589!important}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip,#plr-tip,#vend-modal,#path-modal,#twk-card,.nav-ctx,.fctx) :is(button,input,select,textarea){background:#fffef8!important;color:#314c5d!important;border-color:#8fa4b0!important}
html[data-uo-theme='light'] :is(.uo-item-popover,#wiki-item-tip,#plr-tip) a{color:#1e587c!important}
html[data-uo-theme='light'] :is(.nav-ctx,.fctx) :is(.i,.hd,.fctx-item){color:#344e5c!important}
html[data-uo-theme='light'] :is(.nav-ctx,.fctx) .danger{color:#92372e!important}
html[data-uo-theme='light'] .fi option,html[data-uo-theme='light'] #craft-bar option{background:#fffef8!important;color:#2c4353!important}
html[data-uo-theme='light'] #crm #wiki-art-content #craft-bar{background:#e5edee!important;border-color:#a3b6c1!important;box-shadow:0 2px 6px #30495810;backdrop-filter:none!important;padding:10px!important;border-radius:3px;box-sizing:border-box;max-width:100%}
html[data-uo-theme='light'] #crm #wiki-art-content #craft-bar :is(input,select){background:#fffef8!important;color:#2b4658!important;border-color:#8fa7b6!important;font-size:13px!important;line-height:1.4}
html[data-uo-theme='light'] #crm #wiki-art-content #craft-bar span{color:#486171!important;font-size:12px!important}
html[data-uo-theme='light'] #crm #wiki-art-content #craft-bar input::placeholder{color:#5e7482!important}
html[data-uo-theme='light'] #crm #wiki-art-content [data-craft-item] :is([style*='color:#666'],[style*='color:#888'],[style*='color:#999']){color:#526877!important}
html[data-uo-theme='light'] #crm #wiki-art-content [data-craft-item] :is(a,[style*='color:#60a5fa'],[style*='color:#0ea5e9']){color:#225f81!important}
html[data-uo-theme='light'] :is(.plr-link,.coord-link):hover{color:#1c587c!important;text-shadow:none!important}
@media(max-width:600px){html #crm #craft-bar #cb-g{min-width:0!important;max-width:100%;flex-basis:100%!important}html #crm #craft-bar #cb-q{min-width:0!important;max-width:100%;flex-basis:100%!important}}
/* Wiki dividers and illustrated card edges: no duplicate straight keyline. */
html #crm #wiki-article>div:nth-child(2){position:relative;border-bottom:0!important;padding-bottom:17px!important}
html #crm #wiki-article>div:nth-child(2)::after{content:'';position:absolute;left:0;bottom:0;width:215px;max-width:65%;height:16px;background:url('/static/uo-v2-ornament-trim.webp') left center/contain no-repeat;pointer-events:none}
html #crm #wiki-nav{border-left:0!important}
html #crm #wiki-art-content div[style*='border:1px']:has(>h3){position:relative;border-color:transparent!important;border-radius:0!important;box-shadow:none!important}
html #crm #wiki-art-content div[style*='border:1px']:has(>h3)::after{content:'';position:absolute;inset:0;pointer-events:none;border:14px solid transparent;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 14px / 0 round;opacity:.75}
/* Community illustrations are one small alpha atlas; live links are unchanged. */
html #crm #tab-community .uo-community-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:1200px!important;gap:20px!important}
html #crm #tab-community .uo-community-card{display:flex!important;flex-direction:column;align-items:center;position:relative;min-width:0;padding:24px 20px 25px!important;border:0!important;border-radius:0!important;background:linear-gradient(#102031c9,#101e2df0),url('/static/uo-v2-leather.webp')!important;box-shadow:none!important;text-align:center;color:var(--text)}
html #crm #tab-community .uo-community-card::after{content:'';position:absolute;inset:0;pointer-events:none;border:20px solid transparent;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 20px / 0 round}
html #crm #tab-community .uo-community-card>svg{display:none}
html #crm #tab-community .uo-community-art{display:block;flex:none;width:190px;max-width:100%;height:190px;background-image:url('/static/uo-community-atlas-v1.webp');background-size:300% 100%;background-repeat:no-repeat;margin:0 auto 16px}
html #crm #tab-community .uo-community-label{flex:1;align-items:flex-start!important;justify-content:center;gap:8px!important;margin-bottom:20px!important}
html #crm #tab-community .uo-community-brand{width:25px!important;height:25px!important;border-radius:0!important;background:none!important;margin-top:3px}
html #crm #tab-community .uo-community-brand svg{width:22px;height:22px}
html #crm #tab-community .uo-community-label>div:last-child>div:first-child{font:600 21px/1.2 Georgia,serif!important;color:var(--g1)!important}
html #crm #tab-community .uo-community-label>div:last-child>div:last-child{font-size:12px!important;line-height:1.5;margin-top:8px;color:var(--muted)!important}
html #crm #tab-community .uo-community-cta{position:relative;isolation:isolate;width:100%;min-height:46px;padding:9px 18px!important;border:0!important;border-radius:0!important;background:none!important;color:#f2dfb9!important;font-size:13px!important;line-height:1.35}
html #crm #tab-community .uo-community-cta::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--uo-button-image,url('/static/uo-forged-button.webp')) center/100% 100% no-repeat;filter:grayscale(.8) brightness(.52)}
html[data-uo-theme='night'] #crm #tab-community .uo-community-card{background:linear-gradient(#080b0fed,#0b0e13f5),url('/static/uo-v2-leather.webp')!important}
html[data-uo-theme='light'] #crm #tab-community .uo-community-card{background:linear-gradient(#f8f7eef5,#e6ececf0),url('/static/uo-v2-leather.webp')!important}
html[data-uo-theme='light'] #crm #tab-community .uo-community-cta{color:#344d5c!important}
html[data-uo-theme='light'] #crm #tab-community .uo-community-cta::before{filter:none}
html #crm #tab-community .uo-community-card:focus-visible{outline:2px solid var(--g1);outline-offset:4px}
@media(max-width:1050px){html #crm #tab-community .uo-community-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important}}
@media(max-width:600px){html #crm #tab-community .uo-community-grid{grid-template-columns:1fr!important}html #crm #tab-community .uo-community-art{width:170px;height:170px}html #crm #tab-community .uo-community-card{padding:20px!important}}
@media(forced-colors:active){html #crm #tab-community .uo-community-card{border:1px solid CanvasText!important;background:Canvas!important}html #crm #tab-community .uo-community-cta{border:1px solid ButtonText!important;color:ButtonText!important}html #crm #tab-community .uo-community-cta::before{content:none}}

/* Menu items need breathing room, not another thin divider beneath each label. */
html #crm .sidebar:not(.mini) .sb-nav .sb-item::after{content:none}
/* Item details use the same painted frame instead of a plain modal outline. */
html .uo-item-popover{box-sizing:border-box;border:13px solid transparent!important;border-image:var(--uo-frame-image,url('/static/uo-v2-frame.webp')) 230 / 13px / 0 round!important;border-radius:0!important}
html #crm #craft-bar{border-bottom:0!important}
html[data-uo-theme='light'] #crm #wiki-art-content [data-craft-item] [style*='color:#8b95a5']{color:#526877!important}
