:root {
  color-scheme: light;
  --ink: #18342f;
  --muted: #6f7f79;
  --green: #1f6a58;
  --green-dark: #173c35;
  --mint: #dcebe5;
  --cream: #f4f1e9;
  --paper: #fffdf8;
  --line: #dfe4df;
  --shadow: 0 18px 55px rgba(33, 55, 48, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top right, #e4efe9 0, transparent 28rem), var(--cream); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 0; letter-spacing: -.04em; }
h2 { font-size: clamp(1.65rem, 5vw, 2.55rem); margin-bottom: 7px; letter-spacing: -.035em; }
h3 { font-size: 1.25rem; margin-bottom: 0; }
.eyebrow { color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 5px; }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 700; }
.tabs { display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 5px; background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: 15px; }
.tab { border: 0; border-radius: 11px; padding: 9px 23px; color: var(--muted); background: transparent; font-weight: 750; }
.tab.active { color: white; background: var(--green-dark); box-shadow: 0 5px 14px rgba(23,60,53,.18); }
.period-heading { display: grid; grid-template-columns: 42px 1fr 42px; gap: 16px; align-items: center; text-align: center; margin: 38px auto 25px; max-width: 650px; }
.period-heading p { color: var(--muted); margin-bottom: 5px; }
#period-kicker { color: var(--green); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.round-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 1.7rem; line-height: 1; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.metrics article { background: var(--green-dark); color: white; border-radius: 19px; padding: 20px; box-shadow: var(--shadow); }
.metrics span { display: block; color: #b8d3cb; font-size: .78rem; margin-bottom: 8px; }
.metrics strong { font-size: clamp(1.15rem, 4vw, 1.65rem); }
.content-card, .login-card { background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); padding: clamp(19px, 4vw, 30px); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 19px; }
.small-button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--green); font-weight: 750; }
.trip-list { display: grid; gap: 10px; }
.trip { display: grid; grid-template-columns: 74px 1fr auto; gap: 15px; align-items: center; padding: 16px 2px; border-top: 1px solid var(--line); }
.trip-time { font-weight: 800; }
.trip-route { font-weight: 750; margin-bottom: 4px; }
.trip-meta { color: var(--muted); font-size: .82rem; }
.trip-money { text-align: right; color: var(--green); font-weight: 800; }
.trip-money small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }
.breakdown { display: grid; gap: 8px; margin: 5px 0 21px; }
.breakdown-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr auto; gap: 14px; align-items: center; padding: 11px 13px; background: #f3f6f2; border-radius: 12px; }
.bar { height: 8px; background: #dbe4df; border-radius: 10px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.empty { text-align: center; color: var(--muted); padding: 42px 15px 26px; border-top: 1px solid var(--line); }
.login-card { max-width: 470px; margin: 80px auto; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
label { display: block; font-size: .82rem; font-weight: 750; margin: 24px 0 7px; }
input { width: 100%; padding: 13px 14px; border: 1px solid #bcc9c3; border-radius: 11px; background: white; color: var(--ink); }
.primary-button { width: 100%; border: 0; border-radius: 12px; padding: 13px; margin-top: 12px; color: white; background: var(--green); font-weight: 800; }
.error { color: #a43e35 !important; min-height: 1.3em; margin: 10px 0 0; font-size: .85rem; }
.loading { text-align: center; color: var(--muted); padding: 60px 0; }

@media (max-width: 640px) {
  .shell { width: min(100% - 22px, 980px); padding-top: 22px; }
  .topbar { margin-bottom: 22px; }
  .tabs { display: grid; width: 100%; }
  .tab { padding-inline: 10px; }
  .period-heading { margin-top: 27px; gap: 8px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:first-child { grid-column: 1 / -1; }
  .trip { grid-template-columns: 60px 1fr; gap: 10px; }
  .trip-money { grid-column: 2; text-align: left; }
  .breakdown-row { grid-template-columns: 1fr auto; }
  .bar { grid-column: 1 / -1; grid-row: 2; }
}
