:root {
    color-scheme: light;
    --ink: #202b25;
    --muted: #758078;
    --line: #e5eae4;
    --surface: #ffffff;
    --canvas: #f5f7f2;
    --green: #2d6847;
    --green-dark: #22543a;
    --green-pale: #eaf3ec;
    --amber-pale: #fff4df;
    --danger: #a43c35;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; }
.brand-copy, .sidebar-footer span:last-child, .person-cell > span:last-child { display: grid; gap: 3px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small, .sidebar-footer small, .person-cell small { color: var(--muted); font-size: 12px; }
.topbar-status { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; }
.topbar-status form { margin: 0; }
.topbar-user { display: grid; gap: 2px; padding-right: 4px; text-align: right; }
.topbar-user strong { color: var(--ink); font-size: 13px; }
.topbar-user small { color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #54a976; display: inline-block; flex: 0 0 auto; }
.content-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.sidebar { padding: 30px 16px; background: #fbfcfa; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.nav-heading, .eyebrow { margin: 0; color: #879188; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.nav-heading { padding: 0 12px; margin-bottom: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #56625a; font-weight: 600; border-radius: 9px; }
.nav-link-subitem { padding-left: 22px; font-size: 13px; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group-head .nav-group-label { flex: 1; }
.nav-caret { flex: 0 0 auto; margin-left: auto; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #9aa49b; transition: transform .15s ease; }
.nav-group[open] > summary { color: var(--green-dark); background: var(--green-pale); }
.nav-group[open] > summary .nav-caret { transform: rotate(180deg); }
.nav-group-items { display: grid; gap: 5px; padding-top: 5px; }
.nav-link:hover, .nav-link.active { color: var(--green-dark); background: var(--green-pale); }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; background: #edf1ec; border-radius: 7px; color: var(--green); font-size: 11px; font-weight: 800; }
.nav-link.active .nav-icon { background: #d8e9dc; }
.nav-icon[data-nav-icon] { color: transparent; }
.nav-icon[data-nav-icon]::before, .mobile-nav a[data-nav-icon]::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; background: var(--nav-icon-color, #43805b); -webkit-mask: var(--nav-icon-mask) center / contain no-repeat; mask: var(--nav-icon-mask) center / contain no-repeat; }
[data-nav-icon="overview"] { --nav-icon-color: #43845a; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1V10Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="farmers"] { --nav-icon-color: #477fc0; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M2 21v-2a7 7 0 0 1 14 0v2M17 4a4 4 0 0 1 0 8m2 2a5 5 0 0 1 3 5v2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-nav-icon="collections"] { --nav-icon-color: #2e9e9a; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2s7 7.2 7 13a7 7 0 1 1-14 0c0-5.8 7-13 7-13Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 16a3 3 0 0 0 3 3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-nav-icon="payouts"] { --nav-icon-color: #bd8a31; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='15' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 9h18m-5 5h2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-nav-icon="finance"] { --nav-icon-color: #805eb0; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3v18h18M7 15l4-4 3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="accounts"] { --nav-icon-color: #4576a8; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h14v18H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm2 5h10M7 12h10M7 16h7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="bank"] { --nav-icon-color: #378b78; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 9 9-6 9 6H3Zm2 2v7m5-7v7m4-7v7m5-7v7M3 21h18M2 18h20' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="groups"] { --nav-icon-color: #b16b42; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="dimensions"] { --nav-icon-color: #7770b1; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='6' r='2' fill='white' stroke='black' stroke-width='2'/%3E%3Ccircle cx='15' cy='12' r='2' fill='white' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8' cy='18' r='2' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
[data-nav-icon="values"] { --nav-icon-color: #528d5b; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 10h18M9 10v10m6-10v10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
[data-nav-icon="stock"] { --nav-icon-color: #5f7c8a; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8.5 12 4l9 4.5-9 4.5-9-4.5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M3 8.5V16l9 4.5 9-4.5V8.5M12 13v7.5' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="stockItems"] { --nav-icon-color: #b17a32; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 7 9-4 9 4v10l-9 4-9-4V7Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m3 7 9 4 9-4M12 11v10' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="transactions"] { --nav-icon-color: #5583af; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v15H4zM8 3v4m8-4v4M4 10h16m-12 4h3m2 0h3m-8 3h3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="stockHeaders"] { --nav-icon-color: #8c6aa6; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="api"] { --nav-icon-color: #67829a; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m8 8-4 4 4 4m8-8 4 4-4 4m-3-10-2 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="users"] { --nav-icon-color: #6f6bb0; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21v-1a8 8 0 0 1 16 0v1M19 6a3 3 0 0 1 0 6m2 3a5 5 0 0 1 2 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-nav-icon="import"] { --nav-icon-color: #4a7f5c; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15V3m0 0 4.5 4.5M12 3 7.5 7.5M4 13v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="notifications"] { --nav-icon-color: #b1742f; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0v4l2 4H4l2-4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-nav-icon="sms"] { --nav-icon-color: #3f8f6d; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H9l-5 4V5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8 9h8M8 12h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
[data-nav-icon="company"] { --nav-icon-color: #8a6d4f; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18M5 21V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v16M15 21V9h4v12M8 7h4M8 11h4M8 15h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-nav-icon="app"] { --nav-icon-color: #3f7f9d; --nav-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M5 21h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mobile-nav a[data-nav-icon] { display: flex; align-items: center; gap: 10px; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer small { font-size: 11px; }
.main-content { width: min(100%, 1440px); padding: 34px 42px 20px; margin: 0 auto; }
.welcome-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 34px; border-radius: 15px; color: #fff; background: linear-gradient(115deg, #2a6444, #3c8058); }
.welcome-banner .eyebrow { color: #c4ddca; }
.welcome-banner h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; margin: 10px 0 6px; }
.welcome-copy { color: #e1ede4; margin: 0; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #a7d5b5; outline-offset: 2px; }
.button[data-icon]::before, .button[data-modal-open]::before, .button.button-danger::before, .edit-dialog [data-modal-close][aria-label="Close"]::before, .edit-dialog .form-actions [data-modal-close]:not([aria-label])::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; background-color: var(--icon-color, currentColor); -webkit-mask: var(--action-icon) center / contain no-repeat; mask: var(--action-icon) center / contain no-repeat; }
.button[data-icon="add"] { --icon-color: #45b36b; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-icon="edit"] { --icon-color: #397bc4; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15 5 4 4M4 20l4.5-1 10-10a2.1 2.1 0 0 0-3-3l-10 10L4 20Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="delete"] { --icon-color: #ce4b45; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M10 11v6m4-6v6M5 7l1 14h12l1-14M9 7V4h6v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="save"] { --icon-color: #31935a; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="cancel"], .button[data-icon="close"] { --icon-color: #849087; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-icon="search"] { --icon-color: #498563; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 16 5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-icon="filter"] { --icon-color: #6481bb; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16l-6.2 7.2v5.3l-3.6 1.8v-7.1L4 5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="clear"] { --icon-color: #c28a33; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11a8 8 0 1 1 2.3 6M4 5v6h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="signin"] { --icon-color: #a7efb7; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4M10 8l4 4-4 4M14 12H3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="signout"] { --icon-color: #849087; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4M16 8l4 4-4 4M20 12H9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="export"] { --icon-color: #4a7f5c; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0 4.5-4.5M12 15l-4.5-4.5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="send"] { --icon-color: #2d6847; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12 20 4l-8 16-2.5-6L4 12Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-icon="notifications"] { --icon-color: #b1742f; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0v4l2 4H4l2-4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-icon="sms"] { --icon-color: #3f8f6d; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v11H9l-5 4V5Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8 9h8M8 12h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-icon="bell"] { --icon-color: #b1742f; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0v4l2 4H4l2-4V9Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-modal-open^="add-"] { --icon-color: #a7efb7; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button[data-modal-open^="edit-"] { --icon-color: #397bc4; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m15 5 4 4M4 20l4.5-1 10-10a2.1 2.1 0 0 0-3-3l-10 10L4 20Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.button[data-modal-open^="password-"] { --icon-color: #b1793a; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10.5' width='16' height='9.5' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.button.button-danger { --icon-color: #ce4b45; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M10 11v6m4-6v6M5 7l1 14h12l1-14M9 7V4h6v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.edit-dialog .form-actions .button-primary:not([data-icon]) { --icon-color: #a7efb7; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.edit-dialog [data-modal-close][aria-label="Close"] { --icon-color: #849087; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.edit-dialog .form-actions [data-modal-close]:not([aria-label]) { --icon-color: #849087; --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-light { color: var(--green-dark); background: #fff; }
.button-light:hover { background: #eef5ef; }
.button-secondary { background: #fff; border-color: var(--line); color: #46534a; }
.button-secondary:hover { background: #f6f8f5; border-color: #cdd8ce; }
.button-plain { color: #56625a; background: transparent; }
.button-plain:hover { background: #eef2ec; }
.button-danger { color: var(--danger); background: #fff; border-color: #f0d4d1; }
.button-danger:hover { background: #fff5f4; }
.button-small { min-height: 32px; padding: 0 10px; font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 32px 0 18px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.section-heading h1, .section-heading h2, .quick-actions h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.03em; }
.date-chip { padding: 8px 11px; color: #59645c; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; font-weight: 800; }
.farmer-icon { color: #356b4b; background: #e8f2ea; }
.collection-icon { color: #96702c; background: var(--amber-pale); }
.total-icon { color: #4d6491; background: #edf0f8; }
.stat-label { color: var(--muted); margin: 17px 0 5px; font-size: 13px; }
.stat-value { margin: 0 0 12px; font-size: 31px; font-weight: 750; letter-spacing: -.04em; }
.stat-card a { color: var(--green); font-size: 12px; font-weight: 650; }
.stat-card a span { margin-left: 5px; }
.quick-actions { margin-top: 31px; }
.quick-actions h2 { font-size: 20px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.quick-action { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.quick-action:hover { border-color: #a9c5ae; }
.quick-action-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-pale); font-size: 20px; }
.quick-action strong, .quick-action small { display: block; }
.quick-action small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.action-arrow { margin-left: auto; color: var(--green); }
.page-heading { margin-top: 6px; align-items: center; }
.heading-copy { margin: 7px 0 0; color: var(--muted); }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 15px 16px; margin: 21px 0 15px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.search-field { min-width: min(100%, 300px); flex: 1; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: #728078; }
.search-field input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; }
.result-count { margin-left: auto; padding: 0 2px 11px; color: var(--muted); font-size: 12px; }
.filter-control { flex: 1 1 165px; min-width: 150px; display: grid; gap: 6px; color: #69756d; font-size: 11px; font-weight: 650; }
.filter-control > span { letter-spacing: .02em; }
.filter-control input, .filter-control select { width: 100%; }
.filter-control.filter-range { flex: 1 1 300px; }
.filter-control.filter-select { flex: 1 1 190px; }
.range-inputs { display: flex; align-items: center; gap: 7px; }
.range-inputs input { min-width: 0; flex: 1 1 0; }
.range-sep { color: var(--muted); }
.filter-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; padding-bottom: 1px; }
.filter-actions .result-count { margin-left: 0; padding: 0; }
.filter-actions .button-plain { color: var(--green-dark); font-weight: 650; }
.panel, .form-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.data-table th { padding: 13px 16px; color: #7d887f; background: #fafbf9; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-top: 1px solid #edf0ec; color: #556158; font-size: 13px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fcfdfb; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell strong, .data-table td > strong { color: var(--ink); font-size: 13px; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-pale); font-size: 13px; font-weight: 750; }
.actions-column { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions form { margin: 0; }
.inline-editor { position: relative; }
.inline-editor > summary { list-style: none; }
.inline-editor > summary::-webkit-details-marker { display: none; }
.inline-editor-form { position: absolute; z-index: 4; top: 38px; right: 0; width: min(340px, 82vw); display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px #2233221c; }
.inline-editor-form .form-field input, .inline-editor-form .form-field select { min-height: 36px; }
.inline-editor-form > .button { justify-self: end; }
.finance-management-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.amount-link { color: var(--green-dark); border-bottom: 1px dotted #9dbc9f; }
.amount-link:hover { color: var(--green); border-bottom-color: var(--green); }
.action-locked { padding: 0 4px; color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.summary-card { display: grid; gap: 5px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.summary-card > span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.summary-card > strong { color: var(--ink); font-size: 22px; letter-spacing: -.02em; }
.account-header-row > td { background: #f6faf6; border-top: 1px solid #dbe7db; font-weight: 650; }
.account-header-row .account-no { font-size: 13px; letter-spacing: .01em; }
.account-cell { display: inline-flex; align-items: center; gap: 6px; padding-left: calc(var(--account-depth, 0) * 16px); }
.account-tree { color: #9aab9c; font-size: 12px; }
.row-toggle { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #6b7d8a; background: transparent; cursor: pointer; }
.row-toggle::before { content: "▾"; font-size: 10px; line-height: 1; transition: transform .15s ease; }
.row-toggle[aria-expanded="false"]::before { transform: rotate(-90deg); }
.row-toggle:hover { background: #e7eff4; }
.data-table tr[hidden] { display: none; }
.account-no { color: var(--ink); }
.kind-chip { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.kind-header { color: #3f5c74; background: #e9f1f7; }
.kind-posting { color: #4a5a4d; background: #eef1ee; }
.edit-dialog { width: min(600px, calc(100vw - 32px)); max-height: min(88vh, 820px); max-height: min(88dvh, 820px); padding: 0; overflow: hidden; border: 1px solid #dce5dc; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 28px 90px #14231a45; }
.edit-dialog::backdrop { background: #14231a8c; backdrop-filter: blur(4px); }
.edit-dialog > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; max-height: min(88vh, 820px); max-height: min(88dvh, 820px); padding: 0 28px 26px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.edit-dialog .section-heading { grid-column: 1 / -1; }
.edit-dialog .section-heading.page-heading { position: sticky; z-index: 2; top: 0; padding: 23px 28px 19px; margin: 0 -28px; border-bottom: 1px solid #e9eee8; background: linear-gradient(135deg, #fbfdfb, #f5f9f5); }
.edit-dialog .section-heading h2 { margin-top: 7px; color: #23382b; font-size: 21px; letter-spacing: -.025em; }
.edit-dialog .section-heading .eyebrow { color: var(--green); }
.edit-dialog .section-heading .button { min-height: 34px; }
.edit-dialog.farmer-dialog { width: min(900px, calc(100vw - 30px)); }
.edit-dialog .form-section { grid-column: 1 / -1; padding: 0 0 20px; margin: 0; border-bottom: 1px solid #e9eee8; }
.edit-dialog .form-section h2 { color: #2c4434; font-size: 15px; }
.edit-dialog .form-section > p { margin-bottom: 16px; }
.edit-dialog .form-field { gap: 7px; }
.edit-dialog .form-field label { color: #46554a; font-size: 12px; }
.edit-dialog .form-field input, .edit-dialog .form-field select, .edit-dialog .form-field textarea { min-height: 44px; border-color: #d9e2d9; border-radius: 9px; background: #fcfdfc; transition: border-color .15s, box-shadow .15s, background .15s; }
.edit-dialog .form-field input:hover, .edit-dialog .form-field select:hover, .edit-dialog .form-field textarea:hover { border-color: #b7c9b9; }
.edit-dialog .form-field input:focus, .edit-dialog .form-field select:focus, .edit-dialog .form-field textarea:focus { border-color: #5c936c; outline: 0; background: #fff; box-shadow: 0 0 0 3px #2d68471a; }
.edit-dialog .form-field input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: var(--green); }
.edit-dialog .check-field { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; color: #4f5b53; font-size: 12px; font-weight: 650; }
.edit-dialog .validation-summary { grid-column: 1 / -1; padding: 11px 13px; margin: 0; border: 1px solid #f0d4d1; border-radius: 9px; background: #fff7f6; }
.edit-dialog .form-actions { position: sticky; z-index: 2; bottom: 0; grid-column: 1 / -1; padding: 16px 28px 20px; margin: 0 -28px -26px; border-top: 1px solid #e9eee8; background: #fff; }
.edit-dialog .form-actions .button { min-width: 112px; }
.edit-dialog .form-actions .button-secondary { background: #f7f9f6; }
.edit-dialog .form-field:has(textarea) { grid-column: 1 / -1; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto; border-radius: 13px; color: var(--green); background: var(--green-pale); font-size: 16px; font-weight: 800; }
.empty-state h2 { margin: 14px 0 6px; font-size: 17px; }
.empty-state p { margin: 0 0 19px; color: var(--muted); }
.form-panel { max-width: 900px; margin: 20px auto 0; padding: 24px; overflow: visible; }
.company-logo-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.company-logo-preview img { max-width: 120px; max-height: 120px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.app-check-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.app-check-list .check-ok { color: #1b5e20; font-weight: 800; }
.app-check-list .check-todo { color: var(--muted); font-weight: 800; }
/* Public marketing pages */
body.public-body { background: linear-gradient(180deg, #fbfcfa 0%, #f6f8f4 100%); color: #1c2620; }
.public-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 252, 250, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #e9eee8; }
.public-header-inner { width: min(1120px, 100% - 44px); margin: 0 auto; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.public-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.public-nav-actions { display: flex; align-items: center; gap: 10px; }
.public-body .button { border-radius: 12px; padding: 11px 20px; font-weight: 600; font-size: 14px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.public-body .button-primary { background: linear-gradient(180deg, #357852 0%, #2d6847 100%); border: 1px solid #2d6847; color: #fff; box-shadow: 0 12px 26px -14px rgba(45, 104, 71, .65); }
.public-body .button-primary:hover { background: linear-gradient(180deg, #2d6847 0%, #22543a 100%); transform: translateY(-1px); }
.public-body .button-ghost { background: #fff; border: 1px solid #dfe7de; color: #26332a; }
.public-body .button-ghost:hover { border-color: #c9d5c9; transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(21, 32, 24, .5); }
.public-header .button { padding: 9px 18px; font-size: 13.5px; }
.public-main { width: min(1120px, 100% - 44px); margin: 0 auto; padding: 8px 0 24px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 54px; align-items: center; padding: 58px 0 26px; }
.hero-copy h1 { margin: 16px 0 0; font-size: clamp(32px, 4.3vw, 50px); line-height: 1.05; letter-spacing: -.042em; font-weight: 800; color: #14201a; }
.eyebrow-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #e9f3ec; border: 1px solid #dcebdf; color: #22543a; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-copy .lede { margin: 20px 0 0; font-size: 17px; line-height: 1.66; color: #4f5c54; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-facts { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #3f4c44; }
.hero-facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #2d6847; }
.hero-media img { display: block; width: 100%; height: auto; }
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; } }

/* Sections */
.section { padding: 58px 0 0; }
.section-head { max-width: 660px; margin: 0 0 30px; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.032em; color: #14201a; }
.section-head p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: #4f5c54; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 940px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border: 1px solid #e7ece6; border-radius: 18px; padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #d6e2d5; box-shadow: 0 26px 48px -30px rgba(20, 32, 26, .45); }
.icon-tile { width: 44px; height: 44px; border-radius: 13px; background: #eaf3ec; color: #22543a; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-tile svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 7px; font-size: 16.5px; letter-spacing: -.01em; color: #182420; }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.62; color: #5a665e; }

/* Field app band */
.app-band { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.app-band h2 { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.032em; color: #14201a; }
.app-media img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.app-band .lede { margin: 14px 0 0; font-size: 15.5px; line-height: 1.66; color: #4f5c54; }
.check-list { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #2d6847; }
.check-list strong { display: block; font-size: 14.5px; color: #1c2620; }
.check-list span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: #5a665e; }
.app-band .hero-actions { margin-top: 28px; }
@media (max-width: 940px) { .app-band { grid-template-columns: 1fr; gap: 36px; } }

/* Dairy band */
.dairy-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 44px; align-items: center; padding: 44px 48px; border-radius: 28px; background: linear-gradient(135deg, #eef5ee 0%, #e3efe3 100%); border: 1px solid #dcebdd; }
.dairy-band h2 { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.032em; color: #14201a; }
.dairy-band .lede { margin: 14px 0 0; font-size: 15.5px; line-height: 1.66; color: #4f5c54; }
.dairy-band .hero-actions { margin-top: 28px; }
.dairy-media { display: flex; align-items: flex-end; justify-content: center; }
.dairy-media .dairy-cow { width: min(100%, 400px); height: auto; }
.dairy-media .dairy-can { width: min(46%, 178px); height: auto; margin-left: -38px; margin-bottom: 4px; }
@media (max-width: 940px) { .dairy-band { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; } .dairy-media .dairy-can { margin-left: -26px; } }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 940px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: #fff; border: 1px solid #e7ece6; border-radius: 18px; padding: 24px 22px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: #22543a; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.step-card h3 { margin: 0 0 7px; font-size: 16.5px; color: #182420; }
.step-card p { margin: 0; font-size: 14px; line-height: 1.62; color: #5a665e; }

/* Call to action */
.section-cta { padding: 58px 0 10px; }
.cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding: 42px 46px; border-radius: 26px; background: linear-gradient(135deg, #1d4a33 0%, #2d6847 58%, #3b7c59 100%); box-shadow: 0 36px 70px -36px rgba(29, 74, 51, .65); }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; right: -90px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 65%); pointer-events: none; }
.cta h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; color: #fff; }
.cta p { margin: 10px 0 0; max-width: 540px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; position: relative; z-index: 1; }
.cta .button-primary { background: #ffd166; border: 1px solid #f5c34f; color: #3a2c00; box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .5); }
.cta .button-primary:hover { background: #ffc93c; border-color: #efb32e; }
.cta .button-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .58); color: #fff; }
.cta .button-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .8); }

/* Sign in / sign up cards */
.public-card { width: min(680px, 100%); margin: 34px auto 8px; }
.public-card h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.025em; }
.auth-card h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }

/* Footer */
.public-footer { margin-top: 72px; background: #fff; border-top: 1px solid #e9eee8; }
.public-footer-inner { width: min(1120px, 100% - 44px); margin: 0 auto; padding: 30px 0 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.public-footer .brand-copy small { display: block; }
.public-footer-meta { display: grid; gap: 8px; justify-items: end; text-align: right; }
.public-footer-links { display: flex; gap: 18px; }
.public-footer-links a { font-size: 13.5px; font-weight: 600; color: #2d6847; text-decoration: none; }
.public-footer-links a:hover { text-decoration: underline; }
.public-copyright { color: #8a958c; font-size: 12px; }
.public-copyright a { color: #6f7d73; text-decoration: none; }
.public-copyright a:hover { color: #2d6847; text-decoration: underline; }
@media (max-width: 640px) { .public-footer-meta { justify-items: start; text-align: left; } }

/* Contact section */
.contact-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 40px 44px; border-radius: 26px; background: #fff; border: 1px solid #e6ece5; box-shadow: 0 30px 60px -46px rgba(20, 58, 39, .45); }
.contact-copy h2 { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; color: #14201a; }
.contact-copy p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: #4f5c54; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: center; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-tile { flex: none; width: 40px; height: 40px; margin-bottom: 0; border-radius: 12px; }
.contact-list .icon-tile svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: #7d8a80; }
.contact-list a, .contact-list .contact-text { display: inline-block; margin-top: 3px; font-size: 14.5px; font-weight: 600; color: #1d4a33; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; } }
.form-section { padding-bottom: 22px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin: 0; font-size: 16px; }
.form-section > p { margin: 5px 0 17px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field { min-width: 0; display: grid; align-content: start; gap: 6px; }
.form-field label { color: #4f5b53; font-size: 12px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea, .filter-control input, .filter-control select { width: 100%; min-height: 41px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #dfe5de; border-radius: 7px; }
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field input[readonly] { color: #7b857d; background: #f4f6f3; }
.form-field > span { color: var(--danger); font-size: 11px; }
.form-field > small { color: var(--muted); font-size: 11px; }
.validation-summary { margin-bottom: 14px; color: var(--danger); }
.validation-summary:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.alert { padding: 12px 15px; margin-bottom: 17px; border: 1px solid; border-radius: 8px; font-weight: 600; }
.alert.success { color: #285d3e; background: #eef7f0; border-color: #d3e9d8; }
.alert.error { color: #8b332e; background: #fff4f2; border-color: #f2d5d1; }
.list-note { padding: 12px 16px; margin: 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.page-footer { padding-top: 26px; color: #929b93; font-size: 11px; }
.page-footer span { padding: 0 5px; }
.mobile-menu { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.payment-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.payment-status.draft { color: #725922; background: var(--amber-pale); }
.payment-status.calculated { color: #285d3e; background: var(--green-pale); }
.payout-config { max-width: none; }
.payout-detail-list { display: grid; gap: 14px; }
.payout-detail { padding: 17px; }
.payout-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.payout-detail-heading > div:first-child { display: grid; gap: 4px; }
.payout-amounts { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 11px; }
.payout-amounts span { display: grid; gap: 3px; }
.payout-amounts strong { color: var(--ink); font-size: 14px; }
.deduction-form { padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line); }
.check-field { display: flex; align-items: center; gap: 8px; color: #4f5b53; font-size: 12px; }
.check-field input { accent-color: var(--green); }
.password-control { position: relative; }
.password-control input { padding-right: 44px; }
.password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: #5c7360; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.password-toggle:hover { color: var(--green); background: #eef4ee; }
.password-toggle:focus-visible { outline: 2px solid #2d6847; outline-offset: 1px; }
.password-toggle svg { display: block; }
.password-toggle svg[hidden] { display: none; }
.filter-bar .check-field { padding-bottom: 11px; font-weight: 650; }

.auth-body { background: linear-gradient(160deg, #eef4ee, #f8faf6 55%, #eef2ea); }
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 34px 20px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; }
.auth-card { width: min(430px, 100%); display: grid; gap: 6px; padding: 30px 32px 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 60px #1d32261a; }
.auth-card h1 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.03em; }
.auth-card .heading-copy { margin: 0 0 14px; }
.auth-form { grid-template-columns: 1fr; gap: 16px; }
.auth-form .form-actions { margin-top: 4px; }
.auth-form .form-actions .button { width: 100%; }
.auth-link-row { margin: 8px 0 0; text-align: center; font-size: 12px; font-weight: 650; }
.auth-link-row a { color: var(--green); text-decoration: none; }
.auth-link-row a:hover { text-decoration: underline; }
.auth-footer { color: #929b93; font-size: 11px; }
.auth-footer span { padding: 0 5px; }

@media (max-width: 900px) {
    .main-content { padding: 28px 24px 18px; }
    .topbar { padding: 0 24px; }
    .content-shell { grid-template-columns: 190px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .data-table th, .data-table td { padding-inline: 11px; }
}

@media (max-width: 680px) {
    .topbar { height: 62px; padding: 0 16px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-copy small, .topbar-status, .sidebar { display: none; }
    .content-shell { display: block; min-height: calc(100vh - 62px); }
    .main-content { padding: 19px 15px 16px; }
    .mobile-menu { position: relative; display: block; }
    .mobile-menu > summary { list-style: none; padding: 9px 12px; color: var(--green-dark); background: var(--green-pale); border-radius: 8px; font-weight: 650; cursor: pointer; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-nav { position: absolute; z-index: 5; top: 43px; right: 0; width: 215px; display: grid; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px #2233221c; }
    .mobile-nav a { padding: 12px; border-radius: 7px; }
    .mobile-nav a:hover, .mobile-nav-group > summary:hover { background: var(--green-pale); }
    .mobile-nav-group { display: grid; }
    .mobile-nav-group > summary { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 7px; font-weight: 600; cursor: pointer; }
    .mobile-nav-group[open] > summary { color: var(--green-dark); }
    .mobile-nav-group > summary .nav-caret { margin-left: auto; }
    .mobile-nav-sub { display: grid; padding-left: 12px; }
    .mobile-nav-sub a { padding-left: 22px; font-size: 13px; }
    .mobile-nav .nav-icon { width: auto; height: auto; background: none; border-radius: 0; }
    .mobile-nav form { padding: 4px 4px 2px; }
    .mobile-nav form .button { width: 100%; }
    .welcome-banner { align-items: flex-start; flex-direction: column; padding: 22px; }
    .welcome-banner .button { width: 100%; }
    .section-heading { margin-top: 25px; }
    .section-heading h1, .section-heading h2 { font-size: 22px; }
    .date-chip { display: none; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 11px; padding: 14px; }
    .stat-icon { grid-row: span 2; }
    .stat-label { margin: 0; }
    .stat-value { grid-column: 2; margin: 4px 0 0; font-size: 25px; }
    .stat-card a { grid-column: 1 / -1; margin-top: 11px; }
    .quick-action-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; }
    .page-heading > .button { min-height: 38px; padding-inline: 11px; font-size: 12px; }
    .heading-copy { max-width: 28ch; line-height: 1.45; }
    .filter-bar { align-items: stretch; gap: 10px; padding: 12px; }
    .search-field { min-width: 100%; }
    .filter-bar > .button { flex: 1; }
    .filter-control { flex: 1 1 42%; min-width: 120px; }
    .filter-control.filter-range, .filter-control.filter-select { flex: 1 1 100%; }
    .filter-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .filter-actions .result-count { width: 100%; }
    .filter-actions .button { flex: 1; }
    .result-count { width: 100%; margin: 0; padding: 3px 2px 0; }
    .table-scroll { overflow: visible; }
    .data-table, .data-table tbody { display: block; width: 100%; }
    .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .data-table tbody { padding: 9px; }
    .data-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 9px; padding: 13px 5px; border-bottom: 1px solid var(--line); }
    .data-table tr:last-child { border-bottom: 0; }
    .data-table td { min-width: 0; display: block; padding: 0; border: 0; overflow-wrap: anywhere; font-size: 12px; }
    .data-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #879188; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
    .data-table td:first-child { grid-column: 1 / -1; }
    .data-table td[data-label="Actions"] { grid-column: 1 / -1; padding-top: 3px; }
    .row-actions { justify-content: flex-start; }
    .inline-editor-form { position: fixed; top: 50%; left: 50%; right: auto; width: min(88vw, 380px); max-height: 82vh; overflow-y: auto; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax #15231a70, 0 12px 28px #2233221c; }
    .finance-management-links { display: grid; grid-template-columns: 1fr; }
    .payout-detail-heading { flex-direction: column; }
    .payout-amounts { width: 100%; justify-content: space-between; }
    .payout-detail { padding: 14px; }
    .deduction-form .form-actions { position: static; padding: 0; }
    .form-panel { padding: 17px 14px; }
    .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .form-actions { position: sticky; bottom: 0; padding: 10px 0 0; background: #fff; }
    .form-actions .button { flex: 1; }
    .edit-dialog, .edit-dialog.farmer-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
    .edit-dialog > form { max-height: calc(100dvh - 20px); padding: 0 18px 20px; gap: 16px; }
    .edit-dialog .section-heading.page-heading { padding: 17px 18px 15px; margin: 0 -18px; }
    .edit-dialog .section-heading h2 { font-size: 19px; }
    .edit-dialog .form-actions { bottom: 0; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); margin: 0 -18px -20px; }
    .edit-dialog .form-actions .button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ---------- Notifications and bulk SMS ---------- */
.status-tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-tag.sent { color: #285d3e; background: var(--green-pale); }
.status-tag.queued { color: #725922; background: var(--amber-pale); }
.status-tag.failed { color: #8c2f2a; background: #fdeceb; }
.status-tag.none { color: #5d6660; background: #eef1ee; }
.error-text { color: var(--danger); font-size: 11px; }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px 16px; margin: 18px 0; border-radius: 10px; font-size: 12px; }
.callout strong { font-weight: 750; }
.callout.ok { color: #285d3e; background: var(--green-pale); }
.callout.warning { color: #725922; background: var(--amber-pale); }
.composer-panel .section-heading { padding: 17px 18px 0; margin: 0 0 15px; }
.composer-panel .form-section { padding: 0 18px; }
.composer-panel .form-section > .check-field { margin-top: 15px; }
.composer-panel .form-actions { padding: 16px 18px 18px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field code { padding: 1px 5px; background: #f1f4f0; border-radius: 4px; font-size: 11px; }
.sms-count { color: #4f5b53; font-weight: 650; }
.preview-panel .section-heading { padding: 17px 18px 0; margin: 0 0 12px; }
.preview-body { padding: 0 18px 18px; }
.preview-facts { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 12px; padding: 0; list-style: none; }
.preview-facts li { display: grid; gap: 4px; }
.preview-facts span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.preview-facts strong { font-size: 19px; letter-spacing: -.02em; }
.preview-warning { margin: 0 0 12px; color: #8c5a20; font-size: 12px; font-weight: 650; }
.preview-samples { margin: 0; color: var(--muted); font-size: 11px; }
.message-panel .section-heading { padding: 17px 18px 0; margin: 0 0 15px; }
.message-body { margin: 0; padding: 16px 18px; color: var(--ink); background: #f7f9f6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.message-panel .message-body { border-top: 1px solid var(--line); }
.message-panel .preview-samples { padding: 14px 18px 0; }
.panel-note { margin: 0; padding: 14px 18px; color: var(--muted); background: #f7f9f6; border-top: 1px solid var(--line); font-size: 11px; }
.notification-list { display: grid; gap: 14px; }
.notification-item { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.notification-item.unread { border-left: 4px solid var(--green); }
.notification-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.notification-item .message-body { border: 1px solid var(--line); border-radius: 9px; }
.nav-count { margin-left: auto; padding: 2px 7px; color: #fff; background: var(--green); border-radius: 999px; font-size: 10px; font-weight: 750; }
