/* One visual pass: same screens, data and controls. Mobile first. */
:root { background: #f5f6f1; }
.app { padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
.brand { padding: calc(12px + env(safe-area-inset-top)) 0 8px; }
.brand a { gap: 9px; min-height: 40px; }
.mark { width: 32px; height: 32px; border-radius: 10px; font-size: 28px; padding-bottom: 5px; }
.brand strong { font-size: 14px; letter-spacing: 2.5px; }
.brand small { font-size: 8px; letter-spacing: 1.15px; margin-top: 3px; }
.demo { border: 0; padding: 0 0 9px; gap: 5px; font-size: 10px; color: #788071; }
.dot { width: 5px; height: 5px; background: #a4ae8c; }
.demo-date { color: #788071; }
/* The main region receives focus after tab navigation for screen readers.
   Suppress its browser outline only; preserve focus rings on controls. */
main:focus, main:focus-visible { outline: none; }
main { padding-top: 12px; }
h1 { font-size: 23px; line-height: 1.22; letter-spacing: -.4px; margin-bottom: 5px; }
h2 { font-size: 16px; letter-spacing: -.25px; }
.sub { font-size: 11px; line-height: 1.4; margin: 0 0 15px; color: #6f7b6c; }
.hero { border-radius: 17px; padding: 19px 18px 15px; }
.eyebrow { font-size: 10px; letter-spacing: 1.1px; }
.amount { font-size: 38px; margin: 9px 0 12px; letter-spacing: -1.3px; }
.amount span { font-size: 18px; }
.hero-bottom { padding-top: 11px; font-size: 11px; }
.metrics { gap: 10px; margin-top: 10px; }
.metric { padding: 14px; border-radius: 14px; border-color: #e6e9df; }
.metric-label { font-size: 11px; color: #6b7768; }
.metric strong { margin-top: 8px; font-size: 21px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.section { margin-top: 20px; }
.section-head { margin-bottom: 8px; min-height: 36px; }
.text-link { min-height: 44px; font-size: 11px; }
.panel { padding: 15px; border-radius: 15px; border-color: #e3e7dc; }
.shift-top h3 { font-size: 12px; font-weight: 550; letter-spacing: .2px; color: #6c7867; }
.pill { border-radius: 6px; padding: 4px 7px; font-size: 10px; }
.shift-meta { font-size: 11px; margin: 8px 0 13px; color: #6f796b; }
.shift-card .split > div:first-child { flex: 1.6; }
.shift-card .split > div:last-child { text-align: right; }
.split small { font-size: 11px; margin-bottom: 5px; color: #6f7b69; }
.split strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.shift-card .split > div:last-child strong { font-size: 18px; }
.shift-facts { margin-top: 12px; padding-block: 3px; }
.status-line { padding-block: 11px; line-height: 1.4; }
.recent-shift { margin-top: 10px; }
.recent-shift > .note { margin: 6px 4px 14px; font-size: 10px; }
.note { font-size: 10px; color: #6f7b68; margin: 9px 1px; line-height: 1.45; }
.receipt-list { border-radius: 15px; }
.receipt { min-height: 64px; padding: 12px 15px; }
.receipt strong { font-size: 13px; font-weight: 550; }
.receipt .right strong { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.receipt small { margin-top: 5px; color: #6f796b; }
.receipt .chevron { margin-left: 3px; font-weight: 400; }
.toolbar { margin: 12px 0; }
.field-label { font-size: 10px; margin-bottom: 5px; color: #6f796b; }
select, input { min-height: 44px; height: 44px; padding: 9px 10px; font-size: 16px; border-radius: 9px; border-color: #dfe4d7; }
input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; }
input::-webkit-date-and-time-value { text-align: left; }
.bill-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; padding: 12px; background: #edf0e7; border-radius: 13px; margin-top: 12px; }
.bill-filters label { min-width: 0; }
.bill-filters .payment-filter { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.payment-filter .field-label { flex-shrink: 0; margin: 0; }
.payment-filter select { min-width: 0; }
.result-count { margin: 11px 2px 8px; }
.daily-panel { padding: 3px 15px; margin-top: 14px; }
.daily-row { padding: 12px 0; gap: 12px; grid-template-columns: 49px minmax(12px,1fr) 105px; }
.daily-row small { margin-top: 4px; color: #74806c; }
.daily-row .right { font-size: 14px; font-variant-numeric: tabular-nums; }
.bar { height: 4px; }
.bar span { background: #90a77a; }
.average-panel { margin-top: 14px; }
.average-panel .note { margin-bottom: 0; }
.footnote { padding: 22px 0 calc(95px + env(safe-area-inset-bottom)); font-size: 10px; }
nav { padding: 6px max(8px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-right)); -webkit-backdrop-filter: blur(15px); }
nav a { min-height: 48px; gap: 4px; border-radius: 10px; color: #707d66; }
nav svg.icon { width: 20px; height: 20px; }
dialog { padding: 20px; border-radius: 19px; max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
dialog h2 { font: 600 21px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -.4px; }
dialog .bill-title { margin-top: 12px; }
dialog .sub { margin-bottom: 9px; }
dialog .line-item { padding-block: 12px; }
.line-item .split > strong:last-child { white-space: nowrap; text-align: right; }
.bill-total { color: #214d3d; }
.bill-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
#close-dialog { position: sticky; bottom: 0; margin-top: 12px; min-height: 46px; }
@media (max-width: 380px) {
  .metric strong { font-size: 19px; }
  .amount { font-size: 35px; }
  .bill-filters { padding: 10px; }
}
@media (max-width: 340px) {
  .app { padding-inline: 14px; }
  .metric { padding: 12px 10px; }
  .metric strong { font-size: 17px; }
  .split strong { font-size: 19px; }
  .bill-filters { grid-template-columns: minmax(0,1fr); }
  .bill-filters label { display: flex; align-items: center; gap: 8px; }
  .bill-filters .field-label { flex: 0 0 63px; margin: 0; }
}
@media (min-width: 700px) {
  .app { padding-inline: 32px; }
  .brand { padding-top: 20px; }
  main { padding-top: 18px; }
  h1 { font-size: 27px; }
  .hero { padding: 22px; }
  .amount { font-size: 42px; }
  .overview-grid { gap: 18px; }
  .overview-grid > .section .section-head { margin-top: -5px; }
  .bill-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bill-filters .payment-filter { grid-column: auto; display: block; }
  .payment-filter .field-label { margin-bottom: 5px; }
  .receipt { padding-inline: 18px; }
}
