/* ArcheAge uses Orbynia's official shared palette. Only artwork and item rarity differ. */
@layer orb-state{
html body.archeage-page.orb-studio[data-game=archeage]{--ac-panel:var(--flat-panel)!important;--ac-deep:var(--flat-inset)!important;--ac-line:var(--flat-line)!important;--ac-gold:var(--flat-accent)!important;--ac-muted:var(--flat-muted)!important}
html body.archeage-page .flat-page-atmosphere::before{background-image:linear-gradient(#0c112077,#0c1120bb),var(--flat-scene-image)!important;filter:blur(2px) saturate(.9)!important}
html body.archeage-page[data-flat-home-scene] .flat-page-atmosphere::before{background-image:linear-gradient(#0c112055,#0c11208c),var(--flat-scene-image)!important;filter:blur(1px) saturate(1)!important}
html body.archeage-page[data-flat-home-scene] .flat-home-photo::after{background:linear-gradient(90deg,#0c1120c9,#0c112055 46%,#0c112010 80%),linear-gradient(0deg,#0c112099,transparent 85%)!important}
html body.archeage-page #main-content :is(.minimal-home-actions>a,.ac-primary,.game-guild-root button,.game-guild-root a[role=tab]){background:var(--flat-raised)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important}
html body.archeage-page #main-content :is(button[aria-pressed=true],button[aria-selected=true],.archeage-tabs a[aria-current],.game-guild-root a[aria-current],.game-guild-tab.active){background:linear-gradient(135deg,#b6c5ff26,#a896f31a)!important;color:var(--flat-text)!important;border-color:transparent!important}
html body.archeage-page .game-guild-root{--guild-accent:var(--flat-accent)!important;--guild-line:var(--flat-line)!important;--guild-muted:var(--flat-muted)!important}
html body.archeage-page .game-guild-root :is(.gx-hint,.guild-caption,.guild-member-character,.guild-participation-caption,.guild-member-metrics small,.guild-member-participation small){color:var(--flat-muted)!important}
html body.archeage-page .game-guild-root :is(.gx-member-controls,.guild-member-detail,.guild-named-rosters,.game-guild-panel){background:var(--flat-panel)!important;border-color:var(--flat-line)!important}
html body.archeage-page #main-content .game-guild-root select option{background:var(--flat-inset)!important;color:var(--flat-text)!important;-webkit-text-fill-color:var(--flat-text)!important}
/* Keep the full language code clear of both icons and native select decoration. */
html body.archeage-page.orb-floating-layout .flat-floating-tools .orb-language-control{display:inline-flex!important;position:relative!important;box-sizing:border-box!important;width:86px!important;min-width:86px!important;height:38px!important;min-height:38px!important;padding:0!important}
html body.archeage-page.orb-floating-layout .flat-floating-tools .orb-language-control select[data-language]{appearance:none!important;-webkit-appearance:none!important;display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;padding:7px 24px 7px 28px!important;font:500 12px/20px Inter,ui-sans-serif,system-ui,sans-serif!important;letter-spacing:0!important;text-indent:0!important;text-align:left!important;color:var(--flat-text)!important;background:transparent!important;border:0!important}
html body.archeage-page.orb-flat.orb-layout-v2.orb-floating-layout .flat-floating-tools .orb-language-control .orb-language-icons{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;padding:0!important;pointer-events:none!important}
html body.archeage-page.orb-flat.orb-layout-v2.orb-floating-layout .flat-floating-tools .orb-language-control .orb-language-icons svg{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;display:block!important}
html body.archeage-page.orb-flat.orb-layout-v2.orb-floating-layout .flat-floating-tools .orb-language-control .orb-language-globe{width:14px!important;height:14px!important;left:8px!important}
html body.archeage-page.orb-flat.orb-layout-v2.orb-floating-layout .flat-floating-tools .orb-language-control .orb-language-chevron{width:9px!important;height:9px!important;right:9px!important}
/* Class selection and publication state share the toolbar's 42px controls. */
html body.archeage-page #main-content .ac-class-control{display:grid!important;gap:6px!important;align-self:end!important;min-width:150px!important}
html body.archeage-page #main-content .ac-class-control>span{font-size:10px!important;line-height:1.4!important;color:var(--flat-muted)!important}
html body.archeage-page #main-content .ac-class-control>[data-choose-class]{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-height:42px!important;height:42px!important;padding:8px 12px!important;background:var(--flat-inset)!important;border:1px solid var(--flat-line)!important;border-radius:10px!important;font-size:12px!important;font-weight:500!important}
html body.archeage-page #main-content [data-choose-class] .ac-icon{width:22px!important;height:22px!important;border:0!important;border-radius:0!important;background:transparent!important}
html body.archeage-page #main-content [data-choose-class]>span:last-child{margin-left:auto!important}
html body.archeage-page #main-content .ac-build-visibility{position:relative!important;display:inline-flex!important;align-items:center!important;gap:9px!important;align-self:end!important;min-height:42px!important;padding:8px 12px!important;border:1px solid var(--flat-line)!important;border-radius:10px!important;background:var(--flat-inset)!important;cursor:pointer!important;white-space:nowrap!important;font-size:12px!important}
html body.archeage-page #main-content .ac-build-visibility>input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;margin:0!important;padding:0!important;clip-path:inset(50%)!important}
html body.archeage-page .ac-visibility-track{position:relative!important;display:block!important;width:30px!important;height:18px!important;border-radius:10px!important;background:var(--flat-hover)!important;flex:none!important}
html body.archeage-page .ac-visibility-track::after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--flat-muted);transition:transform .16s ease}
html body.archeage-page [data-published]:checked+.ac-visibility-track{background:var(--flat-accent)!important}
html body.archeage-page [data-published]:checked+.ac-visibility-track::after{transform:translateX(12px);background:var(--flat-inset)}
html body.archeage-page [data-published]:focus-visible+.ac-visibility-track{outline:2px solid var(--flat-accent);outline-offset:3px}
/* Colors read from Questlog's grade tokens, not from Orbynia's interface palette. */
html body.archeage-page :is(.ac-grade-1,[data-ac-grade="1"]){--ac-rarity:#c9c9c9}
html body.archeage-page :is(.ac-grade-2,[data-ac-grade="2"]){--ac-rarity:#6cc35a}
html body.archeage-page :is(.ac-grade-3,[data-ac-grade="3"]){--ac-rarity:#4fa3ff}
html body.archeage-page :is(.ac-grade-4,[data-ac-grade="4"]){--ac-rarity:#b06cf0}
html body.archeage-page :is(.ac-grade-5,[data-ac-grade="5"]){--ac-rarity:#f0a43a}
html body.archeage-page :is(.ac-grade-6,[data-ac-grade="6"]){--ac-rarity:#ef5b4a}
html body.archeage-page #main-content :is([class*="ac-grade-"],[data-ac-grade]){border-inline-start:3px solid var(--ac-rarity,var(--flat-line))!important}
html body.archeage-page #main-content :is([class*="ac-grade-"],[data-ac-grade]) :is(strong,h2){color:var(--ac-rarity,var(--flat-text))!important}
html body.archeage-page #main-content :is([class*="ac-grade-"],[data-ac-grade])>.ac-icon{border:1px solid var(--ac-rarity)!important;background:color-mix(in srgb,var(--ac-rarity) 8%,var(--flat-inset))!important}
html body.archeage-page #main-content .ac-detail-header[class*="ac-grade-"]{padding-left:12px!important}
html body.archeage-page #main-content .ac-item:has([data-pick]){min-width:0!important}
html body.archeage-page #main-content .support-panel{margin-top:32px!important}
html body.archeage-page #main-content .community-browser{max-width:1480px!important;width:100%!important}
html body.archeage-page #main-content .community-browser .community-card-footer>a{position:relative;z-index:2;padding:7px 10px;color:var(--flat-accent);text-decoration:none}
html body.archeage-page #main-content .ac-gallery-items{display:flex;gap:5px;margin-top:10px}
html body.archeage-page #main-content .ac-gallery-items .ac-icon{width:30px;height:30px;object-fit:contain;background:var(--flat-inset);border-radius:5px}
html body.archeage-page #main-content img.ac-icon[data-ac-grade]{border:1px solid var(--ac-rarity)!important}
html body.archeage-page.premium-page[data-community-builds] main#main-content.premium-main{width:calc(100% - var(--layout-rail) - clamp(44px,6vw,96px))!important;max-width:1480px!important;margin-inline:auto!important;transform:translateX(calc(var(--layout-rail)/2))!important}
html body.archeage-page #main-content .community-filter-fields{background:var(--flat-panel)!important;color:var(--flat-text)!important}
html body.archeage-page #main-content .community-class-choices{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.archeage-page #main-content .community-class-choices button:first-child{grid-column:1/-1!important}
html body.archeage-page #main-content .community-card .community-portrait.community-class-icon{object-fit:contain!important;height:90px!important;top:22px!important}
html body.archeage-page .ac-map-background{display:grid;gap:9px;margin:0 0 16px}
html body.archeage-page .ac-map-background>label:first-child{display:grid;gap:6px;font-size:11px;color:var(--flat-muted)}
html body.archeage-page [data-label-results]{display:grid;gap:6px;margin:8px 0 16px}
html body.archeage-page [data-label-results]>strong{font-size:11px;color:var(--flat-muted)}
html body.archeage-page #main-content [data-label-results]>button{text-align:left!important;justify-content:flex-start!important}
html body.archeage-page .ac-map-label-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
html body.archeage-page .ac-map-label{position:absolute;transform:translate(-50%,-50%);pointer-events:none;white-space:nowrap;font:600 12px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;color:#f3eee2;text-shadow:-1px -1px 2px #000,1px 1px 2px #000,0 0 5px #000}
html body.archeage-page .ac-map-label-region{font-size:14px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}
html body.archeage-page.map-focus-mode #flat-site-navigation{display:none!important}
html body.archeage-page.map-focus-mode main#main-content{transform:none!important}
@media(max-width:1100px){html body.archeage-page.premium-page[data-community-builds] main#main-content.premium-main{width:calc(100% - 40px)!important;transform:none!important}}
@media(max-width:700px){html body.archeage-page.premium-page[data-community-builds] main#main-content.premium-main{width:calc(100% - 28px)!important}html body.archeage-page #main-content .community-class-choices{grid-template-columns:repeat(5,minmax(0,1fr))!important}html body.archeage-page #main-content .community-class-choices button:first-child{grid-column:auto!important}}
}

/* Shared spacing and the four user-supplied class portraits. */
@layer orb-state {
html body.archeage-page #main-content .community-results{display:flex!important;flex-direction:column!important;gap:20px!important;min-width:0}
html body.archeage-page #main-content .community-results-head{margin:0!important}
html body.archeage-page #main-content [data-gallery-grid]{gap:18px!important;margin:0!important}
html body.archeage-page #main-content .community-card .community-card-body{padding:18px!important;display:flex!important;align-items:center!important;gap:16px!important}
html body.archeage-page #main-content .community-card .community-card-copy{min-width:0;flex:1}
html body.archeage-page #main-content .community-card .community-portrait.community-class-portrait{position:static!important;transform:none!important;width:78px!important;height:112px!important;flex:0 0 78px!important;object-fit:cover!important;object-position:50% 0%!important;border-radius:10px!important;opacity:1!important;mask-image:none!important}
html body.archeage-page #main-content .community-card-footer{padding:14px 18px!important;gap:14px!important;flex-wrap:wrap!important;margin:0!important}
html body.archeage-page #main-content .community-card-footer a{display:inline-flex!important;align-items:center;min-height:36px!important;padding:8px 12px!important;border-radius:9px}
html body.archeage-page #main-content .orb-map-sidebar .orb-map-check{display:flex!important;align-items:center!important;gap:10px!important;padding:12px 14px!important;box-sizing:border-box!important;min-height:44px!important;line-height:1.45!important}
html body.archeage-page #main-content .orb-map-sidebar .orb-map-check input[type=checkbox]{position:static!important;transform:none!important;inset:auto!important;margin:0!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;flex:0 0 16px!important;appearance:auto!important}
html body.archeage-page #main-content .ac-map-background>label:first-child{display:flex!important}
html body.archeage-page #main-content .ac-class-card{overflow:hidden!important;padding:18px!important;display:flex;flex-direction:column;gap:14px}
html body.archeage-page #main-content .ac-class-card>.ac-class-portrait{display:block;width:100%;height:330px;object-fit:cover;object-position:50% 0%;border-radius:12px}
html body.archeage-page #main-content .ac-class-card>header{margin:0!important}
html body.archeage-page #main-content .ac-character-portrait{position:relative!important;overflow:hidden!important;min-height:330px!important;background:var(--flat-inset)}
html body.archeage-page #main-content .ac-character-portrait>img{position:absolute!important;inset:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 0%!important}
html body.archeage-page #main-content .ac-character-portrait figcaption{background:linear-gradient(transparent,#08101be8)!important;padding:50px 16px 20px!important}
@media(max-width:600px){html body.archeage-page #main-content .ac-class-card>.ac-class-portrait{height:300px}html body.archeage-page #main-content .community-card .community-card-body{padding:16px!important}html body.archeage-page #main-content .community-card-footer{padding:12px 16px!important}}
}
@layer orb-state {
html body.archeage-page #main-content .ac-class-directory{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
@media(max-width:1100px){html body.archeage-page #main-content .ac-class-directory{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){html body.archeage-page #main-content .ac-class-directory{grid-template-columns:minmax(0,1fr)!important}}
}@layer orb-state {
html body.archeage-page #main-content [data-gallery-grid]{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important}
html body.archeage-page #main-content .community-card .ac-gallery-items{display:flex!important;flex-wrap:wrap!important;gap:5px!important;max-width:100%;margin:10px 0!important}
html body.archeage-page #main-content .community-card .ac-gallery-items .ac-icon{flex:0 0 28px!important;width:28px!important;height:28px!important}
}
