:root {
  --ink: #18211d;
  --muted: #68746d;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --line: #dfe6e1;
  --green: #176b4d;
  --green-soft: #e5f3ec;
  --blue: #245c78;
  --blue-soft: #e7f0f5;
  --amber: #9a6113;
  --amber-soft: #fbf0dc;
  --shadow: 0 18px 50px rgba(22, 49, 37, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 70px; display: flex; align-items: center; gap: 34px; padding: 0 5vw; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: var(--green); font: 700 20px Georgia, serif; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
nav { display: flex; gap: 24px; color: #415048; font-size: 14px; }
nav a:hover { color: var(--green); }
.logout-form { margin: 0; }
.link-button { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.page { width: min(1440px, 92vw); margin: 0 auto; padding: 42px 0 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 5px 0 8px; font: 500 clamp(30px, 4vw, 46px)/1.05 Georgia, serif; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.muted { color: var(--muted); }
.heading-actions, .month-form, .inline-form { display: flex; align-items: flex-end; gap: 12px; }
.month-form label { display: block; color: var(--muted); font-size: 12px; }
input, select { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #cfd9d3; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.month-form input { width: 160px; margin-top: 5px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; font-size: 13px; cursor: pointer; }
.button.primary { background: var(--green); color: white; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.balance-card { min-height: 220px; border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.balance-card::after { content: ""; width: 150px; height: 150px; border-radius: 50%; position: absolute; right: -65px; top: -55px; opacity: .45; }
.balance-card.cash::after { background: var(--green-soft); }.balance-card.bank::after { background: var(--blue-soft); }.balance-card.workshop::after { background: var(--amber-soft); }
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #eff4f1; font-weight: 900; margin-bottom: 24px; }
.card-label { display: block; color: var(--muted); font-weight: 700; }
.money { display: block; margin: 4px 0; font: 600 clamp(29px, 3vw, 40px)/1.1 Georgia, serif; letter-spacing: -.02em; }
.balance-card small { color: var(--muted); }
.card-detail { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-detail b { color: var(--ink); }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; padding: 19px 22px; background: #1f2c26; color: white; border-radius: 16px; }
.summary-strip div { padding: 0 18px; border-right: 1px solid rgba(255,255,255,.14); }.summary-strip div:last-child { border: 0; }
.summary-strip span, .summary-strip strong { display: block; }.summary-strip span { color: #bfc9c3; font-size: 12px; }.summary-strip strong { margin-top: 4px; font-size: 19px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .7fr); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 34px rgba(22,49,37,.05); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h2 { margin: 4px 0 0; font: 600 24px Georgia, serif; }
.badge { padding: 7px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
th:first-child, td:first-child { text-align: left; }
td { text-align: right; padding: 13px 12px; border-bottom: 1px solid #edf1ee; white-space: nowrap; }
.daily-list { display: grid; gap: 2px; max-height: 430px; overflow-y: auto; }
.daily-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid #edf1ee; }
.daily-row time { font-weight: 800; }.daily-row div span { display: block; color: var(--muted); font-size: 11px; }.daily-row strong { font-size: 14px; }
.empty-cell { color: var(--muted); text-align: center !important; padding: 28px; }
.sync-footer { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }.message { padding: 13px 15px; border-radius: 10px; background: var(--blue-soft); }.message.error { background: #fde8e7; color: #8f2e2b; }.message.success { background: var(--green-soft); color: var(--green); }
.setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }.setup-card { position: relative; padding-top: 56px; }.step-number { position: absolute; top: 18px; left: 20px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.stack-form { display: grid; gap: 14px; }.stack-form p { margin: 0; }.stack-form label { display: grid; gap: 6px; color: #344139; font-size: 13px; font-weight: 700; }.helptext { color: var(--muted); font-size: 11px; font-weight: 400; }.callout { padding: 13px; border-radius: 10px; background: var(--amber-soft); color: #66410c; }.status-line { font-weight: 800; }.success-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #1e9b68; }
.test-import { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }.inline-form p { margin: 0; }.inline-form input { max-width: 260px; }.status-pill { padding: 5px 8px; border-radius: 999px; background: #eef1ef; }.status-pill.imported { background: var(--green-soft); color: var(--green); }.status-pill.failed,.status-pill.rejected { background: #fde8e7; color: #8f2e2b; }
.auth-shell { min-height: calc(100vh - 170px); display: grid; place-items: center; }.auth-card { width: min(480px, 92vw); background: white; border: 1px solid var(--line); border-radius: 24px; padding: 42px; box-shadow: var(--shadow); }.auth-card h1 { font: 500 38px/1.05 Georgia,serif; margin: 8px 0 12px; }.auth-card p { color: var(--muted); }.form-error { color: #a63131 !important; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 28px; align-items: center; min-height: 540px; }
.public-hero h1 { max-width: 850px; margin: 10px 0 20px; font: 500 clamp(44px, 7vw, 78px)/.98 Georgia, serif; letter-spacing: -.035em; }
.public-hero .lead { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.trust-card h2 { margin: 10px 0 18px; font: 600 28px Georgia, serif; }
.trust-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.trust-list li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; }
.trust-list li:last-child { border: 0; }
.trust-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.legal-shell { display: grid; grid-template-columns: minmax(210px, .35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-intro { position: sticky; top: 104px; }
.legal-intro h1 { margin: 7px 0 14px; font: 500 clamp(36px, 5vw, 58px)/1.02 Georgia, serif; }
.legal-intro p, .legal-document p, .legal-document li { color: var(--muted); line-height: 1.72; }
.legal-document { padding: 34px 38px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.legal-document section + section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-document h2 { margin: 0 0 12px; font: 600 25px Georgia, serif; }
.legal-document a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { width: min(1440px, 92vw); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; gap: 20px; font-size: 13px; }
@media (max-width: 1000px) { .balance-grid,.setup-grid { grid-template-columns: 1fr; }.content-grid { grid-template-columns: 1fr; }.summary-strip { grid-template-columns: 1fr 1fr; gap: 18px; }.summary-strip div:nth-child(2) { border: 0; }.test-import,.inline-form { align-items: stretch; flex-direction: column; } }
@media (max-width: 900px) { .public-hero,.legal-shell { grid-template-columns: 1fr; }.public-hero { min-height: auto; }.legal-intro { position: static; }.legal-document { padding: 28px; } }
@media (max-width: 720px) { .topbar nav { display: none; }.page { width: min(94vw, 680px); padding-top: 25px; }.page-heading,.heading-actions { align-items: stretch; flex-direction: column; }.month-form { align-items: flex-end; }.summary-strip { grid-template-columns: 1fr; }.summary-strip div { padding: 6px 0; border: 0; }.balance-card { min-height: auto; }.auth-card { padding: 28px; }.public-hero h1 { font-size: 45px; }.legal-document { padding: 23px; }.site-footer { align-items: flex-start; flex-direction: column; }.site-footer nav { display: flex; } }
