/* Rounded, calm and tactile interface refresh for Maeul Ledger. */
:root{
  --color-surface:#fff;
  --color-paper:#f5f8f3;
  --color-primary:#a6d77f;
  --color-ink:#26352b;
  --color-subtitle:#738074;
  --color-selection-border:#dce7da;
  --color-table-heading:#edf5e9;
  --pine:#82bb62;
  --pine-dark:#527f42;
  --mint:#eef6e9;
  --lime:#a6d77f;
  --ink:#26352b;
  --muted:#738074;
  --line:#e3ebe1;
  --paper:#f5f8f3;
  --orange:#f5c77a;
  --white:#fff;
  --radius:24px;
  --soft-shadow:0 8px 24px rgba(44,76,44,.07),0 1px 3px rgba(44,76,44,.05);
  --lift-shadow:0 13px 30px rgba(44,76,44,.13),0 3px 7px rgba(44,76,44,.07);
}

body{background:linear-gradient(180deg,#f9fbf7 0%,#f3f7f1 100%);color:#26352b}
::selection{background:#dcefd0;color:#253827}
button,a,.card,.stat,.records-list,.filter-panel,.form-section,.report-section,.project-summary>summary,.quick-guide,.business-plan-file{
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .2s ease,transform .18s ease;
}

.sidebar{background:rgba(255,255,255,.92);border-right:1px solid #e8eee5;box-shadow:5px 0 24px rgba(52,83,51,.025);padding:30px 18px}
.brand{gap:12px;font-size:21px}
.brand-icon{width:44px;height:44px;border-radius:16px;background:#f1f8ec;overflow:hidden}
.brand-icon img{width:40px;height:40px;object-fit:contain}
.brand small{color:#879487;letter-spacing:1.5px}
.workspace-label{color:#8a9788;margin:34px 12px 12px}
.desktop-nav{gap:7px}
.desktop-nav button{min-height:48px;padding:11px 14px;border-radius:16px;color:#667365}
.desktop-nav button:hover{background:#f4f8f1;transform:translateX(2px)}
.desktop-nav button.active{background:#edf6e8;color:#426c39;box-shadow:inset 0 0 0 1px #e1eedb;font-weight:750}
.sidebar-bottom{border-color:#edf1ea;color:#657365}
.sidebar-bottom p{color:#8b9689}

.app-shell{background:transparent}
.topbar{background:rgba(255,255,255,.88);border:0;border-bottom:1px solid rgba(222,233,220,.8);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding-inline:clamp(18px,3.2vw,44px)}
.private-badge{background:#eef6e9;color:#54704d;border:1px solid #e2eddd;padding:7px 12px}
.utility-btn{border:1px solid #e4ebe1;background:#fff;border-radius:14px;padding:8px 13px;box-shadow:0 2px 5px rgba(50,70,50,.04)}
.utility-btn:hover{background:#f5f9f2;border-color:#cdddca;transform:translateY(-1px)}
main{padding-top:30px}
.page-head{border:1px solid #e5ede2;border-left:0;border-radius:26px;background:linear-gradient(135deg,#fff 0%,#f8fbf5 100%);box-shadow:var(--soft-shadow);padding:24px 28px}
.page-head h1{color:#29392e;font-size:clamp(27px,2.7vw,35px);letter-spacing:-1px}
.page-head p{color:#788578;font-size:14px;font-weight:500}
.page-head .head-actions{gap:10px}

.hero{background:linear-gradient(120deg,#b9e69a 0%,#a7d980 58%,#d4efbb 100%);border-radius:30px;box-shadow:0 14px 32px rgba(111,164,78,.16);color:#2c462b}
.hero h2{color:#27412b}
.hero p,.hero .eyebrow,.hero .hero-link{color:#486a42}
.hero .btn,.hero .hero-link{border-radius:16px}
/* Keep the overview title banner in the same quiet family as other page subtitles. */
.hero.compact-hero.page-menu-banner{background:linear-gradient(135deg,#fff 0%,#f8fbf5 100%);border:1px solid #e5ede2;color:#29392e;box-shadow:var(--soft-shadow)}
.stats{gap:14px}
.stat,.card,.records-list,.filter-panel,.form-section.card,.report-section.card,.business-plan-file{
  border:1px solid #e5ede2!important;border-radius:23px!important;background:#fff;box-shadow:var(--soft-shadow)
}
.stat{padding:22px 23px}
.stat:hover,.card:hover,.business-plan-file:hover{box-shadow:var(--lift-shadow);transform:translateY(-2px)}
.stat-label{color:#748174}
.stat-value{color:#2d3e31}
.section-head{margin-bottom:18px}
.section-head h2{color:#344638}
.entry{border-color:#eff3ed;border-radius:16px;padding:15px 11px}
.entry:hover{background:#f7faf5;transform:translateX(2px)}
.entry-icon{background:#f0f7eb;color:#5a8749;border-radius:15px;width:43px;height:43px}
.entry-icon.orange{background:#fff4df;color:#a87933}
.entry-title{color:#2e3d31}
.entry-sub{color:#879286}
.entry-amount{color:#3c6240}
.pill{border-radius:999px;background:#eef6e9;color:#587c4d;padding:2px 9px}
.pill.warn{background:#fff4df;color:#9a7138}
.budget-ring{box-shadow:0 7px 18px rgba(84,133,67,.1)}
.budget-tip{background:#f4f8f1;border-radius:14px;color:#70816d}
.quick-guide{border:1px solid #e4ecdf;border-radius:20px;background:rgba(255,255,255,.8)}

.btn,.btn.secondary,.btn.soft,.btn.danger{
  border:1px solid transparent;border-radius:16px;min-height:46px;padding:11px 18px;font-weight:750;box-shadow:0 3px 0 rgba(70,106,57,.10);transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease
}
.btn{background:linear-gradient(180deg,#addf88,#9fd475);color:#29462c}
.btn:hover{background:linear-gradient(180deg,#bce89c,#a9dc7e);outline:0;box-shadow:0 5px 0 rgba(70,106,57,.12),0 8px 18px rgba(83,134,65,.16);transform:translateY(-2px)}
.btn:active{transform:translateY(1px);box-shadow:0 1px 0 rgba(70,106,57,.12)}
.btn.secondary{background:#fff;border-color:#e3ebe0;color:#4c5f4d}
.btn.secondary:hover{background:#f5f9f2;border-color:#cadcc4;outline:0}
.btn.soft{background:#edf6e8;border-color:#dfebd8;color:#4d7844}
.btn.soft:hover{background:#e4f1dc;outline:0}
.btn.danger{background:#fff2ed;border-color:#f5ded5;color:#a34f3b}
.btn.small{min-height:38px;padding:8px 13px;border-radius:13px}
.icon-btn{width:40px;height:40px;border-color:#e3ebe0;background:#fff;box-shadow:0 2px 6px rgba(50,70,50,.05)}
.icon-btn:hover{background:#eff7e9;color:#4d7844;transform:scale(1.04)}

.context-bar{background:#fff;border:1px solid #e5ede2;border-radius:21px;padding:12px 14px;box-shadow:var(--soft-shadow)}
.context-bar select,.filter-panel input,.filter-panel select,.field input,.field select,.field textarea,.inline-field input{
  border:1px solid #e0e9dc!important;border-radius:15px!important;background:#fbfdf9!important;color:#314033;box-shadow:inset 0 1px 2px rgba(43,70,40,.035);transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease
}
.context-bar select{min-height:44px}
.field input,.field select,.field textarea,.inline-field input{min-height:48px;padding:12px 14px}
.amount-input input{font-size:23px}
.field input:focus,.field select:focus,.field textarea:focus,.inline-field input:focus,.filter-panel input:focus,.filter-panel select:focus,.context-bar select:focus{
  outline:0;border-color:#9bc981!important;background:#fff!important;box-shadow:0 0 0 4px rgba(158,207,129,.2)
}
.field input:read-only{background:#f2f6ef!important;color:#768475}
.payment-options{gap:10px}
.payment-choice{border:1px solid #e4ebe1;border-radius:17px;background:#fff;transition:all .18s ease}
.payment-choice:hover{border-color:#bfd8b2;background:#f8fbf5;transform:translateY(-1px)}
.payment-options input:checked+span,.payment-options input:checked~span{color:#456e3b}
.step-dot{width:30px;height:30px;border-radius:11px;background:#edf6e8;color:#527d47}
.form-section.card-pad{padding:26px}
.save-bar{border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 -7px 25px rgba(45,72,42,.08)}

.filter-panel{padding:15px}
.filter-panel input,.filter-panel select{min-height:44px}
.records-list{padding:8px 20px}
.records-list .entry:first-child{border-top:0}
.record-summary{color:#7a8879}
.empty{padding:42px 22px}
.empty-graphic{border-radius:19px;background:#eef6e9;color:#5a8749}

.desktop-nav button:focus-visible,.mobile-nav button:focus-visible,.btn:focus-visible,.utility-btn:focus-visible,.icon-btn:focus-visible{outline:3px solid #86b96d;outline-offset:3px}
.mobile-nav{border:1px solid rgba(222,233,220,.95);border-radius:26px;background:rgba(255,255,255,.94);box-shadow:0 12px 34px rgba(42,66,40,.15);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:8px}
.mobile-nav button{border-radius:18px;color:#7b897a;min-height:52px}
.mobile-nav button.active{background:#edf6e8;color:#4d7844;box-shadow:inset 0 0 0 1px #e2eedc}
.mobile-nav button:hover{background:#f4f8f1}
.mobile-brand-symbol{border-radius:14px;background:#eef6e9;padding:3px}
.mobile-brand-name{color:#334435}
.page-footer{color:#899387}

.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll{
  padding:0!important;background:#fff!important;border:1px solid #dfe8dc!important;border-radius:18px!important;
  overflow:auto;box-shadow:0 3px 12px rgba(45,72,42,.045)!important;isolation:isolate
}
.table-scroll:not(.compact-budget-sheet) table,.record-table-wrap table,.member-table-scroll table{
  border:0!important;border-collapse:separate!important;border-spacing:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important
}
.table-scroll:not(.compact-budget-sheet) table :is(th,td),.record-table-wrap table :is(th,td),.member-table-scroll table :is(th,td){
  border:0!important;border-right:1px solid #e8eee5!important;border-bottom:1px solid #e8eee5!important;
  box-shadow:none!important;background-clip:padding-box
}
.table-scroll:not(.compact-budget-sheet) table tr>:last-child,.record-table-wrap table tr>:last-child,.member-table-scroll table tr>:last-child{border-right:0!important}
.table-scroll:not(.compact-budget-sheet) table tbody tr:last-child>:is(th,td),.record-table-wrap table tbody tr:last-child>:is(th,td),.member-table-scroll table tbody tr:last-child>:is(th,td){border-bottom:0!important}
.table-scroll:not(.compact-budget-sheet) table thead th,.record-table-wrap table thead th,.member-table-scroll table thead th{
  background:#f0f6ed!important;color:#425a40!important;border-color:#e2eadf!important;font-weight:750
}
.table-scroll:not(.compact-budget-sheet) table thead tr:first-child>:first-child,.record-table-wrap table thead tr:first-child>:first-child,.member-table-scroll table thead tr:first-child>:first-child{border-top-left-radius:16px}
.table-scroll:not(.compact-budget-sheet) table thead tr:first-child>:last-child,.record-table-wrap table thead tr:first-child>:last-child,.member-table-scroll table thead tr:first-child>:last-child{border-top-right-radius:16px}
.table-scroll:not(.compact-budget-sheet) table tbody tr:hover,.record-table-wrap table tbody tr:hover,.member-table-scroll table tbody tr:hover{background:#f8fbf6}
.table-scroll:not(.compact-budget-sheet) table tbody tr,.record-table-wrap table tbody tr,.member-table-scroll table tbody tr{transition:background-color .15s ease}
.table-scroll:not(.compact-budget-sheet) table tfoot td,.table-scroll:not(.compact-budget-sheet) table tfoot th{background:#f5f9f2!important;border-color:#e1eadc!important}
:root #main .table-scroll:not(.compact-budget-sheet),:root #main .record-table-wrap,:root #main .member-table-scroll{padding:0!important;background:#fff!important;border:1px solid #dfe8dc!important;border-radius:18px!important;overflow:auto;box-shadow:0 3px 12px rgba(45,72,42,.045)!important}
:root #main .table-scroll:not(.compact-budget-sheet) table,:root #main .record-table-wrap table,:root #main .member-table-scroll table{border:0!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;box-shadow:none!important}
:root #main .table-scroll:not(.compact-budget-sheet) table :is(th,td),:root #main .record-table-wrap table :is(th,td),:root #main .member-table-scroll table :is(th,td){border:0!important;border-right:1px solid #e8eee5!important;border-bottom:1px solid #e8eee5!important;box-shadow:none!important;background-clip:padding-box}
:root #main .table-scroll:not(.compact-budget-sheet) table tr>:last-child,:root #main .record-table-wrap table tr>:last-child,:root #main .member-table-scroll table tr>:last-child{border-right:0!important}
:root #main .table-scroll:not(.compact-budget-sheet) table tbody tr:last-child>:is(th,td),:root #main .record-table-wrap table tbody tr:last-child>:is(th,td),:root #main .member-table-scroll table tbody tr:last-child>:is(th,td){border-bottom:0!important}
:root #main .table-scroll:not(.compact-budget-sheet) table thead th,:root #main .record-table-wrap table thead th,:root #main .member-table-scroll table thead th{background:#f0f6ed!important;color:#425a40!important;border-color:#e2eadf!important;font-weight:750}
:root #main .table-scroll:not(.compact-budget-sheet) table thead tr:first-child>:first-child,:root #main .record-table-wrap table thead tr:first-child>:first-child,:root #main .member-table-scroll table thead tr:first-child>:first-child{border-top-left-radius:16px}
:root #main .table-scroll:not(.compact-budget-sheet) table thead tr:first-child>:last-child,:root #main .record-table-wrap table thead tr:first-child>:last-child,:root #main .member-table-scroll table thead tr:first-child>:last-child{border-top-right-radius:16px}
:root #main .budget-table thead tr:first-child>th,:root #main .budget-table thead tr:nth-child(2)>th,:root #main .budget-mobile table thead th{background:#f0f6ed!important;color:#425a40!important;border-color:#e2eadf!important}
:root #main .budget-table thead tr:first-child>th,:root #main .budget-mobile table thead th{box-shadow:none!important}
:root #main .board-table-wrap{overflow:hidden;border:1px solid #dfe8dc;border-radius:18px;background:#fff;box-shadow:0 2px 8px rgba(45,72,42,.035)}
:root #main .freeboard-table{border:0!important;border-collapse:separate!important;border-spacing:0!important;border-radius:0!important;background:#fff!important}
:root #main .freeboard-table :is(th,td){border:0!important;border-right:1px solid #e8eee5!important;border-bottom:1px solid #e8eee5!important;background:#fff!important;color:#39463b!important}
:root #main .freeboard-table tr>:last-child{border-right:0!important}
:root #main .freeboard-table thead th{background:#f0f6ed!important;color:#425a40!important;border-color:#e2eadf!important;font-weight:750!important}
:root #main .freeboard-table thead tr:first-child>:first-child{border-top-left-radius:16px}
:root #main .freeboard-table thead tr:first-child>:last-child{border-top-right-radius:16px}
:root #main .freeboard-table tbody tr:hover td{background:#f8fbf6!important}
:root #main .board-pagination button[aria-current=page]{background:#edf6e8;border-color:#bcd6b1;color:#456e3b;box-shadow:inset 0 0 0 1px #dcebd5}
:root #main .board-pagination button:is(:hover,:focus-visible):not(:disabled){background:#f3f8ef;border-color:#bcd6b1;outline:0}

/* Final table finish: one crisp frame, even gridlines and clearer green contrast. */
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap){
  border:1px solid #b9cdb3!important;border-radius:17px!important;background:#fff!important;overflow:auto!important;
  box-shadow:0 3px 10px rgba(42,67,39,.055)!important
}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table{
  border:0!important;border-collapse:separate!important;border-spacing:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important
}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table :is(th,td){
  border:0!important;border-right:1px solid #d3dfcf!important;border-bottom:1px solid #d3dfcf!important;
  box-shadow:none!important;background-clip:padding-box
}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table tr>:last-child{border-right:0!important}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table tbody tr:last-child>:is(th,td){border-bottom:0!important}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table thead th{
  background:#e3f0dd!important;color:#344d35!important;border-color:#c8d9c2!important;font-weight:750!important
}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table thead tr:first-child>:first-child{border-top-left-radius:15px}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table thead tr:first-child>:last-child{border-top-right-radius:15px}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table tbody tr:hover{background:#eff7eb}
:root #main :is(.table-scroll:not(.compact-budget-sheet),.record-table-wrap,.member-table-scroll,.board-table-wrap)>table tfoot :is(th,td){background:#f0f6ed!important;border-top:1px solid #b9cdb3!important;border-bottom:0!important;font-weight:800!important}
:root #main .budget-mobile table{border:1px solid #b9cdb3!important;border-collapse:separate!important;border-spacing:0!important;border-radius:14px!important;overflow:hidden;background:#fff!important;box-shadow:none!important}
:root #main .budget-mobile table :is(th,td){border:0!important;border-right:1px solid #d3dfcf!important;border-bottom:1px solid #d3dfcf!important;box-shadow:none!important}
:root #main .budget-mobile table tr>:last-child{border-right:0!important}
:root #main .budget-mobile table tbody tr:last-child>:is(th,td){border-bottom:0!important}
:root #main .budget-mobile table thead th{background:#e3f0dd!important;color:#344d35!important;border-color:#c8d9c2!important;font-weight:750!important}
:root #main .budget-mobile table tbody tr:hover{background:#eff7eb}
:root #main .budget-table :is(tbody,tfoot) tr>:is(td,th):nth-child(4),:root #main .budget-table :is(tbody,tfoot) tr>:is(td,th):nth-child(7),:root #main .budget-table thead tr:nth-child(2)>th:nth-child(3),:root #main .budget-table thead tr:nth-child(2)>th:nth-child(6){border-right:1px solid #b9cdb3!important}
:root #main .budget-table .funding-grant,:root #main .budget-table .funding-own{border-right:1px solid #b9cdb3!important}
:root #main .freeboard-table :is(th,td){border-right:1px solid #d3dfcf!important;border-bottom:1px solid #d3dfcf!important}
:root #main .freeboard-table thead th{background:#e3f0dd!important;color:#344d35!important;border-color:#c8d9c2!important}
:root #main .freeboard-table tbody tr:hover td{background:#eff7eb!important}
.report-section.card{box-shadow:var(--soft-shadow)!important}
.project-summary>summary{border-radius:18px}
dialog:not([class]){border:1px solid #e4ebe1;border-radius:25px;box-shadow:0 24px 70px rgba(25,40,25,.24);padding:22px}
dialog::backdrop{background:rgba(27,39,29,.35);backdrop-filter:blur(4px)}
#toast{border-radius:18px;box-shadow:0 8px 25px rgba(26,42,27,.18)}

@media(max-width:850px){
  body{background:#f5f8f3}
  .topbar{box-shadow:0 4px 16px rgba(46,70,44,.045)}
  main{padding-top:20px}
  .mobile-nav{left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));min-height:68px}
  .mobile-nav button{min-height:50px}
  .page-head{border-radius:23px}
  .context-bar{border-radius:19px}
}
@media(max-width:680px){
  .page-head{padding:17px 16px}
  .page-head h1{font-size:27px}
  .stats{gap:10px}
  .stat{padding:16px 14px;border-radius:19px!important}
  .stat-value{font-size:25px}
  .card-pad,.form-section.card-pad{padding:18px}
  .records-list{padding-inline:12px;border-radius:20px!important}
  .records-list .entry{padding:14px 8px}
  .filter-panel{padding:12px;border-radius:19px!important}
  .field-row{gap:11px}
  .btn{border-radius:15px}
}
@media(max-width:380px){
  .top-actions{gap:4px}
  .utility-btn{padding:7px 9px;border-radius:12px}
  .mobile-nav{padding:6px;border-radius:23px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
@media print{
  body{background:#fff!important}
  .card,.stat,.records-list,.report-section.card{box-shadow:none!important}
}

/* Match the expense-record row feedback across every table. */
:root #main table :is(th,td){transition:background-color .15s ease,box-shadow .15s ease}
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within){outline:none!important}
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within){transform:none!important;transition:background-color .15s ease!important}
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within)>:is(th,td){background:#EDF7E5!important;box-shadow:none!important;border-color:#d3dfcf!important}
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within)>:is(th,td):is(:first-child,:last-child,:only-child){box-shadow:none!important}
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within)>:is(th,td):is(:first-child,:last-child,:only-child){box-shadow:none!important}

/* A little warmth and handmade softness, while keeping the familiar green UI. */
:root{--warm-paper:#fbf9f3;--warm-sun:#fff4d9;--warm-line:#eee9dc}
body{background:radial-gradient(ellipse at 13% 2%,rgba(248,229,187,.22),transparent 34%),linear-gradient(180deg,#f8faf4 0%,#f1f4ec 100%)}
.sidebar{box-shadow:5px 0 24px rgba(84,75,47,.035)}
.brand-icon{background:linear-gradient(145deg,#fffaf0,#eef7e9);box-shadow:0 3px 10px rgba(111,139,84,.1),inset 0 0 0 1px rgba(224,232,211,.8)}
.topbar{border-bottom-color:rgba(231,229,213,.78)}
.page-head{background:radial-gradient(ellipse at 96% 4%,rgba(255,244,217,.56),transparent 34%),linear-gradient(135deg,#fff 0%,#fbfcf7 74%,#f8faf3 100%);border-color:#e9eddf}
.hero:not(.compact-hero){background:radial-gradient(circle at 86% 18%,rgba(255,247,218,.72) 0 5%,transparent 5.4%),linear-gradient(120deg,#c6e9a8 0%,#a9dc83 58%,#d8efc1 100%)}
.hero:not(.compact-hero)::before{content:"";position:absolute;z-index:0;pointer-events:none;width:260px;height:260px;right:10%;top:-145px;border-radius:50%;background:radial-gradient(circle,rgba(255,247,220,.56) 0%,rgba(255,247,220,.24) 44%,transparent 72%)}
.hero.compact-hero.page-menu-banner{background:radial-gradient(ellipse at 96% 4%,rgba(255,244,217,.48),transparent 34%),linear-gradient(135deg,#fff 0%,#fbfcf7 100%)}
.stat,.card,.records-list,.filter-panel,.form-section.card,.report-section.card,.business-plan-file{background:linear-gradient(155deg,#fff 0%,#fffefa 100%)}
.stat-label svg,.section-head>svg{filter:drop-shadow(0 1px 1px rgba(214,174,103,.22))}
.entry-icon{background:radial-gradient(circle at 28% 22%,#fff9e8 0%,#eef7e8 68%);box-shadow:inset 0 0 0 1px rgba(222,235,213,.8)}
.entry-icon.orange{background:radial-gradient(circle at 28% 22%,#fffaf0 0%,#fff2dc 70%);box-shadow:inset 0 0 0 1px #f2e5ca}
.quick-guide{background:linear-gradient(110deg,#fffefa 0%,#f4f8ef 100%);border-color:#e9eadc}
.budget-tip{background:linear-gradient(110deg,#fff8e9,#f3f8ef)}
.empty-graphic{background:radial-gradient(circle at 30% 24%,#fff9e7 0%,#eef6e9 70%);box-shadow:inset 0 0 0 1px #e5eddc}
.mobile-nav{box-shadow:0 12px 34px rgba(60,74,48,.13),0 2px 7px rgba(226,190,125,.1)}
.btn{background:linear-gradient(180deg,#b4e18e 0%,#a0d477 100%);box-shadow:0 3px 0 rgba(83,117,65,.1),0 2px 9px rgba(222,190,123,.08)}
.btn:hover{background:linear-gradient(180deg,#c0eaa0 0%,#addf83 100%)}
.btn.soft{background:linear-gradient(120deg,#f7f9e9 0%,#edf6e8 100%)}
.private-badge{background:linear-gradient(110deg,#fff7e4,#eef6e9);border-color:#e9eadb}
.payment-choice:hover,.desktop-nav button.active,.mobile-nav button.active{box-shadow:inset 0 0 0 1px #dcebd5,0 2px 8px rgba(222,190,123,.09)}
@media(max-width:850px){body{background:radial-gradient(ellipse at 90% 0%,rgba(248,229,187,.2),transparent 30%),linear-gradient(180deg,#fbfcf7 0%,#f4f7f0 100%)}}
@media(prefers-reduced-motion:reduce){.hero:not(.compact-hero)::before{display:none}}

/* Match the expense table's framed wrapper so the budget corners stay continuous. */
:root #main .compact-budget-sheet.table-scroll{box-sizing:border-box;border:1px solid #93b384!important;border-radius:10px!important;overflow:hidden!important;box-shadow:none!important}
:root #main .compact-budget-sheet.table-scroll>.budget-table{border:0!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important}
:root #main .budget-report-section.budget-zoomed .compact-budget-sheet.table-scroll{overflow-x:auto!important;overflow-y:hidden!important}

/* Keep the shared pale-green row fill without drawing a hover outline. */
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within){outline:none!important}
:root #main table :is(tbody,tfoot)>tr:is(:hover,:focus-visible,:focus-within)>:is(th,td){background:#EDF7E5!important;box-shadow:none!important}

/* Match the two-tier budget heading to the darker green used by other tables. */
:root #main .compact-budget-sheet.table-scroll>.budget-table thead th{background:#e3f0dd!important;color:#344d35!important;border-color:#c8d9c2!important}

/* Keep the selected Materials Library category clearly active with a pale green fill. */
:root #main .form-library-tabs button[aria-selected="true"]{background:#e3f0dd!important;color:#344d35!important;border-color:#c8d9c2!important}

/* Keep delete left and cancel/save right within a centered, inset action bar. */
:root #main form#expense-form>.save-bar{box-sizing:border-box;width:min(100%,900px);margin:10px auto 0;padding:10px clamp(16px,3vw,30px);justify-content:flex-end;gap:10px}
:root #main form#expense-form>.save-bar>.expense-delete{margin:0!important}
:root #main form#expense-form>.save-bar>.save-buttons{margin-left:auto!important}
:root #main form#expense-form>.save-bar:has(>.expense-delete){justify-content:space-between}
:root #main form#expense-form>.save-bar:has(>.expense-delete)>.save-buttons{margin-left:0!important}

/* Align template download and remove controls to the right edge of each evidence row. */
:root #main #expense-form .check-row>label{flex:1 1 auto;min-width:0}
:root #main #expense-form .check-row>:is(.evidence-template-download,.remove-doc){flex:0 0 auto;margin-left:0;align-self:center}

/* Keep the expanded evidence follow-up columns readable without stretching text. */
:root #main .settlement-check-table{width:100%;min-width:780px;table-layout:fixed}
:root #main .settlement-check-table tr>:is(th,td):nth-child(1){width:7%}
:root #main .settlement-check-table tr>:is(th,td):nth-child(2){width:14%}
:root #main .settlement-check-table tr>:is(th,td):nth-child(3){width:12%}
:root #main .settlement-check-table tr>:is(th,td):nth-child(4){width:28%}
:root #main .settlement-check-table tr>:is(th,td):nth-child(5){width:39%}
:root #main .settlement-check-table .wrap-cell{white-space:normal!important;max-width:none;overflow-wrap:anywhere;word-break:keep-all}

/* A little more village warmth: sunlit cream, soft leaf details and gentle depth. */
:root{--village-cream:#fbf8ef;--village-honey:#e6bf79;--village-leaf:#7f9e65}
body{background:radial-gradient(ellipse at 9% 0%,rgba(248,224,174,.22),transparent 31%),radial-gradient(ellipse at 96% 27%,rgba(219,235,202,.22),transparent 34%),linear-gradient(180deg,#fcfcf8 0%,#f4f7f0 62%,#f8f6ef 100%)}
:root #main .page-head{position:relative;isolation:isolate;overflow:hidden;border-color:#e9e8dc;background:linear-gradient(112deg,#fff 0%,#fffefa 52%,#f7faf2 100%)}
:root #main .page-head::after{content:"";position:absolute;z-index:0;pointer-events:none;right:13px;top:-54px;width:168px;height:168px;border-radius:50%;opacity:.64;background:radial-gradient(circle at 45% 54%,rgba(242,208,143,.22) 0 20%,transparent 21%),radial-gradient(circle at 67% 36%,rgba(202,226,179,.3) 0 31%,transparent 32%),radial-gradient(circle,rgba(255,241,208,.34),transparent 70%)}
:root #main .page-head>:is(.page-heading,.head-actions){position:relative;z-index:1}
:root #main .page-head .eyebrow{color:#a68753;letter-spacing:2px}
:root #main .page-head h1{color:#304437}
:root #main :is(.section-head h2,.form-title h2)::before{content:none!important;display:none!important}
:root #main :is(.card,.stat,.records-list,.filter-panel,.form-section.card,.report-section.card,.business-plan-file){background:linear-gradient(145deg,#fff 0%,#fffefa 68%,#fbfcf7 100%);border-color:#e8e9dc!important;box-shadow:0 8px 25px rgba(68,78,48,.055),0 2px 7px rgba(214,180,110,.035)}
:root #main :is(.card,.stat,.business-plan-file):hover{box-shadow:0 14px 32px rgba(58,83,50,.11),0 4px 12px rgba(214,180,110,.07)}
:root #main .project-summary{border-color:#e8e5d7;background:linear-gradient(145deg,#fff 0%,#fbfcf7 100%)}
:root #main .project-number{background:#fff!important;border-color:#dfe5d8!important;color:#465448!important}
:root #main .quick-guide,:root #main .budget-tip{background:linear-gradient(115deg,#fffdf7 0%,#f3f8ed 100%);border-color:#e9e6d8}
:root #main .empty-graphic{background:radial-gradient(circle at 30% 24%,#fff8e5 0%,#edf6e8 72%);box-shadow:inset 0 0 0 1px #e8eadb,0 5px 14px rgba(197,165,100,.07)}
:root #main .btn:not(.secondary):not(.soft):not(.danger){background:linear-gradient(180deg,#b6df94 0%,#a4d37f 100%);box-shadow:0 3px 0 rgba(82,117,64,.1),0 6px 16px rgba(214,177,101,.08)}

/* Keep the budget editor's add and remove controls visually consistent. */
:root .budget-editor-tabs .editor-tab-add,:root .budget-editor-tabs .editor-tab-remove{box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;flex:0 0 44px!important;padding:0!important;display:grid!important;place-items:center!important}
:root .budget-editor-tabs .editor-tab-add{margin-top:6px!important;border:0!important;border-radius:9px!important;background:transparent!important;font-size:inherit!important;box-shadow:none!important}
:root .budget-editor-tabs .editor-tab-add>span,:root .budget-editor-tabs .editor-tab-remove>span{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border:1px solid #9caf8b!important;border-radius:50%!important;background:linear-gradient(145deg,#f6faef,#e8f1df)!important;color:#385b3b!important;font-size:20px!important;font-weight:600!important;line-height:1!important}
:root .budget-editor-tabs .editor-tab-add:hover>span,:root .budget-editor-tabs .editor-tab-remove:hover>span{background:#dcebd0!important;border-color:#648351!important}

/* Keep each menu illustration anchored at the right edge of its page heading. */
:root .page-head>.menu-illustration{position:absolute;z-index:1;left:auto;right:30px;top:50%;transform:translateY(-50%);margin:0;pointer-events:none}
:root .page-head:has(.head-actions)>.menu-illustration{top:14px;transform:none}
@media(max-width:680px){:root .page-head>.menu-illustration{right:20px}:root .page-head:has(.head-actions)>.menu-illustration{top:12px}}
:root .page-head>.owner-archive-icon{position:absolute;z-index:2;right:30px;top:50%;display:grid;place-items:center;width:156px;height:104px;min-width:0;min-height:0;padding:0;border:0;border-radius:20px;background:transparent;transform:translateY(-50%);cursor:pointer}
:root .page-head>.owner-archive-icon .page-illustration{position:static!important;display:block;width:100%!important;height:100%!important;transform:none!important;filter:drop-shadow(0 3px 5px rgba(65,85,55,.06));transition:filter .2s ease,scale .2s ease}
:root .page-head>.owner-archive-icon:is(:hover,:focus-visible) .page-illustration{filter:drop-shadow(0 7px 10px rgba(65,85,55,.16));scale:1.04}
:root .page-head>.owner-archive-icon:focus-visible{outline:3px solid #86b96d;outline-offset:3px}
@media(max-width:680px){:root .page-head>.owner-archive-icon{right:20px;top:50%;width:104px;height:78px}:root .page-head:has(.head-actions)>.owner-archive-icon{top:12px;transform:none}}

/* Keep mobile page headers the same size as the overview banner. */
@media(max-width:680px){
 :root{--menu-banner-height:148px;--menu-banner-padding:18px;--menu-illustration-width:100px;--menu-illustration-height:75px}
 :root .page-head.page-menu-banner{box-sizing:border-box;grid-template-columns:minmax(0,1fr) 100px;column-gap:8px;padding:18px 14px;height:auto;min-height:148px}
 :root .page-head.page-menu-banner>.menu-illustration{width:100px!important;height:75px!important;right:14px}
 :root .page-head.page-menu-banner>.owner-archive-icon{width:100px;height:75px;right:14px}
}
@media(max-width:360px){:root .page-head.page-menu-banner{min-height:148px;height:auto}}

/* Keep the two creation controls clear, consistent and close to the original palette. */
:root .create-record-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;box-sizing:border-box!important;width:auto!important;min-width:120px!important;min-height:54px!important;padding:14px 10px!important;border:1px solid #BCD99F!important;border-radius:15px!important;background:#EDF7E5!important;color:#2D5834!important;font-size:16px!important;font-weight:700!important;line-height:1.4!important;white-space:nowrap!important;box-shadow:0 4px 10px rgba(54,95,41,.14)!important;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .18s ease}
:root .create-record-action>svg{display:block!important;width:19px!important;height:19px!important;flex:0 0 19px!important;stroke:currentColor!important;stroke-width:2.2!important}
:root .create-record-action:is(:hover,:focus-visible){border-color:#9FC782!important;background:#E2F1D7!important;color:#2D5834!important;box-shadow:0 6px 14px rgba(54,95,41,.18)!important;transform:translateY(-2px)!important}
:root .create-record-action:active{transform:translateY(0) scale(.985)!important;box-shadow:none!important}
:root #record-results .record-top-actions>.create-record-action,:root #report-events>header>.create-record-action[data-action="new-event"]{background:#EDF7E5!important;color:#2D5834!important;border-color:#BCD99F!important}
:root #record-results .record-top-actions>.create-record-action:is(:hover,:focus-visible),:root #report-events>header>.create-record-action[data-action="new-event"]:is(:hover,:focus-visible){background:#E2F1D7!important;color:#2D5834!important;border-color:#9FC782!important}
@media(max-width:680px){:root .create-record-action{min-width:112px!important;min-height:52px!important;padding:13px 8px!important;font-size:15px!important}}

/* Apply the same small hover lift to every interactive button. */
@media(hover:hover){:root button:not(:disabled):hover{transform:translateY(-2px)!important}:root button.owner-archive-icon:not(:disabled):hover{transform:translateY(calc(-50% - 2px))!important}:root button.scan-handle:not(:disabled):hover{transform:translate(-50%,calc(-50% - 2px))!important}}
@media(prefers-reduced-motion:reduce){:root button:not(:disabled):hover{transform:none!important}:root button.owner-archive-icon:not(:disabled){transform:translateY(-50%)!important}:root button.scan-handle:not(:disabled){transform:translate(-50%,-50%)!important}}

/* Leave a small clearance above the library category tabs for their hover lift. */
:root #main .form-library-tabs{padding-top:3px}

/* Match the community registration button to the soft green action palette. */
:root #main .btn.settings-register{background:#EDF7E5!important;border-color:#BCD99F!important;color:#2D5834!important}
:root #main .btn.settings-register:is(:hover,:focus-visible){background:#E2F1D7!important;border-color:#9FC782!important;color:#2D5834!important}
:root .top-actions .utility-btn{background:#EDF7E5!important;border-color:#BCD99F!important;color:#2D5834!important}
:root .top-actions .utility-btn:is(:hover,:focus-visible){background:#E2F1D7!important;border-color:#9FC782!important;color:#2D5834!important}
:root #dialog:has(.help-step) :is(.btn,.icon-btn){background:#EDF7E5!important;border:1px solid #BCD99F!important;color:#2D5834!important}
:root #dialog:has(.help-step) :is(.btn,.icon-btn):is(:hover,:focus-visible){background:#E2F1D7!important;border-color:#9FC782!important;color:#2D5834!important}
:root #main .board-list-actions>[data-board-new]{min-width:max-content!important;white-space:nowrap!important;flex-wrap:nowrap!important;flex-shrink:0!important;gap:6px!important}
:root #main .board-list-actions>[data-board-new]>svg{width:19px!important;height:19px!important;flex:0 0 19px!important;stroke-width:2.2!important}
:root #main .board-list-actions>[data-board-new]>span{flex:0 0 auto!important;white-space:nowrap!important}

