/* Design tokens shared by all apps (Material 3 roles, light + dark). */
:root {
    color-scheme: light dark;
    --md-primary: #52643b;
    --md-on-primary: #ffffff;
    --md-primary-container: #d5e8b4;
    --md-on-primary-container: #111f05;
    --md-secondary-container: #d9e7c8;
    --md-on-secondary-container: #131f0a;
    --md-surface: #f7f8f2;
    --md-surface-container: #eceee6;
    --md-surface-container-low: #f1f3eb;
    --md-surface-container-high: #e6e9df;
    --md-on-surface: #1a1c17;
    --md-on-surface-variant: #45483f;
    --md-outline: #76796e;
    --md-outline-variant: #c6c9bc;
    --md-error: #ba1a1a;
    --md-on-error: #ffffff;
    --md-error-container: #ffdad6;
    --md-on-error-container: #410002;
    --md-inverse-surface: #2e3129;
    --md-inverse-on-surface: #eff1e8;
    --md-scrim: rgba(0, 0, 0, .32);
    --md-shadow: 0 2px 3px rgba(25, 28, 20, .12), 0 6px 12px rgba(25, 28, 20, .08);
    --md-shadow-1: 0 1px 2px rgba(0, 0, 0, .30), 0 1px 3px 1px rgba(0, 0, 0, .15);
    --md-shadow-3: 0 1px 3px rgba(0, 0, 0, .30), 0 4px 8px 3px rgba(0, 0, 0, .15);
    --md-shape-s: 8px;
    --md-shape-m: 12px;
    --md-shape-l: 16px;
    --md-shape-xl: 28px;
    --md-font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --md-primary: #b9ce99;
        --md-on-primary: #263515;
        --md-primary-container: #3d4d2b;
        --md-on-primary-container: #d5e8b4;
        --md-secondary-container: #3f4a30;
        --md-on-secondary-container: #d9e7c8;
        --md-surface: #191c16;
        --md-surface-container: #20231d;
        --md-surface-container-low: #1e211b;
        --md-surface-container-high: #2a2d25;
        --md-on-surface: #e3e4d9;
        --md-on-surface-variant: #c5c8ba;
        --md-outline: #8f9285;
        --md-outline-variant: #45483f;
        --md-error: #ffb4ab;
        --md-on-error: #690005;
        --md-error-container: #93000a;
        --md-on-error-container: #ffdad6;
        --md-inverse-surface: #e3e4d9;
        --md-inverse-on-surface: #2e3129;
        --md-scrim: rgba(0, 0, 0, .6);
        --md-shadow: 0 2px 5px rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .25);
    }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--md-surface);
    color: var(--md-on-surface);
    font-family: var(--md-font);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: .015em;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--md-primary);
    outline-offset: 3px;
}
