/* CursoApp 0.3 — mobile-first refinements; loaded after professional.css. */
:root{--shadow:0 3px 14px #14274306;--muted:#52627b}
body{background:#f4f6fa}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}
.btn{min-height:48px;box-shadow:none}.btn.primary{background:#4338ca;box-shadow:0 4px 12px #4338ca1c}.btn.primary:hover{background:#3730a3}
.btn.icon{min-width:48px}.text-btn,.view-link{min-height:44px;white-space:normal}.panel-head .text-btn{min-height:44px}
.profile{cursor:pointer;color:#23334b;min-height:48px;font:inherit}.profile:hover{border-color:#818cf8;background:#f2f3ff}
.topbar{padding-block:10px;min-height:72px}.course-picker{min-width:0}.course-picker select{min-height:48px;max-width:min(45vw,400px)}
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.home-grid>*{min-width:0}
.panel,.charge-card{box-shadow:var(--shadow);border-radius:18px}.balance-card{background:#182b49;box-shadow:none}.balance-top svg{background:#ffffff0c}
.metric{border-top:1px solid #d9e2ee}.collection-metric{background:#f0f2ff;box-shadow:none}.metric-number,.balance-number,.collection-number,.amount,.student-total,.quota-value,.personal-amount,.personal-next,.fund-summary>strong{font-variant-numeric:tabular-nums}
.metric-caption,.progress-caption,.collection-percentage span{color:#52627b}.progress-caption>span:last-child{color:#52627b}.chip{line-height:1.55}
.section-kicker{letter-spacing:1px}.home-grid h2{font-size:18px}.announcement{background:#f5f6ff;border:0;padding:20px;border-radius:14px}.announcement h3{font-size:19px;line-height:1.4}.announcement p{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.fund-summary>span{display:block;color:#52627b;font-size:14px}.fund-summary>strong{display:block;font-size:34px;letter-spacing:-1px;margin-top:8px;color:#172a45}.fund-summary p{margin:8px 0}
.personal-amount{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}.personal-amount strong{font-size:32px;letter-spacing:-1px;color:#172a45}.personal-next{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:14px;color:#52627b}.personal-next strong{color:#23334b;white-space:nowrap}.family-summary .btn{width:100%}
.quick-link{min-height:92px;background:#f7f9fc;border:1px solid #e1e7f0}.event-title{font-size:16px;line-height:1.4;text-align:left}.event-info{min-width:0}.event-row{gap:14px}.event-info .chip{margin-top:3px}.daybox{flex-shrink:0}.agenda-group h3{font-size:14px;letter-spacing:.3px;color:#52627b;margin:22px 0 8px}.agenda-group:first-child h3{margin-top:0}.agenda-group+.agenda-group{border-top:1px solid #e3e8f0;margin-top:20px}
.post-reading{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.8}.post p{white-space:pre-wrap}.post h2,.activity-name,.doc-info strong,.student-name,.panel h2{overflow-wrap:anywhere}
.account-details>strong{font-size:22px}.account-details p{overflow-wrap:anywhere;line-height:1.6}.account-details .btn{display:flex;justify-content:center;text-decoration:none;margin-top:12px}
.monthly-cards{display:none}.student-card{border:1px solid #dce3ed;border-radius:14px;background:#fff;overflow:hidden;margin-bottom:12px}.student-card summary{display:flex;gap:10px;align-items:center;padding:17px 14px;cursor:pointer;list-style:none;min-height:80px}.student-card summary::-webkit-details-marker{display:none}.student-name{flex:1;min-width:0;font-size:15px;font-weight:700;line-height:1.4}.student-name small,.student-total small{display:block;font-size:12px;color:#52627b;font-weight:400;margin-top:5px}.student-total{text-align:right;font-size:16px;flex-shrink:0}.expand-glyph svg{width:16px;height:16px;color:#52627b}.student-card[open] .expand-glyph{transform:rotate(90deg)}.student-detail{border-top:1px solid #e1e7f0;padding:0 16px 12px}.student-detail>.subtle{font-size:13px;line-height:1.6}.quota-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e3e8f0;padding:14px 0}.quota-row strong{font-size:15px}.quota-row small{display:block;color:#52627b;font-size:13px;margin:5px 0}.quota-value{text-align:right}.quota-value strong{display:block}.quota-row .chip{font-size:12px}
.modal-head{background:#fff}.modal-head button{min-width:48px;min-height:48px}.modal-foot{display:flex;flex-wrap:wrap;background:#f7f9fc;gap:12px}.modal-foot .btn{min-height:48px}.payment-summary{flex:0 0 100%;font-size:14px;color:#52627b;line-height:1.5;padding-bottom:10px;border-bottom:1px solid #dce3ed}.payment-summary strong,.payment-summary span{display:block}.payment-summary strong{color:#172a45;font-size:16px}.modal-body{overscroll-behavior:contain}.field input,.field select,.field textarea{min-height:48px;font-size:16px}.check{min-height:48px}.error{line-height:1.6}.modal-foot button:disabled{cursor:wait}.loading-state{display:grid;place-content:center;min-height:65vh;text-align:center;color:#52627b;padding:24px;gap:16px}.loading-state strong{font-size:24px;color:#172a45}.loading-state span{display:block}.loading-dot{width:32px;height:32px;margin:0 auto;border:3px solid #dce1f8;border-top-color:#4338ca;border-radius:50%;animation:loading-spin 1s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}
@media(max-width:1050px){.home-grid{grid-template-columns:1fr}.head-actions:empty{display:none}}
@media(max-width:700px){
 main{padding:20px 16px calc(108px + env(safe-area-inset-bottom));overflow-wrap:anywhere}.topbar{position:sticky;top:0;z-index:45;flex-wrap:nowrap;min-height:68px;padding:8px 16px;gap:8px;background:#fffffffa}.topbar .mobile-menu,.course-icon{display:none}.course-picker{gap:6px;flex:1;min-width:0}.course-picker select{font-size:16px;max-width:100%;width:100%;flex:1;min-width:0;text-overflow:ellipsis;padding-right:20px}.course-picker .year{display:inline-block;font-size:11px;padding:4px;flex-shrink:0}.profile{padding:0;background:transparent;flex-shrink:0;width:48px;border:0}.profile .avatar{width:42px;height:42px;margin:auto}.profile-text{display:none}.section-kicker{display:none}.page-head{gap:14px;margin-bottom:20px}.page-head h1{font-size:27px;line-height:1.2;letter-spacing:-.9px}.page-head p{font-size:15px;line-height:1.55;max-width:none}.head-actions{gap:8px}.head-actions .btn{font-size:14px;min-height:48px}.home-grid{gap:16px}.home-grid .panel-head{padding:18px 18px 12px}.home-grid .panel-body{padding:0 18px 18px}.home-grid h2{font-size:17px}.home-grid .panel-head>.btn.small{padding:8px 10px;font-size:13px}.event-title{font-size:16px;min-height:44px}.event-row{padding-block:13px}.daybox{width:46px}.text-btn{font-size:14px;min-height:44px}.announcement{padding:16px}.announcement h3{font-size:18px}.quick-link{min-height:100px;font-size:14px;padding:14px;gap:10px}.quick-link svg{width:21px;height:21px;padding:6px}.finance-board{gap:12px}.balance-card{padding:22px}.balance-number{font-size:40px}.balance-bottom{margin-top:16px}.metric-pair{grid-template-columns:1fr 1fr}.metric{display:block;padding:16px 12px}.metric-icon{width:32px;height:32px;margin-bottom:10px}.metric-label{font-size:13px}.metric-number{font-size:25px;margin:7px 0}.metric-caption{font-size:12px}.collection-metric{padding:17px;flex-wrap:wrap}.collection-number{font-size:26px}.collection-percentage span{font-size:12px}.monthly-table{display:none}.monthly-cards{display:block;padding:14px}.monthly-cards+.monthly-table+.legend{display:none}.toolbar{padding:16px}.toolbar>.subtle{font-size:13px}.search input{font-size:16px;min-height:48px}.tabs button{min-height:48px}.bottom-nav{padding:7px 8px max(8px,env(safe-area-inset-bottom));gap:2px;backdrop-filter:none;background:#fff}.bottom-nav button{font-size:11px;min-height:54px;font-weight:600;min-width:0}.bottom-nav button svg{width:23px;height:23px}.bottom-nav button.active{background:#eef0ff;color:#3730a3}.calendar-head{flex-wrap:wrap;gap:8px;padding:16px}.calendar-head h2{font-size:16px}.calendar-head>div{flex:1;min-width:0}.calendar-head .btn.small{padding:8px;min-width:44px}.cal-day{min-height:64px}.cal-event{font-size:0;height:24px;min-height:24px;margin:4px auto;width:90%;border-radius:5px}.only-mobile .event-title{min-height:44px}.modal-head{padding:16px 18px;gap:12px;position:sticky;top:0;z-index:2}.modal-head h2{font-size:21px;line-height:1.3}.modal-body{padding:20px 18px}.modal-foot{padding:14px 18px max(18px,env(safe-area-inset-bottom))}.form-grid{grid-template-columns:1fr;gap:0}.modal-foot .btn{flex:1}.payment-summary{font-size:13px}.individual-row{gap:10px;grid-template-columns:minmax(0,1fr) 95px}.individual-row input[type=number]{width:95px;font-size:16px;min-height:48px}.doc-info{min-width:0}.doc-row .btn.icon{min-width:48px}.doc-info strong{font-size:15px}.table-wrap:not(.monthly-table) table,.table-wrap:not(.monthly-table) tbody,.table-wrap:not(.monthly-table) tr{display:block;width:100%}.table-wrap:not(.monthly-table) thead{display:none}.table-wrap:not(.monthly-table) tr{padding:14px 16px;border-bottom:1px solid #dce3ed}.table-wrap:not(.monthly-table) td{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;min-width:0;white-space:normal;padding:8px 0;border:0;text-align:left;overflow-wrap:anywhere}.table-wrap:not(.monthly-table) td:before{content:attr(data-label);font-size:12px;color:#52627b;min-width:65px}.table-wrap:not(.monthly-table) td small{flex-basis:100%;margin-left:77px}.table-wrap:not(.monthly-table) td:empty{display:none}.member-actions{gap:10px}.member-actions button{min-height:48px}.footer{font-size:12px}#toast{bottom:calc(92px + env(safe-area-inset-bottom));font-size:14px}
}
@media(prefers-reduced-motion:reduce){.loading-dot{animation:none;border-color:#4338ca}.panel,.charge-card,.balance-card,.metric,.collection-metric{animation:none}}
.nav-overlay{display:none}
@media(max-width:700px){.nav-open:after{display:none}.nav-overlay:not([hidden]){display:block;position:fixed;inset:0;z-index:55;background:#14233e66;border:0;width:100%;height:100%;cursor:pointer}.sidebar .mobile-close{min-width:48px;min-height:48px}.auth-card{padding:28px 22px;border-radius:20px}.auth-brand{font-size:32px}.auth-card .field{font-size:15px}.auth-links a{display:inline-flex;align-items:center;min-height:48px}.auth-body{padding:16px}}
