/* Densidade do painel. A identidade e a tela de login usam os estilos base. */
.shell {
  grid-template-columns: 68px 0px minmax(0, 1fr);
  transition: grid-template-columns 260ms cubic-bezier(.22, 1, .36, 1);
  font-size: 12px;
  line-height: 1.45;
}
.shell.menu-expanded { grid-template-columns: 180px 0px minmax(0, 1fr); }
.shell > main { grid-column: 3; }
.shell.people-open { grid-template-columns: 68px 174px minmax(0, 1fr); }
.shell.people-open.menu-expanded { grid-template-columns: 180px 174px minmax(0, 1fr); }
.shell > .people-sidebar { background: var(--surface); padding: 12px 10px; border-right: 1px solid var(--line); }
.shell > .people-sidebar { min-width: 0; overflow: hidden; animation: people-menu-open 260ms cubic-bezier(.22, 1, .36, 1); }
.people-menu-title { white-space: nowrap; }
.shell .people-sidebar nav { min-width: 153px; }
@keyframes people-menu-open {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .shell { transition: none; }
  .shell > .people-sidebar { animation: none; }
}
.people-menu-title { font-size: 12px; padding: 0 8px 17px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.shell .people-sidebar nav { display: grid; gap: 3px; }
.shell .people-sidebar nav button { display: block; min-height: 30px; padding: 8px 10px; font-size: 11px; text-align: left; border-radius: 4px; line-height: 1.3; border-left: 2px solid transparent; }
.shell .people-sidebar nav button.active { border-left-color: var(--orange); }
.people-list-filters { display: flex; gap: 18px; align-items: end; }
.people-list-filters .search-label { flex: 1; }
.people-list-filters select { min-width: 150px; }
.shell .birthday-month-label { margin-bottom: 0; min-width: 150px; }
.shell > .main-sidebar {
  padding: 12px 4px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.nav-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  margin: 0 auto 14px;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
}
.nav-toggle svg { width: 17px; height: 17px; }
.shell nav { gap: 6px; }
.shell nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 9px 3px;
  font-size: 9px;
  line-height: 1.2;
  border-radius: 10px;
  text-align: center;
}
.shell nav svg { width: 18px; height: 18px; flex: none; }
.menu-expanded nav button { flex-direction: row; justify-content: flex-start; padding: 10px 15px; font-size: 12px; }
.shell .aside-bottom { padding: 8px; text-align: center; font-size: 9px; }
.sidebar-extra { display: none; }
.menu-expanded .sidebar-extra { display: inline; }
.shell main { padding: 0 18px 24px; }
.shell header {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--surface);
  letter-spacing: 0;
}
.header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-brand img { width: 135px; height: auto; }
.header-account-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-account { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); text-decoration: none; letter-spacing: 0; border-radius: 6px; }
.header-account-copy { display: grid; gap: 2px; min-width: 0; text-align: right; }
.header-account-copy strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.shell header .header-account-copy small { display: block; font-size: 9px; color: var(--muted); }
.header-account-avatar { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #43291d; color: var(--orange); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.header-account:hover strong { color: var(--orange); }
.header-account:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (max-width: 700px) {
  .header-account-actions { gap: 8px; }
  .header-account { gap: 6px; }
  .header-account-copy strong { max-width: 110px; font-size: 10px; }
  .header-account-avatar { width: 26px; height: 26px; }
  .shell header { gap: 10px; }
  .shell header .header-brand img { width: 105px; }
}
.shell header small { font-size: 10px; }
.shell .page { padding-top: 24px; }
.shell .page-head { gap: 16px; margin-bottom: 18px; }
.shell .page-head h1 { font-size: 16px; letter-spacing: -.3px; line-height: 1.4; margin-bottom: 3px; }
.shell .page-head p { font-size: 11px; line-height: 1.5; }
.shell .page-head .eyebrow, .shell .registration-breadcrumb, .shell .registration-tag { display: none; }
.shell .primary, .shell .quiet { font-size: 11px; min-height: 30px; padding: 7px 12px; border-radius: 6px; gap: 10px; }
.shell .card { padding: 16px; border-radius: 12px; }
.shell .card h2 { font-size: 13px; letter-spacing: 0; line-height: 1.4; margin-bottom: 16px; }
.shell p { font-size: 12px; line-height: 1.6; }
.shell .metrics { gap: 18px; margin-bottom: 18px; }
.shell .metric { min-height: 70px; padding: 12px 16px; border-radius: 6px; }
.shell .metric span { font-size: 9px; }
.shell .metric strong { font-size: 21px; line-height: 1.3; margin-top: 3px; letter-spacing: 0; }
.shell .metric small { display: none; }
.shell .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.shell .dashboard-grid .card:first-child { background: var(--surface); }
.dashboard-grid .card > h2 { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.shell .dashboard-grid p { font-size: 11px; }
.shell .schedule { padding-top: 12px; margin-top: 12px; }
.shell .schedule:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.shell .schedule b { font-size: 12px; }
.shell .schedule p { margin-top: 6px; }
.breakdown-row { margin-bottom: 16px; }
.breakdown-caption { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.breakdown-row progress { display: block; width: 100%; height: 9px; border: 0; border-radius: 3px; overflow: hidden; accent-color: var(--orange); background: var(--line); }
.breakdown-row progress::-webkit-progress-bar { background: var(--line); }
.breakdown-row progress::-webkit-progress-value { background: var(--orange); }
.breakdown-row progress::-moz-progress-bar { background: var(--orange); }
.breakdown-row small { display: block; font-size: 9px; margin-top: 3px; color: var(--muted); }
.shell .attendance-total { display: block; font-size: 28px; color: var(--orange); margin-top: 15px; }
.shell .last-meeting-title { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.shell .dashboard-empty { padding: 18px 0; }
.shell .footnote { font-size: 10px; margin-top: 16px; }
.shell label { font-size: 11px; font-weight: 400; margin-bottom: 14px; }
.shell input, .shell select {
  height: 32px;
  padding: 6px 10px;
  margin-top: 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 400;
}
.shell input[type=checkbox] { height: 16px; width: 16px; margin: 0; }
.shell table { font-size: 11px; }
.shell th { padding: 12px; font-size: 10px; }
.shell td { height: 48px; padding: 10px 12px; }
.shell td small { font-size: 9px; margin-top: 2px; }
.shell .badge { font-size: 10px; padding: 3px 8px; }
.shell .empty { padding: 24px 12px; font-size: 12px; }
.shell .access-guide { gap: 14px; margin-bottom: 16px; }
.shell .access-guide article { padding: 14px; border-radius: 8px; }
.shell .access-guide b { font-size: 12px; }
.shell .access-guide p { font-size: 11px; margin-top: 6px; }
.shell .attendance-heading { margin-top: 20px; }
.shell .attendance-heading h2 { font-size: 13px; }
.shell .attendance-person { padding: 12px 0; font-size: 12px; }
.shell .registration-layout { grid-template-columns: 1fr; }
.shell .registration-summary { display: none; }
.shell .registration-fields { gap: 16px; }
.shell .section-title { padding-bottom: 14px; margin-bottom: 18px; gap: 6px; }
.shell .section-title h2 { font-size: 13px; margin: 0; }
.shell .section-title p, .shell .section-number, .shell .section-tag { display: none; }
.shell .field-grid { gap: 18px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shell .field-grid label { margin-bottom: 0; }
.shell #account-form .span-two { grid-column: auto; }
.shell #account-form .form-section:first-child .field-grid > label:first-child { grid-column: span 2; }
.shell .field-hint { font-size: 9px; margin-top: 5px; }
.shell .pastor-field legend { font-size: 11px; font-weight: 400; }
.shell .segmented-choice { max-width: 100px; border-radius: 5px; padding: 2px; }
.shell .segmented-choice span { padding: 5px; font-size: 10px; border-radius: 3px; }
.shell .password-field button { font-size: 10px; right: 10px; }
.shell .registration-actions { padding: 14px 0; margin-top: 0; }
.shell .wizard-panel .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shell .wizard-panel .card + .card { margin-top: 16px; }
.shell .wizard-panel textarea { min-height: 70px; padding: 8px 10px; margin-top: 6px; border-radius: 5px; font-size: 11px; }
.shell .wizard-panel textarea[name=entry_notes] { min-height: 34px; height: 34px; }
.shell .member-church { padding: 6px 10px; height: 32px; margin-top: 6px; border-radius: 5px; font-size: 11px; }
.shell .wizard-steps { gap: 6px; margin: 0 0 16px; }
.shell .wizard-steps li { padding-bottom: 8px; font-size: 10px; border-bottom-width: 3px; }
.shell .wizard-steps span { display: none; }
.shell .function-row { gap: 24px; }
.shell .function-tags { margin-top: 12px; }
.shell .function-tag { padding: 7px 10px; font-size: 11px; border-radius: 5px; }
.shell .boolean-field { display: block; position: relative; font-size: 11px; font-weight: 400; min-height: auto; align-self: start; }
.shell .boolean-input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.boolean-choices { display: inline-flex; margin-top: 7px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.boolean-choices button { background: transparent; border: 0; color: var(--muted); padding: 4px 7px; font-size: 10px; }
.boolean-choices button.selected { background: var(--orange); color: #251309; }
.shell .boolean-field .boolean-choices { display: flex; width: fit-content; }
.choice-field { position: relative; font-size: 11px; }
.shell .choice-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-field .boolean-choices { display: flex; width: fit-content; flex-wrap: wrap; }
.shell #notice { font-size: 11px; padding: 10px 12px; margin-top: 14px; }

@media (max-width: 1050px) {
  .shell .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .shell .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .shell .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell .field-grid, .shell .wizard-panel .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell, .shell.menu-expanded, .shell.people-open, .shell.people-open.menu-expanded { display: block; }
  .shell > .people-sidebar { height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .people-menu-title { font-size: 11px; padding: 0; margin: 0 0 8px; border: 0; }
  .shell .people-sidebar nav { display: flex; overflow-x: auto; gap: 5px; }
  .shell .people-sidebar nav button { flex: none; font-size: 11px; padding: 8px 10px; white-space: nowrap; }
  .people-list-filters { align-items: stretch; flex-direction: column; gap: 0; }
  .shell .birthday-month-label { min-width: 110px; }
  .shell > .main-sidebar { position: static; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .shell .nav-toggle { display: none; }
  .shell nav { display: flex; gap: 8px; }
  .shell nav button, .shell.menu-expanded nav button { flex: 1; flex-direction: column; padding: 8px 4px; justify-content: center; min-height: 48px; font-size: 10px; }
  .shell main { padding: 0 12px 24px; }
  .shell header { height: 44px; }
  .header-brand img { width: 125px; }
  .shell .page { padding-top: 20px; }
  .shell .page-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 16px; }
  .shell .page-head h1 { font-size: 15px; }
  .shell .page-head p { font-size: 11px; }
  .shell .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell .metric { min-height: 68px; padding: 12px; }
  .shell .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }
  .shell .card { padding: 14px; }
  .shell .field-grid, .shell .wizard-panel .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .shell #account-form .form-section:first-child .field-grid > label:first-child { grid-column: auto; }
  .shell label, .shell .boolean-field { font-size: 12px; }
  .shell input, .shell select { height: 38px; font-size: 16px; }
  .shell .wizard-panel textarea { font-size: 16px; }
  .shell .member-church { height: 38px; padding-top: 8px; font-size: 13px; }
  .shell .wizard-steps li { font-size: 9px; line-height: 1.35; }
  .shell .function-row { grid-template-columns: 1fr; gap: 16px; }
  .shell .registration-actions { align-items: stretch; flex-direction: column; }
  .shell .primary, .shell .quiet { min-height: 34px; }
  .shell .registration-buttons { justify-content: flex-end; }
}
