/* EG identity v1.0. Local, uncompiled theme; Filament 5.11.2. */
:root, :root.dark {
    color-scheme: dark;
    --eg-ink: #0f1113;
    --eg-graphite: #15181b;
    --eg-surface: #1a1d20;
    --eg-line: #24272b;
    --eg-bone: #ede7da;
    --eg-muted: #9c978c;
    --eg-sage: #8fa88e;
    --eg-deep: #5b6b5a;
    --gray-50: #f7f4ed;
    --gray-100: #ede7da;
    --gray-200: #d8d2c5;
    --gray-300: #c1bbaf;
    --gray-400: #9c978c;
    --gray-500: #8b867c;
    --gray-600: #736e66;
    --gray-700: #484a47;
    --gray-800: #24272b;
    --gray-900: #15181b;
    --gray-950: #0f1113;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
html { background: var(--eg-ink); }
body.fi-body { background: var(--eg-ink); color: var(--eg-bone); font-family: var(--font-family); }
::selection { background: #5b6b5a; color: #fff; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--eg-sage); outline-offset: 3px; }
.eg-brand { display: inline-flex; align-items: center; gap: 8px; height: 48px; color: var(--eg-bone); white-space: nowrap; }
.eg-brand img { width: 80px; height: 48px; flex-shrink: 0; }
.eg-brand-name { border-left: 1px solid var(--eg-line); padding-left: 17px; font-size: 19px; font-weight: 600; letter-spacing: -.04em; }
.eg-brand-name > span { color: var(--eg-sage); font-weight: 400; }
.fi-topbar { border-bottom: 1px solid var(--eg-line); background: var(--eg-ink); box-shadow: none; }
.fi-topbar > nav, .fi-sidebar-header { background: var(--eg-ink); box-shadow: none; }
.fi-sidebar { background: var(--eg-ink); border-inline-end: 1px solid var(--eg-line); }
.fi-sidebar-nav { padding-top: 28px; }
.fi-sidebar-item-btn { border-radius: 10px; min-height: 44px; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: #1c2520; box-shadow: inset 2px 0 var(--eg-sage); }
.fi-sidebar-item.fi-active .fi-sidebar-item-label, .fi-sidebar-item.fi-active .fi-icon { color: var(--eg-sage); }
.fi-sidebar-item-label { font-weight: 450; }
.fi-main { padding-top: 36px; }
.fi-header-heading, .fi-simple-header-heading { color: var(--eg-bone); letter-spacing: -.035em; font-weight: 600; }
.fi-header-heading { font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.15; }
.fi-header-subheading, .fi-simple-header-subheading { color: var(--eg-muted); }
.fi-section, .fi-ta-ctn, .fi-modal-window, .fi-dropdown-panel, .fi-simple-main {
    border: 1px solid var(--eg-line); border-radius: 16px; background: var(--eg-graphite); box-shadow: none; --tw-ring-shadow: 0 0 #0000;
}
.fi-section-header, .fi-ta-header, .fi-ta-header-toolbar, .fi-ta-content-header, .fi-ta-header-cell, .fi-ta-pagination { background: transparent; }
.fi-ta-header-cell { color: var(--eg-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.fi-ta-row { background: transparent; }
.fi-ta-row:hover { background: var(--eg-surface); }
.fi-ta-cell { padding-top: 18px; padding-bottom: 18px; }
.fi-ta-text { color: var(--eg-bone); }
.fi-ta-empty-state-icon-bg { background: var(--eg-surface); }
.fi-input-wrp, .fi-fo-textarea, .fi-fo-repeater-item { border-radius: 10px; box-shadow: none; background: var(--eg-ink); border: 1px solid var(--eg-deep); }
.fi-input-wrp:focus-within, .fi-fo-textarea:focus-within { border-color: var(--eg-sage); outline: 1px solid var(--eg-sage); }
.fi-input, .fi-select-input, .fi-fo-textarea textarea { color: var(--eg-bone); }
.fi-input::placeholder, textarea::placeholder { color: var(--eg-muted); }
.fi-fo-field-wrp-label { color: var(--eg-bone); }
.fi-fo-field-wrp-helper-text { color: var(--eg-muted); }
.fi-btn { border-radius: 999px; padding-inline: 18px; min-height: 40px; box-shadow: none; }
.fi-btn.fi-color-primary {
    background: #222d25; color: var(--eg-bone); border: 1px solid var(--eg-deep); --dark-bg: #222d25; --dark-text: var(--eg-bone);
}
.fi-btn.fi-color-primary:not([disabled]):hover { background: #2b3a2e; border-color: var(--eg-sage); }
.fi-btn.fi-color-primary > .fi-icon { color: var(--eg-sage); }
.fi-link.fi-color-primary { color: var(--eg-sage); }
.fi-modal-header { border-bottom: 1px solid var(--eg-line); padding-bottom: 22px; }
.fi-modal-heading { color: var(--eg-bone); letter-spacing: -.025em; }
.fi-modal-footer { border-top: 1px solid var(--eg-line); padding-top: 20px; }
.fi-fo-repeater-item-header { background: var(--eg-surface); border-radius: 10px 10px 0 0; }
.fi-simple-layout { background: radial-gradient(ellipse at 50% 32%, #1a1d20 0%, #0f1113 65%); }
.fi-simple-main { padding: clamp(26px, 5vw, 44px); }
.fi-simple-header .eg-brand { margin-bottom: 16px; }
.fi-simple-header-heading { font-size: 1.75rem; }
.fi-simple-header-subheading { font-size: 14px; line-height: 1.65; }
/* Home: no widgets, requests, counters, motion or third-party assets. */
.eg-home { display: grid; gap: 28px; }
.eg-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr); border: 1px solid var(--eg-line); border-radius: 16px; overflow: hidden; background: var(--eg-graphite); }
.eg-intro-copy { padding: clamp(26px, 4vw, 46px); }
.eg-eyebrow { color: var(--eg-sage); font-size: 10px; letter-spacing: .26em; font-weight: 500; text-transform: uppercase; margin: 0 0 22px; }
.eg-intro h2 { max-width: 540px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.13; letter-spacing: -.045em; font-weight: 500; margin: 0 0 18px; }
.eg-intro-copy > p:last-child { color: var(--eg-muted); max-width: 440px; font-size: 14px; line-height: 1.8; }
.eg-connection { margin: 24px 0; padding: 24px 30px; border-left: 1px solid var(--eg-line); display: flex; flex-direction: column; justify-content: center; }
.eg-connection-label { color: var(--eg-muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.eg-connection-state { margin: 14px 0 12px; display: flex; gap: 10px; align-items: center; color: var(--eg-bone); font-size: 18px; font-weight: 500; }
.eg-connection-state::before { content: ''; width: 7px; height: 7px; border: 1px solid var(--eg-muted); border-radius: 50%; }
.eg-connection > p { color: var(--eg-muted); font-size: 13px; line-height: 1.75; }
.eg-caption { color: var(--eg-muted); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; margin: 6px 0 16px; }
.eg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eg-card { padding: 26px; border: 1px solid var(--eg-line); border-radius: 16px; background: var(--eg-graphite); display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.eg-card:hover { background: var(--eg-surface); border-color: var(--eg-deep); }
.eg-card > svg { width: 23px; height: 23px; color: var(--eg-muted); margin-bottom: 30px; stroke-width: 1.4; }
.eg-card h3 { color: var(--eg-bone); font-size: 18px; letter-spacing: -.025em; font-weight: 500; margin: 0 0 9px; }
.eg-card p { color: var(--eg-muted); font-size: 13px; line-height: 1.75; margin: 0 0 24px; }
.eg-card-link { margin-top: auto; color: var(--eg-sage); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.eg-card-link svg { width: 15px; height: 15px; }
.eg-note { border-top: 1px solid var(--eg-line); padding-top: 20px; display: flex; gap: 12px; color: var(--eg-muted); font-size: 12px; line-height: 1.8; }
.eg-note > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 767px) {
    .fi-main { padding-top: 24px; }
    .eg-intro { grid-template-columns: 1fr; }
    .eg-connection { margin: 0 26px; border-left: 0; border-top: 1px solid var(--eg-line); padding: 24px 0 28px; }
    .eg-cards { grid-template-columns: 1fr; }
    .eg-card { padding: 24px; }
    .eg-card > svg { margin-bottom: 20px; }
    .eg-brand { gap: 4px; }
    .eg-brand-name { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (forced-colors: active) {
    .eg-card, .eg-intro, .fi-btn { border-color: CanvasText; }
}

/* Keep both switch states and the control boundary visible against graphite. */
.fi-toggle { width: 44px; height: 24px; border: 2px solid var(--eg-deep); background: var(--eg-line); }
.fi-toggle.fi-toggle-on { background: var(--eg-deep); }
.fi-toggle.fi-toggle-off { background: var(--eg-line); }

.eg-error { margin: 0; min-height: 100svh; display: grid; place-items: center; background: var(--eg-ink); color: var(--eg-bone); font-family: var(--font-family); }
.eg-error-card { box-sizing: border-box; width: min(540px, calc(100% - 32px)); padding: clamp(28px, 6vw, 48px); border: 1px solid var(--eg-line); border-radius: 16px; background: var(--eg-graphite); }
.eg-error-card .eg-brand { margin-bottom: 44px; }
.eg-error-card h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.eg-error-message { color: var(--eg-muted); font-size: 14px; line-height: 1.8; margin-bottom: 32px; }
.eg-error-link { display: inline-flex; align-items: center; gap: 20px; border: 1px solid var(--eg-deep); border-radius: 999px; padding: 12px 20px; color: var(--eg-bone); text-decoration: none; font-size: 13px; }
.eg-error-link:hover { background: #222d25; border-color: var(--eg-sage); }
