:root {
    --bg: #f8f5ef;
    --panel: #ffffff;
    --text: #2f2a22;
    --brand: #2f7d5f;
    --brand-dark: #225f48;
    --line: #ddd4c5;
    --theme-header-bg: #fffdf8;
    --theme-header-border: #ddd4c5;
    --theme-link-bg: linear-gradient(180deg, #f8ebd6 0%, #efd9b8 100%);
    --theme-link-border: #d0b896;
    --theme-link-color: #2d2418;
    --theme-panel-bg: #ffffff;
    --theme-input-bg: #ffffff;
}

body[data-theme] {
    background: var(--bg);
    color: var(--text);
}

body[data-theme] .header {
    background: var(--theme-header-bg);
    border-bottom-color: var(--theme-header-border);
}

body[data-theme] .header-meta {
    color: rgba(47, 42, 34, 0.78);
}

body[data-theme] .header-link {
    background: var(--theme-link-bg);
    border-color: var(--theme-link-border);
    color: var(--theme-link-color);
}

body[data-theme] .header-link:hover {
    filter: brightness(0.96);
}

body[data-theme] .header-actions .btn-small {
    border-color: #7d2a2a;
    background: linear-gradient(180deg, #c94848 0%, #9f2e2e 100%);
    color: #fff9f6;
}

body[data-theme] .header-actions .btn-small:hover {
    background: linear-gradient(180deg, #b73d3d 0%, #8b2424 100%);
}

body[data-theme] .license-pill {
    background: #e8f5eb;
    border-color: #9ac7a9;
}

body[data-theme] .panel {
    background: var(--theme-panel-bg);
    border-color: var(--line);
}

body[data-theme] input,
body[data-theme] select,
body[data-theme] textarea {
    background: var(--theme-input-bg);
    color: var(--text);
    border-color: var(--line);
}

body[data-theme] .btn {
    background: var(--brand);
}

body[data-theme] .btn:hover {
    background: var(--brand-dark);
}

body[data-theme="dark"] .header-meta {
    color: rgba(231, 234, 240, 0.8);
}
