:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #18212f;
  background: #f4f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #1769e0;
  --blue-dark: #1155ba;
  --sidebar: #17202b;
  --ink: #17202e;
  --muted: #687386;
  --line: #e3e7ed;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { min-width: 320px; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #66a3ff; outline-offset: 2px; }
.hide { display: none !important; }

/* sign in ------------------------------------------------------------------ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(410px, .85fr); background: #fff; }
.login-showcase { position: relative; min-height: 100vh; background: #27313f center / cover no-repeat; color: #fff; overflow: hidden; }
.showcase-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(12, 23, 37, .88), rgba(23, 105, 224, .42)); }
.showcase-content { position: relative; z-index: 1; height: 100%; min-height: 100vh; padding: 48px 8%; display: flex; flex-direction: column; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 750; }
.brand-light { color: #fff; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--blue); border-radius: 7px; }
.showcase-copy { max-width: 580px; margin-bottom: 10vh; }
.eyebrow { margin: 0 0 13px; color: #9cc4ff; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.showcase-copy h1 { margin: 0 0 18px; font-size: 42px; line-height: 1.16; }
.showcase-copy p { margin: 0; max-width: 480px; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.75; }
.showcase-metrics { display: flex; width: min(520px, 100%); border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 24px; }
.showcase-metrics div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.showcase-metrics strong { font-size: 23px; }
.showcase-metrics span { color: rgba(255, 255, 255, .68); font-size: 13px; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 48px 11%; }
.login-form { width: 100%; max-width: 410px; }
.mobile-brand { display: none; margin-bottom: 42px; }
.login-heading { margin-bottom: 30px; }
.login-heading h2 { margin: 0 0 9px; font-size: 28px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.field-label { display: block; margin: 0 0 8px; color: #394457; font-size: 13px; font-weight: 700; }
.input-shell { height: 46px; margin-bottom: 20px; padding: 0 12px; display: flex; align-items: center; gap: 10px; color: #8791a2; border: 1px solid #d8dde5; border-radius: 6px; background: #fff; }
.input-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 224, .1); }
.input-shell input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); }
.login-error { min-height: 40px; margin: -9px 0 16px; padding: 9px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #fecaca; border-radius: 6px; color: #b42318; background: #fff4f2; font-size: 13px; }
.primary-button, .secondary-button, .danger-button { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.primary-button { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.primary-button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.secondary-button { border: 1px solid #d9dee6; color: #344054; background: #fff; }
.secondary-button:hover { color: var(--blue); border-color: #a9c7f3; background: #f7faff; }
.danger-button { border: 1px solid #e0e4ea; color: #b42318; background: #fff; }
.danger-button:hover { border-color: #f2b8b3; background: #fff6f5; }
.login-button { width: 100%; height: 47px; font-size: 14px; }

/* shell -------------------------------------------------------------------- */
.admin-shell { min-height: 100vh; background: #f4f6f8; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 224px; padding: 0 12px 18px; display: flex; flex-direction: column; background: var(--sidebar); }
.sidebar-brand { min-height: 70px; padding: 0 8px; gap: 10px; }
.sidebar-brand > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sidebar-brand strong { font-size: 15px; }
.sidebar-brand small { color: #8d9aab; font-size: 10px; font-weight: 500; }
.sidebar-brand .brand-mark { width: 34px; height: 34px; }
.nav-list { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nav-list button { width: 100%; height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; color: #aeb9c7; background: transparent; font-size: 13px; text-align: left; }
.nav-list button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-list button.active { color: #fff; background: var(--blue); }
.sidebar-foot { margin-top: auto; }
.logout-button { width: 100%; height: 39px; padding: 0 13px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 6px; color: #aeb9c7; background: transparent; font-size: 12px; }
.logout-button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.main-area { min-height: 100vh; margin-left: 224px; }
.topbar { position: sticky; z-index: 30; top: 0; height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #e1e5eb; background: rgba(255, 255, 255, .96); }
.topbar-note { color: var(--muted); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-profile { min-width: 190px; height: 44px; padding: 0 5px 0 8px; display: flex; align-items: center; gap: 9px; border: 0; border-left: 1px solid #e4e7ec; color: #293445; background: transparent; text-align: left; }
.admin-profile > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-profile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.admin-profile small { color: #8691a1; font-size: 10px; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; }
.avatar-soft { color: #376295; background: #eaf2fc; }
.icon-button { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.order-modal.catalog-modal { width: min(640px, 100%); }
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 27px 28px 42px; }
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-heading h1 { margin: 0 0 5px; font-size: 23px; line-height: 1.25; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.date-chip { padding: 7px 10px; white-space: nowrap; color: #5f6c7d; border: 1px solid #dde2e9; border-radius: 6px; background: #fff; font-size: 11px; }

/* cards and panels --------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 119px; padding: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid #e1e6ed; border-top: 3px solid currentColor; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(21, 31, 45, .035); }
.stat-card > div { min-width: 0; display: flex; flex-direction: column; }
.stat-card span { color: #6f7b8d; font-size: 12px; }
.stat-card strong { margin: 6px 0 5px; color: #1a2433; font-size: 25px; line-height: 1; }
.stat-card small { color: #7f8a99; font-size: 10px; }
.stat-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; }
.stat-blue { color: #2563eb; }.stat-blue .stat-icon { background: #eaf1ff; }
.stat-teal { color: #0e9073; }.stat-teal .stat-icon { background: #e7f7f2; }
.stat-violet { color: #7c4ed7; }.stat-violet .stat-icon { background: #f0ebfc; }
.stat-amber { color: #d27a09; }.stat-amber .stat-icon { background: #fff3df; }
.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr); gap: 16px; }
.lower-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.panel { border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(21, 31, 45, .03); overflow: hidden; }
.panel-head { min-height: 67px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf0f4; }
.panel-head h2, .toolbar h2 { margin: 0 0 4px; font-size: 14px; }
.panel-head p, .toolbar p { margin: 0; color: #8792a2; font-size: 10px; }
.trend-pill, .count-chip { padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.trend-pill { color: #13795b; background: #e8f8f1; }
.count-chip { color: #a95f05; background: #fff3df; }
.revenue-summary { padding: 17px 20px 0; display: flex; align-items: baseline; gap: 11px; }
.revenue-summary strong { font-size: 25px; }
.revenue-summary span { color: #7f8a9a; font-size: 10px; }
.bar-chart { height: 205px; padding: 18px 22px 17px; display: flex; align-items: flex-end; gap: clamp(9px, 3vw, 26px); }
.bar-column { height: 100%; min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-value { margin-bottom: 5px; color: #8994a4; font-size: 9px; }
.bar-track { width: min(28px, 70%); height: 132px; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; background: #eff3f8; overflow: hidden; }
.bar-fill { width: 100%; min-height: 8%; border-radius: 4px 4px 0 0; background: var(--blue); }
.bar-column > span { margin-top: 7px; color: #7f8a9a; font-size: 9px; }
.todo-row { width: 100%; min-height: 74px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; text-align: left; }
.todo-row:last-child { border-bottom: 0; }
.todo-row:hover { background: #fafbfd; }
.todo-row > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.todo-row strong { color: #263244; font-size: 12px; }
.todo-row small { color: #8792a2; font-size: 10px; }
.todo-row b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #4f5c6e; background: #f0f2f5; font-size: 10px; }
.orange { color: #b86808; background: #fff0dc; }.red { color: #c53a3a; background: #ffecec; }.blue { color: #2563c9; background: #eaf2fd; }.teal { color: #137c69; background: #e6f5f1; }.violet { color: #7045bd; background: #f0eafa; }
.text-button { padding: 6px 8px; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 700; }
.category-list { padding: 3px 19px 8px; }
.category-row { min-height: 52px; display: grid; grid-template-columns: 9px minmax(150px, 1.4fr) minmax(70px, .7fr) minmax(90px, .8fr); align-items: center; gap: 11px; border-bottom: 1px solid #eff2f5; font-size: 11px; }
.category-row:last-child { border-bottom: 0; }
.category-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.category-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.category-row strong { font-size: 11px; }
.category-row small { color: #8b95a5; font-size: 9px; }
.category-row > span:nth-child(3) { color: #6c7788; }
.category-row b { color: #293547; text-align: right; }
.recent-order { min-height: 63px; padding: 8px 18px; display: grid; grid-template-columns: 34px minmax(120px, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #eff2f5; }
.recent-order:last-child { border-bottom: 0; }
.recent-order > span:nth-child(2), .recent-order > span:nth-child(3) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.recent-order strong, .recent-order b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #293547; font-size: 11px; }
.recent-order small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8792a2; font-size: 9px; }
.recent-order > span:last-child { align-items: flex-end; display: flex; flex-direction: column; gap: 4px; }

/* tables ------------------------------------------------------------------- */
.toolbar { min-height: 70px; padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e8ebf0; }
.filter-group { min-width: 0; display: flex; align-items: center; gap: 9px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.search-control { width: 270px; height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 8px; color: #7c8797; border: 1px solid #dce1e8; border-radius: 6px; background: #fff; }
.search-control:focus-within { border-color: #80abe8; box-shadow: 0 0 0 3px rgba(23, 105, 224, .08); }
.search-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: #263244; font-size: 12px; }
select { height: 38px; min-width: 126px; padding: 0 30px 0 10px; border: 1px solid #dce1e8; border-radius: 6px; color: #4f5b6d; background: #fff; font-size: 11px; }
.result-meta { padding: 10px 17px; display: flex; justify-content: space-between; gap: 12px; color: #7d8999; background: #fafbfc; border-bottom: 1px solid #edf0f3; font-size: 10px; }
.result-meta > span:last-child { color: var(--blue); font-weight: 700; }
.product-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-summary article { min-height: 94px; padding: 16px 17px; display: flex; align-items: center; gap: 11px; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; }
.product-summary article > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.product-summary small { color: #6d798a; font-size: 10px; }
.product-summary strong { color: #1e2b3e; font-size: 22px; line-height: 1.05; }
.product-summary em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a95a4; font-size: 9px; font-style: normal; }
.summary-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th { height: 42px; padding: 0 14px; color: #667284; background: #fafbfc; border-bottom: 1px solid #e7ebf0; font-size: 10px; font-weight: 750; text-align: left; white-space: nowrap; }
td { height: 66px; padding: 8px 14px; color: #4a5667; border-bottom: 1px solid #edf0f4; font-size: 11px; vertical-align: middle; }
tbody tr:hover { background: #fbfcfe; }
tbody tr:last-child td { border-bottom: 0; }
.product-cell, .person-cell { min-width: 0; display: flex; align-items: center; gap: 10px; }
.product-cell { min-width: 270px; max-width: 400px; }
.product-cell img { width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid #e5e8ed; border-radius: 5px; object-fit: cover; background: #f5f6f8; }
.product-cell > span, .person-cell > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.product-cell strong, .person-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #253143; font-size: 11px; }
.product-cell small, .person-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8993a2; font-size: 9px; }
.person-cell { min-width: 185px; max-width: 260px; }
.money-cell { color: #22314a; font-weight: 750; white-space: nowrap; }
.cell-subtext { margin-top: 4px; display: block; color: #8993a2; font-size: 9px; font-weight: 400; white-space: nowrap; }
.badge, .inline-status { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 9px; font-weight: 750; }
.badge { min-height: 23px; padding: 0 8px; border-radius: 5px; }
.badge-success { color: #13775b; background: #e7f6f0; }
.badge-warning { color: #a95e06; background: #fff1dc; }
.badge-info { color: #225fb4; background: #e7f0fd; }
.badge-muted { color: #6d7685; background: #eef0f3; }
.badge-danger { color: #b42318; background: #ffecec; }
.table-action { border: 1px solid #e0e4ea; background: #fff; }
.order-actions { display: flex; justify-content: flex-end; gap: 7px; }
.deliver-action { min-height: 30px; padding: 0 10px; font-size: 11px; color: #08785f; border: 1px solid #b9e1d6; border-radius: 6px; background: #f0faf7; }
.deliver-action:hover { color: #06634f; background: #e4f5ef; }
.pagination { min-height: 57px; padding: 10px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e8ebf0; color: #7d8898; font-size: 10px; }
.pagination div { display: flex; gap: 7px; }
.pagination button { min-width: 62px; height: 31px; padding: 0 10px; border: 1px solid #dce1e8; border-radius: 5px; color: #4d596a; background: #fff; font-size: 10px; }
.pagination button:hover:not(:disabled) { color: var(--blue); border-color: #a9c7f3; }
.member-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; }
.member-summary > div { min-height: 104px; padding: 20px 24px; display: flex; flex-direction: column; border-right: 1px solid #e7ebf0; }
.member-summary > div:last-child { border-right: 0; }
.member-summary span, .finance-summary span { color: #6d798a; font-size: 11px; }
.member-summary strong, .finance-summary strong { margin: 7px 0 5px; color: #1e2b3e; font-size: 23px; }
.member-summary small, .finance-summary small { color: #7f8b9a; font-size: 9px; }
.finance-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.finance-summary article { min-height: 110px; padding: 18px; display: flex; flex-direction: column; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; }
.finance-summary strong { font-size: 21px; }
.negative { color: #bd3e3e; }
.sku-text { color: #55637a; font-family: Consolas, monospace; font-size: 10px; }

/* modal and toast ---------------------------------------------------------- */
.modal-mask { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 26, 37, .52); }
.order-modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 8px; background: #fff; box-shadow: 0 22px 65px rgba(0, 0, 0, .24); }
.modal-head { min-height: 69px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7ebf0; }
.modal-head > div { display: flex; flex-direction: column; gap: 4px; }
.modal-head span { color: #7b8797; font-size: 10px; }
.modal-head strong { color: #263244; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 18px; }
.order-status-line { padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; background: #fafbfc; border-bottom: 1px solid #e9edf1; }
.order-status-line small { color: #7e8998; font-size: 9px; }
.detail-section { padding: 17px 18px; border-bottom: 1px solid #edf0f3; }
.detail-section h3 { margin: 0 0 13px; color: #2f3b4d; font-size: 12px; }
.detail-section dl { margin: 0; display: grid; gap: 10px; }
.detail-section dl div { display: flex; justify-content: space-between; gap: 14px; font-size: 10px; }
.detail-section dt { color: #7d8999; }
.detail-section dd { margin: 0; color: #2e3a4c; text-align: right; }
.catalog-form { padding: 18px; display: grid; gap: 15px; }
.catalog-form label { min-width: 0; display: grid; gap: 7px; color: #4e5a6b; font-size: 11px; font-weight: 700; }
.catalog-form input, .catalog-form select { width: 100%; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #dce1e8; border-radius: 6px; outline: 0; color: #263244; background: #fff; font-size: 12px; }
.catalog-form input:focus, .catalog-form select:focus { border-color: #80abe8; box-shadow: 0 0 0 3px rgba(23, 105, 224, .08); }
.catalog-form input:disabled { color: #7d8998; background: #f5f7f9; }
.cover-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cover-choice { padding: 0; display: grid; gap: 5px; border: 2px solid transparent; border-radius: 6px; background: transparent; text-align: left; }
.cover-choice img { width: 100%; height: 62px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e8ed; }
.cover-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6c7788; font-size: 9px; }
.cover-choice.on { border-color: var(--blue); background: #f5f9ff; }
.notice { margin: 14px 18px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; color: #8a5a0a; border: 1px solid #f1d8a8; border-radius: 6px; background: #fff9ed; font-size: 10px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; min-height: 43px; padding: 0 15px; display: flex; align-items: center; gap: 9px; border: 1px solid #bfdfd2; border-radius: 6px; color: #176a52; background: #eefaf5; box-shadow: 0 10px 30px rgba(20, 54, 43, .13); font-size: 11px; font-weight: 700; }

@media (max-width: 1100px) {
  .stat-grid, .finance-summary, .product-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-summary > div:nth-child(2) { border-right: 0; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .search-control { width: 220px; }
  .toolbar { align-items: flex-start; }
  .filter-group { flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-showcase { display: none; }
  .login-panel { padding: 36px 24px; }
  .mobile-brand { display: flex; }
  .main-area { margin-left: 0; }
  .sidebar { display: none; }
  .topbar { padding: 0 17px; }
  .content { padding: 22px 17px 34px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-actions { justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .stat-grid, .finance-summary, .product-summary, .member-summary { grid-template-columns: 1fr; }
  .member-summary > div { border-right: 0; border-bottom: 1px solid #e7ebf0; }
  .page-heading { align-items: flex-start; }
  .date-chip { display: none; }
  .filter-group { display: grid; grid-template-columns: 1fr; }
  .search-control, select { width: 100%; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr; }
  .toolbar-actions button { width: 100%; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .cover-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
