@charset "UTF-8";
:root { color-scheme: light dark; --bg: #f7f8f5; --surface: #fff; --ink: #23352d; --muted: #69766f; --line: #e1e6df; --green: #286448; --soft: #eaf2e9; --warm: #fff3de; --danger: #a84b2e; --shadow: 0 12px 48px #193d2510; font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9ab888; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-header { max-width: 1280px; padding: 28px 40px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.brand-dot { color: var(--green); }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: white; border-radius: 11px; width: 35px; height: 35px; margin-right: 10px; font-size: 27px; line-height: 1; }
.brand-icon span { font-size: 15px; margin: 0 0 10px -3px; }
.header-right { display: flex; align-items: center; gap: 26px; }
.tagline { color: var(--muted); font-size: 12px; }
select { border: 1px solid var(--line); color: var(--ink); background: var(--surface); padding: 8px 10px; border-radius: 8px; }
main { max-width: 1280px; margin: auto; padding: 0 40px; }
.hero { padding: 53px 0 35px; max-width: 770px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 1.7px; color: var(--green); margin: 0 0 14px; }
.eyebrow > span { background: var(--soft); padding: 3px 6px; border-radius: 4px; margin-right: 6px; }
h1 { font-size: clamp(34px, 4.3vw, 53px); letter-spacing: -2.1px; line-height: 1.12; font-weight: 720; margin: 0 0 18px; text-wrap: balance; }
.intro { font-size: 16px; color: var(--muted); max-width: 600px; line-height: 1.7; }
.privacy { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
.privacy span { color: var(--green); margin-right: 4px; }
.settings { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; display: grid; grid-template-columns: 120px 150px 190px 1fr; gap: 24px; align-items: center; background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12px; font-weight: 600; }
.field > span:first-child { color: var(--muted); }
input { color: var(--ink); background: var(--surface); width: 100%; min-width: 0; height: 41px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; font-weight: 500; }
input:hover { border-color: #9caea0; }
.input-wrap { display: flex; position: relative; align-items: center; }
.input-wrap input { padding-right: 55px; font-variant-numeric: tabular-nums; }
.suffix { position: absolute; right: 11px; pointer-events: none; color: var(--muted); font-size: 11px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
input::-webkit-inner-spin-button { appearance: none; }
.settings-note { color: var(--muted); font-size: 11px; line-height: 1.7; padding-left: 22px; border-left: 1px solid var(--line); margin: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 22px 0 44px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 21px; border-radius: 12px; min-width: 0; }
.stat p { color: var(--muted); margin: 0 0 13px; font-size: 12px; }
.stat > strong { display: block; font-size: clamp(20px, 2.15vw, 28px); letter-spacing: -1px; overflow-wrap: anywhere; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.stat > span { display: block; font-size: 11px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.featured { background: var(--green); border-color: var(--green); color: #fff; }
.featured p, .featured > span, .featured small { color: #d8e9dc; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.5px; margin: 0; }
.section-heading p, .data-section p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.count { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; font-size: 11px; background: var(--soft); color: var(--green); height: 23px; min-width: 25px; padding: 0 6px; border-radius: 6px; margin-left: 5px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 9px 14px; font-size: 12px; font-weight: 600; }
.button:hover { background: var(--soft); }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.primary:hover { filter: brightness(1.12); }
.button.subtle { background: transparent; }
.text-button { border: 0; background: transparent; padding: 6px 0; color: var(--green); font-size: 11px; font-weight: 600; text-align: left; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.danger, .negative { color: var(--danger); }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; font-size: 12px; }
th { padding: 14px 18px; background: var(--soft); font-weight: 500; font-size: 10px; color: var(--muted); }
th:first-child { border-top-left-radius: 12px; width: 21%; }
th:nth-child(2) { width: 16%; } th:nth-child(3) { width: 13%; } th:nth-child(4) { width: 20%; } th:nth-child(5) { width: 18%; }
th:last-child { border-top-right-radius: 12px; width: 12%; }
td { padding: 21px 18px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
td strong { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
td small { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.project-name { margin-bottom: 7px; }
.badge { font-size: 9px; padding: 3px 6px; background: var(--warm); color: var(--danger); border-radius: 4px; display: inline-block; }
.below-target td:first-child { box-shadow: inset 3px 0 var(--danger); }
.muted { color: var(--muted); font-size: 11px; font-weight: 400; }
.real-rate { color: var(--green); font-size: 16px; letter-spacing: -.5px; }
.real-rate.negative { color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 1px; margin: -5px -9px; }
.icon-button { width: 30px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; font-size: 20px; border-radius: 5px; flex: 0 0 auto; }
.icon-button:hover { background: var(--soft); }
.rate-bar { display: flex; height: 9px; border-radius: 3px; overflow: hidden; background: var(--line); margin: 7px 0 11px; }
.kept { background: #4c8262; } .fees { background: #c3ad74; } .tax { background: #a7b4c2; } .expenses { background: #be9986; } .unpaid { background: #d6daca; }
details { font-size: 10px; color: var(--muted); }
details summary { padding: 3px 0; }
.breakdown-list { margin: 7px 0 0; font-variant-numeric: tabular-nums; }
.breakdown-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin: 5px 0; }
.breakdown-list dt, .breakdown-list dd { margin: 0; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; flex-shrink: 0; }
.table-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); padding: 15px 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend > span { display: flex; align-items: center; }
.empty { text-align: center; border: 1px dashed #b8c8ba; background: var(--surface); padding: 38px 20px; border-radius: 12px; }
.empty > span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--soft); color: var(--green); font-size: 28px; }
.empty h3 { font-size: 19px; margin: 16px 0 8px; letter-spacing: -.4px; }
.empty p { max-width: 420px; margin: 0 auto 22px; color: var(--muted); font-size: 12px; }
.quote-section { display: grid; grid-template-columns: 1fr 2.1fr; gap: 44px; margin: 42px 0; border-radius: 15px; padding: 32px; background: var(--soft); border: 1px solid var(--line); }
.quote-icon { display: flex; align-items: center; justify-content: center; height: 36px; width: 36px; border: 1px solid #a4bca5; border-radius: 10px; font-size: 23px; color: var(--green); margin-bottom: 20px; }
.quote-heading .eyebrow { font-size: 11px; letter-spacing: .3px; }
.quote-heading h2 { font-size: 24px; line-height: 1.45; max-width: 255px; font-weight: 550; }
.quote-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 19px 16px; }
.field-note { font-size: 10px; color: var(--muted); margin: 7px 0 0; }
.quote-answer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid #c8d9c8; margin-top: 21px; padding-top: 22px; min-height: 110px; }
.quote-answer > div { min-width: 0; }
.quote-answer span, .quote-answer small { display: block; font-size: 11px; color: var(--muted); }
.quote-answer strong { display: block; color: var(--green); font-size: 30px; font-weight: 700; letter-spacing: -1px; overflow-wrap: anywhere; }
.quote-answer button { flex-shrink: 0; }
.quote-answer button span { display: inline; color: white; font-size: 18px; }
.quote-note { font-size: 10px; color: var(--muted); margin: 18px 0 0; line-height: 1.8; }
.data-section { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 2px 0 33px; border-bottom: 1px solid var(--line); }
.data-section h2 { font-size: 15px; }
.data-section .danger { margin-left: 10px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 32px; color: var(--muted); font-size: 10px; }
footer > span:first-child { font-weight: 650; font-size: 13px; color: var(--ink); }
.warning { background: var(--warm); color: var(--danger); padding: 14px 18px; border-radius: 8px; }
#notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); padding: 12px 20px; border-radius: 9px; font-size: 12px; z-index: 5; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 26px; width: min(580px, calc(100% - 28px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: #172d2566; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin: 22px 0 0; min-width: 0; }
legend { font-weight: 650; font-size: 12px; padding: 0 9px 0 0; }
.dialog-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
@media (max-width: 1050px) {
  .settings { grid-template-columns: 100px 130px 1fr; gap: 16px; }
  .settings-note { grid-column: 1/-1; padding: 0; border: 0; }
  .quote-section { grid-template-columns: 1fr; gap: 25px; }
  .quote-heading h2 { max-width: 600px; font-size: 21px; }
  .quote-icon { display: none; }
  .data-section { flex-wrap: wrap; }
  td, th { padding-left: 12px; padding-right: 12px; }
  .stat { padding: 17px; }
}
@media (max-width: 760px) {
  .site-header { padding: 22px 20px; } main { padding: 0 20px; }
  .tagline { display: none; }
  .hero { padding-top: 32px; } h1 { font-size: 39px; letter-spacing: -1.5px; } .intro { font-size: 14px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
  .stat > strong { font-size: 23px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .table-wrap { background: none; border: 0; }
  table, tbody { display: block; } thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  tr { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 17px; margin-bottom: 12px; }
  td { display: block; padding: 10px 0; border: 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
  td:first-child { grid-column: 1/-1; padding-top: 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  td:first-child::before, td:last-child::before { display: none; }
  td:last-child { grid-column: 1/-1; padding-bottom: 0; border-top: 1px solid var(--line); margin-top: 8px; }
  .project-name { display: inline; font-size: 15px; margin-right: 8px; }
  .below-target { border-left: 3px solid var(--danger); } .below-target td:first-child { box-shadow: none; }
  .row-actions { margin: 0; gap: 7px; justify-content: flex-end; } .icon-button { width: 36px; height: 36px; }
  .table-footer { flex-direction: column; padding-top: 4px; }
  .quote-section { padding: 22px; margin-top: 30px; }
  .quote-fields { grid-template-columns: 1fr 1fr; }
  .quote-answer { align-items: flex-start; flex-direction: column; }
  .quote-answer strong { font-size: 28px; }
  .data-section .button-row { gap: 8px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 420px) {
  .site-header { padding: 18px 16px; } main { padding: 0 16px; }
  h1 { font-size: 34px; } .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .settings { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; } .settings > .field:nth-child(3) { grid-column: 1/-1; }
  .stat { padding: 15px; } .stat > strong { font-size: 20px; } .stat small { font-size: 10px; }
  .quote-section { padding: 18px; } .quote-fields { column-gap: 12px; }
  .quote-heading h2 { font-size: 20px; } .button { padding: 9px 11px; font-size: 11px; }
  .legend { gap: 9px; } dialog { padding: 20px; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14211b; --surface: #1b2a22; --ink: #e0e9df; --muted: #a0b1a3; --line: #34453a; --green: #397953; --soft: #233b2a; --warm: #473a24; --danger: #f1ad88; --shadow: 0 12px 48px #0004; }
  .eyebrow, .text-button, .real-rate, .quote-answer strong, .quote-icon, .count, .brand-dot, .privacy span { color: #a3c9a2; }
  .quote-answer { border-color: var(--line); } .quote-icon { border-color: var(--muted); }
  .empty { border-color: var(--line); }
}
