<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!--
        Wild Dragon — Dark palette. Color resources ONLY, no styles.
        Loaded into App.xaml's MergedDictionaries; swapped at runtime
        for Theme.Light.xaml via Services/ThemeManager.cs.

        Every key here MUST also exist in Theme.Light.xaml with the
        same name. Keep the two files in lockstep — adding a new
        brush in one without the other will break light-mode rendering.

        References inside WildDragonTheme.xaml (which carries the styles
        + control templates) reach these brushes via {DynamicResource},
        so the runtime swap re-resolves automatically.
    -->

    <SolidColorBrush x:Key="Wd.Canvas"           Color="#0A0A0A"/>
    <SolidColorBrush x:Key="Wd.Rail"             Color="#080808"/>
    <SolidColorBrush x:Key="Wd.Surface"          Color="#141414"/>
    <SolidColorBrush x:Key="Wd.SurfaceElevated"  Color="#1C1C1C"/>
    <SolidColorBrush x:Key="Wd.SurfaceHover"     Color="#2A2A2A"/>
    <SolidColorBrush x:Key="Wd.SurfaceActive"    Color="#363636"/>
    <SolidColorBrush x:Key="Wd.Border"           Color="#262626"/>
    <SolidColorBrush x:Key="Wd.BorderStrong"     Color="#383838"/>
    <SolidColorBrush x:Key="Wd.Button.HoverBg"   Color="#33333A"/>
    <SolidColorBrush x:Key="Wd.Button.PressBg"   Color="#3F3F47"/>

    <SolidColorBrush x:Key="Wd.Text.Primary"     Color="#F5F5F5"/>
    <SolidColorBrush x:Key="Wd.Text.Secondary"   Color="#A3A3A3"/>
    <SolidColorBrush x:Key="Wd.Text.Tertiary"    Color="#6B6B6B"/>
    <SolidColorBrush x:Key="Wd.Text.Disabled"    Color="#404040"/>

    <SolidColorBrush x:Key="Wd.Accent.Cyan"      Color="#97EDF0"/>
    <SolidColorBrush x:Key="Wd.Accent.CyanHover" Color="#B5F2F4"/>
    <SolidColorBrush x:Key="Wd.Accent.CyanMuted" Color="#1B3537"/>
    <SolidColorBrush x:Key="Wd.Accent.CyanText"  Color="#97EDF0"/>
    <SolidColorBrush x:Key="Wd.Accent.Blue"      Color="#9AE0FD"/>
    <SolidColorBrush x:Key="Wd.Accent.Coral"     Color="#FB819C"/>
    <SolidColorBrush x:Key="Wd.Accent.CoralBg"   Color="#3A1922"/>

    <SolidColorBrush x:Key="Wd.Status.Live"      Color="#4ADE80"/>
    <SolidColorBrush x:Key="Wd.Status.LiveBg"    Color="#13261A"/>
    <SolidColorBrush x:Key="Wd.Status.Warn"      Color="#FBBF24"/>
    <SolidColorBrush x:Key="Wd.Status.Error"     Color="#FB819C"/>

    <!--
        Brand mark image, theme-flipped. Dark mode shows the WHITE dragon so it
        reads against the near-black canvas. The light theme exposes the same
        key pointing at the BLACK dragon. Consumers bind via
        {DynamicResource Wd.BrandMark.Image} so the swap is automatic on
        ThemeManager.Toggle().

        CacheOption=OnLoad decodes the PNG at load time and releases the
        underlying stream, which matters because the source files are 1243×1125
        — without OnLoad the BitmapImage holds the stream open for the life
        of the resource dictionary.
    -->
    <BitmapImage x:Key="Wd.BrandMark.Image"
                 UriSource="pack://application:,,,/DragonISO;component/Assets/dragon-mark-white.png"
                 CacheOption="OnLoad"/>
</ResourceDictionary>
