@media (min-width: 1051px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr);
  }

  .activity-panel,
  .receipt-row {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .dashboard-grid,
  .panel,
  .panel-head,
  .object-list,
  .object-row,
  .object-title,
  .receipt-list,
  .receipt-row {
    min-width: 0;
    max-width: 100%;
  }

  .object-title strong,
  .object-title small {
    overflow-wrap: anywhere;
  }

  .panel-head {
    align-items: flex-start;
  }
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px 0 18px;
  padding: 11px 14px;
  border: 1px solid #d8d8c7;
  border-radius: 13px;
  background: #fffdea;
  color: #4f4e38;
  font-size: 12px;
}

.demo-notice strong { white-space: nowrap; }

@media (max-width: 760px) {
  .demo-notice {
    display: grid;
    gap: 3px;
    margin-top: 0;
  }
}

.receipt-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.receipt-examples > span {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}

.example-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
}

.example-chip:hover {
  border-color: #7f9489;
  background: #eef5f0;
}

.recognition-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid #b8dac7;
  border-radius: 14px;
  background: #eef8f1;
  font-size: 12px;
}

.recognition-summary span { color: #516158; }

.sum-check {
  min-height: 20px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
}

.sum-check:empty { display: none; }
.sum-check.ok { background: #e7f4eb; color: #285c3e; }
.sum-check.warn { background: #fff1dc; color: #7a4d0b; }
.line-row.uncertain { padding-left: 8px; border-left: 3px solid #e9ad45; }
.line-row.uncertain input:first-child { background: #fff9ef; }
.badge-review { background: #fff0d8; color: #714709; }

@media (max-width: 760px) {
  .recognition-summary { grid-template-columns: 1fr; }
  .receipt-examples { justify-content: flex-start; }
  .receipt-examples > span { text-align: left; }
}
body.booting { min-height: 100vh; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #eaffb8 0, transparent 34%), #f4f5f0; }
.auth-card { width: min(440px, 100%); padding: 32px; border-radius: 28px; background: #fff; box-shadow: 0 24px 80px rgba(23,33,29,.14); display: grid; gap: 16px; }
.auth-card h1 { margin: 0; font-size: clamp(28px, 7vw, 40px); }
.auth-card p { margin: 0; color: #617068; }
.auth-card label { display: grid; gap: 7px; font-weight: 650; }
.auth-card input { width: 100%; }
.auth-mark { width: 58px; height: 58px; font-size: 20px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-error { min-height: 20px; color: #a33434; font-size: 14px; }
.logout-button { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; opacity: .75; }
.server-notice { background: #e7f3ec; border-color: #c2ddce; }
.empty-state { padding: 36px 18px; text-align: center; color: #6d766f; }
.empty-state strong { display: block; color: #27322d; margin-bottom: 6px; }

@media (max-width: 640px) {
  .sidebar.mobile-open { display:flex; position:fixed; inset:0 auto 0 0; width:min(290px,86vw); z-index:80; box-shadow:20px 0 60px rgba(0,0,0,.28); }
  .auth-screen { padding: 14px; }
  .auth-card { padding: 24px 20px; border-radius: 22px; }
}
