/* Modern V3 presentation. Classic is restored by removing fe-modern-ui.
   Logo assets, warning/status colors and business controls are never replaced. */
#fe-appearance{display:flex;align-items:center;gap:8px;flex-shrink:0;font:12px/1.5 Tahoma,Arial,sans-serif}
#fe-appearance button{min-height:44px;border:1px solid #cbd5e1;background:#fff;color:#18332a;border-radius:12px;padding:8px 12px;font:inherit;cursor:pointer}
#fe-appearance button:focus-visible{outline:3px solid #1f6b4d;outline-offset:3px}
.fe-appearance-status{color:#718077;font-size:11px}
.side #fe-appearance{padding:12px;flex-wrap:wrap}
html.fe-modern-ui{--g:#18332a;--g2:#1f6b4d;--gold:#c8962e;--bg:#f5f7f3;--line:#e5e9e4;--mut:#718077;--shadow:0 4px 18px #0f172a06;--fe-ui-background:#f5f7f3;--fe-ui-surface:#fff;--fe-ui-text:#18332a;--fe-ui-brand:#1f6b4d;--fe-ui-line:#e5e9e4;--fe-ui-tint:#e9f3ed;--fe-ui-radius:16px;--fe-ui-control-radius:10px}
html.fe-modern-ui body{background:#f5f7f3;color:#18332a;font-family:Tahoma,Arial,sans-serif;line-height:1.7}
html.fe-modern-ui body .side{background:#fff!important;color:#18332a!important;border-inline-end:1px solid #e5e9e4;box-shadow:none!important}
html.fe-modern-ui body .brand{border-color:#e5e9e4}
html.fe-modern-ui body .brand :is(b,small){color:#18332a!important}
html.fe-modern-ui body .farm{background:#f5f7f3!important;border-color:#e5e9e4}
html.fe-modern-ui body .farm :is(b,small,span){color:#53685c!important}
html.fe-modern-ui body .nav button{color:#53685c!important;font-size:14px!important;min-height:48px;padding:12px;border-radius:12px}
html.fe-modern-ui body .nav button.on{background:#e9f3ed!important;color:#1f6b4d!important}
html.fe-modern-ui body .top{height:auto;min-height:72px;gap:12px;padding:12px 24px;background:#fff!important;border-color:#e5e9e4;flex-wrap:wrap;box-shadow:none!important}
html.fe-modern-ui body .crumb b{font-size:17px!important;color:#18332a!important}
html.fe-modern-ui body .crumb small{font-size:12px!important;color:#718077!important}
html.fe-modern-ui body .content{padding:28px;max-width:1440px}
html.fe-modern-ui body .main #content :is(.panel,.stat,.feActionRail,.feTodayReview,.feTodayPreview,.feDashboardAgentRoster,.feAgentAvatarCard,.approval){background:#fff!important;border:1px solid #e5e9e4!important;border-radius:16px!important;box-shadow:none!important;padding:20px}
html.fe-modern-ui body .main #content :is(.welcome,.feTodayHero){background:#e9f3ed!important;border:1px solid #e5e9e4!important;border-radius:20px!important;box-shadow:none!important;padding:24px;color:#18332a!important}
html.fe-modern-ui body .main #content :is(h1,h2,h3,h4){color:#18332a!important;line-height:1.45}
html.fe-modern-ui body .main #content :is(p,small,.field span,.pt small){font-size:13px!important;line-height:1.8}
html.fe-modern-ui body .main #content .stats{gap:16px;margin-block:20px;grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
html.fe-modern-ui body .main #content .stat b{font-size:28px!important}
html.fe-modern-ui body .main #content .grid{gap:24px}
html.fe-modern-ui body .main #content .feActionRailItems{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important}
html.fe-modern-ui body .main #content .feActionItem{display:flex;flex-direction:row;min-height:60px!important;padding:14px!important;justify-content:flex-start;gap:12px;background:#f5f7f3!important;border:1px solid #e5e9e4!important;border-radius:12px!important;box-shadow:none!important;color:#18332a!important;font-size:14px!important}
html.fe-modern-ui body .main #content .feActionItem i{background:#e9f3ed!important;color:#1f6b4d!important}
html.fe-modern-ui body .main #content :is(.form,.form.ops,.form.finance){padding:20px;gap:16px;border-color:#e5e9e4;border-radius:16px}
html.fe-modern-ui body .main #content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px;border-radius:10px;padding:10px 12px;max-width:100%;min-width:0}
html.fe-modern-ui body .main #content :is(button,.primary,.secondary){min-height:44px;font-size:13px!important}
html.fe-modern-ui body .main #content .tbl :is(th,td){font-size:13px!important;padding:14px;line-height:1.6}
html.fe-modern-ui body .main #content .tbl th{background:#f5f7f3;color:#53685c}
html.fe-modern-ui body .main #content .wrap{overflow:auto;max-width:100%}
html.fe-modern-ui body .main #content .pt b{font-size:16px!important}
html.fe-modern-ui body .main #content .status{font-size:12px!important}
html.fe-modern-ui body .main #content :is(button,input,select,textarea,a):focus-visible{outline:3px solid #1f6b4d;outline-offset:3px}
html.fe-modern-ui body .authBrand{background:#18332a!important}
html.fe-modern-ui body .authPane{padding:32px}
html.fe-modern-ui body .authPrimary{background:#1f6b4d!important;min-height:48px;font-size:15px}
@media(max-width:800px){.fe-appearance-status{display:none}html.fe-modern-ui body .top{padding:12px 16px;gap:8px}html.fe-modern-ui body .content{padding:16px}html.fe-modern-ui body .main #content .feActionRailItems{grid-template-columns:repeat(2,minmax(0,1fr))!important}html.fe-modern-ui body .main #content .grid{grid-template-columns:minmax(0,1fr)}html.fe-modern-ui body .main #content :is(.form,.form.ops,.form.finance){grid-template-columns:minmax(0,1fr)}html.fe-modern-ui body .main #content .field.wide{grid-column:auto}html.fe-modern-ui body .main #content .head{flex-wrap:wrap;gap:12px}html.fe-modern-ui body .authCard{max-width:100%}}
@media(min-width:801px) and (max-width:1200px){html.fe-modern-ui body .main #content :is(.form,.form.ops,.form.finance){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html.fe-modern-ui body .nav button,html.fe-modern-ui body .feActionItem{transition:none!important;transform:none!important}}

/* Keep all existing groups, permission filtering and tab handlers. */
html.fe-modern-ui #nav .feNavGroup{margin-block-start:18px;font-size:12px!important;font-weight:700;letter-spacing:0}
html.fe-modern-ui[data-fe-appearance-surface] body{--green:#1f6b4d;--ink:#18332a;--muted:#718077;--line:#e5e9e4;--surface:#fff;--canvas:#f5f7f3}
html.fe-modern-ui[data-fe-appearance-surface] :is(.topbar,.header){background:#fff;border-bottom:1px solid #e5e9e4;gap:16px;flex-wrap:wrap;height:auto;padding-block:16px}
html.fe-modern-ui[data-fe-appearance-surface] :is(.panel,.setup,.workspace-panel,.agent-directory){border:1px solid #e5e9e4;border-radius:18px;box-shadow:none;background:#fff}
html.fe-modern-ui[data-fe-appearance-surface] :is(.hero,.intro){background:#e9f3ed;border-radius:24px;padding:28px;color:#18332a;margin-block:24px}
html.fe-modern-ui[data-fe-appearance-surface] :is(.tabs,.workspace-toolbar,.entry-actions){gap:12px;flex-wrap:wrap}
html.fe-modern-ui[data-fe-appearance-surface] :is(button,.tab,summary){min-height:44px}
html.fe-modern-ui[data-fe-appearance-surface] :is(.tab[aria-selected=true],.tabs button[aria-pressed=true]){background:#e9f3ed;color:#1f6b4d;border-color:#1f6b4d}
html.fe-modern-ui[data-fe-appearance-surface] :is(.view,.panel,.setup){padding:24px}
html.fe-modern-ui[data-fe-appearance-surface] :is(.layout,.workspace){gap:24px}
html.fe-modern-ui[data-fe-appearance-surface] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){font-size:16px;min-height:44px;max-width:100%}
@media(max-width:760px){html.fe-modern-ui[data-fe-appearance-surface] :is(.view,.panel,.setup,.hero,.intro){padding:16px}html.fe-modern-ui[data-fe-appearance-surface] .topbar{gap:10px}html.fe-modern-ui[data-fe-appearance-surface] .tabs{overflow:auto;flex-wrap:nowrap}html.fe-modern-ui[data-fe-appearance-surface] .tabs button{flex-shrink:0}}
