:root {
  color-scheme: light;
  --ink: #18262e;
  --ink-soft: #34454d;
  --paper: #f4f6f3;
  --white: #fff;
  --line: #e3e9e5;
  --line-strong: #d4ddd7;
  --muted: #718087;
  --lime: #d4ef6b;
  --lime-dark: #a6c63c;
  --teal: #2e7665;
  --teal-light: #e6f3ec;
  --orange: #e47b51;
  --orange-light: #fff0e8;
  --blue-light: #eaf1f5;
  --shadow: 0 18px 54px rgba(24, 38, 46, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(72, 139, 117, .42); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-height: 600px; padding: 28px 18px 18px; background: var(--ink); color: #eff5f2; z-index: 20; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #f6f8f5; text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -.9px; }
.brand-dot { color: var(--lime); }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { display: block; border-radius: 4px; background: var(--lime); }
.brand-mark span:nth-child(2) { opacity: .75; transform: translateY(3px); }
.brand-mark span:nth-child(3) { opacity: .55; transform: translateX(3px); }
.brand-mark span:nth-child(4) { background: #6f9d89; }
.workspace-label { margin: 49px 12px 13px; color: #83929a; font-size: 11px; font-weight: 750; letter-spacing: 1.25px; }
.primary-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { min-height: 47px; display: flex; align-items: center; gap: 13px; width: 100%; padding: 0 13px; color: #bac5c8; background: transparent; border: 0; border-radius: 9px; text-align: left; font-size: 14px; font-weight: 540; transition: color .16s ease, background .16s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--ink); background: var(--lime); font-weight: 700; }
.nav-icon { display: inline-flex; justify-content: center; align-items: center; width: 20px; font-size: 19px; line-height: 1; }
.nav-count { min-width: 24px; height: 24px; display: grid; place-items: center; margin-left: auto; border-radius: 8px; background: rgba(255,255,255,.1); color: #d4e0dc; font-size: 12px; font-weight: 700; }
.nav-link.active .nav-count { background: rgba(24,38,46,.12); color: var(--ink); }
.nav-divider { height: 1px; margin: 14px 10px 8px; background: rgba(234,242,239,.13); }
.sidebar-bottom { margin-top: auto; }
.sync-status { display: flex; align-items: center; gap: 9px; padding: 14px 12px 18px; color: #98a8a7; font-size: 12px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #80b792; box-shadow: 0 0 0 4px rgba(128,183,146,.13); }
.user-menu { display: flex; align-items: center; gap: 10px; padding: 13px 9px 5px; border-top: 1px solid rgba(234,242,239,.14); }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #31444d; color: var(--lime); font-size: 12px; font-weight: 760; }
.user-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.user-text b { max-width: 137px; overflow: hidden; color: #f0f5f2; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { color: #92a0a2; font-size: 11px; }
.icon-button { width: 37px; height: 37px; display: inline-grid; flex: 0 0 auto; place-items: center; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 21px; line-height: 1; }
.icon-button:hover { background: rgba(24,38,46,.06); border-color: var(--line); }
.logout-button { margin-left: auto; color: #9cabad; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.08); border-color: transparent; }

.main-column { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 clamp(22px, 4.2vw, 64px); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #879399; font-size: 13px; }
.breadcrumb b { color: var(--ink-soft); font-weight: 650; }
.crumb-slash { color: #bec7c4; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.context-switcher { display: flex; align-items: center; gap: 8px; color: #889398; font-size: 12px; white-space: nowrap; }
.context-switcher select { max-width: 180px; padding: 9px 29px 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background-color: #fff; font-size: 13px; font-weight: 650; }
.mobile-menu { display: none; }
.content-area { width: min(100%, 1540px); flex: 1; margin: 0 auto; padding: 39px clamp(22px, 4.2vw, 64px) 34px; }
.view-section { display: none; animation: view-in .25s ease both; }
.view-section.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #7e8e91; font-size: 11px; font-weight: 760; letter-spacing: 1.12px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 3.2vw, 41px); font-weight: 700; letter-spacing: -1.7px; line-height: 1.08; }
.page-subtitle { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -.45px; }
h3 { margin: 0; font-size: 16px; font-weight: 690; letter-spacing: -.2px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 670; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: var(--ink); background: var(--lime); border-color: #c9e45b; box-shadow: 0 2px 5px rgba(149,179,66,.14); }
.button-primary:hover:not(:disabled) { background: #cbe75a; box-shadow: 0 4px 12px rgba(149,179,66,.21); }
.button-secondary { color: var(--ink-soft); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled) { background: #f8faf8; border-color: #b9c7bf; }
.button-quiet { color: #68777d; background: transparent; border-color: transparent; }
.button-quiet:hover:not(:disabled) { background: #f1f4f1; }
.button-small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.button-wide { width: 100%; }
.text-link, .text-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--teal); background: none; border: 0; font-size: 13px; font-weight: 690; text-decoration: none; }
.text-link:hover, .text-button:hover { color: #194e43; }
.text-button { font-size: 12px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.summary-card { position: relative; min-height: 180px; display: flex; flex-direction: column; padding: 21px 22px 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.summary-card::after { position: absolute; right: -39px; bottom: -74px; width: 160px; height: 160px; border: 1px solid rgba(50,112,95,.07); border-radius: 50%; content: ""; }
.summary-card::before { position: absolute; right: -14px; bottom: -48px; width: 109px; height: 109px; border: 1px solid rgba(50,112,95,.07); border-radius: 50%; content: ""; }
.summary-card-dark { color: #f7fbf7; background: var(--ink); border-color: var(--ink); }
.summary-card-dark::before, .summary-card-dark::after { border-color: rgba(212,239,107,.14); }
.summary-card-top { display: flex; align-items: center; justify-content: space-between; color: #839095; font-size: 13px; font-weight: 560; }
.summary-card-dark .summary-card-top { color: #c1ccca; }
.summary-symbol { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-light); font-size: 17px; }
.summary-symbol-lime { color: #5a6c23; background: #edf6cf; }
.summary-symbol-orange { color: #a7522f; background: var(--orange-light); }
.summary-card strong { position: relative; z-index: 1; margin-top: 18px; font-size: 30px; font-weight: 690; letter-spacing: -1px; }
.summary-card small { position: relative; z-index: 1; margin-top: 3px; color: #8b999c; font-size: 12px; }
.summary-card-dark small { color: #9cadad; }
.summary-card .text-link { position: relative; z-index: 1; margin-top: 16px; }
.summary-rule { width: 100%; height: 4px; margin-top: auto; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.13); }
.summary-rule i { display: block; width: 0; height: 100%; background: var(--lime); border-radius: inherit; transition: width .35s ease; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .9fr); gap: 15px; margin-top: 18px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.recent-panel, .card-overview-panel { min-height: 286px; padding: 22px 22px 17px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading h2 { font-size: 18px; }
.panel-heading .icon-button { border-color: var(--line); }
.panel-heading-wrap { align-items: flex-end; flex-wrap: wrap; padding: 21px 22px 17px; }
.recent-panel > .panel-heading, .card-overview-panel > .panel-heading { margin-bottom: 12px; }
.activity-list { display: flex; flex-direction: column; }
.activity-row { width: 100%; min-height: 61px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto 14px; align-items: center; gap: 11px; padding: 7px 1px; color: var(--ink); background: transparent; border: 0; border-top: 1px solid #edf0ed; text-align: left; }
.activity-row:hover .activity-main b { color: var(--teal); }
.activity-date { width: 36px; height: 39px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 8px; background: #f1f5ed; color: #4f6656; }
.activity-date b { font-size: 15px; line-height: 1.1; }
.activity-date small { color: #7b8c7a; font-size: 9px; text-transform: uppercase; }
.activity-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.activity-main b { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.activity-main small { overflow: hidden; color: #819096; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-amount { font-size: 13px; font-weight: 680; white-space: nowrap; }
.activity-chevron { color: #9ba8a8; font-size: 20px; }
.empty-inline { min-height: 189px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 14px; text-align: center; }
.empty-inline b, .table-empty b { font-size: 14px; font-weight: 700; }
.empty-inline > span:not(.empty-icon), .table-empty > span:not(.empty-icon) { max-width: 350px; color: var(--muted); font-size: 12px; }
.empty-inline .text-button { margin-top: 7px; }
.empty-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 11px; color: #6f8d53; background: #edf4df; font-size: 20px; }
.compact-empty { min-height: 195px; }
.mini-card-list { display: flex; flex-direction: column; }
.mini-card-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 54px; border-top: 1px solid #edf0ed; }
.mini-card { position: relative; width: 39px; height: 26px; display: block; overflow: hidden; border-radius: 5px; background: #36586a; }
.mini-card > span { position: absolute; top: 6px; left: 7px; width: 8px; height: 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 2px; }
.mini-card > i:first-of-type { position: absolute; right: 4px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.mini-card > i:last-of-type { position: absolute; right: 7px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.7); }
.mini-card-1 { background: #715c49; }.mini-card-2 { background: #365b48; }.mini-card-3 { background: #695168; }
.mini-card-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mini-card-name b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mini-card-name small { color: #87949a; font-size: 10px; }
.mini-card-value { font-size: 12px; font-weight: 670; white-space: nowrap; }
.card-total-row { display: flex; justify-content: space-between; margin-top: 7px; padding: 13px 0 0; border-top: 1px solid var(--line); color: #758389; font-size: 12px; }
.card-total-row b { color: var(--ink); font-size: 14px; }
.tip-strip { display: flex; align-items: center; gap: 14px; margin-top: 17px; padding: 15px 18px; border: 1px solid #e8ebdf; border-radius: 10px; background: #f8f9f2; }
.tip-spark { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #576d20; background: #e7f0c5; font-size: 20px; }
.tip-strip > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tip-strip b { font-size: 13px; }.tip-strip > div > span { color: #78837b; font-size: 12px; }

.main-footer { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px clamp(22px, 4.2vw, 64px); color: #96a1a1; background: transparent; border-top: 1px solid var(--line); font-size: 11px; }
.footer-sep { padding: 0 4px; color: #c2cbc4; }

.market-metrics { display: flex; align-items: stretch; gap: 12px; margin-bottom: 16px; }
.metric-chip { min-width: 170px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.metric-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; font-size: 18px; }
.metric-icon-lime { color: #5e6d27; background: #eef5d5; }.metric-icon-orange { color: #aa5736; background: #fff0e8; }
.metric-chip > span:last-child { display: flex; flex-direction: column; }
.metric-chip small { color: #869297; font-size: 11px; }.metric-chip b { font-size: 15px; }
.metric-note { display: flex; flex-direction: column; justify-content: center; gap: 2px; margin-left: auto; padding: 0 7px; }
.metric-note b { font-size: 12px; }.metric-note span { color: #859096; font-size: 11px; }
.table-panel { margin-bottom: 15px; overflow: hidden; }
.table-tools { display: flex; align-items: center; gap: 8px; }
.search-control { min-width: 210px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #7f8e92; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.search-control > span { font-size: 19px; line-height: 1; }
.search-control input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-control input::placeholder { color: #9aa4a4; }
.filter-select { height: 38px; max-width: 184px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: #fff; font-size: 12px; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-color: #c8d2ce transparent; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f8faf8; }
th { padding: 11px 17px; color: #849197; font-size: 10px; font-weight: 730; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 17px; border-top: 1px solid #edf0ed; color: #526168; font-size: 12px; white-space: nowrap; }
td b { color: var(--ink-soft); font-size: 12px; font-weight: 660; }
tbody tr:hover { background: #fbfcfa; }
.align-right { text-align: right; }
.table-product { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.table-product > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.table-product small, .table-subline { color: #89979b; font-size: 10px; }
.source-credit { width: fit-content; margin-top: 3px; color: #7a896f; font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }
.source-credit:hover { color: #365c47; }
.table-subline { display: block; margin-top: 3px; }
.product-thumb { width: 36px; height: 36px; flex: 0 0 auto; object-fit: cover; border: 1px solid #e7ece8; border-radius: 8px; background: #f3f6f2; }
.product-placeholder { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #e7ece8; border-radius: 8px; color: #77906c; background: #f1f5e8; font-size: 17px; }
.mono-text { color: #7c898e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.table-items-label { display: block; max-width: 205px; overflow: hidden; text-overflow: ellipsis; }
.context-pill, .person-pill { display: inline-flex; align-items: center; max-width: 145px; overflow: hidden; padding: 4px 8px; border-radius: 6px; color: #53695e; background: #eef4ee; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.person-pill { color: #7b5a46; background: #fbf0e7; }
.tiny-tag { margin-left: 7px; padding: 3px 6px; border-radius: 5px; color: #97633a; background: #fbf1dc; font-size: 9px; }
.row-action { padding: 5px 7px; color: var(--teal); background: none; border: 0; border-radius: 5px; font-size: 11px; font-weight: 680; white-space: nowrap; }
.row-action:hover { background: #eaf3ed; }
.table-empty { min-height: 214px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 25px; text-align: center; }
.table-empty .button { margin-top: 9px; }

.receivable-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 15px; padding: 18px 21px; border: 1px solid #f2e4cd; border-radius: 11px; background: #fffaf0; }
.receivable-mark { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #ac612f; background: #f8e8ce; font-size: 23px; }
.receivable-banner > div:nth-child(2) { flex: 1; }
.receivable-banner .eyebrow { margin-bottom: 3px; color: #a37549; }
.receivable-banner h2 { font-size: 21px; }
.receivable-banner h2 small { color: #9c8a75; font-size: 12px; font-weight: 520; letter-spacing: 0; }
.receivable-banner p:last-child { margin: 4px 0 0; color: #8f8272; font-size: 12px; }
.receivable-count { align-self: flex-start; padding: 6px 9px; border: 1px solid #f0e3ca; border-radius: 6px; color: #98734c; background: rgba(255,255,255,.54); font-size: 11px; white-space: nowrap; }
.receivables-panel { margin-bottom: 17px; }
.receivables-panel .panel-heading { padding: 18px 21px 13px; }

.product-scan-banner { display: flex; align-items: center; gap: 17px; min-height: 102px; margin-bottom: 16px; padding: 15px 20px; border: 1px solid #e4ead1; border-radius: 10px; background: linear-gradient(105deg, #f5f7e9 0%, #fbfcf8 68%); }
.scan-graphic { position: relative; width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: #657635; background: #e9efcf; }
.scan-bars { position: relative; z-index: 1; font-size: 26px; }
.scan-frame { position: absolute; inset: 9px; border: 1px solid rgba(88,110,39,.33); border-radius: 9px; }
.product-scan-banner > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.product-scan-banner b { font-size: 14px; }.product-scan-banner span { color: #778274; font-size: 12px; }
.product-scan-banner .button { flex: 0 0 auto; }

.card-filter-row { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: #7c8a8e; font-size: 12px; }
.card-filter-row input { height: 37px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: #fff; font-size: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; }
.credit-card { position: relative; min-height: 237px; padding: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; color: #fff; background: #294958; box-shadow: 0 6px 18px rgba(24,38,46,.12); }
.credit-card::after { position: absolute; right: -31px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ""; }
.credit-card::before { position: absolute; right: 17px; top: -92px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.credit-card-1 { background: #5e5040; }.credit-card-2 { background: #345448; }.credit-card-3 { background: #51475b; }
.credit-card-top, .credit-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.credit-chip { width: 35px; height: 27px; display: grid; grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(2,1fr); gap: 2px; overflow: hidden; padding: 4px; border: 1px solid rgba(236,222,156,.57); border-radius: 6px; background: linear-gradient(135deg, #ded19a, #bdb07b); }
.credit-chip i { border: 1px solid rgba(99,90,52,.46); border-radius: 2px; }
.credit-brand { color: rgba(255,255,255,.72); font-size: 10px; font-weight: 730; letter-spacing: 1.5px; text-transform: uppercase; }
.credit-number { position: relative; z-index: 1; margin: 24px 0 21px; color: rgba(255,255,255,.9); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: .8px; }
.credit-card-bottom > span { display: flex; flex-direction: column; gap: 3px; }
.credit-card-bottom small { color: rgba(255,255,255,.6); font-size: 8px; letter-spacing: 1px; }
.credit-card-bottom b { max-width: 165px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.credit-card-spend { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
.credit-card-spend small { color: rgba(255,255,255,.66); font-size: 10px; }.credit-card-spend strong { font-size: 17px; font-weight: 680; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.settings-panel { padding: 21px; }
.password-form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.password-form label { display: flex; flex-direction: column; gap: 5px; color: #536168; font-size: 12px; font-weight: 620; }
.password-form input { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; }
.password-form small { margin-top: -1px; color: #8d989b; font-size: 10px; font-weight: 450; }
.password-form .button { align-self: flex-start; margin-top: 3px; }
.settings-panel .panel-heading { margin-bottom: 17px; }
.inline-form { display: grid; grid-template-columns: minmax(110px,1fr) minmax(105px,.8fr) auto; gap: 7px; margin-bottom: 13px; }
.inline-form input, .inline-form select, .form-grid input, .form-grid select, .form-grid textarea, .notes-field textarea { min-width: 0; min-height: 41px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; }
.inline-form input::placeholder, .form-grid input::placeholder, textarea::placeholder { color: #a0abad; }
.inline-form input:focus, .inline-form select:focus, .form-grid input:focus, .form-grid select:focus, textarea:focus { border-color: #91b49e; outline: 2px solid rgba(80,144,111,.13); }
.settings-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.settings-list li { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 53px; border-top: 1px solid #edf0ed; }
.settings-list li > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; }
.settings-list li b { font-size: 12px; }.settings-list li small { color: #8e9a9d; font-size: 10px; }
.setting-dot { width: 9px; height: 9px; border-radius: 3px; background: #73a281; }.setting-dot-family { background: #e6ad69; }.setting-dot-business { background: #7198b4; }
.setting-avatar { width: 25px; height: 25px; display: grid !important; place-items: center; border-radius: 8px; color: #4f7367; background: #e7f0ea; font-size: 9px; font-weight: 740; }
.setting-trailing { color: #80918a; font-size: 10px; }
.privacy-note { display: flex; align-items: center; gap: 12px; margin-top: 17px; padding: 15px 18px; border: 1px solid #e2e9e4; border-radius: 9px; background: #eef4ef; }
.privacy-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #41705d; background: #dcebe0; font-size: 19px; }
.privacy-note > div { display: flex; flex-direction: column; gap: 2px; }.privacy-note b { font-size: 12px; }.privacy-note span:last-child { color: #7d8a82; font-size: 11px; }

.modal-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(91vh, 900px); padding: 0; overflow: auto; color: var(--ink); border: 1px solid rgba(223,231,225,.9); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.modal-dialog::backdrop { background: rgba(19, 31, 36, .57); backdrop-filter: blur(2px); }
.modal-form { padding: 23px 25px 20px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.modal-header h2 { font-size: 23px; letter-spacing: -.7px; }
.modal-header .eyebrow { margin-bottom: 4px; }
.modal-header .icon-button { margin: -4px -5px 0 0; border-color: var(--line); font-size: 24px; }
.modal-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-grid label, .notes-field { display: flex; flex-direction: column; gap: 6px; color: #536168; font-size: 12px; font-weight: 620; }
.field-span-2 { grid-column: span 2; }
.form-grid input, .form-grid select { width: 100%; }
.form-grid textarea, .notes-field textarea { width: 100%; resize: vertical; font-weight: 450; }
.field-hint { display: block; color: #8c989c; font-size: 10px; font-weight: 450; }
.item-entry-box { margin-top: 18px; padding: 16px; border: 1px solid #e2e9dc; border-radius: 10px; background: #f8faf4; }
.item-entry-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.item-entry-title .eyebrow { margin-bottom: 2px; color: #82916f; }
.item-entry-title h3 { font-size: 15px; }.item-entry-hint { color: #8a9688; font-size: 10px; }
.barcode-row { display: flex; gap: 7px; }
.barcode-field { min-width: 0; min-height: 43px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #78854e; }
.barcode-field > span { font-size: 20px; }.barcode-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.scan-button { min-height: 42px; border-color: var(--line-strong); background: #fff; color: #586e42; font-size: 19px; }
.selected-product { display: flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 10px; padding: 8px 10px; border: 1px solid #e2e9dc; border-radius: 8px; background: #fff; }
.selected-product > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.selected-product b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.selected-product small { overflow: hidden; color: #839095; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.selected-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }.selected-price b { font-size: 10px; }.selected-price small { color: #87948d; font-size: 9px; }
.unknown-product { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 7px; color: #8a774b; font-size: 11px; }
.unknown-product .text-button { font-size: 11px; }
.item-fields { grid-template-columns: .65fr .9fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.item-fields label { font-size: 11px; }.item-fields input, .item-fields select { min-height: 39px; padding: 8px 9px; }
.check-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; margin-top: 10px; color: #667268 !important; font-size: 11px !important; font-weight: 500 !important; }
.check-row input { width: 16px !important; min-height: 16px !important; height: 16px; flex: 0 0 auto; margin: 0; accent-color: #5b8062; }
.item-entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.item-entry-actions .field-hint { min-height: 14px; }
.field-hint.price-below { color: #377353; font-weight: 700; }
.field-hint.price-above { color: #a65b42; font-weight: 650; }
.cart-wrap { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.cart-heading { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; font-size: 11px; }.cart-heading span { color: #859196; }
.cart-lines { max-height: 200px; overflow: auto; }
.cart-empty { margin: 0; padding: 15px 12px; color: #909b9e; font-size: 11px; text-align: center; }
.cart-line { min-height: 54px; display: grid; grid-template-columns: minmax(0,1fr) auto auto 30px; align-items: center; gap: 9px; padding: 7px 11px; border-bottom: 1px solid #edf0ed; }
.cart-product { min-width: 0; display: flex; align-items: center; gap: 8px; }.cart-product > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cart-product b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.cart-product small { overflow: hidden; color: #8a9699; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cart-product .product-thumb, .cart-product .product-placeholder { width: 31px; height: 31px; }
.cart-quantity { color: #7c8a8c; font-size: 10px; white-space: nowrap; }.cart-line-total { font-size: 11px; white-space: nowrap; }.cart-remove { width: 28px; height: 28px; color: #899695; font-size: 19px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f7f9f6; color: #6e7b7d; font-size: 12px; }.cart-total strong { color: var(--ink); font-size: 16px; }
.notes-field { margin-top: 13px; }.notes-field textarea { min-height: 58px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.compact-dialog { width: min(560px, calc(100vw - 28px)); }
.compact-dialog .modal-form { padding: 23px 25px 20px; }
.compact-dialog .form-grid { gap: 12px; }
.camera-dialog { width: min(560px, calc(100vw - 28px)); }
.camera-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #142026; }
.camera-frame video { width: 100%; height: 100%; object-fit: cover; }
.camera-guide { position: absolute; inset: 23% 12%; border: 2px solid rgba(212,239,107,.93); border-radius: 12px; box-shadow: 0 0 0 999px rgba(14,24,27,.14); }
.camera-message { min-height: 22px; margin: 11px 0 14px; text-align: center; font-size: 12px; }
.history-dialog { width: min(680px, calc(100vw - 28px)); }
.history-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; padding: 12px; border-radius: 8px; color: #435b4a; background: #f1f5e8; font-size: 12px; }
.history-summary b { font-weight: 620; }.history-table { border: 1px solid var(--line); border-radius: 7px; }
.history-dialog .modal-footer button { min-width: 100px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { max-width: min(400px, calc(100vw - 40px)); padding: 12px 15px; transform: translateY(8px); opacity: 0; border: 1px solid #dce7dd; border-radius: 9px; color: #345146; background: #fff; box-shadow: 0 10px 30px rgba(24,38,46,.13); font-size: 12px; transition: opacity .2s ease, transform .2s ease; }
.toast-visible { transform: translateY(0); opacity: 1; }.toast-error { border-color: #f0d4c5; color: #994d34; }.toast-info { border-color: #d6e5e9; color: #46646e; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .85fr) minmax(490px, 1.15fr); background: #f5f7f3; }
.login-card { width: min(424px, calc(100% - 56px)); align-self: center; justify-self: center; padding: 40px 0; }
.brand-lockup-dark { margin-bottom: 74px; color: var(--ink); }
.brand-lockup-dark .brand-mark span { background: #526f57; }.brand-lockup-dark .brand-mark span:nth-child(4) { background: #c2dc5d; }
.login-card .eyebrow { color: #6f837b; }.login-card h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 4vw, 47px); letter-spacing: -2.1px; line-height: 1.08; }
.login-copy { max-width: 340px; margin: 13px 0 28px; font-size: 14px; }
.muted { color: var(--muted); }
.stack-form { display: flex; flex-direction: column; gap: 9px; }
.stack-form label { margin-top: 6px; color: #58676b; font-size: 12px; font-weight: 650; }
.stack-form input { height: 47px; padding: 0 13px; border: 1px solid #dce5df; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
.stack-form .button { min-height: 48px; margin-top: 9px; }
.form-error { min-height: 17px; margin: 1px 0 -2px; color: #a85135; font-size: 12px; }
.login-footnote { max-width: 340px; margin-top: 19px; color: #98a3a1; font-size: 10px; line-height: 1.6; }
.login-art { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; color: #f2f6ef; background: #1c3038; }
.login-art::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, rgba(100,136,104,.23), transparent 31%), linear-gradient(135deg, transparent 65%, rgba(212,239,107,.04)); content: ""; }
.art-orbit { position: absolute; width: min(640px, 70vw); aspect-ratio: 1; border: 1px solid rgba(215,232,197,.11); border-radius: 50%; }
.orbit-one { transform: rotateX(61deg) rotateZ(-18deg); }.orbit-two { width: min(475px, 53vw); transform: rotateX(61deg) rotateZ(31deg); border-color: rgba(212,239,107,.14); }
.art-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.art-sun { width: 116px; height: 116px; display: block; border: 1px solid rgba(212,239,107,.7); border-radius: 37px; transform: rotate(45deg); background: linear-gradient(145deg, rgba(212,239,107,.19), rgba(212,239,107,.03)); box-shadow: 0 0 70px rgba(212,239,107,.14), inset 0 0 32px rgba(212,239,107,.07); }
.art-sun::after { display: block; width: 37px; height: 37px; margin: 38px; border-radius: 13px; background: var(--lime); content: ""; box-shadow: 0 0 30px rgba(212,239,107,.38); }
.art-text { color: #f0f4ec; font-size: 28px; font-weight: 620; letter-spacing: -1px; line-height: 1.22; }.art-text em { color: var(--lime); font-style: normal; }
.art-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(225,238,227,.16); border-radius: 10px; background: rgba(31,52,58,.86); box-shadow: 0 18px 45px rgba(5,14,17,.22); backdrop-filter: blur(12px); }
.art-note b, .art-note small { display: block; }.art-note b { font-size: 12px; }.art-note small { margin-top: 1px; color: #aab8b4; font-size: 9px; }
.note-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #304546; background: #d3e6a6; font-weight: 800; }.note-icon-lime { color: #455622; background: #d4ef6b; }
.note-a { top: 22%; left: 14%; }.note-b { right: 13%; bottom: 23%; }
.art-caption { position: absolute; bottom: 37px; color: rgba(217,229,222,.48); font-size: 9px; font-weight: 680; letter-spacing: 2px; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 224px minmax(0,1fr); }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .content-area { padding-right: 26px; padding-left: 26px; }
  .main-footer { padding-right: 26px; padding-left: 26px; }
  .overview-grid { grid-template-columns: minmax(0,1.2fr) minmax(260px,.9fr); }
  .panel-heading-wrap { align-items: flex-start; }
  .table-tools { width: 100%; flex-wrap: wrap; }
  .search-control { flex: 1; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100dvh; min-height: 0; transform: translateX(-105%); transition: transform .23s ease; box-shadow: 12px 0 35px rgba(9,20,25,.17); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .topbar { min-height: 65px; gap: 12px; padding: 0 18px; }
  .topbar-actions { gap: 9px; }
  .context-switcher > span { display: none; }
  .context-switcher select { max-width: 150px; }
  .breadcrumb { margin-right: auto; }
  .content-area { padding: 28px 20px 27px; }
  .main-footer { padding: 12px 20px; }
  .overview-grid { grid-template-columns: minmax(0,1fr); }
  .card-overview-panel { min-height: 0; }
  .summary-card { min-height: 165px; padding: 18px; }
  .summary-card strong { font-size: 27px; }
  .settings-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); }
  .login-card { width: min(390px, calc(100% - 42px)); }
  .brand-lockup-dark { margin-bottom: 52px; }
  .note-a { left: 6%; }.note-b { right: 5%; }
}
@media (max-width: 620px) {
  .topbar { min-height: 61px; padding: 0 12px; }
  .topbar-actions .button { min-height: 37px; padding: 0 10px; font-size: 12px; }
  .topbar-actions .button span { font-size: 16px; }
  .context-switcher select { max-width: 118px; padding-left: 7px; font-size: 11px; }
  .breadcrumb { gap: 6px; font-size: 11px; }
  .mobile-menu { width: 31px; height: 35px; font-size: 19px; }
  .content-area { padding: 24px 13px 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 33px; }
  .page-subtitle { max-width: 400px; font-size: 13px; }
  .page-heading > .button { width: 100%; }
  .summary-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .summary-card { min-height: 143px; }
  .summary-card strong { margin-top: 10px; }
  .summary-card .text-link { margin-top: 10px; }
  .overview-grid { gap: 10px; margin-top: 10px; }
  .recent-panel, .card-overview-panel { padding: 17px 15px 13px; }
  .tip-strip { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 13px; }
  .tip-strip > div { min-width: calc(100% - 48px); }
  .tip-strip .text-button { margin-left: 44px; }
  .main-footer { align-items: flex-start; flex-direction: column; padding: 10px 13px; font-size: 10px; }
  .market-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-chip { min-width: 0; padding: 10px; }
  .metric-chip small { font-size: 10px; }
  .metric-note { grid-column: span 2; margin: 0; padding: 3px 2px; }
  .panel-heading-wrap { padding: 16px 14px 12px; }
  .panel-heading-wrap > div:first-child { width: 100%; }
  .table-tools { gap: 6px; }
  .search-control { min-width: 100%; }
  .filter-select { max-width: calc(50% - 4px); flex: 1; }
  th { padding: 10px 12px; font-size: 9px; }
  td { padding: 11px 12px; font-size: 11px; }
  .product-scan-banner { align-items: flex-start; flex-wrap: wrap; gap: 11px; padding: 14px; }
  .scan-graphic { width: 45px; height: 45px; }
  .product-scan-banner > div:nth-child(2) { width: calc(100% - 60px); flex: 1; }
  .product-scan-banner > .button { width: 100%; }
  .receivable-banner { align-items: flex-start; gap: 11px; padding: 14px; }
  .receivable-mark { width: 36px; height: 36px; }
  .receivable-count { display: none; }
  .receivable-banner h2 { font-size: 18px; }
  .card-filter-row { flex-wrap: wrap; }
  .card-filter-row input { min-width: 120px; flex: 1; }
  .card-grid { grid-template-columns: 1fr; }
  .settings-panel { padding: 16px 13px; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form input { grid-column: span 2; }
  .inline-form button { grid-column: span 2; }
  .modal-dialog { max-height: 94vh; }
  .modal-form, .compact-dialog .modal-form { padding: 19px 15px 15px; }
  .modal-header h2 { font-size: 20px; }
  .form-grid { gap: 9px; }
  .purchase-header-fields { grid-template-columns: 1fr 1fr; }
  .field-span-2 { grid-column: span 2; }
  .item-entry-box { padding: 12px 10px; }
  .item-entry-title { align-items: flex-start; flex-direction: column; gap: 3px; }
  .item-fields { grid-template-columns: 1fr 1fr; }
  .item-entry-actions { align-items: flex-start; flex-direction: column; }
  .item-entry-actions .button { width: 100%; }
  .cart-line { grid-template-columns: minmax(0,1fr) auto 27px; gap: 5px; }
  .cart-quantity { display: none; }
  .selected-price { display: none; }
  .barcode-row .button { min-width: 69px; padding: 0 10px; }
  .product-thumb, .product-placeholder { width: 31px; height: 31px; }
  .login-page { display: block; min-height: 100vh; background: #f5f7f3; }
  .login-card { width: min(420px, calc(100% - 42px)); padding: 35px 0 46px; }
  .brand-lockup-dark { margin-bottom: 50px; }
  .login-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
