:root {
  color-scheme: light;
  --paper: #f5f5ef;
  --ink: #19251f;
  --muted: #758078;
  --line: #d8ddd3;
  --green: #247b59;
  --green-dark: #18563e;
  --coral: #e97456;
  --white: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background-color: var(--paper); background-image: radial-gradient(rgba(36,123,89,.11) .7px, transparent .7px); background-size: 22px 22px; color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { min-height: 74px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(6vw, calc((100vw - 1320px) / 2)); background: rgba(245,245,239,.88); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; font-size: 21px; font-style: italic; }
.brand-light { color: var(--green); font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 31px; }
.live-indicator, .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: #4aaf77; box-shadow: 0 0 0 3px rgba(74,175,119,.14); }
.text-button { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 12px; padding: 8px 0; }
.text-button span { color: var(--green); margin-left: 5px; }
main { max-width: 1320px; margin: 0 auto; padding: 57px 6vw 24px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 39px; }
.eyebrow { color: var(--green); margin: 0 0 15px; }
.eyebrow span { color: #9ba49c; margin-left: 12px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: 58px; font-weight: 400; line-height: 1.03; letter-spacing: 0; }
h1 em { color: var(--green); font-weight: 400; }
.heading-note { max-width: 238px; color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 1px 5px 0; }
.work-grid { display: grid; grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 420px; }
.composer { padding: 32px 7.3% 27px 0; border-right: 1px solid var(--line); }
.field-label { display: flex; justify-content: space-between; align-items: center; color: #657068; font-size: 11px; font-weight: 700; }
.field-label > span { color: #a3aaa2; font-size: 9px; letter-spacing: 1px; }
.amount-field { display: flex; align-items: center; height: 74px; border-bottom: 1px solid var(--ink); gap: 11px; margin: 5px 0 23px; }
.amount-field > span:first-child { color: var(--green); font: 28px Georgia, serif; }
.amount-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: 34px Georgia, serif; color: var(--ink); }
.amount-field input::placeholder { color: #bcc2b9; }
.currency { color: #929b93; font-size: 9px; letter-spacing: .8px; white-space: nowrap; }
.field-row { margin-top: 20px; }
.text-input { width: 100%; height: 41px; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.text-input:focus { border-color: var(--green); }
.text-input::placeholder { color: #a1a9a1; }
.upi-notice { margin: 16px 0 0; padding-left: 11px; border-left: 2px solid var(--coral); color: #59655d; font-size: 11px; line-height: 1.6; }
.form-foot { margin-top: 27px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-foot > span { color: var(--muted); font-size: 10px; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 0; border-radius: 2px; background: var(--green); color: white; padding: 0 17px; font-size: 12px; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.form-error { min-height: 17px; color: #bd4d36; font-size: 11px; margin: 9px 0 0; }
.result-panel { min-width: 0; padding: 26px 0 28px 6%; }
.empty-result { height: 100%; min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 5%; }
.empty-number { color: var(--coral); font: 42px Georgia, serif; }
.empty-result p { margin: 18px 0 5px; font: 22px Georgia, serif; }
.empty-result > span:last-child { color: var(--muted); font-size: 11px; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 2px 0 18px; border-bottom: 1px solid var(--line); }
.result-heading .eyebrow { margin-bottom: 8px; }
.result-heading h2 { margin-bottom: 4px; font: 24px Georgia, serif; }
.result-vpa { color: var(--muted); font-size: 11px; margin: 0; }
.result-total { color: var(--green); font: 24px Georgia, serif; white-space: nowrap; }
.payment-notice { margin: 14px 0 0; padding: 13px 15px; border: 1px solid rgba(233,116,86,.38); border-left: 4px solid var(--coral); border-radius: 3px; background: rgba(233,116,86,.1); color: var(--ink); }
.payment-notice strong { display: block; margin-bottom: 4px; font-size: 12px; }
.payment-notice p { margin: 0; color: #59655d; font-size: 11px; line-height: 1.55; }
.share-controls { display: flex; gap: 9px; padding: 14px 0 18px; }
.share-button { border: 1px solid var(--green); border-radius: 2px; background: var(--green); color: white; cursor: pointer; padding: 9px 13px; font-size: 11px; }
.share-secondary { background: transparent; color: var(--green); }
.installment-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.installment { min-width: 0; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.72); padding: 13px 10px 9px; animation: rise-in .28s ease both; }
.installment:nth-child(2) { animation-delay: .06s; }
.installment:nth-child(3) { animation-delay: .12s; }
.installment-heading { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.installment-heading span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.installment-heading strong { color: var(--ink); font: 16px Georgia, serif; }
.installment img { width: min(100%, 176px); height: auto; aspect-ratio: 1; margin: 7px 0 3px; image-rendering: pixelated; }
.download-link { color: var(--green); font-size: 10px; text-decoration: none; padding: 3px; }
.page-foot { display: flex; justify-content: space-between; gap: 15px; padding-top: 17px; color: var(--muted); font-size: 10px; }
.page-foot span:last-child { white-space: nowrap; letter-spacing: .7px; }
.share-view { max-width: 980px; margin: 0 auto; padding: 14px 0; }
.share-view .installment-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 12px; }
.share-view .installment img { width: min(100%, 210px); }
.hidden { display: none !important; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.admin-heading h1 { font-size: 42px; }
.admin-login { max-width: 430px; margin-top: 35px; }
.login-row { display: flex; align-items: center; gap: 18px; }
.login-row .text-input { flex: 1; }
.admin-content { margin-top: 32px; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 9px; letter-spacing: .8px; font-weight: 700; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
td { font-size: 11px; }
td a { color: var(--green); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .topbar { min-height: 62px; padding: 0 20px; }
  .topbar-right { gap: 16px; }
  .live-indicator { font-size: 9px; }
  main { padding: 37px 20px 20px; }
  .page-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 25px; }
  h1 { font-size: 43px; }
  .heading-note { max-width: 330px; font-size: 12px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .composer { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-panel { padding: 22px 0; }
  .empty-result { min-height: 185px; padding: 0 0 0 2%; }
  .page-foot { font-size: 9px; }
  .share-view .installment-list { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
  .share-controls { flex-wrap: wrap; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .admin-heading h1 { font-size: 36px; }
  .admin-login { max-width: none; }
  .login-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .login-row .primary-button { min-height: 46px; }
}

@media (max-width: 420px) {
  .topbar-right { gap: 11px; }
  .text-button { font-size: 11px; }
  .live-indicator { gap: 5px; font-size: 8px; }
  .form-foot { align-items: start; flex-direction: column; }
  .form-foot .primary-button { align-self: stretch; }
  .result-heading h2 { font-size: 20px; }
  .result-total { font-size: 20px; }
  .page-foot { flex-direction: column; }
  .admin-heading h1 { font-size: 32px; }
  th, td { padding: 12px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}