/* ArcheAge interaction tokens must also cover shared controls mounted later. */
@layer orb-state{

html body.archeage-page ::selection{background:#b6c5ff70;color:var(--flat-text)}
html body.archeage-page :is(button,summary,select,a[role=button],a.ac-button){box-sizing:border-box!important;font-family:inherit!important;line-height:1.4!important}
html body.archeage-page #main-content :is(button,summary,a.ac-button,a[role=button],.archeage-tabs>a,.minimal-home-actions>a){
 min-width:0!important;max-width:100%!important;min-height:40px!important;height:auto!important;
 padding:10px 14px!important;gap:10px!important;border-radius:10px!important;
 white-space:normal!important;overflow-wrap:anywhere!important;text-decoration:none!important;
}
html body.archeage-page #main-content :is(button,summary,a.ac-button,a[role=button]):is(:hover,:focus-visible,[aria-pressed=true],[aria-selected=true]){border-color:var(--flat-accent)!important;box-shadow:none!important}
html body.archeage-page :is(button,summary,select,a.ac-button,a[role=button]):focus-visible{outline:2px solid var(--flat-accent)!important;outline-offset:2px!important}
html body.archeage-page #main-content select{box-sizing:border-box!important;min-height:42px!important;height:auto!important;min-width:0!important;max-width:100%!important;padding:10px 34px 10px 14px!important;line-height:1.4!important;color:var(--flat-text)!important;background-color:var(--flat-inset)!important;border-color:var(--flat-line)!important;border-radius:10px!important;accent-color:var(--flat-accent)!important}
html body.archeage-page option:checked{background-color:var(--flat-soft)!important;color:var(--flat-text)!important}
html body.archeage-page #main-content details{min-width:0!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;overflow:visible!important}
html body.archeage-page #main-content details>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;list-style:none!important;border:1px solid var(--flat-line)!important;background:var(--flat-raised)!important;color:var(--flat-text)!important;cursor:pointer!important;overflow:visible!important}
html body.archeage-page #main-content details>summary::-webkit-details-marker{display:none!important}
html body.archeage-page #main-content details[open]>summary{border-color:var(--flat-accent)!important;background-color:var(--flat-hover)!important;color:var(--flat-text)!important}
html body.archeage-page #main-content .ac-summary>details{margin-top:12px!important}
html body.archeage-page #main-content .ac-summary>details>summary>span:first-child{min-width:0!important;flex:1!important}
html body.archeage-page #main-content .ac-summary>details>summary>strong{position:static!important;flex:0 1 auto!important;max-width:48%!important;text-align:right!important;white-space:normal!important;font-size:10px!important;line-height:1.4!important;color:var(--flat-accent)!important}
html body.archeage-page #main-content :is(.ac-attribute-settings>.ac-attributes,.ac-full-stats>[data-ac-live-stats]){padding:12px 2px 0!important}
html body.archeage-page #main-content .ac-disclosure-icon{display:grid!important;place-items:center!important;flex:0 0 16px!important;width:16px!important;height:16px!important;font-size:16px!important;line-height:1!important;color:var(--flat-accent)!important}
html body.archeage-page #main-content .ac-full-stats[open] .ac-disclosure-icon{transform:rotate(45deg)}
html body.archeage-page #main-content .ac-full-stats>summary::after{content:none!important}
/* Icon actions keep a complete hit area without text-sized padding. */
html body.archeage-page #main-content :is(.ac-close,.orb-map-detail-close,.orb-map-controls>button,[data-map-route] button:not(:first-child),.ac-map-saved>button:last-child){display:inline-grid!important;place-items:center!important;width:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;height:36px!important;padding:0!important;flex:0 0 36px!important;line-height:1!important}
html body.archeage-page #main-content .ac-equipment-slot{display:flex!important;align-items:center!important;min-height:68px!important;text-align:left!important}
html body.archeage-page #main-content .ac-class-picker>button{min-height:180px!important;padding:24px!important}
html body.archeage-page #main-content .orb-map-tabs{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
html body.archeage-page #main-content .orb-map-tabs button{flex:1 1 auto!important;padding:9px 10px!important;font-size:11px!important}
html body.archeage-page #main-content select[data-nr-role]{min-width:58px!important;padding:10px 24px 10px 8px!important}
html body.archeage-page #main-content .orb-map-group>summary{margin:4px 0 8px!important}
html body.archeage-page #main-content .ac-build-options>summary{white-space:nowrap!important}
html body.archeage-page #main-content .ac-build-actions{flex-wrap:wrap!important}
html body.archeage-page #main-content [data-ac-icon-button]{display:inline-grid!important;place-items:center!important;width:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;height:36px!important;padding:0!important;line-height:1!important;flex:0 0 36px!important}
/* A filled gold tile hid the current-page dot inherited from the shared rail. */
html body.archeage-page #flat-site-navigation nav a[aria-current=page]{position:relative!important;background:var(--flat-soft)!important;color:var(--flat-accent)!important;border:1px solid var(--flat-line)!important;box-shadow:none!important}
html body.archeage-page #flat-site-navigation nav a[aria-current=page]::after{content:""!important;position:absolute!important;right:7px!important;top:50%!important;transform:translateY(-50%)!important;width:4px!important;height:4px!important;border-radius:50%!important;background:var(--flat-accent)!important;box-shadow:none!important;pointer-events:none!important}
html body.archeage-page #flat-site-navigation:not(:hover):not(:focus-within):not(.is-open) nav section>p{visibility:hidden!important}
}

