/* Base visual da aplicação familiar. Unfold mantém seus próprios estilos. */
.app-shell{--space-sm:8px;--space-md:16px;--space-lg:24px;--radius:12px;line-height:1.5}
.app-shell>header{padding:12px max(16px,calc((100% - 1102px)/2));gap:16px}
.app-shell .brand{min-height:44px;flex-shrink:0}
.app-shell>header nav{gap:6px;width:auto}
.app-shell>header nav>a,.app-shell>header nav button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border-radius:8px;white-space:nowrap}
.app-shell>header nav a[aria-current=page]{background:#e4ebe6;color:#254e41;font-weight:700}
.app-shell>main{margin:24px auto;padding:0 24px}
.app-shell h1{font-size:30px;line-height:1.2;letter-spacing:-.6px;margin:0 0 12px}
.app-shell h2{line-height:1.3}.app-shell .heading{gap:12px;margin-bottom:16px}
.app-shell .actions{gap:8px;margin:12px 0}
.app-shell .button,.app-shell button:not(.text){min-height:44px;padding:10px 16px;border-radius:10px;line-height:1.5;text-align:center}
.app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-shell select{min-height:44px;font-size:16px}
.app-shell textarea{font-size:16px;min-height:96px;resize:vertical}
.app-shell input[type=radio]{width:20px;height:20px;vertical-align:middle;margin:0 8px 0 0;flex-shrink:0}
.app-shell .field label:has(input[type=radio]){display:flex;align-items:center;min-height:44px}
.app-shell .field{min-width:0;gap:6px}.app-shell .form-grid{gap:16px 20px;margin-bottom:20px}
.app-shell .panel{padding:20px;border-radius:14px;margin-bottom:16px}
.app-shell .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.app-shell .card{min-height:0;padding:20px;gap:10px;border-radius:14px;min-width:0}
.app-shell .card strong{font-size:28px;line-height:1.25;overflow-wrap:anywhere}
.app-shell .card strong,.app-shell .metrics strong,.app-shell td{font-variant-numeric:tabular-nums}
.app-shell .month{gap:10px;margin:12px 0 20px}.app-shell .month label{font-size:14px}
.app-shell .heading+.month{margin-top:0}
.app-shell .login{margin:24px auto}.app-shell .empty{padding:24px 16px}
.app-shell .muted,.app-shell small{color:#53665d}
.app-shell :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #315e50;outline-offset:3px}
.app-shell .skip-link{position:absolute;left:16px;top:-100px;background:#fff;padding:10px 16px;z-index:10}
.app-shell .skip-link:focus{top:8px}
@media(max-width:900px){.app-shell>header{flex-wrap:wrap}.app-shell>header nav{flex-wrap:wrap}}
@media(max-width:680px){.app-shell>header{padding:10px 16px;gap:6px}.app-shell>header nav{width:100%;gap:2px;justify-content:flex-start}.app-shell>header nav>a,.app-shell>header nav button{padding:8px;font-size:14px}.app-shell>main{margin:20px auto;padding:0 16px}.app-shell h1{font-size:27px}.app-shell .heading{gap:10px}.app-shell .cards{grid-template-columns:1fr}.app-shell .card,.app-shell .panel{padding:16px}.app-shell .card strong{font-size:25px}.app-shell .month input{flex:1;min-width:0}.app-shell .month select{width:100%}.app-shell .form-grid{gap:16px}.app-shell .button{max-width:100%}}
/* Preserve a densidade dos componentes que já possuem CSS próprio. */
.app-shell .dashboard-compact .dashboard-fold{padding:0}
@media(max-width:680px){.app-shell .dashboard-compact>.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell .dashboard-compact .card{padding:14px;gap:4px}.app-shell .dashboard-compact .card strong{font-size:clamp(18px,5vw,23px)}}

.app-shell .cards{align-items:start}@media(max-width:680px){.app-shell>header nav>a,.app-shell>header nav button{padding-inline:4px}}
