:root {
    --ink: #18241f;
    --muted: #66736d;
    --green: #173f34;
    --green-2: #245c4b;
    --lime: #d9f99d;
    --paper: #f5f7f4;
    --white: #ffffff;
    --line: #e1e7e3;
    --danger: #b42318;
    --warning: #9a6700;
    --shadow: 0 18px 60px rgba(23, 63, 52, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: 25px; }
h3 { font-size: 18px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 750; letter-spacing: -.05em; }
.brand-mark { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px 10px 10px 3px; background: var(--green); color: var(--lime); font-family: Georgia, serif; font-size: 23px; font-weight: 700; font-style: italic; }
.brand-light { color: #fff; }
.brand-light .brand-mark { color: var(--green); background: var(--lime); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 10px 19px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: #fff; font-weight: 650; line-height: 1.2; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { background: var(--green-2); box-shadow: 0 6px 18px rgba(23, 63, 52, .14); transform: translateY(-1px); }
.button-small { min-height: 37px; padding: 8px 14px; font-size: 13px; }
.button-large { min-height: 51px; padding: 14px 24px; }
.button-full { width: 100%; }
.button-secondary { background: #edf3ef; border-color: #d7e2db; color: var(--green); }
.button-secondary:hover { background: #e1ebe5; color: var(--green); }
.button-ghost { background: transparent; color: var(--green); border-color: #cdd8d1; }
.button-ghost:hover { background: #eef3ef; color: var(--green); }
.button-light { background: var(--lime); border-color: var(--lime); color: var(--green); }
.button-light:hover { background: #e5ffad; color: var(--green); }
.text-link { display: inline-block; color: var(--green); font-weight: 650; border-bottom: 1px solid #a9b9af; padding-bottom: 2px; }
.text-link:hover { border-color: var(--green); }
.eyebrow, .page-kicker { display: block; margin-bottom: 17px; color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }

.public-body { background: #fbfcfa; }
.public-header { position: relative; z-index: 5; padding: 20px 0; }
.public-nav { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.public-nav nav { display: flex; align-items: center; gap: 32px; margin-left: auto; margin-right: 18px; }
.public-nav nav a { color: #45534c; font-size: 14px; font-weight: 550; }
.public-nav nav a:hover { color: var(--green); }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 58px; min-height: 650px; padding-top: 55px; padding-bottom: 85px; }
.hero-copy h1 { margin-bottom: 24px; font-size: clamp(52px, 6vw, 76px); font-weight: 670; letter-spacing: -.06em; }
.hero-copy h1 em { color: var(--green-2); font-family: Georgia, serif; font-weight: 400; }
.hero-lead { max-width: 520px; color: #53635a; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 30px; }
.microcopy { margin-top: 15px; color: #7a857f; font-size: 12px; }
.hero-visual { position: relative; padding: 24px 0 30px; }
.hero-visual::before { position: absolute; inset: -35px -70px -30px -35px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #e4efdf 0%, rgba(236, 243, 232, .3) 60%, transparent 72%); content: ""; }
.mock-window { overflow: hidden; border: 1px solid #dae3dc; border-radius: 17px; background: #fff; box-shadow: 0 35px 80px rgba(28, 59, 47, .14); transform: rotate(1.2deg); }
.mock-top { display: flex; align-items: center; gap: 13px; padding: 15px 20px; border-bottom: 1px solid #edf0ed; color: #53615a; font-size: 11px; }
.mock-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--green); color: var(--lime); font-family: Georgia, serif; font-style: italic; }
.mock-avatar { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: #e7eee8; color: var(--green); font-size: 9px; font-weight: 700; }
.mock-body { padding: 27px; background: #f8faf7; }
.mock-label { color: #849088; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mock-body h3 { margin: 5px 0 22px; font-size: 21px; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-cards > div { display: flex; flex-direction: column; padding: 17px; border: 1px solid #e3e9e4; border-radius: 10px; background: #fff; }
.mock-cards span { color: #76847c; font-size: 9px; }
.mock-cards strong { margin: 7px 0 4px; font-size: 20px; letter-spacing: -.04em; }
.mock-cards small { color: #468066; font-size: 8px; }
.mock-panel { margin-top: 13px; padding: 18px 20px 12px; border: 1px solid #e3e9e4; border-radius: 10px; background: #fff; }
.mock-panel-title { display: flex; justify-content: space-between; font-size: 11px; font-weight: 650; }
.mock-panel-title small { color: #8c9890; font-size: 8px; font-weight: 400; }
.mock-chart { display: flex; align-items: flex-end; gap: 12%; height: 115px; padding-top: 22px; border-bottom: 1px solid #edf0ed; }
.mock-chart i { flex: 1; min-height: 5px; border-radius: 3px 3px 0 0; background: #c4d6c9; }
.mock-chart i.highlight { background: var(--green-2); }
.mock-months { display: flex; justify-content: space-between; padding-top: 8px; color: #8c9890; font-size: 7px; }
.mock-line { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 12px 15px; border: 1px solid #e3e9e4; border-radius: 8px; background: #fff; font-size: 9px; }
.mock-line b { margin-left: auto; }
.mock-status { width: 6px; height: 6px; border-radius: 50%; background: #70a681; }
.floating-note { position: absolute; right: -25px; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid #e1e8e1; border-radius: 11px; background: #fff; box-shadow: var(--shadow); transform: rotate(-2deg); }
.floating-note .check-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #e4f3e8; color: #2b7453; font-weight: 700; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 11px; }
.floating-note small { color: #7b8980; font-size: 8px; }
.trust-strip { border-block: 1px solid #e8ede8; background: #f5f8f4; }
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 82px; }
.trust-strip span { color: #6d7a72; font-size: 12px; }
.trust-strip div div { display: flex; gap: 28px; }
.trust-strip b { color: #53635a; font-size: 12px; font-weight: 650; }
.section { padding-top: 110px; padding-bottom: 110px; }
.section-heading { max-width: 640px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 20px; font-size: clamp(36px, 4vw, 48px); }
.section-heading p { max-width: 570px; color: var(--muted); font-size: 17px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered p { margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 32px 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feature-card.featured { background: #f0f5ee; }
.feature-number { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 30px; border-radius: 9px; background: #e5ede5; color: var(--green); font-size: 11px; font-weight: 750; }
.feature-card h3 { margin-bottom: 15px; font-size: 22px; }
.feature-card p { min-height: 100px; color: var(--muted); }
.feature-card ul, .pricing-bottom ul, .check-list, .auth-benefits { margin: 22px 0 0; padding: 0; list-style: none; }
.feature-card li, .pricing-bottom li, .check-list li, .auth-benefits li { position: relative; margin: 10px 0; padding-left: 20px; font-size: 13px; }
.feature-card li::before, .pricing-bottom li::before, .check-list li::before, .auth-benefits li::before { position: absolute; left: 0; color: #438267; content: "✓"; font-weight: 800; }
.accounting-section { border-block: 1px solid #e2e9e2; background: #f0f4ee; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.split-section h2 { font-size: clamp(34px, 4vw, 45px); }
.steps > div { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid #d9e2d9; }
.steps > div:first-child { padding-top: 0; }
.steps > div > span { display: grid; flex: 0 0 31px; place-items: center; height: 31px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; }
.steps p { margin: 2px 0 0; color: #617067; }
.steps strong { color: var(--ink); }
.pricing-section { max-width: 840px; }
.pricing-card { padding: 36px 40px 25px; border: 1px solid #d7e1d8; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.pricing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.plan-name { font-size: 21px; font-weight: 700; }
.pricing-top p { margin: 5px 0 0; color: var(--muted); }
.pricing-badge { padding: 6px 10px; border-radius: 20px; background: #ecf5df; color: #3b6b38; font-size: 11px; font-weight: 700; }
.price { display: flex; align-items: center; gap: 18px; margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.price strong { font-size: 56px; letter-spacing: -.06em; }
.price span { color: var(--muted); font-size: 13px; }
.pricing-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.pricing-bottom ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 0; }
.pricing-note { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #7a867f; font-size: 11px; text-align: center; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 95px; padding: 55px 60px; border-radius: 18px; background: var(--green); color: #fff; }
.final-cta .eyebrow { color: #b7d4c3; }
.final-cta h2 { margin: 0; font-size: 42px; }
.public-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 115px; color: var(--muted); font-size: 12px; }
.footer-inner .brand { color: var(--ink); font-size: 20px; }
.footer-inner .brand-mark { width: 28px; height: 28px; font-size: 19px; }
.footer-inner div { display: flex; gap: 25px; }
.footer-inner a:hover { color: var(--green); }

.auth-page { display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 100px; min-height: 690px; padding-top: 55px; padding-bottom: 85px; }
.auth-intro h1 { margin-bottom: 22px; font-size: 54px; }
.auth-intro > p { max-width: 450px; color: var(--muted); font-size: 17px; }
.auth-benefits { margin-top: 30px; }
.auth-benefits li { margin: 12px 0; color: #47574e; }
.auth-card { padding: 35px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 8px; font-size: 27px; }
.card-subtitle { margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.auth-switch { margin: 25px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--green); font-weight: 700; }
.legal-page { max-width: 790px; padding-top: 75px; padding-bottom: 100px; }
.legal-page h1 { margin-bottom: 20px; font-size: 52px; }
.legal-intro { margin-bottom: 45px; color: var(--muted); font-size: 18px; }
.legal-page h2 { margin: 32px 0 12px; font-size: 21px; }
.legal-page p { color: #536159; line-height: 1.8; }

.app-body { background: var(--paper); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: 238px; padding: 28px 19px 20px; overflow-y: auto; background: #15382f; color: #d7e5de; }
.sidebar .brand { margin-left: 9px; }
.workspace-name { margin: 25px 9px 19px; padding-bottom: 19px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.1); color: #9db7ac; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-section { margin: 17px 11px 7px; color: #73988a; font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.side-nav a { padding: 9px 12px; border-radius: 7px; color: #bed2ca; font-size: 13px; font-weight: 520; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: #285247; color: #fff; box-shadow: inset 3px 0 var(--lime); }
.sidebar-footer { margin-top: auto; padding: 25px 10px 0; }
.user-email { display: block; overflow: hidden; margin-bottom: 8px; color: #93afa4; font-size: 10px; text-overflow: ellipsis; }
.link-button { padding: 0; border: 0; background: transparent; color: #c4d8d0; font-size: 12px; }
.link-button:hover { color: #fff; }
.app-main { width: calc(100% - 238px); max-width: 1500px; margin-left: 238px; padding: 43px 42px 65px; }
.messages { margin-bottom: 25px; }
.message { margin-bottom: 8px; padding: 13px 17px; border: 1px solid #cdddcf; border-radius: 8px; background: #eaf5ec; color: #285e40; font-size: 13px; }
.message.error { border-color: #eccbc7; background: #fff0ee; color: #9b2c23; }
.message.info { border-color: #d8dfcb; background: #f3f6e9; color: #5a642d; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.page-header .page-kicker { margin-bottom: 8px; }
.page-header h1 { margin-bottom: 8px; font-size: 34px; }
.page-header p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-actions form { display: inline-flex; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--green); }
.panel { margin-bottom: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-header h2 { margin-bottom: 5px; font-size: 17px; letter-spacing: -.015em; }
.panel-header p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.panel-header > a { color: var(--green-2); font-size: 11px; font-weight: 650; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.metric-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.metric-card > span { color: var(--muted); font-size: 11px; }
.metric-card strong { margin: 10px 0 7px; overflow: hidden; font-size: clamp(21px, 2.2vw, 29px); letter-spacing: -.045em; text-overflow: ellipsis; }
.metric-card small { color: #88948d; font-size: 10px; }
.metric-card.metric-primary { border-color: var(--green); background: var(--green); color: #fff; }
.metric-primary > span, .metric-primary small { color: #b8d0c5; }
.single-metric { grid-template-columns: repeat(4, 1fr); }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.chart { display: flex; align-items: stretch; gap: 14px; height: 225px; padding-top: 25px; }
.chart-column { display: flex; flex: 1; flex-direction: column; align-items: center; min-width: 0; }
.chart-value { height: 19px; color: #7c8a82; font-size: 9px; }
.chart-bar-track { display: flex; align-items: flex-end; width: 100%; height: 160px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, #fff, #fff 39px, #f0f3f0 40px); }
.chart-bar-track i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: #88ad9a; transition: height .5s; }
.chart-column:last-child .chart-bar-track i { background: var(--green); }
.chart-column small { margin-top: 9px; color: var(--muted); font-size: 9px; }
.quick-panel { display: flex; flex-direction: column; }
.quick-link { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #edf0ed; font-size: 12px; font-weight: 600; }
.quick-link b { color: var(--green-2); font-size: 17px; }
.quick-link:hover { color: var(--green-2); }
.quick-stat { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: 10px; }
.quick-stat strong { color: var(--green); font-size: 25px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #7b8880; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfa; }
tfoot td { border-top: 2px solid var(--green); border-bottom: 0; font-weight: 700; }
.align-right { text-align: right; }
.table-link { color: var(--green-2); font-weight: 700; }
.table-link:hover { text-decoration: underline; }
.table-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; background: #edf1ee; color: #5c6a62; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-issued, .status-past_due, .status-incomplete { background: #fff2d9; color: #90610c; }
.status-paid, .status-active { background: #e3f3e7; color: #28714a; }
.status-trialing { background: #e8effa; color: #375f98; }
.status-canceled, .status-unpaid { background: #fae8e6; color: #a23b31; }
.empty-state { padding: 45px 20px; text-align: center; }
.empty-state h3 { margin-bottom: 9px; font-size: 17px; }
.empty-state p { max-width: 470px; margin: 0 auto 20px; color: var(--muted); font-size: 12px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.search-form { display: flex; flex: 1; gap: 8px; }
.search-form input { max-width: 290px; }
.list-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 24px 0 5px; color: var(--muted); font-size: 11px; }
.pagination a { color: var(--green); font-weight: 650; }

.form-panel { max-width: 1000px; }
.narrow-panel { max-width: 760px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
.form-layout .form-panel { margin-bottom: 0; }
.info-panel { align-self: start; margin-bottom: 0; background: #edf3ee; }
.info-panel h3 { font-size: 16px; }
.info-panel p { color: #5b6b62; font-size: 12px; }
.info-panel .text-link { margin-top: 15px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; }
.form-group { margin-bottom: 17px; }
.form-grid .form-group { margin-bottom: 0; }
.form-group:has(textarea), .form-group:has(input[type="checkbox"]) { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 6px; color: #4d5c53; font-size: 11px; font-weight: 650; }
.required { color: #8c4a40; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #ced8d1; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: border .15s, box-shadow .15s; }
textarea { min-height: 85px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #578271; box-shadow: 0 0 0 3px rgba(50, 106, 83, .1); }
input[type="checkbox"] { width: 17px; min-height: 17px; accent-color: var(--green); }
.help-text { margin-top: 5px; color: #849087; font-size: 10px; }
.help-text ul { margin: 5px 0; padding-left: 17px; }
.errorlist { margin: 5px 0 0; padding: 0; color: var(--danger); font-size: 11px; list-style: none; }
.form-errors { margin-bottom: 20px; padding: 12px; border-radius: 7px; background: #fff0ee; }
.has-error input, .has-error select, .has-error textarea { border-color: #ce7b72; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sticky-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 0; }
.invoice-meta { grid-template-columns: repeat(2, 1fr); }
.invoice-lines-head, .invoice-line-row { display: grid; grid-template-columns: minmax(190px, 1fr) 100px 140px 90px 38px; gap: 10px; align-items: start; }
.invoice-lines-head { padding: 0 3px 7px; color: #7b8880; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.invoice-line-row { margin-bottom: 9px; }
.invoice-line-row input { padding-inline: 9px; }
.invoice-line-row .errorlist { font-size: 9px; }
.line-actions { padding-top: 9px; text-align: center; }
.line-actions input { display: none; }
.remove-line { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: #f1f3f1; color: #89938d; font-size: 19px; line-height: 1; }
.remove-line:hover { background: #fae9e7; color: var(--danger); }
.line-deleted { display: none; }
.accounting-info, .configuration-note { margin-top: 22px; padding: 13px; border-radius: 7px; background: #edf3ee; color: #53675b; font-size: 11px; }
.configuration-note { border: 1px solid #eadfc5; background: #fff8e9; color: #7c6126; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 20px; }
.subscription-panel, .billing-features { margin: 0; }
.billing-price { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.billing-price strong { font-size: 47px; letter-spacing: -.05em; }
.billing-price span { color: var(--muted); font-size: 12px; }
.trial-box { margin-bottom: 22px; padding: 17px; border-left: 3px solid #6c91b7; border-radius: 0 7px 7px 0; background: #f0f5fa; }
.trial-box strong { font-size: 13px; }
.trial-box p { margin: 5px 0 0; color: #5a6c7c; font-size: 11px; }
.billing-date { color: var(--muted); }
.billing-features h2 { font-size: 18px; }
.billing-features p { margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.check-list li { margin: 13px 0; }
.title-with-status { display: flex; align-items: center; gap: 14px; }
.title-with-status h1 { margin-bottom: 8px; }
.invoice-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.invoice-detail-grid aside > .panel { padding: 22px; }
.invoice-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.invoice-addresses > div { display: flex; flex-direction: column; }
.document-label { display: block; margin-bottom: 8px; color: #849087; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.invoice-addresses strong { font-size: 13px; }
.invoice-addresses p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.invoice-totals { width: 280px; max-width: 100%; margin: 25px 0 0 auto; }
.invoice-totals > div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12px; }
.invoice-totals .grand-total { margin-top: 5px; padding-top: 12px; border-top: 2px solid var(--green); color: var(--green); font-size: 16px; }
.invoice-notes { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.tax-notice { margin-top: 20px; color: var(--muted); font-size: 10px; }
.payment-summary > .balance-amount { display: block; margin: 8px 0 5px; color: var(--green); font-size: 31px; letter-spacing: -.05em; }
.payment-summary > span:not(.document-label) { color: var(--muted); font-size: 11px; }
.payment-summary hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.payment-summary h3, .draft-actions h3 { margin-bottom: 13px; font-size: 14px; }
.payment-summary .form-group { margin-bottom: 12px; }
.payment-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf0ed; font-size: 11px; }
.payment-row small { display: block; color: var(--muted); font-size: 9px; }
.draft-actions { background: #f0f3f0; }
.draft-actions p { color: var(--muted); font-size: 11px; }
.link-danger { padding: 0; border: 0; background: none; color: var(--danger); font-size: 11px; text-decoration: underline; }
.filter-panel { padding: 17px 20px; }
.period-form { display: flex; align-items: flex-end; gap: 12px; }
.period-form .form-group { min-width: 160px; margin: 0; }
.period-form .form-errors { margin: 0; }
.period-form .text-link { margin: 0 0 10px 6px; font-size: 11px; }
.entry-panel { padding: 0; overflow: hidden; }
.entry-header { display: flex; justify-content: space-between; gap: 25px; padding: 20px 24px; background: #f0f4f0; }
.entry-number { color: #73837a; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.entry-header h2 { margin: 5px 0 0; font-size: 15px; }
.entry-header > div:last-child { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; }
.entry-header small { color: var(--muted); font-size: 10px; }
.entry-panel table { font-size: 11px; }
.entry-panel th:first-child, .entry-panel td:first-child { padding-left: 24px; }
.entry-panel th:last-child, .entry-panel td:last-child { padding-right: 24px; }

@media (max-width: 1100px) {
    .hero { gap: 30px; }
    .hero-copy h1 { font-size: 58px; }
    .floating-note { right: -5px; }
    .app-main { padding: 35px 25px 50px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .single-metric { grid-template-columns: 1fr 1fr; }
    .invoice-detail-grid { grid-template-columns: minmax(0, 1fr) 260px; }
    .pricing-bottom { grid-template-columns: 1fr; }
    .pricing-bottom .button { justify-self: start; }
}

@media (max-width: 850px) {
    .container { width: min(100% - 34px, 680px); }
    .public-nav nav { gap: 18px; margin-right: 0; }
    .public-nav nav a:first-child { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 65px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { width: min(580px, 100%); margin: 10px auto 0; }
    .trust-strip .container { flex-direction: column; justify-content: center; padding-block: 20px; }
    .trust-strip div div { flex-wrap: wrap; justify-content: center; gap: 15px 25px; }
    .section { padding-block: 75px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card p { min-height: auto; }
    .split-section { grid-template-columns: 1fr; gap: 30px; }
    .final-cta { padding: 40px; }
    .final-cta h2 { font-size: 34px; }
    .auth-page { grid-template-columns: 1fr; gap: 35px; padding-top: 45px; }
    .auth-intro { text-align: center; }
    .auth-intro > p { margin-inline: auto; }
    .auth-benefits { display: inline-block; text-align: left; }
    .auth-card { width: min(440px, 100%); margin-inline: auto; }
    .sidebar { position: static; width: 100%; padding: 15px 18px; }
    .sidebar .brand { margin-left: 0; }
    .workspace-name, .nav-section, .sidebar-footer { display: none; }
    .side-nav { flex-direction: row; gap: 5px; margin-top: 16px; padding-bottom: 5px; overflow-x: auto; }
    .side-nav a { flex: 0 0 auto; padding: 8px 11px; }
    .side-nav a.active { box-shadow: inset 0 -2px var(--lime); }
    .app-main { width: 100%; margin-left: 0; padding: 28px 20px 50px; }
    .dashboard-grid, .form-layout, .invoice-detail-grid { grid-template-columns: 1fr; }
    .info-panel { order: -1; }
    .billing-grid { grid-template-columns: 1fr; }
    .invoice-detail-grid aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .invoice-detail-grid aside > .panel { margin: 0; }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 28px); }
    .public-header { padding-top: 15px; }
    .public-nav { gap: 12px; }
    .public-nav nav { margin-left: auto; }
    .public-nav nav a:not(:last-child) { display: none; }
    .public-nav .brand { font-size: 22px; }
    .brand-mark { width: 29px; height: 29px; font-size: 20px; }
    .hero { min-height: auto; padding-top: 45px; padding-bottom: 65px; }
    .hero-copy h1 { font-size: 49px; }
    .hero-lead { font-size: 16px; }
    .hero-actions { flex-direction: column; gap: 17px; }
    .mock-body { padding: 17px; }
    .mock-cards strong { font-size: 16px; }
    .floating-note { right: 5px; padding: 10px 13px; }
    .section { padding-block: 60px; }
    .section-heading h2 { font-size: 35px; }
    .pricing-card { padding: 25px 20px; }
    .pricing-top { flex-direction: column; }
    .pricing-bottom ul { grid-template-columns: 1fr; }
    .final-cta { flex-direction: column; align-items: flex-start; margin-bottom: 55px; padding: 32px 25px; }
    .final-cta h2 { font-size: 31px; }
    .footer-inner { flex-wrap: wrap; gap: 18px; padding-block: 25px; }
    .auth-page { padding-top: 30px; }
    .auth-intro h1 { font-size: 40px; }
    .auth-card { padding: 26px 20px; }
    .app-main { padding: 23px 13px 40px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 29px; }
    .header-actions { width: 100%; flex-wrap: wrap; }
    .header-actions .button, .header-actions form { flex: 1; }
    .header-actions form .button { width: 100%; }
    .metric-grid, .single-metric { grid-template-columns: 1fr; gap: 10px; }
    .metric-card { padding: 17px; }
    .metric-card strong { font-size: 26px; }
    .panel { padding: 18px 14px; }
    .chart { gap: 8px; height: 205px; }
    .chart-bar-track { height: 140px; }
    .list-toolbar { align-items: flex-start; flex-direction: column; }
    .search-form { width: 100%; flex-wrap: wrap; }
    .search-form input { max-width: none; }
    .form-grid, .invoice-meta { grid-template-columns: 1fr; }
    .invoice-lines-head { display: none; }
    .invoice-line-row { position: relative; grid-template-columns: 1fr 1fr; padding: 13px; border: 1px solid var(--line); border-radius: 8px; }
    .line-description { grid-column: 1 / -1; }
    .line-actions { position: absolute; top: 4px; right: 4px; }
    .invoice-line-row input { min-width: 0; }
    .invoice-detail-grid aside { grid-template-columns: 1fr; }
    .invoice-addresses { gap: 15px; }
    .period-form { flex-wrap: wrap; }
    .period-form .form-group { flex: 1; min-width: 125px; }
    .entry-header { flex-direction: column; gap: 10px; }
    .entry-header > div:last-child { align-items: flex-start; }
}

.environment-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    padding: 8px 13px;
    border: 1px solid #b9dd70;
    border-radius: 8px;
    background: var(--lime);
    color: var(--green);
    box-shadow: 0 5px 20px rgba(23, 63, 52, .15);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    pointer-events: none;
    text-transform: uppercase;
}
