:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #17221e;
  --muted: #718078;
  --muted-strong: #526159;
  --canvas: #f3f5f1;
  --panel: #ffffff;
  --panel-soft: #f8faf7;
  --line: #dfe6df;
  --line-strong: #cfd9d0;
  --sidebar: #11251f;
  --sidebar-soft: #1b352c;
  --accent: #b8ee74;
  --accent-strong: #8fd441;
  --green: #297955;
  --green-soft: #e7f5ec;
  --amber: #a96913;
  --amber-soft: #fff3d9;
  --red: #b7473f;
  --red-soft: #fdebea;
  --blue: #3a699d;
  --blue-soft: #eaf2fb;
  --shadow: 0 14px 36px rgb(24 42 34 / 8%);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }

.login-view {
  min-height: 100vh;
  padding: 34px 48px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 82%, rgb(184 238 116 / 16%) 0, transparent 24%),
    linear-gradient(115deg, #10251f 0%, #17372c 54%, #f3f5f1 54%, #f3f5f1 100%);
}

.login-brand, .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f7fff4;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--sidebar);
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgb(17 37 31 / 12%);
}

.login-layout {
  display: grid;
  min-height: calc(100vh - 117px);
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.login-story { max-width: 610px; padding: 30px 8vw 30px 5vw; color: #fff; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.eyebrow.light { color: var(--accent); }
.login-story h1 { margin: 0; font-size: clamp(48px, 5.2vw, 78px); line-height: 0.98; letter-spacing: -4px; }
.login-lead { max-width: 510px; margin: 27px 0 0; color: #c7d6ce; font-size: 17px; line-height: 1.7; }
.story-stats { display: flex; gap: 50px; margin-top: 58px; }
.story-stats div { display: grid; gap: 3px; }
.story-stats strong { color: var(--accent); font-size: 23px; }
.story-stats span { color: #9fb3a9; font-size: 12px; }
.login-card-wrap { display: grid; place-items: center; padding: 30px 4vw 30px 8vw; }
.login-card { width: min(430px, 100%); border: 1px solid var(--line); border-radius: 22px; padding: 38px; background: #fff; box-shadow: 0 30px 70px rgb(17 37 31 / 14%); }
.login-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 32px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.security-dot { color: var(--green); font-size: 9px; }
.login-card h2 { margin: 0; font-size: 31px; letter-spacing: -1.3px; }
.login-card > p { margin: 9px 0 29px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 8px; margin-top: 17px; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, .filter-control {
  width: 100%; min-height: 45px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 13px; outline: none; background: #fbfcfa; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-control:focus { border-color: #7faf55; box-shadow: 0 0 0 3px rgb(143 212 65 / 18%); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.password-toggle { position: absolute; top: 3px; right: 3px; color: var(--muted); }
.form-error { min-height: 18px; margin-top: 12px; color: var(--red); font-size: 12px; }
.primary-button, .soft-button, .ghost-button, .danger-button, .table-button {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 0 15px; cursor: pointer; font-weight: 750; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.primary-button { background: var(--sidebar); color: #fff; }
.primary-button:hover { background: #1d3a31; transform: translateY(-1px); }
.login-button { width: 100%; min-height: 50px; justify-content: space-between; margin-top: 5px; padding: 0 18px; }
.login-button:disabled, button:disabled { cursor: wait; opacity: .62; transform: none; }
.login-card .login-footnote { margin: 20px 0 0; text-align: center; font-size: 11px; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 30; display: flex; width: 248px; height: 100vh; flex-direction: column; padding: 26px 16px 18px; background: var(--sidebar); color: #dbe7e0; }
.sidebar-brand { padding: 0 10px 24px; }
.main-nav { flex: 1; overflow-y: auto; }
.nav-label { margin: 16px 12px 8px; color: #789286; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.nav-label.second { margin-top: 28px; }
.nav-item { display: grid; width: 100%; min-height: 45px; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 0 12px; background: transparent; color: #aebfb6; cursor: pointer; text-align: left; font-size: 13px; font-weight: 680; }
.nav-item:hover { background: rgb(255 255 255 / 5%); color: #fff; }
.nav-item.active { background: var(--sidebar-soft); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { display: grid; width: 25px; height: 25px; place-items: center; color: #8eaa9c; font-size: 19px; font-weight: 500; }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-badge { min-width: 22px; border-radius: 999px; padding: 3px 6px; background: var(--accent); color: var(--sidebar); text-align: center; font-size: 10px; }
.nav-badge.danger { background: #f4a39c; color: #591913; }
.sidebar-bottom { display: grid; gap: 13px; }
.support-link { display: grid; min-height: 39px; grid-template-columns: 24px 1fr; align-items: center; gap: 7px; padding: 0 12px; color: #8fa69a; text-decoration: none; font-size: 12px; }
.support-link:hover { color: #fff; }
.support-link > span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #577066; border-radius: 50%; }
.admin-profile { display: grid; grid-template-columns: 35px minmax(0, 1fr) 30px; align-items: center; gap: 10px; border-top: 1px solid rgb(255 255 255 / 9%); padding: 16px 4px 0; }
.avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: #d9f2be; color: #244027; font-size: 13px; font-weight: 800; }
.admin-meta { display: grid; min-width: 0; gap: 2px; }
.admin-meta strong, .admin-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-meta strong { color: #eef8f2; font-size: 12px; }
.admin-meta small { color: #718a7e; font-size: 10px; }
.logout-button { border: 0; background: transparent; color: #82978d; cursor: pointer; font-size: 18px; }

.main-area { min-width: 0; grid-column: 2; }
.topbar { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 36px; background: rgb(243 245 241 / 88%); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.soft-button { border-color: var(--line); background: #fff; color: var(--muted-strong); font-size: 12px; }
.soft-button:hover { border-color: var(--line-strong); background: var(--panel-soft); }
.health-pill { display: flex; min-height: 40px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 650; }
.health-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.health-pill.ok i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.health-pill.bad i { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.menu-button { display: none; }
.content { max-width: 1500px; margin: 0 auto; padding: 26px 36px 50px; }

.view-stack { display: grid; gap: 20px; }
.summary-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #cfe3bd; border-radius: 15px; padding: 18px 22px; background: linear-gradient(105deg, #edf9df, #f8fbf4); }
.summary-strip h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.4px; }
.summary-strip p { margin: 0; color: var(--muted-strong); font-size: 12px; }
.summary-date { flex: 0 0 auto; color: var(--green); font-size: 12px; font-weight: 750; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { position: relative; min-height: 142px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: var(--panel); box-shadow: 0 2px 3px rgb(24 42 34 / 2%); }
.stat-card::after { position: absolute; right: -24px; bottom: -32px; width: 90px; height: 90px; border-radius: 50%; background: var(--tint, var(--green-soft)); content: ""; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .2px; text-transform: uppercase; }
.stat-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--tint, var(--green-soft)); color: var(--tone, var(--green)); font-size: 16px; }
.stat-value { margin-top: 15px; font-size: 31px; font-weight: 800; letter-spacing: -1.5px; }
.stat-note { margin-top: 4px; color: var(--muted); font-size: 11px; }
.stat-note strong { color: var(--tone, var(--green)); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 16px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: 0 2px 3px rgb(24 42 34 / 2%); }
.panel-header { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 15px 18px; }
.panel-header h2, .section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.35px; }
.panel-header p, .section-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-action { border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 800; }
.chart-wrap { padding: 22px 20px 16px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 17px; margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.chart-legend span:last-child i { background: var(--accent-strong); }
.bar-chart { display: grid; height: 190px; grid-template-columns: repeat(14, minmax(12px, 1fr)); align-items: end; gap: 7px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #edf1ed 47px); }
.bar-day { position: relative; display: flex; height: 100%; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { width: min(9px, 42%); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--green); transition: height .35s ease; }
.bar.listings { background: var(--accent-strong); }
.bar-day span { position: absolute; bottom: -20px; color: var(--muted); font-size: 8px; }
.chart-footer { display: flex; justify-content: space-between; margin-top: 27px; color: var(--muted); font-size: 10px; }
.quick-actions { display: grid; gap: 8px; padding: 14px; }
.quick-action { display: grid; min-height: 58px; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 11px; padding: 8px 10px; background: var(--panel-soft); cursor: pointer; text-align: left; }
.quick-action:hover { border-color: var(--line-strong); background: #fff; }
.quick-action-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 17px; }
.quick-action strong { display: block; font-size: 12px; }
.quick-action small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.quick-action > span:last-child { color: var(--muted); }
.activity-list { display: grid; }
.activity-row { display: grid; min-height: 65px; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 9px 18px; }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.activity-icon.listing { background: var(--green-soft); color: var(--green); }
.activity-copy { min-width: 0; }
.activity-copy strong, .activity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { font-size: 12px; }
.activity-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.activity-time { color: var(--muted); font-size: 10px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head h2 { font-size: 21px; }
.section-actions { display: flex; align-items: center; gap: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: #fff; }
.search-wrap { position: relative; min-width: 240px; flex: 1; }
.search-wrap::before { position: absolute; top: 10px; left: 13px; color: var(--muted); content: "?"; font-size: 19px; }
.search-wrap .filter-control { padding-left: 40px; }
.filter-control { width: auto; min-width: 150px; min-height: 40px; background: #fff; font-size: 12px; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 44px; padding: 0 15px; background: var(--panel-soft); color: var(--muted); text-align: left; font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 64px; border-top: 1px solid var(--line); padding: 8px 15px; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfa; }
.cell-user { display: flex; min-width: 180px; align-items: center; gap: 10px; }
.table-avatar, .listing-thumb { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 10px; background: #eaf2e6; color: var(--green); font-weight: 800; }
.listing-thumb { width: 45px; height: 40px; border-radius: 8px; background: #edf1ed; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-main { min-width: 0; }
.cell-main strong, .cell-main small { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-main strong { font-size: 11px; }
.cell-main small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; padding: 0 8px; background: #eef1ee; color: var(--muted-strong); font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-pill.active, .status-pill.accepted, .status-pill.resolved, .status-pill.completed { background: var(--green-soft); color: var(--green); }
.status-pill.moderation, .status-pill.pending, .status-pill.reviewing, .status-pill.pending_exchange { background: var(--amber-soft); color: var(--amber); }
.status-pill.hidden, .status-pill.declined, .status-pill.rejected, .status-pill.cancelled { background: var(--red-soft); color: var(--red); }
.status-pill.removed { background: #eee; color: #59615d; }
.role-pill { display: inline-flex; border-radius: 6px; padding: 4px 7px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 800; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-button { min-height: 30px; border-color: var(--line); border-radius: 8px; padding: 0 9px; background: #fff; color: var(--muted-strong); font-size: 10px; }
.table-button:hover { border-color: #acc09f; color: var(--green); }
.table-button.danger:hover { border-color: #e6b4b0; color: var(--red); }
.table-select { min-height: 31px; max-width: 128px; border: 1px solid var(--line); border-radius: 8px; padding: 0 7px; background: #fff; color: var(--muted-strong); font-size: 10px; }
.pagination { display: flex; min-height: 57px; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding: 10px 15px; color: var(--muted); font-size: 10px; }
.page-buttons { display: flex; gap: 5px; }
.page-buttons button { min-width: 31px; min-height: 31px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 10px; }
.page-buttons button.active { border-color: var(--sidebar); background: var(--sidebar); color: #fff; }
.page-buttons button:disabled { opacity: .42; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card { border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: #fff; }
.category-top { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; }
.category-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 18px; font-weight: 800; }
.category-top h3 { margin: 0; font-size: 13px; }
.category-top p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.category-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.category-stat { border-radius: 9px; padding: 9px; background: var(--panel-soft); }
.category-stat strong { display: block; font-size: 15px; }
.category-stat span { color: var(--muted); font-size: 9px; }
.category-children { display: grid; gap: 6px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 11px; }
.category-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-strong); font-size: 10px; }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.report-card { border: 1px solid var(--line); border-radius: 14px; padding: 17px; background: #fff; }
.report-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-reason { margin: 0; font-size: 14px; }
.report-person { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.report-details { min-height: 42px; margin: 15px 0; color: var(--muted-strong); font-size: 11px; line-height: 1.55; }
.report-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.empty-state { display: grid; min-height: 300px; place-items: center; padding: 35px; text-align: center; }
.empty-state-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 13px; place-items: center; border-radius: 15px; background: var(--green-soft); color: var(--green); font-size: 24px; }
.empty-state h3 { margin: 0; font-size: 15px; }
.empty-state p { max-width: 350px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skeleton { min-height: 142px; border-radius: 15px; background: linear-gradient(100deg, #e9ede8 20%, #f4f6f3 35%, #e9ede8 50%); background-size: 250% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position-x: -250%; } }

.modal-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(10 23 18 / 56%); backdrop-filter: blur(4px); }
.modal { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 17px; padding: 22px; background: #fff; box-shadow: 0 30px 90px rgb(4 18 12 / 25%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.modal-form { display: grid; gap: 2px; margin-top: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.ghost-button { border-color: var(--line); background: #fff; color: var(--muted-strong); }
.danger-button { background: var(--red); color: #fff; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; width: min(350px, calc(100vw - 30px)); gap: 8px; }
.toast { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 11px; padding: 12px 14px; background: #fff; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .22s ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.sidebar-backdrop { display: none; }

@media (max-width: 1120px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .login-view { padding: 25px; background: linear-gradient(155deg, #10251f 0%, #17372c 35%, #f3f5f1 35%, #f3f5f1 100%); }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: 55px 10px 45px; }
  .login-story h1 { font-size: 48px; letter-spacing: -2.5px; }
  .login-lead, .story-stats { display: none; }
  .login-card-wrap { padding: 10px 0 30px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-area { grid-column: auto; }
  .menu-button { display: grid; flex: 0 0 auto; }
  .topbar { min-height: 80px; padding: 15px 18px; }
  .topbar > div:nth-child(2) { flex: 1; }
  .topbar h1 { font-size: 20px; }
  .content { padding: 20px 18px 40px; }
  .sidebar-backdrop { position: fixed; z-index: 20; inset: 0; border: 0; background: rgb(4 16 11 / 44%); }
  .sidebar.open + .main-area + .sidebar-backdrop, .sidebar.open ~ .sidebar-backdrop { display: block; }
  .report-grid, .category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .login-view { padding: 19px; }
  .login-story { padding: 45px 5px 35px; }
  .login-story h1 { font-size: 41px; }
  .login-card { padding: 27px 22px; border-radius: 17px; }
  .content { padding: 17px 12px 35px; }
  .topbar { padding: 13px 12px; gap: 8px; }
  .topbar .eyebrow { display: none; }
  .hide-mobile { display: none; }
  .soft-button, .health-pill { min-width: 40px; padding: 0 11px; }
  .summary-strip { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 128px; padding: 14px; }
  .stat-value { font-size: 26px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-actions { width: 100%; }
  .section-actions .primary-button { flex: 1; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .search-wrap { min-width: 0; grid-column: 1 / -1; }
  .filter-control { width: 100%; min-width: 0; }
  .bar-chart { gap: 3px; }
  .activity-time { display: none; }
}
