/* Canonical page-block finish, shared with the Hero dossier. Dashboard Home is excluded. */
:root{
 --av-page-surface-background:repeating-linear-gradient(125deg,transparent 0 130px,#c8b37a0b 131px 132px,transparent 133px 210px),radial-gradient(ellipse at 15% 65%,#b28a3538,transparent 55%),radial-gradient(ellipse at 90% 10%,#497e8630,transparent 45%),linear-gradient(125deg,#172b31,#08141d 58%,#101c24);
 --av-page-surface-border:#b69a5e80;
 --av-page-surface-border-width:1px;
 --av-page-surface-radius:7px;
}
/* Keep artwork, battle stages, maps and miniature portrait cards outside the block finish. */
@layer aldavyn-semantic{

:is(.aldavyn-application[data-view]:not([data-view="dashboard"])>.av-app-content,[data-av-dashboard-panel]:not([data-av-dashboard-panel="dashboard"]),[data-av-compact-module])
 :is(.av-page-surface,.panel,.av-app-card,.av-building-browser,.av-building-detail,.av-building-action,.av-research-action,.av-building-tile,.av-research-tile,.av-building-category-panel,.av-worker-controls,.av-research-browser,.av-research-detail,.av-population-stat,.av-population-workplace,.av-hero-people-group,.av-hero-altar,.av-estate-warband,.av-estate-milestones,.av-player-about,.av-player-social,.av-message,.av-message-compose,.av-pet-tile,.av-lore-chapter,.av-lore-intro,.av-account-facts,.av-account-form,.aldavyn-auth__panel,.av-onboarding-card,.av-shop-tile,.av-market-tile,.av-patch-note,.av-achievement-row,.av-chapter-reward,.av-achievement-summary,.character-overview-card):not(:where(.av-realm-grid *,.av-battlefield,.av-battlefield *,.av-hero-artwork,.av-estate-banner,.av-map-stage,.av-world-map-stage,.av-hero-portrait-card,.av-sidebar-character)){
 background:var(--av-page-surface-background)!important;
 border:var(--av-page-surface-border-width,1px) solid var(--av-page-surface-border)!important;
 border-radius:var(--av-page-surface-radius)!important;
 box-shadow:none!important;
 box-sizing:border-box;
}
}
.av-character-directory.av-page-surface{width:100%;min-width:0;padding:18px;box-sizing:border-box}
.av-character-directory>.av-character-region-filter{margin-top:0}
.av-character-directory>.av-app-battle-gallery{margin-bottom:0}
/* Reuse the exact finish on the original dossier instead of maintaining another palette. */
.av-dossier-stage{background:var(--av-page-surface-background);border-color:var(--av-page-surface-border);border-radius:var(--av-page-surface-radius)}
.av-dossier-stage:before{background:none}
@media(max-width:650px){.av-character-directory.av-page-surface{padding:12px}}

/* Explicit standalone directory blocks use the same finish outside the application shell. */
@layer aldavyn-semantic{.av-page-surface:not(:where(.av-realm-grid *,[data-av-dashboard-panel="dashboard"] *)){background:var(--av-page-surface-background)!important;border:var(--av-page-surface-border-width,1px) solid var(--av-page-surface-border)!important;border-radius:var(--av-page-surface-radius)!important;box-shadow:none!important}}

/* The scenic workspace is one surface. Do not flatten dialogs, controls or artwork. */
.av-sanctum [data-av-dashboard-panel]:not([data-av-dashboard-panel="dashboard"]){--av-page-surface-background:transparent;--av-page-surface-border:transparent;--av-page-surface-border-width:0px;--av-page-surface-radius:0px}
@layer aldavyn-semantic{
.av-sanctum [data-av-dashboard-panel]:not([data-av-dashboard-panel="dashboard"]) :is(.av-campaign-trail,.av-campaign,.av-summoning-page,.av-sanctum-controls,.av-market-hub>.av-shop,.av-market-hub>[data-av-market-panel],.av-frontier,.av-frontier-preparation,.av-morvath,.av-morvath-target,.av-dossier-stage,.av-dossier-ability,.av-estate-main,.av-section-tabs,.av-population-troop-overview):not(:where(dialog,dialog *)){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.av-sanctum [data-av-dashboard-panel]:not([data-av-dashboard-panel="dashboard"]) :is(.av-page-surface,.panel,.av-shop-tile,.av-market-tile,.av-app-card,.av-estate-warband,.av-estate-milestones,.av-player-about,.av-player-social,.av-achievement-row,.av-chapter-reward,.av-achievement-summary,.av-message,.av-message-compose):not(:where(dialog,dialog *)){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
}

.av-sanctum [data-av-dashboard-panel] dialog{--av-page-surface-background:#0c1d27;--av-page-surface-border:#b69a5e80;--av-page-surface-border-width:1px;--av-page-surface-radius:7px}

@layer aldavyn-semantic{
.av-sanctum [data-av-dashboard-panel]:not([data-av-dashboard-panel="dashboard"])>:not(nav):not(dialog):not(script):not(style):not(link):not([hidden]){border:0!important;border-radius:0!important;box-shadow:none!important;max-width:none!important;width:100%!important}
}
