.app-content:has(.treasury-page) { max-width: none; padding: 40px clamp(16px, 2.5vw, 40px) 80px; }
.treasury-page { display: grid; gap: 35px; color: #10192c; font: 18px/1.45 Inter, system-ui, sans-serif; }
.treasury-panel { min-width: 0; border: 1px solid #e1e8f0; border-radius: 20px; background: white; }
.treasury-overview, .treasury-flows, .treasury-form { padding: clamp(18px, 2.25vw, 36px); }
.treasury-page h2 { font-size: 21px; font-weight: 700; }
.treasury-panel > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.treasury-overview h1 { margin-top: 8px; font-size: clamp(26px, 2vw, 32px); font-weight: 700; letter-spacing: -.035em; }
.treasury-overview-label, .treasury-status { display: inline-block; padding: 3px 13px; border-radius: 999px; background: #e7fbf2; color: #007c5a; font-size: 15px; }
.treasury-overview-label { font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.treasury-overview dl { text-align: right; }
.treasury-overview dt, .treasury-table header span, .treasury-table td small { color: #647b99; font-size: 15px; }
.treasury-overview dd, .treasury-amount { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.treasury-overview dd { font-size: clamp(28px, 3vw, 46px); font-weight: 700; line-height: 1.12; }
.treasury-overview dd span { display: block; margin-top: 6px; color: #00875f; font: 700 23px/1.2 Inter, system-ui, sans-serif; }
.treasury-intro { margin-top: 16px; padding-top: 18px; border-top: 1px solid #eaf0f5; color: #596e89; }
.treasury-scroll { overflow-x: auto; }
.treasury-table { overflow: hidden; }
.treasury-table > header { padding: 20px clamp(18px, 2vw, 30px); }
.treasury-table:not(.treasury-history) h2 { font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.treasury-table :is(th, td) { padding: 17px clamp(18px, 2vw, 30px); border-top: 1px solid #eaf0f5; }
.treasury-table th { background: #f6f8fa; color: #536782; font-size: 15px; }
.treasury-table .text-right { white-space: nowrap; }
.treasury-account { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.treasury-account::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 100%; background: #0eb483; }
.treasury-account[data-method="bank_transfer"]::before { background: #387cf0; }
.treasury-account[data-method="mobile_money"]::before { background: #ed9809; }
.treasury-account[data-method="card"]::before { background: #8466d3; }
.treasury-method { padding: 3px 10px; border-radius: 5px; background: #eef3f8; color: #34455d; font-size: 15px; }
.treasury-flows h2 { font-size: 23px; }
.treasury-flows header { margin-bottom: 15px; }
.treasury-flows p { color: #596e89; }
.treasury-flows form { margin: 24px 0 18px; }
.treasury-status { border: 1px solid #a6efd2; }
.treasury-primary, .treasury-save { min-height: 44px; padding: 8px 24px; border-radius: 10px; font-weight: 600; }
.treasury-primary { background: #008a61; color: white; }
.treasury-primary span, .treasury-empty-flows span { margin-right: 8px; }
.treasury-empty-flows { padding: 16px 18px; border: 1px solid #eaf0f5; border-radius: 10px; background: #f6f8fa; font-size: 15px; }
.treasury-empty-flows span { color: #00875f; font-weight: 700; }
.treasury-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.treasury-form-account { grid-row: span 2; }
.treasury-form-assign { grid-column: 1 / -1; }
.treasury-form h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.treasury-form h2 span { display: grid; flex: 0 0 35px; height: 35px; place-items: center; border-radius: 10px; background: #e7fbf2; color: #007c5a; font-size: 15px; }
.treasury-form label { display: block; margin-bottom: 5px; color: #34455d; font-size: 15px; font-weight: 600; }
.treasury-form :is(input:not([type="hidden"]), select) { display: block; width: 100%; min-width: 0; min-height: 47px; padding: 8px 14px; border: 1px solid #dbe4ef; border-radius: 10px; background: #f7f9fb; color: #10192c; }
.treasury-save { border: 1px solid #dbe4ef; background: #eef3f8; font-size: 15px; }
.treasury-form .errorlist { color: #b81936; font-size: 15px; }
.treasury-history-empty { height: 195px; color: #647b99; text-align: center; }
.treasury-history-empty svg { display: block; margin: 0 auto 12px; color: #a3b4cb; }
.treasury-page :focus-visible { outline: 2px solid #00875f; outline-offset: 3px; }
@media (max-width: 850px) {
  .treasury-forms { grid-template-columns: minmax(0, 1fr); }
  .treasury-form-account { grid-row: auto; }
}
@media (max-width: 600px) {
  .treasury-overview dl { text-align: left; }
}

.treasury-no-accounts { margin-top: 12px; color: #596e89; }
