/* ============================================================
   BLISS FARMS — green design system
   ============================================================ */
:root {
    --forest: #0b3b24;
    --forest-2: #0f4a2d;
    --forest-3: #145c37;
    --green: #1f8a4c;
    --green-strong: #167a41;
    --green-bright: #2fb562;
    --lime: #b7e26b;
    --mint: #e9f6ee;
    --mint-2: #d7eedf;
    --cream: #f6f9f4;
    --card: #ffffff;
    --ink: #14261a;
    --ink-2: #2c3f32;
    --muted: #6b7c70;
    --line: #e3ebe3;
    --line-strong: #d2e0d5;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --warning: #9a6700;
    --warning-bg: #fff4d6;
    --info: #17648a;
    --info-bg: #e6f3fa;
    --success: #157347;
    --success-bg: #e4f5ea;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 44, 27, .04), 0 10px 28px -18px rgba(16, 44, 27, .28);
    --shadow-lg: 0 24px 60px -24px rgba(9, 45, 26, .35);
    --font: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Hairline green scrollbars everywhere in the console */
* { scrollbar-width: thin; scrollbar-color: #2f8f52 transparent; }
*::-webkit-scrollbar { width: .2px; height: .2px; background: transparent; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2f8f52; border-radius: 1px; }
*::-webkit-scrollbar-thumb:hover { background: var(--green-strong); }
*::-webkit-scrollbar-corner { background: transparent; }

html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    font-size: 14.5px;
    line-height: 1.55;
}
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 1.45rem; font-weight: 100; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8rem; }
a { color: var(--green-strong); text-decoration: none; }
a:hover { color: var(--forest); }
img { max-width: 100%; }
code, pre { font-family: Consolas, ui-monospace, monospace; font-size: .9em; }
.icon { flex: 0 0 auto; }
.text-muted { color: var(--muted) !important; }
.text-green { color: var(--green-strong) !important; }
.text-danger { color: var(--danger) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.nowrap { white-space: nowrap; }
.small { font-size: .82rem; }

/* ------------------------------------------------------------ app shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 262px;
    flex: 0 0 262px;
    background:
        radial-gradient(1200px 400px at -20% 0%, rgba(183, 226, 107, .12), transparent 55%),
        radial-gradient(700px 300px at 120% 100%, rgba(47, 181, 98, .18), transparent 60%),
        linear-gradient(170deg, #0a2f1c 0%, #0c3b24 45%, #0e452a 100%);
    color: #dfeee4;
    padding: 22px 16px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 50;
    scrollbar-width: thin;
    scrollbar-color: var(--lime) transparent;
}
.sidebar::-webkit-scrollbar { width: .2px; background: transparent; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 1px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 18px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--lime), #6fc66a 55%, var(--green-bright));
    color: #0a2f1c; font-weight: 800; letter-spacing: -.04em; font-size: .95rem;
    box-shadow: 0 6px 18px -6px rgba(183, 226, 107, .55), inset 0 1px 0 rgba(255,255,255,.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-text small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #96b9a3; margin-top: 2px; }
.farm-chip {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 9px 12px; margin: 0 4px 16px;
}
.farm-chip strong { display: block; font-size: .78rem; color: #e9f6ee; }
.farm-chip small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb69c; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(183,226,107,.12); }
.nav { flex: 1; }
.nav-group { margin-bottom: 14px; }
.nav-label {
    font-size: .63rem; text-transform: uppercase; letter-spacing: .14em;
    color: #7fa78d; padding: 6px 12px; font-weight: 600;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: 10px; margin-bottom: 2px;
    color: #c9dcce; font-size: .855rem; font-weight: 500;
    transition: background .16s, color .16s, transform .16s;
}
.nav-item .icon { color: #8eb89b; transition: color .16s; }
.nav-item:hover { background: rgba(255,255,255,.065); color: #fff; }
.nav-item:hover .icon { color: var(--lime); }
.nav-item.active {
    background: linear-gradient(90deg, rgba(183,226,107,.18), rgba(47,181,98,.09));
    color: #fff;
    box-shadow: inset 3px 0 0 var(--lime);
}
.nav-item.active .icon { color: var(--lime); }
.nav-badge {
    margin-left: auto; font-style: normal; font-size: .66rem; font-weight: 700;
    background: var(--green-bright); color: #fff; padding: 1px 7px; border-radius: 20px;
}
.nav-badge.warn { background: #e9b949; color: #3d2c00; }
.sidebar-foot { margin-top: 12px; padding: 12px 4px 0; border-top: 1px solid rgba(255,255,255,.08); }
.storefront-link {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; color: #a8c9b3; padding: 7px 10px; border-radius: 9px;
}
.storefront-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 4px; }
.sidebar-user > div { min-width: 0; flex: 1; }
.sidebar-user strong { display: block; font-size: .8rem; color: #f0f8f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { display: block; font-size: .68rem; color: #8fb69c; }
.logout { color: #8fb69c; padding: 6px; border-radius: 8px; display: inline-flex; }
.logout:hover { background: rgba(255,255,255,.08); color: #fff; }

.avatar {
    width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #eaf7e8, #c8ebcd);
    color: var(--forest); font-weight: 700; font-size: .74rem;
    border: 1px solid rgba(255,255,255,.16);
}
.avatar.sm { width: 32px; height: 32px; font-size: .68rem; background: var(--mint); border-color: var(--mint-2); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 72px; flex: 0 0 72px;
    display: flex; align-items: center; gap: 16px;
    padding: 0 28px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.topbar-title { flex: 1; min-width: 0; }
.eyebrow {
    display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .14em;
    color: var(--green); font-weight: 700; margin-bottom: 1px;
}
.topbar-title h1 { font-size: 1.24rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--mint); color: var(--forest); }
.bell .dot {
    position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 10px; background: var(--green-bright); color: #fff;
    font-size: .62rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.user-chip {
    display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px;
    border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.user-chip:hover { background: var(--mint); color: var(--ink); }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip-text strong { font-size: .78rem; }
.user-chip-text small { font-size: .64rem; color: var(--muted); }
.menu-btn { display: none; }

.page { padding: 26px 28px 34px; flex: 1; max-width: 1500px; width: 100%; margin: 0 auto; }
.app-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 16px 28px 22px; color: var(--muted); font-size: .72rem;
    border-top: 1px solid var(--line);
}
.app-foot-left { display: flex; flex-direction: column; gap: 3px; }
.app-foot-brand { display: flex; align-items: center; gap: 9px; color: var(--forest); font-weight: 700; font-size: .78rem; }
.app-foot-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.app-foot-brand em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .72rem; }
.app-foot-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-foot .foot-social { margin-top: 0; }
.app-foot .foot-social a { width: 28px; height: 28px; border-radius: 8px; background: #f3f8f3; border-color: var(--line); color: var(--green); }
.app-foot .foot-social a:hover { background: var(--lime); color: #0b2f1c; border-color: transparent; }
.app-foot .pay-strip { margin-top: 0; }

/* social buttons and payment marks used in every footer */
.foot-social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.foot-social a {
    width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    color: #d5e8dc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); text-decoration: none;
    transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.foot-social a:hover { background: var(--lime); color: #0b2f1c; border-color: transparent; transform: translateY(-2px); }
.pay-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.pay-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px;
    border-radius: 9px; min-height: 25px; min-width: 38px;
    font-size: .68rem; font-weight: 800; letter-spacing: .03em; line-height: 1;
    box-shadow: 0 8px 18px -12px rgba(0,0,0,.7);
}
.pay-badge.mpesa { background: #43b02a; color: #fff; }
.pay-badge.paypal { background: #fff; color: #003087; font-style: italic; }
.pay-badge.paypal .pp {
    display: inline-flex; width: 15px; height: 15px; border-radius: 4px; background: #009cde; color: #fff;
    font-style: normal; font-size: .62rem; align-items: center; justify-content: center;
}
.pay-badge.paypal .pp-l { color: #009cde; }
.pay-badge.card-visa { background: #fff; color: #1a1f71; font-style: italic; font-size: .76rem; letter-spacing: .06em; font-weight: 900; padding: 6px 12px; }
.pay-badge.card-mc { background: #fff; color: #231f20; font-size: .6rem; letter-spacing: 0; gap: 6px; font-weight: 700; }
.pay-badge.card-mc .mc-rings { position: relative; display: inline-block; width: 23px; height: 14px; }
.pay-badge.card-mc .mc-rings i { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; }
.pay-badge.card-mc .mc-rings i:first-child { left: 0; background: #eb001b; }
.pay-badge.card-mc .mc-rings i:last-child { right: 0; background: #f79e1b; mix-blend-mode: multiply; }
.pay-badge.card-amex { background: #006fcf; color: #fff; font-size: .6rem; letter-spacing: .08em; }
.pay-note { font-size: .68rem; line-height: 1.6; color: #8fb09b; margin: 10px 0 0; }
.auth-foot { margin-top: 16px; display: flex; justify-content: center; }
.auth-foot .foot-social a { color: var(--forest); background: #f3f8f3; border-color: var(--line); width: 30px; height: 30px; }
.auth-foot .foot-social a:hover { background: var(--lime); color: #0b2f1c; }
.sidebar-scrim { display: none; }

/* ------------------------------------------------------------ components */
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head .sub { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.card-flush .card-head { padding: 18px 20px 0; }

.page-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h2 { font-size: 1.35rem; }
.page-head p { color: var(--muted); margin: 4px 0 0; font-size: .85rem; max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 1px solid transparent; border-radius: 10px;
    padding: 9px 15px; font-size: .82rem; font-weight: 600;
    cursor: pointer; line-height: 1.25; transition: background .15s, border-color .15s, transform .05s, color .15s;
    white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--green), var(--green-strong)); color: #fff; box-shadow: 0 8px 16px -10px rgba(22,122,65,.8); }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn-outline:hover { background: var(--mint); border-color: var(--mint-2); color: var(--forest); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--mint); color: var(--forest); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c12; color: #fff; }
.btn-lime { background: var(--lime); color: #17360f; }
.btn-lime:hover { background: #a5d550; color: #17360f; }
.btn-sm { padding: 6px 10px; font-size: .75rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 20px; font-size: .68rem; font-weight: 700;
    white-space: nowrap; letter-spacing: .01em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eef1ee; color: #5b6b60; }
.badge-lime { background: #eef8d8; color: #4d6b11; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 16px 14px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
    border-radius: 50%; background: radial-gradient(circle, rgba(47,181,98,.09), transparent 70%);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.stat-ico {
    width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--mint); color: var(--green-strong);
}
.stat-value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; }
.stat-meta { font-size: .72rem; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.trend-up { color: var(--success); font-weight: 700; }
.trend-down { color: var(--danger); font-weight: 700; }

.hero-card {
    background:
        radial-gradient(700px 240px at 100% 0%, rgba(183,226,107,.25), transparent 55%),
        linear-gradient(120deg, #0b3b24, #145c37 58%, #1c7646);
    color: #fff; border-radius: 20px; padding: 26px 28px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-card::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px;
    border: 1px solid rgba(255,255,255,.09); border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02);
}
.hero-card h2 { color: #fff; font-size: 1.45rem; }
.hero-card p { color: #c9e2d2; max-width: 620px; margin: 8px 0 0; }
.hero-kpis { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.hero-kpis div { line-height: 1.25; }
.hero-kpis strong { display: block; font-size: 1.3rem; color: #fff; }
.hero-kpis span { font-size: .7rem; color: #a9cdb7; text-transform: uppercase; letter-spacing: .08em; }
.hero-actions { margin-top: 20px; display: flex; gap: 9px; flex-wrap: wrap; position: relative; z-index: 1; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table th {
    text-align: left; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; padding: 10px 12px;
    border-bottom: 1px solid var(--line); background: #fafcf9; white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid #eef3ee; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfdfa; }
.table-sm td, .table-sm th { padding: 7px 9px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .strong { font-weight: 600; color: var(--ink); }
.table .sub { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
.table-empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.table-empty .icon { color: #b6c9ba; margin-bottom: 8px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.search {
    display: flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; height: 38px; min-width: 220px;
}
.search input { border: 0; outline: 0; background: transparent; height: 100%; width: 100%; font: inherit; font-size: .82rem; }
.search .icon { color: var(--muted); }

.pill-tabs { display: inline-flex; background: #eef3ee; border-radius: 10px; padding: 3px; gap: 2px; }
.pill-tabs a {
    padding: 6px 13px; border-radius: 8px; font-size: .76rem; font-weight: 600; color: var(--muted);
}
.pill-tabs a.active { background: #fff; color: var(--forest); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pill-tabs a:hover { color: var(--forest); }

/* ------------------------------------------------------------ forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field > span { font-size: .74rem; color: #43584a; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 9px;
    padding: 9px 11px; font: inherit; font-size: .84rem; font-weight: 400; color: var(--ink);
    background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(47,181,98,.13);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green); }
.field .hint { font-size: .7rem; color: var(--muted); font-weight: 400; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.form-section { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 16px; }
.form-section h3 { margin-bottom: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check {
    display: flex; align-items: center; gap: 9px; padding: 8px 10px;
    border: 1px solid var(--line); border-radius: 9px; font-size: .8rem; font-weight: 500; background: #fff;
}
.check input { accent-color: var(--green); width: 15px; height: 15px; }
.inline-form { display: inline; }

.callout {
    border: 1px solid var(--line); background: #fbfdf9; border-radius: 12px;
    padding: 13px 15px; font-size: .82rem; color: var(--ink-2); margin-bottom: 16px;
}
.callout strong { color: var(--ink); }
.callout-success { background: var(--success-bg); border-color: #c7e7d2; }
.callout-warning { background: var(--warning-bg); border-color: #f0dfae; }
.callout-info { background: var(--info-bg); border-color: #cbe7f4; }
.callout-danger { background: var(--danger-bg); border-color: #f3c9c4; }

.flash {
    display: flex; align-items: center; gap: 10px; padding: 11px 15px; margin-bottom: 16px;
    border-radius: 11px; font-size: .82rem; font-weight: 500;
    background: var(--success-bg); color: var(--success); border: 1px solid #c9e8d4;
    animation: slidein .25s ease;
}
.flash-error { background: var(--danger-bg); color: var(--danger); border-color: #f3c9c4; }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: #f0dfae; }
.flash-info { background: var(--info-bg); color: var(--info); border-color: #cbe7f4; }
.flash-close { margin-left: auto; background: transparent; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; line-height: 1; }
@keyframes slidein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ auth */
.auth-body {
    min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center;
    padding: 28px 18px;
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(47,181,98,.25), transparent 60%),
        radial-gradient(800px 500px at 110% 110%, rgba(183,226,107,.18), transparent 55%),
        linear-gradient(150deg, #082b19, #0c3b24 55%, #0f4a2d);
}
.auth-card {
    width: 100%; max-width: 430px; background: #fff; border-radius: 22px;
    padding: 34px 32px 28px; text-align: center; box-shadow: var(--shadow-lg);
}
.auth-card .brand-mark { width: 54px; height: 54px; font-size: 1.1rem; border-radius: 16px; margin-bottom: 16px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 4px; }
.auth-card .auth-tag { color: var(--muted); font-size: .82rem; margin-bottom: 22px; }
.auth-form { text-align: left; display: flex; flex-direction: column; gap: 13px; }
.auth-meta { margin-top: 18px; font-size: .72rem; color: var(--muted); }
.auth-demo {
    margin-top: 18px; text-align: left; border-top: 1px dashed var(--line); padding-top: 14px;
    font-size: .72rem; color: var(--muted);
}
.auth-demo code { background: var(--mint); padding: 1px 5px; border-radius: 5px; color: var(--forest); }

/* ------------------------------------------------------------ POS */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.pos-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 11px; }
.pos-tile {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff;
    display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .06s; font-family: inherit;
}
.pos-tile:hover { border-color: var(--green-bright); box-shadow: 0 8px 20px -14px rgba(22,122,65,.6); }
.pos-tile:active { transform: scale(.99); }
.pos-tile .cat { font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; color: var(--green); font-weight: 700; }
.pos-tile strong { font-size: .85rem; line-height: 1.25; color: var(--ink); }
.pos-tile .price { font-size: .82rem; font-weight: 800; color: var(--forest); margin-top: auto; }
.pos-tile .stock { font-size: .68rem; color: var(--muted); }
.pos-tile.out { opacity: .55; }
.pos-tile.out .stock { color: var(--danger); font-weight: 700; }
.pos-cart { position: sticky; top: 90px; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef3ee; font-size: .81rem; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .name { flex: 1; min-width: 0; }
.cart-line .name strong { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line .name small { color: var(--muted); font-size: .7rem; }
.qty-control { display: inline-flex; align-items: center; gap: 3px; }
.qty-control button {
    width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-strong);
    background: #fff; cursor: pointer; font-weight: 700; color: var(--ink-2); line-height: 1;
}
.qty-control button:hover { background: var(--mint); }
.qty-control span { min-width: 24px; text-align: center; font-weight: 700; font-size: .76rem; }
.cart-total { display: flex; justify-content: space-between; padding: 7px 0; font-size: .82rem; }
.cart-total.grand { border-top: 2px solid var(--forest); margin-top: 7px; padding-top: 11px; font-size: 1.02rem; font-weight: 800; }
.cart-total.grand span:last-child { color: var(--forest); }
.pos-shopbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pos-shopbar .shop-pick { min-width: 250px; }

.receipt {
    max-width: 380px; margin: 0 auto; background: #fff; border: 1px dashed var(--line-strong);
    border-radius: 14px; padding: 24px; font-size: .8rem;
}
.receipt h3 { text-align: center; font-size: 1.15rem; }
.receipt .r-center { text-align: center; }
.receipt .r-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.receipt .r-divider { border-top: 1px dashed #b9c9bd; margin: 10px 0; }
.receipt .r-total { font-weight: 800; font-size: .95rem; }

/* ------------------------------------------------------------ storefront */
.shop-body { background: #fbfdf8; }
.shop-header {
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.shop-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 12px 22px;
    display: flex; align-items: center; gap: 18px;
}
.shop-header .brand { padding: 0; color: var(--ink); }
.shop-header .brand-text strong { color: var(--forest); }
.shop-header .brand-text small { color: var(--muted); }
.shop-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.shop-nav a { padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.shop-nav a:hover, .shop-nav a.active { background: var(--mint); color: var(--forest); }
.cart-pill {
    display: inline-flex; align-items: center; gap: 7px; background: var(--forest); color: #fff !important;
    padding: 8px 14px !important; border-radius: 20px !important;
}
.cart-pill:hover { background: var(--forest-2); }
.cart-pill em { font-style: normal; background: var(--lime); color: #17360f; font-size: .66rem; font-weight: 800; border-radius: 20px; padding: 1px 6px; }
.shop-main { max-width: 1200px; margin: 0 auto; padding: 26px 22px 60px; }
.shop-hero {
    border-radius: 24px; padding: 46px 42px; color: #fff; overflow: hidden; position: relative;
    background:
        radial-gradient(600px 300px at 85% 20%, rgba(183,226,107,.22), transparent 60%),
        linear-gradient(120deg, #0a3320, #145c37 60%, #23834e);
    box-shadow: var(--shadow-lg);
}
.shop-hero::after {
    content: ""; position: absolute; right: -60px; bottom: -160px; width: 360px; height: 360px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 45px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02);
}
.shop-hero .kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--lime); font-weight: 700; }
.shop-hero h1 { color: #fff; font-size: 2.1rem; margin: 8px 0 10px; letter-spacing: -.03em; max-width: 620px; }
.shop-hero p { color: #c9e2d2; max-width: 560px; font-size: .94rem; }
.shop-hero .btn { margin-top: 8px; }
.location-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
    box-shadow: var(--shadow); margin-top: -26px; position: relative; z-index: 2;
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.location-card .field { flex: 1; min-width: 180px; }
.shop-section { margin-top: 34px; }
.shop-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-section-head h2 { font-size: 1.3rem; }
.shop-section-head p { color: var(--muted); font-size: .82rem; margin: 3px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover { box-shadow: 0 20px 40px -26px rgba(11,59,36,.45); transform: translateY(-2px); border-color: var(--mint-2); }
.product-thumb {
    height: 130px; background:
        radial-gradient(circle at 30% 30%, rgba(183,226,107,.35), transparent 50%),
        linear-gradient(140deg, #e6f4e8, #cfe9d6);
    display: flex; align-items: center; justify-content: center; color: var(--green); position: relative;
}
.product-thumb .tag {
    position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.9);
    padding: 2px 8px; border-radius: 20px; font-size: .62rem; font-weight: 700; color: var(--green-strong);
    text-transform: uppercase; letter-spacing: .05em;
}
.product-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-body .cat { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.product-body h3 { font-size: .92rem; }
.product-body .origin { font-size: .7rem; color: var(--muted); }
.product-body .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.product-body .price { font-weight: 800; color: var(--forest); font-size: .95rem; }
.product-body .price small { font-weight: 500; color: var(--muted); font-size: .68rem; }
.product-body .stock-note { font-size: .66rem; color: var(--muted); }
.shop-cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--green); }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.shop-flash { max-width: 1200px; margin: 14px auto 0; padding: 0 22px; }
/* ---------- storefront footer: public website + online shop ---------- */
.shop-footer, .site-footer {
    background: radial-gradient(120% 140% at 10% 0%, #0f4a2d 0%, #072a1a 45%, #041a10 100%);
    color: #a9c7b4; margin-top: 0; border-top: 1px solid rgba(137,209,64,.18);
}
.shop-footer-inner, .site-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 48px 22px 34px;
    display: grid; grid-template-columns: 1.55fr .85fr 1.2fr 1.05fr; gap: 32px; align-items: start;
}
.shop-footer strong, .site-footer strong { color: #fff; display: block; margin-bottom: 4px; font-size: .84rem; }
.shop-footer a, .site-footer a { color: #c3dccb; }
.shop-footer a:hover, .site-footer a:hover { color: #fff; }
.foot-title {
    position: relative; color: var(--lime) !important; font-size: .76rem !important;
    letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px !important; padding-bottom: 11px;
}
.foot-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--lime), rgba(137,209,64,0));
}
.foot-col a, .foot-col span { display: block; color: #b9d3c2; font-size: .79rem; padding: 3px 0; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-link { display: flex !important; align-items: center; gap: 9px; padding: 5px 0 !important; transition: color .15s, transform .15s; }
.foot-link::before { content: "\203A"; color: var(--lime); font-size: 1.05rem; line-height: 1; font-weight: 700; }
.foot-link:hover { transform: translateX(3px); color: #fff; }
.foot-mpesa-link { margin-top: 12px; }
.foot-contact { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: .79rem; color: #b9d3c2; line-height: 1.55; }
.foot-contact .foot-ic {
    width: 27px; height: 27px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(137,209,64,.12); color: var(--lime); border: 1px solid rgba(137,209,64,.24);
}
.foot-contact span, .foot-contact a { display: block; padding: 0 !important; font-size: .79rem; color: #b9d3c2; }
.foot-contact a:hover { color: #fff; }
.foot-blurb { font-size: .79rem; line-height: 1.75; color: #96b8a2; margin: 14px 0 0; max-width: 320px; }
.shop-foot-brand, .site-foot-brand { display: inline-flex; align-items: center; gap: 11px; padding: 0; }
.shop-foot-brand .brand-mark, .site-foot-brand .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.shop-foot-brand strong, .site-foot-brand strong { font-size: .98rem; letter-spacing: -.01em; }
.shop-foot-brand small, .site-foot-brand small { display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: #8fb09b; font-weight: 600; }
.shop-footer-base, .site-footer-base {
    border-top: 1px solid rgba(255,255,255,.09); max-width: 1200px; margin: 0 auto;
    padding: 16px 22px 26px; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; font-size: .72rem; color: #8fb09b;
}
.foot-base-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-base-links a { color: #c3dccb; text-decoration: none; }
.foot-base-links a:hover { color: var(--lime); }
@media (max-width: 900px) {
    .shop-footer-inner, .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 540px) {
    .shop-footer-inner, .site-footer-inner { grid-template-columns: minmax(0, 1fr); padding: 36px 20px 26px; }
}
.shop-service-note {
    background: var(--mint); border: 1px solid var(--mint-2); color: var(--forest);
    border-radius: 12px; padding: 10px 14px; font-size: .8rem; display: flex; gap: 9px; align-items: center;
}
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state h3 { margin: 10px 0 4px; color: var(--ink); }
.empty-state .icon { color: #a9c3b0; }

/* ------------------------------------------------------------ misc */
.avatar-lg { width: 54px; height: 54px; border-radius: 14px; font-size: .95rem; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.detail-list .item { border-bottom: 1px solid #f0f4f0; padding-bottom: 9px; }
.detail-list .item span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.detail-list .item strong { font-size: .86rem; font-weight: 600; }
.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f0f4f0; font-size: .8rem; }
.mini-item:last-child { border-bottom: 0; }
.mini-item .dot-ind { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex: 0 0 auto; }
.mini-item .grow { flex: 1; min-width: 0; }
.mini-item strong { display: block; font-size: .8rem; }
.mini-item small { color: var(--muted); font-size: .7rem; }
.progress { height: 6px; background: #edf2ed; border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--lime)); border-radius: 10px; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--mint-2); }
.timeline-item { position: relative; padding: 0 0 16px 10px; font-size: .8rem; }
.timeline-item::before { content: ""; position: absolute; left: -18px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--mint-2); }
.timeline-item strong { display: block; font-size: .82rem; }
.timeline-item small { color: var(--muted); font-size: .7rem; }

.report-bars { display: flex; flex-direction: column; gap: 12px; }
.report-bar { font-size: .78rem; }
.report-bar .bar-head { display: flex; justify-content: space-between; margin-bottom: 5px; }
.report-bar .bar-head span:last-child { font-weight: 700; }

/* ----------------------------------------------------------- tabs & forms */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px 10px 0 0;
    font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid transparent; border-bottom: 0;
    margin-bottom: -1px; text-decoration: none;
}
.tab:hover { color: var(--green-strong); background: #f3f8f3; }
.tab.active { color: var(--forest); background: #fff; border-color: var(--line); border-bottom-color: #fff; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 8px 0 0; }
.code-input {
    width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem;
    line-height: 1.5; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: #fbfdfb; color: var(--ink);
}
.code-input:focus { outline: 2px solid var(--mint-2); border-color: var(--green); }
.row-active { background: #f4faf5; }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.recovery-grid code { background: var(--mint); border: 1px solid var(--mint-2); border-radius: 8px; padding: 7px 9px; text-align: center; font-weight: 700; letter-spacing: .08em; color: var(--forest); }
.secret-box { background: #f6faf6; border: 1px dashed var(--green); border-radius: 12px; padding: 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.secret-box code { font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; color: var(--forest); word-break: break-all; }
.setup-steps { margin: 0 0 4px; padding-left: 20px; font-size: .82rem; display: flex; flex-direction: column; gap: 6px; }
.auth-intro strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.auth-intro p { margin: 0 0 10px; }
.auth-recovery { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .82rem; }
.auth-recovery summary { cursor: pointer; color: var(--green-strong); font-weight: 600; }

/* ------------------------------------------------------------- print sheet */
.print-sheet { background: #fff; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--forest); padding-bottom: 14px; margin-bottom: 18px; }
.print-head strong { display: block; font-size: 1.05rem; color: var(--forest); }
.print-head small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.print-head .print-title { text-align: right; }
.print-head .print-title h3 { font-size: 1.1rem; margin: 0; }
.print-head .print-title span { display: block; font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); }
.print-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; font-size: .72rem; color: var(--muted); }
.payslip-net { display: flex; justify-content: space-between; align-items: center; background: var(--mint); border: 1px solid var(--mint-2); border-radius: 12px; padding: 14px 18px; margin-top: 14px; }
.payslip-net span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--green-strong); }
.payslip-net strong { font-size: 1.35rem; color: var(--forest); }
.brand-mark.sm { width: 30px; height: 30px; font-size: .7rem; border-radius: 9px; display: inline-flex; margin-bottom: 6px; }
.brand-mark svg { display: block; }
.brand-mark .brand-leaf { filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)); }

/* --------------------------------------------------------- books of account */
.statement { background: #fff; overflow-x: auto; }
.statement-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 2px solid var(--forest); padding-bottom: 14px; }
.statement-brand { display: flex; gap: 12px; align-items: flex-start; }
.statement-brand strong { display: block; font-size: 1.12rem; color: var(--forest); letter-spacing: -.01em; }
.statement-brand span { display: block; font-size: .74rem; color: var(--muted); margin-top: 1px; }
.statement-contacts { text-align: right; font-size: .74rem; color: var(--muted); line-height: 1.65; }
.statement-contacts strong { color: var(--ink); font-weight: 700; margin-right: 4px; }
.statement-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 16px 0 4px; }
.statement-title h3 { font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; margin: 0; color: var(--forest); }
.statement-title p { margin: 3px 0 0; font-size: .76rem; color: var(--muted); }
.statement-ref { text-align: right; font-size: .72rem; color: var(--muted); line-height: 1.5; }
.statement-ref strong { display: block; font-family: ui-monospace, monospace; color: var(--ink); font-size: .8rem; }
table.ledger { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 10px; }
table.ledger th { text-align: left; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding: 7px 8px; font-weight: 700; }
table.ledger td { padding: 6px 8px; border-bottom: 1px dotted #e6eee4; vertical-align: top; }
table.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ledger .code { font-family: ui-monospace, monospace; font-size: .72rem; color: var(--muted); }
table.ledger tr.ledger-group td { background: var(--mint); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: .66rem; color: var(--green-strong); border-bottom: 1px solid var(--mint-2); padding: 8px; }
table.ledger tr.is-subtotal td { font-weight: 700; border-top: 1px solid var(--line-strong); border-bottom: 0; color: var(--ink); }
table.ledger tr.is-total td { font-weight: 800; border-top: 2px solid var(--forest); border-bottom: 3px double var(--forest); color: var(--forest); font-size: .86rem; padding-top: 9px; padding-bottom: 9px; }
table.ledger tr.is-net td { font-weight: 800; background: var(--mint); border-top: 2px solid var(--forest); color: var(--forest); }
.statement-note { margin: 14px 0 0; font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stamp { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--mint-2); background: var(--mint); color: var(--green-strong); }
.statement-foot { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); }
@media (max-width: 760px) {
    table.ledger { font-size: .74rem; }
    table.ledger th, table.ledger td { padding: 5px 6px; }
    .statement-head { flex-direction: column; gap: 10px; }
    .statement-contacts { text-align: left; }
    .statement-title { flex-direction: column; align-items: flex-start; gap: 4px; }
    .statement-ref { text-align: left; }
}

@media print {
    .no-print, .pill-tabs, .stat-grid { display: none !important; }
    .statement { padding: 0; overflow: visible; }
    .statement-head { border-color: #0b3b24; flex-direction: row; }
    .statement-title { margin-top: 10px; }
    table.ledger { font-size: 9.5pt; }
    table.ledger tr { page-break-inside: avoid; }
    .statement-foot { border-color: #ccc; }
}

/* ------------------------------------------------------- date / time fields */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"] {
    border: 1px solid var(--line-strong); border-radius: 9px;
    padding: 8px 10px; min-height: 38px; font: inherit; font-size: .82rem;
    color: var(--ink); background-color: #fff; color-scheme: light;
    transition: border-color .15s, box-shadow .15s;
}
input[type="date"]:hover, input[type="time"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover {
    border-color: #b6c9bc;
}
input[type="date"]:focus, input[type="time"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus {
    outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(47,181,98,.13);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: .55; padding: 2px; border-radius: 4px;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1; background: var(--mint);
}
input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.field input[type="date"], .field input[type="time"], .field input[type="month"] { padding: 8px 11px; }

/* ------------------------------------------------------------ product art */
.product-thumb { overflow: hidden; position: relative; }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .tag { z-index: 2; }
.thumb img, .table-thumb { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.table-thumb { width: 34px; height: 34px; border: 1px solid var(--line); }
.product-shot { width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--line); }
.product-cell { display: flex; align-items: center; gap: 10px; }
input[type="file"] { font: inherit; font-size: .78rem; color: var(--muted); }
input[type="file"]::file-selector-button {
    border: 1px solid var(--line-strong); background: #fff; color: var(--forest);
    font: inherit; font-size: .78rem; font-weight: 600; padding: 7px 12px;
    border-radius: 8px; margin-right: 10px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--mint); border-color: var(--mint-2); }

/* ------------------------------------------------------- public website */
.site-body { background: #fbfcf8; color: var(--ink); }
.site-ribbon { background: var(--forest); color: #d9ecdd; font-size: .76rem; padding: 8px 18px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; flex-wrap: wrap; }
.site-ribbon a { color: var(--lime); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,252,248,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #e6eee4; }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 18px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand .brand-text strong { color: var(--forest); }
.site-brand .brand-text small { color: var(--muted); font-size: .66rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: #3f5647; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--forest); background: #eef6ee; }
.site-nav-shop { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; background: var(--green); color: #fff !important; border-radius: 22px; padding: 9px 16px; }
.site-nav-shop:hover { background: var(--forest); color: #fff !important; }
.site-menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--forest); }
.site-main { min-height: 50vh; }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.site-hero { position: relative; min-height: 520px; display: flex; align-items: center; background-image: var(--hero-image); background-size: cover; background-position: center; }
.site-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,34,21,.88), rgba(8,44,27,.55) 55%, rgba(8,44,27,.18)); }
.site-hero-inner { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; width: 100%; }
.site-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 800; color: var(--lime); margin-bottom: 10px; }
.site-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; max-width: 720px; }
.site-hero h1 span { display: block; font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 500; color: #cfe6d6; letter-spacing: 0; margin-top: 14px; max-width: 600px; line-height: 1.5; }
.site-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.site-hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: #b9d6c3; font-size: .76rem; }
.site-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.site-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: .84rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.site-btn:hover { transform: translateY(-1px); }
.site-btn-primary { background: var(--lime); color: #14301f; }
.site-btn-primary:hover { background: #c6ec7e; color: #14301f; }
.site-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.site-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.site-btn-small { padding: 7px 14px; border-radius: 9px; background: var(--green); color: #fff; font-size: .74rem; }
.site-btn-small:hover { background: var(--forest); color: #fff; }
.site-section { padding: 62px 0; }
.site-section-tight { padding: 34px 0; }
.site-section-soft { background: #f2f7ef; }
.site-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.site-section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.site-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; color: var(--green-strong); }
.site-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.site-feature { background: #fff; border: 1px solid #e4ece1; border-radius: 16px; padding: 22px; box-shadow: 0 10px 26px -24px rgba(11,59,36,.5); }
.site-feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.site-feature h3 { font-size: .98rem; margin-bottom: 5px; }
.site-feature p { color: var(--muted); font-size: .82rem; margin: 0; line-height: 1.6; }
.site-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 42px; align-items: center; }
.site-story h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 14px; }
.site-prose { color: #47594c; font-size: .9rem; line-height: 1.75; }
.site-prose p { margin: 0 0 12px; }
.site-story-media { position: relative; }
.site-story-media img { width: 100%; border-radius: 20px; display: block; object-fit: cover; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.site-story-media .site-story-second { position: absolute; right: -16px; bottom: -28px; width: 46%; aspect-ratio: 1/1; border: 6px solid #fbfcf8; border-radius: 18px; }
.site-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.site-product { background: #fff; border: 1px solid #e4ece1; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.site-product:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(11,59,36,.55); }
.site-product img { width: 100%; height: 150px; object-fit: cover; }
.site-product-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.site-product-cat { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.site-product h3 { font-size: .92rem; }
.site-product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.site-product-foot strong { color: var(--forest); font-size: .9rem; }
.site-product-foot small { color: var(--muted); font-weight: 500; font-size: .66rem; }
.site-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.site-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e4ece1; }
.site-gallery img { width: 100%; height: 200px; object-fit: cover; display: block; }
.site-gallery figcaption { padding: 9px 12px; font-size: .74rem; color: var(--muted); }
.site-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.site-shop { background: #fff; border: 1px solid #e4ece1; border-radius: 16px; padding: 20px; }
.site-shop h3 { font-size: .95rem; margin-bottom: 4px; }
.site-shop p { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.site-shop small { display: block; color: var(--muted); font-size: .72rem; }
.site-cta { background: linear-gradient(120deg, #0a3320, #145c37 60%, #23834e); color: #fff; }
.site-cta-inner { max-width: 1180px; margin: 0 auto; padding: 56px 22px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.site-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 4px 0 8px; letter-spacing: -.02em; }
.site-cta p { color: #c3dccb; max-width: 560px; font-size: .86rem; margin: 0; }
.site-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer .foot-social a, .shop-footer .foot-social a { display: inline-flex; padding: 0; font-size: inherit; }
.site-footer .pay-strip, .shop-footer .pay-strip { margin-top: 8px; }
.site-footer .pay-note, .shop-footer .pay-note { max-width: 270px; }
.site-footer-base a, .shop-footer-base a { display: inline; color: #c3dccb; }
.site-empty { text-align: center; padding: 90px 22px; }
.site-empty h1 { font-size: 2rem; margin-bottom: 8px; }
.site-empty p { color: var(--muted); margin-bottom: 20px; }
.site-empty .site-btn { margin: 0 4px; }

@media (max-width: 900px) {
    .site-nav { display: none; position: absolute; top: 100%; right: 14px; left: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px; flex-direction: column; align-items: stretch; }
    .site-nav.open { display: flex; }
    .site-nav-shop { margin-left: 0; justify-content: center; }
    .site-menu-btn { display: inline-flex; }
    .site-story { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .site-story-media .site-story-second { position: static; width: 100%; margin-top: 12px; border-width: 0; border-radius: 16px; }
    .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .site-hero { min-height: 440px; }
    .site-section { padding: 44px 0; }
    .site-footer-inner { grid-template-columns: minmax(0, 1fr); }
    .site-cta-inner, .site-wrap, .site-header-inner { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 1250px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pos-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1024px) {
    .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(7,30,18,.45); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .2s; }
    .sidebar-scrim.show { opacity: 1; pointer-events: auto; }
    .menu-btn { display: inline-flex; }
    .split, .split-wide, .shop-cart-layout, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .pos-layout { grid-template-columns: minmax(0, 1fr); }
    .pos-cart { position: static; }
    .page { padding: 20px; }
    .topbar { padding: 0 20px; }
}
@media (max-width: 720px) {
    .stat-grid, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2 { grid-column: span 1; }
    .topbar-actions .user-chip-text { display: none; }
    .user-chip { padding: 3px; border: 0; }
    .page-head { flex-direction: column; }
    .detail-list { grid-template-columns: minmax(0, 1fr); }
    .shop-hero { padding: 30px 22px; }
    .shop-hero h1 { font-size: 1.55rem; }
    .shop-nav { gap: 0; }
    .shop-nav a:not(.cart-pill) { display: none; }
    .shop-main { padding: 18px 14px 40px; }
    .shop-header-inner { padding: 10px 14px; }
    .shop-flash { padding: 0 14px; }
    .app-foot { padding: 14px 20px; }
    .card { padding: 15px; }
    .table th, .table td { padding: 9px 8px; }
}

@media print {
    .sidebar, .topbar, .app-foot, .page-actions, .flash, .toolbar, .btn, .nav, .tabs, .site-header, .site-footer, .site-cta, .site-ribbon { display: none !important; }
    .app-shell, .app-main { display: block; }
    .page { padding: 0; }
    body, .site-body { background: #fff; }
    .receipt { border: 0; max-width: 100%; }
    .card { border: 0; box-shadow: none; padding: 0; }
    .print-sheet { padding: 10mm; }
    .print-head { border-color: #0b3b24; }
    .print-foot { border-color: #ccc; }
    .table th, .table td { padding: 6px 8px; }
    .payslip-net { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .site-main { min-height: 0; }
    a { color: inherit; text-decoration: none; }
    .print-only { display: block !important; }
}
.print-only { display: none; }

/* ------------------------------------------------------------------ blog */
.site-blog-hero { background: linear-gradient(115deg, #0a3320, #145c37 68%, #1f7a48); color: #fff; padding: 62px 0 52px; }
.site-blog-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 8px 0 10px; }
.site-blog-hero p { color: #c3dccb; max-width: 560px; font-size: .92rem; margin: 0; }
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.blog-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--forest); font-size: .76rem; font-weight: 600; text-decoration: none; }
.blog-chip span { color: var(--muted); font-size: .68rem; }
.blog-chip:hover { border-color: var(--lime); color: var(--forest); }
.blog-chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.blog-chip.active span { color: #a8d0b7; }
.blog-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; }
.blog-search input { border: 0; outline: 0; background: transparent; font-size: .8rem; width: 190px; padding: 6px 0; color: var(--forest); }
.blog-search button { border: 0; background: var(--forest); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.blog-card { background: #fff; border: 1px solid #e4ece1; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -32px rgba(11,59,36,.6); }
.blog-card-media { display: block; }
.blog-card-media img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.blog-cat { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.blog-card h3 { font-size: 1.02rem; line-height: 1.35; margin: 0; }
.blog-card h3 a { color: var(--forest); text-decoration: none; }
.blog-card h3 a:hover { color: var(--green); }
.blog-card p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }
.blog-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--green); text-decoration: none; }
.blog-more:hover { gap: 10px; color: var(--forest); }
.site-post { background: #fff; }
.post-head { padding: 44px 0 40px; background: #f3f8ef; border-bottom: 1px solid var(--line); }
.post-wrap { max-width: 820px; }
.post-back { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--green); text-decoration: none; margin-bottom: 16px; }
.post-back .icon { transform: rotate(180deg); }
.post-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.15; margin: 12px 0; color: var(--forest); }
.post-lede { font-size: 1rem; color: #4a6557; line-height: 1.65; max-width: 700px; margin: 0; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); font-weight: 600; margin: 16px 0 6px; }
.post-cover { margin-top: -32px; position: relative; z-index: 2; }
.post-cover .site-wrap { max-width: 1000px; }
.post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); display: block; }
.post-body { padding: 38px 0 10px; font-size: .96rem; line-height: 1.8; color: #33473b; }
.post-body p { margin: 0 0 18px; }
.post-body h2 { font-size: 1.45rem; margin: 30px 0 12px; color: var(--forest); letter-spacing: -.02em; }
.post-body h3 { font-size: 1.18rem; margin: 26px 0 10px; color: var(--forest); }
.post-body h4 { font-size: 1.02rem; margin: 22px 0 8px; color: var(--forest); }
.post-body ul { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.post-body blockquote { margin: 22px 0; padding: 14px 18px; border-left: 3px solid var(--lime); background: #f3f8ef; border-radius: 0 12px 12px 0; font-style: italic; color: #2c4a37; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.post-tag { font-size: .72rem; font-weight: 700; color: var(--green); background: var(--mint); padding: 5px 10px; border-radius: 999px; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.share-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-right: 4px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f1f6ef; color: var(--forest); border: 1px solid var(--line); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .15s; padding: 0; }
.share-btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-2px); }
.share-btn.copied { background: var(--lime); color: #0b2f1c; border-color: transparent; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-x:hover { background: #000; border-color: #000; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-telegram:hover { background: #229ed9; border-color: #229ed9; }
.post-author { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbf6; margin: 10px 0 50px; }
.post-author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.post-author strong { display: block; color: var(--forest); font-size: .92rem; }
.post-author p { margin: 4px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) { .blog-search input { width: 120px; } .post-cover { margin-top: -18px; } .post-head { padding: 30px 0 26px; } .share-label { width: 100%; } }

/* ------------------------------------------------- cascading location selects */
.location-card .loc-grid { flex: 2 1 560px; margin: 0; }
.location-card .loc-grid .field { min-width: 140px; }
.loc-grid select { width: 100%; }

/* ------------------------------------------------------- article text editor */
.rte { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.rte-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    padding: 8px; background: #f2f7f3; border-bottom: 1px solid var(--line);
}
.rte-group { display: flex; gap: 2px; padding-right: 6px; margin-right: 3px; border-right: 1px solid var(--line-strong); }
.rte-group:last-child { border-right: 0; margin-right: 0; }
.rte-toolbar button {
    border: 1px solid transparent; background: #fff; color: var(--ink-2);
    border-radius: 7px; min-width: 30px; height: 28px; padding: 0 7px;
    font: inherit; font-size: .76rem; line-height: 1; cursor: pointer;
}
.rte-toolbar button:hover { border-color: var(--line-strong); background: var(--mint); }
.rte-toolbar button.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.rte-views button { min-width: 62px; }
.rte-surface {
    min-height: 260px; max-height: 540px; overflow: auto;
    padding: 16px 18px; font-size: .92rem; line-height: 1.65; outline: none;
}
.rte-surface:focus { box-shadow: inset 0 0 0 2px rgba(31, 138, 76, .18); }
.rte-surface:empty::before { content: "Write your article…"; color: var(--muted); }
.rte-surface h2 { font-size: 1.2rem; font-weight: 700; margin: 18px 0 8px; }
.rte-surface h3 { font-size: 1.02rem; font-weight: 700; margin: 16px 0 6px; }
.rte-surface p { margin: 0 0 10px; }
.rte-surface ul, .rte-surface ol { margin: 0 0 12px; padding-left: 22px; }
.rte-surface li { margin-bottom: 4px; }
.rte-surface blockquote {
    margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--green);
    background: var(--mint); border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.rte-surface a { color: var(--green-strong); text-decoration: underline; }
.rte-surface img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.rte-preview .rte-surface { background: var(--cream); cursor: default; box-shadow: none; }
.form-grid > .loc-grid { grid-column: 1 / -1; }
@media (max-width: 720px) { .rte-toolbar { gap: 3px; } .rte-surface { min-height: 200px; } }

/* -------------------------------------------------------- location management */
.coverage-list { display: flex; flex-wrap: wrap; gap: 4px; }
.pager {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 16px; border-top: 1px solid var(--line);
}
.pager .grow { flex: 1; }

/* ---------------------------------------------------- production recipes */
.recipe-section-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 10px;
}
.recipe-section-head h3 { margin: 0 0 2px; }
.recipe-section-head p { margin: 0; }
.recipe-rows { display: flex; flex-direction: column; gap: 8px; }
.recipe-row {
    display: grid; gap: 8px; align-items: end;
    padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
}
.recipe-row.output-row { grid-template-columns: minmax(0, 1.1fr) 118px minmax(0, 1.3fr) 34px; }
.recipe-row.ingredient-row { grid-template-columns: minmax(0, 1fr) 130px 34px; }
.recipe-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.recipe-cell label {
    font-size: .64rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
}
.recipe-cell select, .recipe-cell input {
    width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong);
    border-radius: 9px; font: inherit; font-size: .8rem; background: #fff; color: var(--ink);
}
.recipe-cell select:focus, .recipe-cell input:focus {
    outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 138, 76, .12);
}
.recipe-new-grid { display: grid; grid-template-columns: minmax(0, 1fr) 62px 78px; gap: 6px; }
.row-remove {
    width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: #fff; color: var(--danger);
    font-size: 1.05rem; line-height: 1; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.row-remove:hover { background: var(--danger-bg); border-color: #f3c0bb; }
.recipe-row .recipe-cell:only-child { grid-column: 1 / -1; }

/* --------------------------------------------------------------- soil tests */
.soil-latest {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px; margin: 0 0 14px;
}
.soil-metric {
    background: var(--mint); border: 1px solid var(--mint-2);
    border-radius: 11px; padding: 9px 11px;
}
.soil-metric span {
    display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
}
.soil-metric strong { display: block; font-size: 1rem; color: var(--forest); line-height: 1.25; }
.soil-metric small { display: block; font-size: .64rem; color: var(--muted); }

/* ---------------------------------------------------------------- weather */
.weather-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    flex-wrap: wrap; padding: 24px 26px; border-radius: var(--radius);
    background: linear-gradient(120deg, #0a3320, #145c37 58%, #23834e);
    color: #fff; box-shadow: var(--shadow-lg);
}
.weather-now { display: flex; align-items: center; gap: 16px; }
.weather-now-icon {
    width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.12); color: var(--lime); flex: 0 0 auto;
}
.weather-hero .kicker { color: #b7e26b; }
.weather-now h2 { color: #fff; font-size: 2rem; line-height: 1; margin: 2px 0 6px; }
.weather-now p { margin: 0; color: #c3dccb; font-size: .82rem; }
.weather-hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.weather-hero-meta span {
    display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .07em;
    color: #9dc6ae; font-weight: 700; margin-bottom: 2px;
}
.weather-hero-meta strong { color: #fff; font-size: .92rem; }
.weather-dash-now { display: flex; align-items: center; gap: 13px; padding: 4px 0 12px; }
.weather-dash-ico {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mint); color: var(--green-strong); flex: 0 0 auto;
}
.weather-dash-now strong { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--forest); }
.weather-dash-now span { font-size: .74rem; color: var(--muted); }
.weather-week-mini {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px; border-top: 1px solid var(--line); padding-top: 10px;
}
.weather-week-mini > div {
    text-align: center; padding: 7px 4px; border-radius: 9px; background: var(--cream);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.weather-week-mini span { font-size: .6rem; color: var(--muted); font-weight: 600; }
.weather-week-mini strong { font-size: .74rem; color: var(--ink); }
.weather-week-mini small { font-size: .6rem; color: var(--info); }
.alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.farm-alert {
    border-radius: 12px; padding: 12px 14px; border-left: 4px solid var(--muted);
    background: var(--cream);
}
.farm-alert-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.farm-alert-top strong { font-size: .82rem; line-height: 1.3; }
.farm-alert-ico { display: inline-flex; flex: 0 0 auto; }
.farm-alert p { margin: 0 0 6px; font-size: .76rem; color: var(--ink-2); }
.farm-alert-action {
    font-size: .72rem; line-height: 1.5; color: var(--ink-2);
    background: rgba(255,255,255,.72); border-radius: 8px; padding: 7px 9px;
}
.farm-alert-danger { background: #fdecea; border-left-color: #b42318; }
.farm-alert-danger .farm-alert-ico { color: #b42318; }
.farm-alert-warning { background: #fff4d6; border-left-color: #b7791f; }
.farm-alert-warning .farm-alert-ico { color: #9a6700; }
.farm-alert-info { background: var(--info-bg); border-left-color: #17648a; }
.farm-alert-info .farm-alert-ico { color: #17648a; }
.farm-alert-sm { padding: 9px 11px; }
.farm-alert-sm p { margin: 0; }

/* --------------------------------------------------- shop ward coverage */
.coverage-select {
    width: 100%; min-height: 220px; padding: 8px 10px;
    border: 1px solid var(--line-strong); border-radius: 11px;
    font: inherit; font-size: .8rem; background: #fff; color: var(--ink);
}
.coverage-select:focus {
    outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 138, 76, .12);
}
.coverage-select optgroup { font-weight: 700; color: var(--forest); }
.coverage-select option { padding: 4px 6px; }

/* ---------------------------------------------- storefront mobile drawer */
.shop-menu-btn { display: none; }
.shop-nav-extra { display: none; }
.shop-scrim {
    position: fixed; inset: 0; background: rgba(7, 30, 18, .48);
    opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 55;
}
.shop-scrim.show { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.shop-search, .site-search {
    display: flex; align-items: center; gap: 6px; background: var(--cream);
    border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 14px;
}
.shop-search input, .site-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: .8rem; padding: 7px 0; color: var(--forest);
}
.shop-search button, .site-search button {
    border: 0; background: var(--forest); color: #fff; width: 32px; height: 32px;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.shop-drawer-location {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px;
    background: var(--mint); border: 1px solid var(--mint-2); border-radius: 11px;
    color: var(--forest);
}
.shop-drawer-location > div { flex: 1; min-width: 0; }
.shop-drawer-location strong { display: block; font-size: .8rem; }
.shop-drawer-location small { display: block; font-size: .68rem; color: var(--muted); }
.shop-drawer-location a { font-size: .7rem; font-weight: 700; color: var(--green-strong); }
.shop-drawer-cta, .site-drawer-cta {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 12px; border-radius: 11px; background: var(--forest); color: #fff !important;
    font-size: .78rem; font-weight: 700; text-align: center;
}
.shop-drawer-links, .site-drawer-links { display: flex; flex-direction: column; gap: 2px; }
.shop-drawer-links a, .site-drawer-links a {
    display: flex; align-items: center; gap: 9px; padding: 9px 10px;
    border-radius: 9px; font-size: .8rem; color: var(--ink-2) !important; font-weight: 600;
}
.shop-drawer-links a:hover, .site-drawer-links a:hover { background: var(--mint); color: var(--forest) !important; }
.shop-bottom-nav { display: none; }
.drawer-close { display: none; }

/* ------------------------------------------------------ public site drawer */
.site-nav-extra { display: none; }
.site-scrim {
    position: fixed; inset: 0; background: rgba(7, 30, 18, .48);
    opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 55;
}
.site-scrim.show { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
    /* backdrop-filter would make the sticky header the containing block of the
       fixed drawer, collapsing it to the header's height. */
    .shop-header, .site-header { backdrop-filter: none; z-index: 70; }
    .drawer-close {
        display: inline-flex; align-items: center; justify-content: center;
        align-self: flex-end; flex: 0 0 auto; position: sticky; top: 0; z-index: 2;
        width: 36px; height: 36px; margin-bottom: 4px;
        border: 1px solid var(--line); border-radius: 9px; background: #fff;
        color: var(--forest); cursor: pointer;
    }
    .shop-header-inner { gap: 10px; }
    .shop-menu-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-left: auto; order: 3;
        border: 1px solid var(--line); border-radius: 10px; background: #fff;
        color: var(--forest); cursor: pointer;
    }
    .shop-nav {
        order: 2; display: none; position: fixed; top: 0; right: 0; bottom: 0;
        width: min(350px, 88vw); margin: 0; padding: 18px 16px 24px;
        background: #fff; border-left: 1px solid var(--line); box-shadow: -20px 0 50px -24px rgba(9,45,26,.5);
        flex-direction: column; align-items: stretch; gap: 5px; overflow-y: auto; z-index: 60;
    }
    .shop-nav.open { display: flex; }
    .shop-nav a:not(.cart-pill) {
        display: flex; align-items: center; padding: 10px 11px; border-radius: 9px;
        font-size: .84rem; font-weight: 600; color: var(--ink-2);
    }
    .shop-nav a:not(.cart-pill):hover, .shop-nav a:not(.cart-pill).active {
        background: var(--mint); color: var(--forest);
    }
    .shop-nav .cart-pill { display: none; }
    .shop-nav-extra { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
    .shop-bottom-nav {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .shop-bottom-nav a {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 5px 2px; font-size: .62rem; font-weight: 600; color: var(--muted);
        position: relative; text-decoration: none;
    }
    .shop-bottom-nav a.active, .shop-bottom-nav a:hover { color: var(--green-strong); }
    .shop-bottom-nav a em {
        position: absolute; top: 0; right: 50%; transform: translateX(18px);
        background: var(--green); color: #fff; border-radius: 999px;
        font-style: normal; font-size: .56rem; font-weight: 700; padding: 0 5px; line-height: 1.4;
    }
    .shop-body { padding-bottom: 64px; }
    .shop-footer { padding-bottom: 24px; }

    .site-header-inner { gap: 10px; }
    .site-menu-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-left: auto; order: 3;
        border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
    }
    .site-nav {
        order: 2; display: none; position: fixed; top: 0; right: 0; bottom: 0;
        left: auto; width: min(350px, 88vw); padding: 18px 16px 24px;
        background: #fff; border-left: 1px solid var(--line); border-radius: 0;
        box-shadow: -20px 0 50px -24px rgba(9,45,26,.5);
        flex-direction: column; align-items: stretch; gap: 5px; overflow-y: auto; z-index: 60;
    }
    .site-nav.open { display: flex; }
    .site-nav a { display: flex; align-items: center; padding: 10px 11px; border-radius: 9px; font-size: .84rem; }
    .site-nav-shop { margin: 4px 0 0; }
    .site-nav-extra { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
}

@media (max-width: 720px) {
    .recipe-row.output-row, .recipe-row.ingredient-row { grid-template-columns: minmax(0, 1fr) 96px 30px; }
    .recipe-row.output-row .recipe-new { grid-column: 1 / -1; }
    .recipe-new-grid { grid-template-columns: minmax(0, 1fr) 64px 80px; }
    .weather-hero { padding: 18px; }
    .weather-hero-meta { gap: 18px; }
    .weather-week-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weather-now h2 { font-size: 1.7rem; }
    .site-nav, .shop-nav { width: 100%; }
}

/* ------------------------------------------------------ topbar popovers */
.topbar-pop { position: relative; }
.pop-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 380px;
    max-width: calc(100vw - 24px); background: #fff; border: 1px solid #e3ece0;
    border-radius: 14px; box-shadow: 0 24px 50px rgba(11,59,36,.18);
    display: none; z-index: 60; overflow: hidden;
}
.topbar-pop.open .pop-panel { display: block; }
/* Hover preview only where a pointer can actually hover; on touch, :hover and
   :focus-within stick after a tap and would keep the panel open. */
@media (hover: hover) and (pointer: fine) {
    .alerts-pop:hover .pop-panel { display: block; }
}
.pop-wide { width: 430px; }
.pop-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #eef3ec; background: #fbfdfa;
}
.pop-head strong { font-size: .82rem; color: var(--forest); }
.pop-list { max-height: 330px; overflow: auto; }
.pop-item {
    display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px;
    align-items: start; padding: 11px 16px; border-bottom: 1px solid #f0f5ee;
    text-decoration: none; color: var(--ink);
}
.pop-item:hover { background: #f6faf3; }
.pop-item.unread { background: #f3f9ee; }
.pop-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9d6c3; margin-top: 6px; }
.pop-item.unread .pop-dot { background: #3f8f4f; }
.alert-item .pop-dot { background: #9db096; }
.alert-item.sev-critical .pop-dot { background: #d9534f; }
.alert-item.sev-high .pop-dot { background: #e8915a; }
.alert-item.sev-medium .pop-dot { background: #d7b24a; }
.pop-text { min-width: 0; }
.pop-text strong { display: block; font-size: .79rem; line-height: 1.3; }
.pop-text small {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; color: var(--muted); font-size: .7rem; line-height: 1.4; margin-top: 2px;
}
.pop-time { font-size: .64rem; color: var(--muted); white-space: nowrap; text-align: right; }
.pop-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: .8rem; }
.pop-foot {
    display: flex; justify-content: center; align-items: center; gap: 6px;
    padding: 11px; font-size: .78rem; font-weight: 600;
    color: var(--forest); text-decoration: none; background: #f7faf5;
}
.pop-foot:hover { background: #eff6ec; }
.alert-dot { background: #e0664f !important; }

@media (max-width: 640px) {
    .pop-panel, .pop-wide { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
}

/* ------------------------------------------------------------ alert cards */
.alert-card {
    display: flex; gap: 16px; justify-content: space-between; align-items: flex-start;
    padding: 16px 18px; border-bottom: 1px solid #eef3ec;
    border-left: 4px solid var(--alert-color, #b7e26b); background: #fff;
}
.alert-card:last-child { border-bottom: 0; }
.alert-card h3 { margin: 6px 0 4px; font-size: .98rem; color: var(--forest); }
.alert-card p { margin: 0 0 6px; font-size: .8rem; color: #4d6353; }
.alert-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert-advice {
    display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0;
    background: #f2f8ee; border: 1px solid #e2eeda; border-radius: 9px;
    padding: 8px 10px; font-size: .78rem; color: #34502f;
}
.alert-advice .icon { flex: 0 0 auto; margin-top: 2px; color: #4b8a3c; }
.alert-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 9px; }
.alert-meta span { display: inline-flex; align-items: center; gap: 4px; }
.alert-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: 0 0 auto; }
.alert-actions form { margin: 0; }
@media (max-width: 720px) {
    .alert-card { flex-direction: column; }
    .alert-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* -------------------------------------------------------------- soil map */
.soil-map { display: grid; gap: 4px; margin-top: 10px; }
.soil-cell {
    aspect-ratio: 1; border-radius: 7px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1px; min-width: 0;
    color: #17301a; border: 1px solid rgba(0,0,0,.05);
}
.soil-cell strong { font-size: .9rem; line-height: 1; }
.soil-cell span { font-size: .52rem; opacity: .65; }
.soil-legend {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px;
    font-size: .68rem; color: var(--muted);
}
.soil-legend i {
    display: inline-block; width: 12px; height: 12px; border-radius: 3px;
    margin-right: 4px; vertical-align: -2px;
}
.soil-entry input { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; font: inherit; font-size: .78rem; }

/* ------------------------------------------------------------------ cctv */
.cctv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.cctv-tile { position: relative; border-radius: 12px; overflow: hidden; background: #050805; border: 1px solid #1d2a1c; }
.cctv-tile img, .cctv-tile video { width: 100%; height: 200px; object-fit: cover; display: block; background: #050805; }
.cctv-tile span {
    position: absolute; left: 10px; bottom: 8px; right: 10px;
    font-size: .68rem; color: #e6f0e2; text-shadow: 0 1px 3px rgba(0,0,0,.8);
    display: flex; justify-content: space-between; gap: 8px;
}

/* ---------------------------------------------------- crop profile (catalogue) */
.form-grid > .field-wide { grid-column: 1 / -1; }
.crop-thumb-none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted, #7c8a72); background: #f2f6ee; }
.crop-profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.crop-profile-media img { width: 100%; height: 210px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); display: block; }
.crop-profile-none { height: 210px; border-radius: 11px; border: 1px dashed var(--line-strong, #cfd8c6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted, #7c8a72); font-size: .78rem; background: #f7faf4; }
.crop-profile-none small { font-size: .68rem; opacity: .8; }
.crop-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crop-facts > div, .crop-profile-stats > div { background: #f7faf4; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.crop-facts span, .crop-profile-stats span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #7c8a72); }
.crop-facts strong, .crop-profile-stats strong { font-size: .86rem; }
.crop-profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.crop-notes p { margin: 0 0 10px; line-height: 1.62; }
.crop-notes p:last-child { margin-bottom: 0; }
.crop-notes ul { margin: 0 0 10px; padding-left: 18px; line-height: 1.6; }
@media (max-width: 900px) {
    .crop-profile { grid-template-columns: minmax(0, 1fr); }
    .crop-facts, .crop-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Security & Privacy Centre + user preferences
   ============================================================ */

/* Dark theme — overrides the palette without touching component rules. */
body.theme-dark {
    --cream: #0d1411;
    --card: #161f1a;
    --mint: #16231c;
    --mint-2: #1c2d23;
    --ink: #e9f2ec;
    --ink-2: #cbdad1;
    --muted: #93a89b;
    --line: #24322a;
    --line-strong: #2e4034;
    --danger-bg: #3a1d1a;
    --warning-bg: #3a301a;
    --info-bg: #16303d;
    --success-bg: #16311f;
    background: var(--cream);
    color: var(--ink);
}
body.theme-dark .app-main,
body.theme-dark .page,
body.theme-dark .card,
body.theme-dark .summary-box,
body.theme-dark .stat,
body.theme-dark .pop-panel,
body.theme-dark .table-wrap,
body.theme-dark .sidebar { background: var(--card); color: var(--ink); }
body.theme-dark .card-head,
body.theme-dark .table th,
body.theme-dark .app-foot,
body.theme-dark .topbar { background: var(--card); border-color: var(--line); }
body.theme-dark .table td,
body.theme-dark .table th { border-color: var(--line); }
body.theme-dark .table tbody tr:hover { background: var(--mint); }
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea { background: #0f1713; color: var(--ink); border-color: var(--line-strong); }
body.theme-dark .sub,
body.theme-dark .stat-meta,
body.theme-dark .text-muted { color: var(--muted); }
body.theme-dark .pop-item.unread { background: var(--mint); }

/* Compact density for small laptop screens and phones. */
body.density-compact .table td,
body.density-compact .table th { padding: 6px 9px; font-size: .82rem; }
body.density-compact .card { padding: 12px 14px; }
body.density-compact .stat { padding: 10px 12px; }
body.density-compact .page { padding-top: 10px; }

/* Passkey and session helpers */
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.recovery-grid code { background: var(--mint); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; font-weight: 600; }
#passkeyBox .field span { color: var(--muted); }
.sev-critical { border-left: 3px solid var(--danger); }
.sev-warning { border-left: 3px solid var(--warning); }
.sev-info { border-left: 3px solid var(--info); }
@media (max-width: 720px) {
    .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .page-actions { flex-wrap: wrap; }
    .split, .split-wide { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
}