/* Tempering: readable value, native keyboard interaction and compact steps. */
@layer orb-state{
html body.archeage-page .ac-tempering{padding:18px!important;margin:16px 0!important;border:1px solid var(--flat-line,#34425e)!important;border-radius:14px!important;background:var(--flat-inset,#111929)!important}
html body.archeage-page .ac-tempering-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:14px!important;font-size:13px!important}
html body.archeage-page .ac-tempering-title output{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:54px!important;min-height:32px!important;padding:4px 12px!important;border-radius:10px!important;background:var(--flat-soft,#b6c5ff18)!important;color:var(--flat-accent,#b6c5ff)!important;font-size:18px!important;font-weight:700!important;font-variant-numeric:tabular-nums!important}
html body.archeage-page .ac-tempering-row{display:grid!important;grid-template-columns:36px minmax(0,1fr) 36px!important;align-items:center!important;gap:14px!important}
html body.archeage-page #main-content .ac-tempering-row button{width:36px!important;height:36px!important;min-height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:20px!important;line-height:1!important;border:1px solid var(--flat-line,#34425e)!important;border-radius:10px!important;background:var(--flat-raised,#222d44)!important;color:var(--flat-text,#edf2ff)!important;overflow:visible!important}
html body.archeage-page .ac-tempering-row button:disabled{opacity:.4!important;cursor:default!important}
html body.archeage-page #main-content .ac-tempering input[type=range]{appearance:none!important;-webkit-appearance:none!important;display:block!important;width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;cursor:pointer!important;background:linear-gradient(to right,var(--flat-accent,#b6c5ff) 0%,var(--flat-accent,#b6c5ff) var(--ac-polish-progress,0%),#3b4862 var(--ac-polish-progress,0%),#3b4862 100%) center/100% 6px no-repeat!important}
html body.archeage-page .ac-tempering input[type=range]::-webkit-slider-runnable-track{height:6px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important}
html body.archeage-page .ac-tempering input[type=range]::-webkit-slider-thumb{appearance:none!important;-webkit-appearance:none!important;width:18px!important;height:18px!important;margin-top:-6px!important;box-sizing:border-box!important;border:3px solid #182238!important;border-radius:50%!important;background:var(--flat-accent,#b6c5ff)!important;box-shadow:0 0 0 1px var(--flat-accent,#b6c5ff)!important}
html body.archeage-page .ac-tempering input[type=range]::-moz-range-track{height:6px!important;border:0!important;border-radius:999px!important;background:transparent!important}
html body.archeage-page .ac-tempering input[type=range]::-moz-range-thumb{width:18px!important;height:18px!important;box-sizing:border-box!important;border:3px solid #182238!important;border-radius:50%!important;background:var(--flat-accent,#b6c5ff)!important;box-shadow:0 0 0 1px var(--flat-accent,#b6c5ff)!important}
html body.archeage-page .ac-tempering-limits{display:flex!important;justify-content:space-between!important;gap:12px!important;margin:7px 50px 0!important;font-size:11px!important;color:var(--flat-muted,#a3afc9)!important}
html body.archeage-page .ac-tempering :focus-visible{outline:2px solid var(--flat-accent,#b6c5ff)!important;outline-offset:4px!important}
}

@layer orb-state{
 .archeage-page .ac-draft{flex-wrap:wrap}
 .archeage-page .ac-draft>strong{min-width:0;overflow-wrap:anywhere}
 .archeage-page .ac-draft-actions{display:flex;gap:8px;flex-shrink:0}
 @media(max-width:600px){.archeage-page .ac-draft-actions{flex-basis:100%}.archeage-page .ac-draft-actions>:is(a,button){flex:1;text-align:center}}
}
