[hidden] { display: none !important; }
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f5f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f7fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100%, 760px); margin: 0 auto; padding: 0 16px 32px; }
.view { min-height: 100vh; }
.login-view { display: grid; align-content: center; gap: 24px; padding: 32px 0; }
.brand-lockup { display: flex; gap: 14px; align-items: center; }
.brand-mark { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: #111827; color: white; font-weight: 900; font-size: 24px; }
h1,h2,h3,h4,p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 30px; }
h2 { margin-bottom: 0; font-size: 24px; }
h3 { margin-bottom: 0; font-size: 22px; }
h4 { margin-bottom: 14px; font-size: 17px; }
.brand-lockup p { margin: 0; color: #6b7280; }
.card { background: white; border: 1px solid #e5e7eb; border-radius: 20px; padding: 18px; box-shadow: 0 8px 30px rgba(17,24,39,.05); }
.auth-card { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: #374151; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; background: #fff; border-radius: 12px; padding: 13px 14px; color: #111827; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
textarea { resize: vertical; }
.primary, .secondary, .ghost { border: 0; border-radius: 13px; padding: 13px 16px; font-weight: 800; }
.primary { background: #111827; color: white; }
.secondary { background: #eef2ff; color: #3730a3; }
.ghost { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.small { padding: 9px 12px; }
.error { margin: 0; color: #b91c1c; font-weight: 700; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 2px 14px; position: sticky; top: 0; z-index: 4; background: rgba(245,247,251,.94); backdrop-filter: blur(10px); }
.eyebrow { display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; color: #6b7280; margin-bottom: 4px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 18px; position: sticky; top: 77px; z-index: 3; background: rgba(245,247,251,.94); backdrop-filter: blur(10px); padding-bottom: 8px; }
.tab { border: 0; border-radius: 11px; padding: 10px 6px; background: white; color: #6b7280; font-size: 12px; font-weight: 800; }
.tab.active { background: #111827; color: white; }
.panel { display: grid; gap: 14px; padding-bottom: 28px; }
.hero-card { background: linear-gradient(135deg,#111827,#312e81); color: white; border-radius: 24px; padding: 22px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.hero-card p { margin-bottom: 4px; color: #c7d2fe; font-weight: 800; }
.hero-card strong { display: block; font-size: 36px; }
.hero-card span { color: #d1d5db; }
.hero-card .primary { background: white; color: #111827; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px; }
.metric span { display: block; color: #6b7280; font-size: 12px; font-weight: 800; margin-bottom: 5px; }
.metric strong { font-size: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 4px; }
.link-button { border: 0; background: transparent; color: #4f46e5; font-weight: 800; }
.list { display: grid; gap: 10px; }
.row-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px; display: grid; gap: 7px; }
.row-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.row-title { font-weight: 900; }
.row-sub { color: #6b7280; font-size: 13px; }
.money { font-weight: 900; }
.badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: 5px 9px; background: #f3f4f6; color: #374151; font-size: 11px; font-weight: 900; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.matches { display: grid; gap: 8px; margin-top: 9px; }
.match { width: 100%; text-align: left; border: 1px solid #e5e7eb; background: #fafafa; border-radius: 12px; padding: 11px; }
.match strong { display: block; }
.match span { color: #6b7280; font-size: 12px; }
.selected-customer { margin: 10px 0; border-radius: 14px; padding: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.selected-customer strong { display: block; }
.total-box { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.total-box > div { background: #f9fafb; border-radius: 13px; padding: 12px; }
.total-box span { display: block; font-size: 11px; color: #6b7280; font-weight: 800; }
.total-box strong { display: block; margin-top: 4px; font-size: 16px; }
.check { grid-template-columns: auto 1fr; align-items: center; justify-content: start; margin-top: 12px; }
.check input { width: auto; }
.sticky-save { position: sticky; bottom: 14px; box-shadow: 0 12px 30px rgba(17,24,39,.22); }
.search-bar { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 12px; }
.toast { position: fixed; z-index: 99; left: 50%; transform: translateX(-50%); bottom: 24px; width: min(calc(100% - 32px), 520px); background: #111827; color: white; border-radius: 14px; padding: 13px 15px; font-weight: 800; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.empty { text-align: center; color: #6b7280; padding: 24px 12px; }
@media (max-width: 520px) {
  .grid.two { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr 1fr; }
  .metric { padding: 12px 10px; }
  .metric strong { font-size: 16px; }
  .hero-card { align-items: stretch; flex-direction: column; }
  .hero-card .primary { width: 100%; }
}

.login-status{margin:12px 0 0;color:#475569;font-size:.9rem;text-align:center}.version{margin:10px 0 0;color:#94a3b8;font-size:.75rem;text-align:center}
