/* FARM tools Design Styles */

/*
   Root variables for color scheme and theming.
   Palette tuned to the FARM Analytica brand family.
*/
:root {
    color-scheme: light;
    --panel-bg: rgba(237, 251, 226, 0.92);
    --panel-border: rgba(55, 146, 55, 0.2);
    --panel-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    --text-main: #0f172a;
    --text-muted: #2f3b40;
    --accent: #54b435;
    --accent-strong: #379237;
    --surface: #d5ead8;
    /* Off-white used on dark/filled backgrounds (buttons, active states) */
    --surface-inv: #f9f7f2;
    /* Deep teal for dark hover states */
    --surface-dark: #2e5159;
    /* Danger red for destructive actions */
    --danger: #b91c1c;
    --danger-bg: rgba(15, 23, 42, 0.9);
    --border-pill: 999px;
}

/* === Base ===
   Box-sizing reset, full-viewport html/body, body font/background,
   and the global keyboard-focus ring applied via :focus-visible. */
/* Apply border-box sizing to all elements for layout consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Global keyboard-focus ring — appears only for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Set up full viewport for html and body */
html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Main body font and background styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(84, 180, 53, 0.14), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(46, 81, 89, 0.1), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #edfbe2 100%);
    color: var(--text-main);
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.panel-note {
    display: none;
}

.status-banner {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(46, 81, 89, 0.08);
    color: var(--text-main);
    font-size: 0.8rem;
    line-height: 1.45;
}

.status-banner:empty {
    display: none;
}

.status-banner[data-tone="warning"] {
    background: var(--danger-bg);
    color: #f7fff7;
}

.mobile-only-control {
    display: none;
}

.mobile-viewer-overlay-button {
    display: none;
    border: 0;
    border-radius: var(--border-pill);
    padding: 8px 14px;
    background: rgba(46, 81, 89, 0.82);
    color: #f7fff7;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
