/* Shared identity on the public site, in the cabinet and in the demo. */
.domain-brand{display:flex;align-items:center;gap:11px;flex-shrink:0;text-align:left}
.domain-mark{display:flex;border-radius:12px;flex-shrink:0}
.domain-mark img{display:block;width:42px;height:42px}
.domain-links{display:flex;flex-direction:column;gap:2px;line-height:1.35}
.domain-links a{color:#194536;text-decoration:none;font-size:19px;font-weight:600;letter-spacing:-.035em;white-space:nowrap}
.domain-links a+a{font-size:13px;font-weight:400;letter-spacing:0;color:#536f5a}
.domain-links a:hover{text-decoration:underline;text-underline-offset:4px}
.domain-brand a:focus-visible{outline:2px solid #517a5b;outline-offset:4px;border-radius:3px}

/* A single balance card design; all displayed amounts come from the ledger. */
.fund-balance.card,.dashboard .fund-balance{position:relative;isolation:isolate;overflow:hidden;min-width:0;padding:28px;border:1px solid #244e3e;border-radius:24px;background:#193f32;color:#f9fbed;box-shadow:0 8px 24px #193f320c;text-align:left}
.fund-balance:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 100% 0,#5e805645,transparent 65%),repeating-linear-gradient(0deg,transparent 0 31px,#ffffff05 31px 32px),repeating-linear-gradient(90deg,transparent 0 31px,#ffffff05 31px 32px)}
.fund-balance-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.fund-balance-label{font-size:20px;font-weight:600;line-height:1.4;color:#edf3df}
.fund-balance-seal{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d3e59a70;border-radius:50%;font-size:26px;line-height:1;color:#d3e59a}
.fund-balance-seal svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}
.fund-balance .balance-amount,.dashboard .fund-balance .balance-amount{font-size:clamp(30px,4.5vw,60px);font-weight:600;letter-spacing:-.055em;line-height:1.15;margin:18px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fund-balance-caption{margin:0 0 25px;color:#bacdb8;font-size:12px;line-height:1.5}
.fund-balance .balance-bottom,.dashboard .fund-balance .balance-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0}
.fund-balance .balance-bottom>div{min-width:0;border:1px solid #ffffff15;border-radius:13px;background:#ffffff09;padding:13px 15px}
.fund-balance .balance-bottom small,.dashboard .fund-balance .balance-bottom small{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:#c7d7be}
.fund-balance .balance-bottom small>span{font-size:18px;color:#d5e69f;line-height:1}
.fund-balance .balance-bottom strong,.dashboard .fund-balance .balance-bottom strong{display:block;margin-top:5px;font-size:clamp(17px,2.1vw,24px);line-height:1.4;font-weight:500;letter-spacing:-.03em;color:#f9fbed;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.fund-balance-opening{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;padding-top:17px;margin-top:17px;border-top:1px dashed #c7d7be38;font-size:16px;line-height:1.5;color:#d5e2ca}
.fund-balance-opening strong{font-size:22px;font-weight:600;line-height:1.4;color:#f9fbed;min-width:0;max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.example .fund-balance{margin:20px 0 22px;padding:23px}
.example .fund-balance .balance-amount{font-size:clamp(30px,3.8vw,46px)}
.example .fund-balance .balance-bottom strong{font-size:20px}

/* Native iOS date controls have an intrinsic minimum size. Constrain the input
   and its containing grid cell, rather than clipping the overflowing form. */
.field{min-width:0;max-width:100%}
.field>input,.field>select,.field>textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}
input[type=date],input[type=month],input[type=datetime-local]{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;min-width:0;min-inline-size:0;width:100%;inline-size:100%;max-width:100%;max-inline-size:100%;min-height:50px;text-align:left}
input[type=date]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value{min-width:0;text-align:left;margin:0}
input[type=date]::-webkit-datetime-edit,input[type=month]::-webkit-datetime-edit,input[type=datetime-local]::-webkit-datetime-edit{padding:0;min-width:0}
.filters>*{min-width:0}
#dialog-content,#dialog-content form{min-width:0;max-width:100%}
#dialog-content .field{margin-bottom:19px}
#dialog-content .field textarea{resize:vertical;line-height:1.6}
.field-hint{display:block;margin:5px 0 8px;font-size:12px;font-weight:400;color:#6b7b69;line-height:1.6}
.poll-note{padding:15px 17px;background:#f0f4e8;border:1px solid #dce5d1;border-radius:13px;margin:3px 0 21px;font-size:13px;line-height:1.65;color:#52644d}
.poll-note strong{color:#294c37;font-weight:600}
.poll-note p{margin:5px 0 0}

.student-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px;border:1px solid #dde5d6;border-radius:17px;background:#f0f4e9;margin:0 0 18px}
.student-tools .button{margin:0;min-height:48px;font-size:13px;padding:10px 12px;justify-content:center;line-height:1.5}
.student-card .record-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-start}
.student-card .record-actions .button{margin:0}
@media(min-width:1000px){
 .dashboard .fund-balance{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:40px;padding:30px}
 .dashboard .fund-balance-heading{grid-column:1;grid-row:1}
 .dashboard .fund-balance .balance-amount{grid-column:1;grid-row:2;margin:12px 0 6px;font-size:clamp(30px,4.3vw,56px)}
 .dashboard .fund-balance-caption{grid-column:1;grid-row:3;margin-bottom:0}
 .dashboard .fund-balance .balance-bottom{grid-column:2;grid-row:1/4;align-content:center}
 .dashboard .fund-balance .balance-bottom>div{padding:20px 18px}
 .dashboard .fund-balance-opening{grid-column:1/-1;margin-top:24px}
}
@media(max-width:600px){
 .domain-brand{gap:8px}.domain-mark img{width:35px;height:35px}.domain-links a{font-size:17px}.domain-links a+a{font-size:12px}.domain-links{gap:3px}
 .site-header{flex-wrap:wrap}.site-header #install{margin-left:auto}
 .homepage .header{gap:15px 8px}.homepage .header nav{order:3;width:100%}
 .header .login{margin-left:auto;white-space:normal;text-align:center;max-width:140px}
 .fund-balance.card,.dashboard .fund-balance{padding:22px;border-radius:22px}
 .fund-balance .balance-amount,.dashboard .fund-balance .balance-amount{font-size:clamp(30px,10vw,46px)}
 .fund-balance .balance-bottom>div{padding:12px}.fund-balance .balance-bottom strong,.dashboard .fund-balance .balance-bottom strong{font-size:20px}
 .fund-balance-label{font-size:18px}.fund-balance-opening strong{font-size:20px}.fund-balance-caption{margin-bottom:21px}
 .student-tools{grid-template-columns:1fr;padding:8px;gap:7px}.student-tools .button{justify-content:flex-start;padding:12px 15px}
 .student-card .record-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .student-card .record-actions>.button:first-child{grid-column:1/-1}
 .student-card .record-actions .button{font-size:12px;white-space:normal;padding:11px 9px;line-height:1.5}
 #dialog-content .field{margin-bottom:17px}
 #report-form>.button{width:100%;white-space:normal}
}
@media(max-width:480px){
 .filters .field:has(input[type=date]),.filters .field:has(input[type=month]){grid-column:1/-1}
}
@media(max-width:359px){
 .domain-links a{font-size:15px}.domain-links a+a{font-size:10px}.domain-mark img{width:30px;height:30px}
 .site-header #install{max-width:113px;font-size:11px;padding:8px}
 .homepage .header .login{max-width:115px;font-size:11px;padding:9px}
 .fund-balance.card,.dashboard .fund-balance{padding:19px}.fund-balance .balance-bottom>div{padding:10px}.fund-balance .balance-bottom strong,.dashboard .fund-balance .balance-bottom strong{font-size:18px}
}

.payment-test-note{padding:17px 19px;border:1px solid #d8e2c8;border-radius:15px;background:#f1f5e9;color:#31533d;margin:16px 0;font-size:14px;line-height:1.6}.payment-test-note p{margin:8px 0 0}.payment-test-note b{white-space:nowrap}.checkout-price{font-size:32px;font-weight:600;margin:12px 0}
.payment-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.payment-methods li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;padding:16px 8px;background:#fff;border:1px solid #e0e5dc;border-radius:16px}
.payment-methods img{display:block;flex:none;width:40px;height:40px;max-width:none}
.payment-methods span{color:#334d42;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap}
.payment-footer{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:32px;padding-top:32px;padding-bottom:32px;border-top:1px solid #d8dfd5}
.payment-footer .payment-methods{grid-template-columns:repeat(6,minmax(0,1fr))}
.payment-footer-copy h2{margin:0 0 10px;font-size:20px;font-weight:650;line-height:1.3;letter-spacing:-.025em}
.payment-footer-copy p{margin:0;color:#59665e;font-size:14px;line-height:1.6}
.checkout-methods{margin:22px 0;padding:20px 0;border-top:1px solid #e0e5dc;border-bottom:1px solid #e0e5dc}
.checkout-methods h3{margin:0 0 14px;font-size:16px;line-height:1.4;font-weight:600}
.checkout-methods>p{margin:14px 0 0;color:#59665e;font-size:13px;line-height:1.5}
@media(max-width:900px){.payment-footer{grid-template-columns:1fr;gap:20px}}
@media(max-width:600px){.payment-footer .payment-methods{grid-template-columns:repeat(3,minmax(0,1fr))}.payment-footer{padding-top:24px;padding-bottom:24px}.payment-methods{gap:8px}}
@media(max-width:360px){.checkout-methods .payment-methods{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Clear action hierarchy on the email verification screen. */
.verification-actions{display:grid;gap:12px;margin-top:24px}
.verification-actions>.button{width:100%;min-height:48px;margin:0;padding:12px 16px;justify-content:center;text-align:center;font-size:14px;line-height:1.4;border-radius:12px}
.service-management{grid-column:1/-1}.service-management .eyebrow{margin-bottom:12px}.service-management h2{margin:0 0 8px}.service-management>.button{margin-top:12px}
dialog:has(#service-payments){width:min(960px,calc(100vw - 24px));max-width:960px}
.service-private{display:inline-block;margin:0 0 10px;padding:6px 10px;border-radius:8px;background:#edf2e4;color:#365442;font-size:12px;font-weight:600}
.service-filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(170px,1fr) auto;gap:12px;align-items:end;margin:22px 0}.service-filters .field{margin:0;min-width:0}.service-filters .button{min-height:48px}
.service-list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 14px;font-size:14px}
.service-payment{border:1px solid #dce4d7;border-radius:18px;padding:22px;margin-bottom:14px;background:#fff}
.service-payment-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.service-payment-heading h3{margin:0 0 6px;font-size:20px;line-height:1.4;overflow-wrap:anywhere}.service-payment-heading p{margin:0;color:#647064;font-size:13px;line-height:1.5}
.service-payment-sum{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;gap:8px}.service-payment-sum>strong{font-size:25px;line-height:1.2;white-space:nowrap}.service-payment-status{display:inline-block;background:#edf3e3;color:#375b35;border-radius:8px;font-size:12px;line-height:1.4;padding:5px 9px}.service-payment-status.has-refund{background:#fff1e3;color:#8c5828}
.service-buyer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:20px 0 14px}.service-buyer .field{margin:0;min-width:0}.service-buyer input{width:100%;font-size:15px}.service-buyer .button{min-height:48px}
.service-payment-details{padding:0!important;border:0!important;background:transparent!important;margin:0 0 18px}.service-payment-details summary{font-size:13px;color:#536451;cursor:pointer;min-height:32px}.service-payment-details p{font-size:12px;line-height:1.6;margin:10px 0;overflow-wrap:anywhere}
.service-receipt{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:16px;border-top:1px solid #e5e9e0}.service-receipt strong{display:block;font-size:14px;line-height:1.5}.service-receipt small{display:block;margin-top:4px;font-size:12px;color:#667060;line-height:1.5}.service-receipt>.button{flex-shrink:0;font-size:13px}
.service-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.service-pagination span{font-size:13px;color:#667060;text-align:center}
@media(max-width:700px){.service-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.service-filters>.field:first-child{grid-column:1/-1}.service-filters>.button{grid-column:1/-1}.service-payment{padding:16px}.service-payment-heading{gap:12px}.service-payment-heading h3{font-size:18px}.service-payment-sum>strong{font-size:23px}.service-receipt{align-items:stretch;flex-direction:column;gap:12px}.service-receipt>.button{width:100%;min-height:46px}.service-buyer{grid-template-columns:minmax(0,1fr)}.service-buyer .button{width:100%;min-height:44px}}
@media(max-width:360px){.service-filters{grid-template-columns:1fr}.service-payment-heading{flex-direction:column}.service-payment-sum{flex-direction:row;align-items:center;justify-content:space-between;width:100%}.service-pagination{gap:6px}.service-pagination .button{padding:10px;font-size:12px}}
#service-payments .field{margin:0}
.service-management-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
dialog:has(#service-accounts){width:min(1080px,calc(100vw - 24px));max-width:1080px}
#service-accounts .field{margin:0;min-width:0}.account-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.account-stat{display:flex;flex-direction:column;gap:14px;align-items:flex-start;text-align:left;background:#f0f4e9;border:1px solid #dce5d5;border-radius:17px;color:#234c3a;padding:20px;min-width:0}.account-stat:first-child{background:#234d3b;color:#fff;border-color:#234d3b}.account-stat span{font-size:13px;line-height:1.4}.account-stat strong{font-size:34px;line-height:1.1;font-weight:600}.account-stat:hover{box-shadow:0 0 0 2px #90ae7d}
.account-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.account-indicators>div{border-left:3px solid #d6e1c5;padding-left:12px}.account-indicators dt,.account-dates dt{font-size:12px;color:#65735f;line-height:1.5}.account-indicators dd{margin:6px 0 0;font-size:22px;font-weight:600;color:#244b38;line-height:1.3}
.account-chart{border:1px solid #dce5d5;background:#fff;border-radius:17px;padding:20px}.account-chart-heading{display:flex;justify-content:space-between;gap:14px;align-items:center}.account-chart-heading h3{margin:0;font-size:17px;line-height:1.4}.account-chart-heading strong{font-size:25px}.account-chart svg{display:block;width:100%;max-height:170px;margin-top:12px}.account-chart-axis{fill:none;stroke:#dce5d5;stroke-width:1}.account-bar{fill:#497859}.account-bar-empty{fill:#dce5d5}.account-chart-dates{display:flex;justify-content:space-between;gap:10px;color:#65735f;font-size:12px}.account-daily{margin-top:16px}.account-daily summary{font-size:13px;cursor:pointer}.account-daily dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.account-daily dl>div{display:flex;justify-content:space-between;gap:8px;background:#f5f7f0;padding:7px;border-radius:7px;font-size:12px}.account-daily dd{margin:0;font-weight:600}.account-date-note{padding:12px 14px;border-radius:12px;background:#f3f5ed}
.account-list-title{margin:28px 0 16px;font-size:21px}.account-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.account-search{grid-column:span 2}.account-filters button{min-height:50px}
.account-item{background:#fff;border:1px solid #dce5d5;border-radius:18px;padding:20px;margin-bottom:12px}.account-item-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.account-item-heading h3{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}.account-email-status{flex-shrink:0;font-size:11px;line-height:1.4;padding:6px 9px;border-radius:8px;background:#fff1e3;color:#805528}.account-email-status.is-verified{background:#edf3e3;color:#375b35}.account-email{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.account-email>span{font-size:14px;color:#43604e;overflow-wrap:anywhere;min-width:0}.account-email button{flex-shrink:0}.account-roles{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.account-roles span{font-size:12px;background:#f2f5ee;color:#39523f;border-radius:8px;padding:6px 10px}
.account-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0}.account-dates dd{margin:5px 0 0;font-size:13px;line-height:1.5}.account-memberships{margin-top:18px;border-top:1px solid #e2e8dc;padding-top:14px}.account-memberships summary{cursor:pointer;font-size:13px;line-height:1.5}.account-memberships ul{list-style:none;padding:0;margin:12px 0}.account-memberships li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0e7;font-size:13px}.account-memberships li strong{overflow-wrap:anywhere}.account-memberships li span{color:#65735f;flex-shrink:0}.account-class-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}
@media(max-width:700px){.account-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.account-stat{padding:16px;gap:12px}.account-stat strong{font-size:30px}.account-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}.account-chart{padding:16px}.account-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.account-search,.account-filters>button{grid-column:1/-1}.account-daily dl{grid-template-columns:repeat(3,minmax(0,1fr))}.account-item{padding:16px}.account-item-heading{flex-direction:column;gap:9px}.account-email{align-items:stretch;flex-direction:column}.account-email button{width:100%;min-height:44px}.account-dates{grid-template-columns:1fr}.service-management-actions{flex-direction:column}.service-management-actions .button{width:100%}}
@media(max-width:360px){.account-filters{grid-template-columns:1fr}.account-stat{padding:12px}.account-stat span{font-size:12px}.account-indicators dd{font-size:19px}.account-daily dl{grid-template-columns:repeat(2,minmax(0,1fr))}.account-memberships li{flex-direction:column;gap:4px}}
