:root {
  color-scheme: light;
  --ink: #222820;
  --muted: #81877d;
  --line: #ecece5;
  --paper: #f8f7f3;
  --white: #fff;
  --green: #315e4c;
  --green-soft: #e8f3ec;
  --lilac: #eeeafb;
  --peach: #fff0e5;
  --butter: #faf2d9;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 350px; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #98baa6; outline-offset: 2px; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 28px 15px; background: radial-gradient(ellipse at 15% 15%, #e7f0e7 0, transparent 32%), radial-gradient(ellipse at 85% 86%, #f1ece0 0, transparent 30%), #f8f7f3; }
.login-card { width: min(440px, 100%); padding: 30px; border: 1px solid #e9e9e2; border-radius: 17px; background: #fff; box-shadow: 0 18px 55px #2231260b; }
.login-brand { padding: 0; }
.login-copy { margin-top: 33px; }
.login-copy .eyebrow { margin-bottom: 9px; }
.login-copy h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1.3px; }
.login-copy h1 span { color: #548269; }
.login-copy > p:last-child { margin: 9px 0 0; color: #868c82; font-size: 11px; line-height: 1.75; }
.login-form { display: grid; gap: 15px; margin-top: 23px; }
.google-sheet-step { display: grid; gap: 14px; margin-top: 23px; }
.google-sheet-step .form-field input { height: 41px; font-size: 10px; }
.signed-in-notice { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 4px 8px; padding: 11px; border: 1px solid #e6eee6; border-radius: 8px; background: #f5f8f4; color: #687469; font-size: 10px; }
.signed-in-notice .note-dot { grid-row: span 2; margin: 0; }
.signed-in-notice strong { display: block; margin-top: 3px; color: #435b48; font-size: 10px; }
.field-help { color: #999f96; font-size: 9px; line-height: 1.5; }
.login-warning { display: flex; gap: 9px; padding: 11px; border: 1px solid #f0e6cf; border-radius: 8px; background: #fbf7ec; color: #786c50; font-size: 9px; line-height: 1.65; }
.login-warning > span:first-child { flex: none; }
.login-warning strong { color: #4d574b; }
.login-submit { width: 100%; min-height: 43px; font-size: 11px; }
.login-submit:disabled { cursor: wait; opacity: .75; }
.oauth-setup-note { margin: -5px 0 0; color: #927c50; text-align: center; font-size: 9px; line-height: 1.5; }
.oauth-setup-note code { display: block; margin-top: 4px; color: #3c6d53; overflow-wrap: anywhere; }
.login-google-g { width: 23px; height: 23px; border: 0; border-radius: 6px; background: #fff; font-size: 14px; }
.login-setup-link { margin: 17px 0 0; color: #858b81; text-align: center; font-size: 9px; }
.login-setup-link a { color: #3c6d53; font-weight: 700; text-decoration: none; }
.login-setup-link a:hover { text-decoration: underline; }
.login-privacy { margin: 19px 0 0; padding-top: 13px; border-top: 1px solid #f0f0eb; color: #a0a49c; text-align: center; font-size: 8px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 248px; flex-direction: column; padding: 25px 17px 17px; background: #fff; border-right: 1px solid #eeeee8; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border-radius: 13px; background: #315e4c; color: #fff; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -.6px; }
.brand-copy, .profile > span:last-child, .sidebar-note > span:last-child { display: grid; gap: 3px; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -.35px; }
.brand-copy small { color: #90958c; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.nav-label { margin: 47px 10px 12px; color: #a0a49c; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 43px; align-items: center; gap: 13px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #696f66; text-align: left; font-size: 12px; font-weight: 600; transition: background .18s, color .18s; }
.nav-link:hover { background: #f6f7f3; color: var(--ink); }
.nav-link.active { background: #eef4ef; color: #315e4c; font-weight: 700; }
.nav-icon { width: 17px; color: #8e958b; font-size: 17px; text-align: center; }
.nav-link.active .nav-icon { color: #315e4c; }
.nav-count { display: grid; min-width: 19px; height: 19px; place-items: center; margin-left: auto; border-radius: 7px; background: #fff0e5; color: #b26432; font-size: 10px; }
.sidebar-bottom { display: grid; gap: 5px; margin-top: auto; }
.google-connect { display: flex; min-width: 0; align-items: center; gap: 9px; margin-bottom: 7px; padding: 10px 8px; border: 1px solid #e8ece5; border-radius: 9px; background: #fff; text-align: left; }
.google-connect:hover { border-color: #cdd8ce; background: #fbfcf9; }
.google-g { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border: 1px solid #ebeee8; border-radius: 8px; color: #4285f4; font-family: Arial, sans-serif; font-size: 15px; font-weight: 700; }
.google-connect > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.google-connect strong { color: #485047; font-size: 9px; font-weight: 700; }
.google-connect small { color: #93998f; font-size: 8px; line-height: 1.35; }
.connect-arrow { margin-left: auto; color: #92998e; font-size: 12px; }
.sidebar-note { display: flex; align-items: flex-start; gap: 9px; margin: 0 2px 14px; padding: 12px 10px; border: 1px solid #edeee7; border-radius: 10px; background: #fbfbf8; }
.sidebar-note strong, .profile strong { font-size: 10px; font-weight: 700; }
.sidebar-note small, .profile small { color: #90958c; font-size: 9px; line-height: 1.5; }
.note-dot, .positive-dot { width: 7px; height: 7px; flex: none; margin-top: 4px; border-radius: 50%; background: #62a478; }
.sidebar-action { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 7px; background: none; color: #7b8177; text-align: left; font-size: 11px; }
.sidebar-action:hover { background: #f7f7f2; color: var(--ink); }
.profile { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 12px 3px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #fae8dd; color: #995d3d; font-size: 9px; font-weight: 700; }
.main-content { min-height: 100vh; margin-left: 248px; }
.topbar { display: flex; height: 66px; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid #ecece5; background: rgba(255,255,255,.78); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #989d94; font-size: 11px; }
.breadcrumb strong { color: #40473e; font-weight: 600; }
.breadcrumb-slash { color: #c5c8bf; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.today-label { color: #8a9087; font-size: 10px; }
.mobile-brand { display: none; }
.page-view { display: none; max-width: 1430px; margin: 0 auto; padding: 36px 42px 28px; animation: appear .23s ease-out; }
.page-view.active { display: block; }
@keyframes appear { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(27px, 3vw, 37px); font-weight: 700; letter-spacing: -1.8px; line-height: 1.22; }
.page-heading h1 span { color: #548269; }
.eyebrow { margin: 0 0 8px; color: #8e9489; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.page-subtitle { margin: 8px 0 0; color: #888e84; font-size: 12px; line-height: 1.6; }
.compact-heading { align-items: center; margin-bottom: 22px; }
.compact-heading h1 { font-size: 31px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; transition: transform .16s, box-shadow .16s, background .16s; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: #315e4c; color: #fff; box-shadow: 0 3px 8px #315e4c1c; }
.button-primary:hover { background: #264d3d; box-shadow: 0 5px 12px #315e4c2b; }
.button-secondary { border-color: #e7e8e0; background: #fff; color: #465044; }
.button-secondary:hover { background: #fafbf7; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.metric-card { position: relative; min-height: 140px; overflow: hidden; padding: 17px 18px; border: 1px solid #ebebe4; border-radius: 12px; background: #fff; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #777e73; font-size: 10px; font-weight: 600; }
.metric-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 700; }
.mint { background: var(--green-soft); color: #42745a; }
.lilac { background: var(--lilac); color: #7662a2; }
.peach { background: var(--peach); color: #bc7547; }
.butter { background: var(--butter); color: #a08333; }
.metric-value { position: relative; z-index: 1; margin-top: 12px; font-family: Manrope, sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -.9px; }
.metric-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #969b92; font-size: 9px; }
.metric-foot .positive-dot { width: 6px; height: 6px; margin: 0; }
.foot-divider { color: #c2c5bd; }
.metric-spark { position: absolute; right: 16px; bottom: 0; display: flex; height: 37px; align-items: flex-end; gap: 3px; opacity: .45; }
.metric-spark i { display: block; width: 5px; height: 13px; border-radius: 3px 3px 0 0; background: #b9d6c1; }
.metric-spark i:nth-child(2n) { height: 21px; }.metric-spark i:nth-child(3n) { height: 29px; }.metric-spark i:nth-child(4n) { height: 17px; }.metric-spark i:nth-child(7n) { height: 35px; }
.spark-revenue i { background: #cbc0e7; }.spark-stock i { background: #f0c8aa; }.spark-items i { background: #e6d69f; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 14px; margin-top: 15px; }
.panel { min-width: 0; border: 1px solid #ebebe4; border-radius: 12px; background: #fff; }
.platform-panel, .attention-panel, .activity-panel, .purchase-panel { min-height: 252px; padding: 18px 19px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-heading h2, .dialog-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.4px; }
.panel-caption { color: #9a9e96; font-size: 9px; }
.text-button { padding: 5px; border: 0; background: none; color: #59806a; font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-button:hover { color: #315e4c; }
.platform-chart { display: grid; gap: 14px; margin: 21px 0 17px; }
.platform-row { display: grid; grid-template-columns: 79px 1fr 75px; align-items: center; gap: 11px; }
.platform-name { display: flex; align-items: center; gap: 7px; color: #62695f; font-size: 10px; }
.platform-dot { width: 7px; height: 7px; border-radius: 50%; }
.platform-track { height: 7px; overflow: hidden; border-radius: 99px; background: #f2f2ee; }
.platform-bar { height: 100%; border-radius: inherit; background: #719981; }
.platform-value { color: #434a40; text-align: right; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel-divider { height: 1px; background: var(--line); }
.finance-summary { display: flex; justify-content: space-between; gap: 8px; padding-top: 14px; }
.summary-pair { display: grid; gap: 5px; }
.summary-pair span { color: #92978e; font-size: 9px; }
.summary-pair strong { font-size: 11px; font-weight: 700; }
.summary-pair:last-child { text-align: right; }
.low-stock-list, .activity-list, .purchase-mini-list { margin-top: 13px; }
.low-stock-row, .activity-row, .purchase-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 0; border-bottom: 1px solid #f1f1ec; }
.low-stock-row:last-child, .activity-row:last-child, .purchase-mini-row:last-child { border-bottom: 0; }
.low-stock-item, .activity-main, .purchase-mini-main { display: grid; min-width: 0; gap: 3px; }
.low-stock-item strong, .activity-main strong, .purchase-mini-main strong { overflow: hidden; color: #454c42; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.low-stock-item small, .activity-main small, .purchase-mini-main small { color: #989d94; font-size: 9px; }
.stock-qty { flex: none; padding: 4px 7px; border-radius: 6px; background: #fff0e6; color: #ac6b43; font-size: 9px; font-weight: 700; }
.activity-tag { display: inline-flex; align-items: center; gap: 5px; color: #55916a; font-size: 9px; font-weight: 700; }
.activity-tag.out { color: #bc7955; }
.activity-amount { flex: none; color: #52594e; font-size: 10px; font-weight: 700; }
.empty-inline { padding: 24px 0; color: #9a9f96; text-align: center; font-size: 10px; }
.page-foot { padding: 22px 3px 0; color: #9b9f97; font-size: 9px; }
.inventory-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.search-box { display: flex; width: min(330px, 100%); height: 37px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e9eae2; border-radius: 8px; background: #fff; color: #92988d; }
.search-box > span { font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder { color: #adb1a9; }
.search-box input:focus-visible { outline: 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-tab { min-height: 31px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #858b81; font-size: 10px; }
.filter-tab span { color: #a2a69d; font-size: 9px; }
.filter-tab.active { border-color: #e7e9e2; background: #fff; color: #355e49; font-weight: 700; }
.inventory-panel { overflow: hidden; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table-heading > div:first-child { display: grid; gap: 5px; }
.table-heading > div:first-child strong { font-size: 11px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { height: 37px; padding: 0 13px; background: #fbfbf9; color: #969b92; font-size: 8px; font-weight: 700; letter-spacing: .65px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
td { height: 54px; padding: 8px 13px; border-bottom: 1px solid #f0f0eb; color: #697066; font-size: 10px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.item-cell { display: flex; align-items: center; gap: 10px; }
.item-thumb { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 9px; background: #f3eee4; color: #9d815b; font-size: 12px; }
.item-thumb.packaging { background: #edf0f7; color: #7783a1; }
.item-name { display: grid; max-width: 310px; gap: 3px; overflow: hidden; }
.item-name strong { overflow: hidden; color: #343b33; font-size: 10px; font-weight: 700; text-overflow: ellipsis; }
.item-name small { color: #9a9f96; font-size: 9px; }
.category-pill { display: inline-flex; padding: 4px 7px; border-radius: 6px; background: #f7f3e9; color: #8b7850; font-size: 9px; }
.category-pill.packaging { background: #eff1f7; color: #6f7992; }
.stock-cell { color: #353c34; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock-cell small { margin-left: 3px; color: #9a9f96; font-weight: 400; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; background: #eaf4ed; color: #50775c; font-size: 9px; font-weight: 600; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.low { background: #fff2e8; color: #ad704b; }
.status-pill.empty { background: #fcebea; color: #af5b56; }
.row-action { padding: 6px 8px; border: 1px solid #ecece6; border-radius: 6px; background: #fff; color: #6a7266; font-size: 9px; }
.row-action:hover { border-color: #bbd0c2; color: #315e4c; }
.inventory-note { display: flex; align-items: center; gap: 7px; padding: 13px 2px; color: #969b92; font-size: 9px; }
.inventory-note span { color: #a48a46; }
.empty-state { padding: 36px 15px; color: #969b92; text-align: center; font-size: 11px; }
.hidden { display: none !important; }
.search-box-small { width: 210px; height: 33px; }
.purchase-metrics, .finance-metrics { margin-bottom: 14px; }
.purchase-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purchase-metrics .metric-card { min-height: 122px; }
.align-right { text-align: right; }
.finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.finance-grid > .panel { min-height: 230px; padding: 18px; }
.finance-platforms { display: grid; gap: 15px; margin: 20px 0 11px; }
.finance-platform-row { display: grid; grid-template-columns: 72px 1fr 82px 34px; align-items: center; gap: 10px; }
.finance-platform-row .platform-name { font-size: 10px; }
.share-label { color: #9a9f96; text-align: right; font-size: 9px; }
.panel-footnote { min-height: 14px; color: #a2744c; font-size: 9px; }
.expense-breakdown { display: grid; gap: 17px; margin-top: 20px; }
.expense-row { display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 10px; }
.expense-name { color: #777e73; font-size: 10px; }
.expense-track { height: 6px; overflow: hidden; border-radius: 99px; background: #f2f1ed; }
.expense-bar { height: 100%; border-radius: inherit; background: #d0ad86; }
.expense-amount { color: #444b41; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.transaction-panel { overflow: hidden; margin-top: 14px; }
.transaction-panel > .panel-heading { min-height: 68px; padding: 13px 18px; }
.transaction-type { display: inline-flex; align-items: center; gap: 6px; color: #518062; font-size: 9px; font-weight: 700; }
.transaction-type.expense { color: #b17150; }
.finance-disclaimer { margin: 13px 2px; color: #9a9f96; font-size: 9px; }
.workbook-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #ebebe4; border-radius: 7px; background: #fff; color: #777e73; font-size: 9px; }
.workbook-badge .note-dot { margin: 0; }
.payout-report { margin-top: 14px; }
.payout-report-panel { overflow: hidden; }
.payout-report-heading > div:first-child { display: grid; gap: 5px; }
.payout-report-heading .eyebrow { margin: 0; }
.payout-report-heading strong { color: #343b33; font-size: 12px; }
.payout-report-heading > .button:disabled { cursor: not-allowed; opacity: .5; }
.payout-report-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.payout-report-metrics .metric-card { min-height: 105px; padding: 13px; }
.payout-report-metrics .metric-value { font-size: 18px; }
.payout-report-table { min-width: 1120px; }
.payout-report-table th, .payout-report-table td { text-align: right; }
.payout-report-table th:first-child, .payout-report-table td:first-child { text-align: left; }
.payout-report-table th { white-space: normal; line-height: 1.45; }
.payout-report-table .report-total-row td { border-top: 1px solid #dfe4dc; background: #f7f8f4; color: #343b33; font-weight: 700; }
.app-dialog { width: min(520px, calc(100% - 26px)); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 14px; background: transparent; color: var(--ink); box-shadow: 0 18px 70px #1d2b2033; }
.app-dialog::backdrop { background: #16221976; backdrop-filter: blur(2px); }
.dialog-shell { padding: 22px; border: 1px solid #ebebe4; border-radius: 14px; background: #fff; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading .eyebrow { margin-bottom: 6px; }
.dialog-heading h2 { font-size: 20px; letter-spacing: -.7px; }
.icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #ecece6; border-radius: 8px; background: #fff; color: #747a70; font-size: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { display: grid; align-content: start; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #697066; font-size: 10px; font-weight: 700; }
.form-field input, .form-field select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e6e8e0; border-radius: 7px; background: #fff; color: #30382f; font-size: 11px; }
.form-field input::placeholder { color: #afb3ab; }
.form-error { margin-top: 12px; color: #b4524d; font-size: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.google-intro { margin: -6px 0 14px; color: #747b71; font-size: 11px; line-height: 1.7; }
.google-access-note { display: flex; gap: 8px; padding: 11px; border: 1px solid #f0e6cf; border-radius: 8px; background: #fbf7ec; color: #796b4a; font-size: 9px; line-height: 1.6; }
.google-access-note > span:first-child { flex: none; font-size: 13px; }
.google-settings { display: grid; gap: 12px; margin-top: 17px; }
.google-setup-help { padding: 10px; border-radius: 7px; background: #f6f7f3; color: #7b8177; font-size: 9px; line-height: 1.65; }
.google-setup-help strong { color: #4c554a; }
.google-save { justify-self: start; min-height: 33px; font-size: 10px; }
.google-actions { align-items: center; }
.google-actions > :first-child { margin-right: auto; }
.google-actions button:disabled { cursor: wait; opacity: .7; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 10; max-width: min(390px, calc(100% - 30px)); padding: 12px 16px; transform: translateY(15px); border-radius: 9px; background: #273d30; color: #fff; opacity: 0; pointer-events: none; box-shadow: 0 8px 25px #17231b36; font-size: 11px; transition: .2s; }
.toast.show { transform: none; opacity: 1; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f1f1;
  --muted: #a0a0a0;
  --line: #303030;
  --paper: #111;
  --white: #1b1b1b;
  --green: #d2d2d2;
  --green-soft: #292929;
  --lilac: #292929;
  --peach: #302a2a;
  --butter: #302f2a;
}
:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .login-page { background: radial-gradient(ellipse at 15% 15%, #202020 0, transparent 32%), radial-gradient(ellipse at 85% 86%, #242424 0, transparent 30%), #111; }
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .google-connect,
:root[data-theme="dark"] .row-action,
:root[data-theme="dark"] .dialog-shell,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select { background: #1b1b1b; color: #ededed; }
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .google-connect,
:root[data-theme="dark"] .sidebar-note,
:root[data-theme="dark"] .dialog-shell,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .row-action,
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select { border-color: #353535; }
:root[data-theme="dark"] .topbar { border-color: #303030; background: rgba(24,24,24,.94); }
:root[data-theme="dark"] .breadcrumb strong,
:root[data-theme="dark"] .metric-value,
:root[data-theme="dark"] .summary-pair strong,
:root[data-theme="dark"] .platform-value,
:root[data-theme="dark"] .low-stock-item strong,
:root[data-theme="dark"] .activity-main strong,
:root[data-theme="dark"] .purchase-mini-main strong,
:root[data-theme="dark"] .item-name strong,
:root[data-theme="dark"] .stock-cell,
:root[data-theme="dark"] .expense-amount,
:root[data-theme="dark"] .payout-report-heading strong,
:root[data-theme="dark"] .report-total-row td { color: #f0f0f0; }
:root[data-theme="dark"] .nav-link { color: #c0c0c0; }
:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .sidebar-action:hover,
:root[data-theme="dark"] .google-connect:hover { background: #282828; }
:root[data-theme="dark"] .nav-link.active,
:root[data-theme="dark"] .filter-tab.active { border-color: #414141; background: #303030; color: #fff; }
:root[data-theme="dark"] .nav-link.active .nav-icon,
:root[data-theme="dark"] .button-primary { color: #111; }
:root[data-theme="dark"] .button-primary { background: #e6e6e6; box-shadow: none; }
:root[data-theme="dark"] .button-primary:hover { background: #fff; box-shadow: none; }
:root[data-theme="dark"] .button-secondary:hover,
:root[data-theme="dark"] .filter-tab.active { background: #292929; }
:root[data-theme="dark"] .search-box,
:root[data-theme="dark"] .table-heading,
:root[data-theme="dark"] th,
:root[data-theme="dark"] .payout-report-table .report-total-row td { border-color: #303030; background: #1b1b1b; }
:root[data-theme="dark"] td { border-color: #292929; color: #c5c5c5; }
:root[data-theme="dark"] .low-stock-row,
:root[data-theme="dark"] .activity-row,
:root[data-theme="dark"] .purchase-mini-row { border-color: #303030; }
:root[data-theme="dark"] .platform-track,
:root[data-theme="dark"] .expense-track { background: #303030; }
:root[data-theme="dark"] .sidebar-note,
:root[data-theme="dark"] .google-setup-help { border-color: #343434; background: #222; }
:root[data-theme="dark"] .signed-in-notice,
:root[data-theme="dark"] .login-warning,
:root[data-theme="dark"] .google-access-note { border-color: #3a3a3a; background: #252525; color: #d0d0d0; }
:root[data-theme="dark"] .google-setup-help strong,
:root[data-theme="dark"] .login-warning strong,
:root[data-theme="dark"] .signed-in-notice strong { color: #ededed; }
:root[data-theme="dark"] .payout-report-table .report-total-row td { border-top-color: #444; }
:root[data-theme="dark"] .app-dialog::backdrop { background: #000b; }
:root[data-theme="dark"] .toast { background: #e6e6e6; color: #111; }
:root[data-theme="dark"] .theme-toggle { gap: 6px; }

@media (min-width: 1500px) { .page-view { padding-right: 54px; padding-left: 54px; } }
@media (max-width: 1120px) { .sidebar { width: 216px; }.main-content { margin-left: 216px; }.topbar { padding: 0 27px; }.page-view { padding-right: 27px; padding-left: 27px; }.metric-card { padding: 15px; }.metric-value { font-size: 22px; }.dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(275px, .82fr); } }
@media (max-width: 850px) { .sidebar { width: 66px; align-items: center; padding: 18px 8px; }.brand { padding: 0; }.brand-copy, .nav-label, .nav-link:not(.active), .nav-link.active { font-size: 0; }.brand-copy, .sidebar-note, .sidebar-action span, .profile > span:last-child, .nav-count, .google-connect > span:not(.google-g), .connect-arrow { display: none; }.primary-nav { width: 100%; margin-top: 39px; }.nav-link { justify-content: center; width: 48px; padding: 0; font-size: 0 !important; }.nav-icon { font-size: 17px; }.sidebar-bottom { justify-items: center; width: 100%; }.google-connect { justify-content: center; width: 42px; padding: 7px; }.sidebar-action { justify-content: center; width: 42px; padding: 9px 0; font-size: 15px; }.profile { justify-content: center; width: 100%; }.main-content { margin-left: 66px; }.topbar { padding: 0 20px; }.page-view { padding: 28px 20px; }.dashboard-grid { grid-template-columns: 1fr 1fr; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topbar { height: 57px; padding: 0 14px; }.breadcrumb, .today-label { display: none; }.mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; }.mobile-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }.topbar-right { margin-left: auto; gap: 6px; }.theme-toggle, .google-top-button { min-height: 34px; padding: 0 8px; font-size: 9px; }.theme-toggle > span:last-child { display: none; }.top-add { min-height: 34px; padding: 0 10px; font-size: 10px; }.page-view { padding: 23px 13px; }.page-heading { align-items: flex-start; }.page-heading h1 { font-size: 27px; }.page-heading .button-secondary { display: none; }.page-subtitle { max-width: 290px; font-size: 11px; }.compact-heading { align-items: center; }.compact-heading h1 { font-size: 25px; }.compact-heading > .button, .compact-heading > .workbook-badge { align-self: flex-start; margin-top: 17px; }.compact-heading > .button { min-height: 34px; padding: 0 10px; font-size: 9px; }.metric-grid { gap: 8px; }.metric-card { min-height: 127px; padding: 12px; }.metric-top { font-size: 9px; }.metric-icon { width: 24px; height: 24px; }.metric-value { font-size: 20px; }.metric-foot { max-width: 155px; flex-wrap: wrap; font-size: 8px; }.metric-spark { right: 10px; }.dashboard-grid, .finance-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }.platform-panel, .attention-panel, .activity-panel, .purchase-panel { min-height: 0; padding: 15px; }.purchase-metrics { grid-template-columns: 1fr 1fr; }.purchase-metrics .metric-card:first-child { grid-column: 1 / -1; }.finance-metrics { grid-template-columns: 1fr 1fr; }.payout-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }.payout-report-metrics .metric-card { min-height: 112px; padding: 10px; }.payout-report-metrics .metric-value { font-size: 17px; }.inventory-toolbar { align-items: flex-start; }.search-box { width: 100%; }.filter-tabs { width: 100%; }.filter-tab { padding: 0 8px; }.table-heading { align-items: flex-start; padding: 12px; }.table-heading > div:first-child { max-width: 60%; }.table-heading .panel-caption { line-height: 1.5; }.table-heading > .search-box { width: 145px; }.table-heading > .button { flex: none; }.table-scroll { overflow-x: auto; }table { min-width: 690px; }.inventory-panel table:not(.wide) { min-width: 660px; }.inventory-note { align-items: flex-start; line-height: 1.5; }.workbook-badge { max-width: 135px; white-space: normal; line-height: 1.4; }.finance-platform-row { grid-template-columns: 67px 1fr 72px 29px; gap: 7px; }.expense-row { grid-template-columns: 85px 1fr auto; gap: 7px; }.dialog-shell { padding: 17px; }.form-grid { gap: 11px; }.form-field input, .form-field select { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
