/* Faith Layer workspace: the same navy, teal and soft blue as the landing. */
:root {
  --bg: #f4faf9;
  --line: #dce9e8;
  --muted: #526b75;
  --teal: #007b83;
  --brand-shadow: 0 8px 28px #0b234108;
}
body {
  background:
    radial-gradient(ellipse at 30% 0%, #dff6ef 0, transparent 48%),
    radial-gradient(ellipse at 100% 25%, #e8f1ff 0, transparent 44%),
    var(--bg);
  background-attachment: fixed;
}
aside {
  background: linear-gradient(165deg, #ffffff 35%, #f0faf7);
  border-right-color: #dbe8e6;
}
.workspace {
  background: linear-gradient(120deg, #eaf8f3, #eff5fc);
  border: 1px solid #dbece6;
  padding: 18px 14px;
}
.workspace small {font-size: 11px; color: #286b70; letter-spacing: 1.2px;}
.workspace span {font-size: 13px;}
nav button {
  position: relative;
  color: #526977;
  min-height: 48px;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
nav button.selected, nav button[aria-current="page"] {
  color: #075e69;
  background: linear-gradient(110deg, #dbf3eb, #e6f1fb);
  box-shadow: inset 3px 0 #008c95;
}
.sidefoot, .sidefoot small {font-size: 12px;}
main {min-width: 0;}
main > header {padding: 0 0 14px; align-items: center;}
.eyebrow {font-size: 11px; color: #1c6f76; line-height: 1.5;}
h1 {font-size: clamp(28px, 3vw, 36px); letter-spacing: -1.2px; margin: 6px 0 4px;}
.head-actions button {font-size: 14px;}
button {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
button.primary {
  background: linear-gradient(110deg, #0b4563, #007b83);
  border-color: #087e88;
  box-shadow: 0 4px 12px #007b8318;
}
button.primary:hover {background: linear-gradient(110deg, #123b59, #006870);}
button:active:not(:disabled) {transform: translateY(1px);}
button:disabled {transform: none; box-shadow: none;}
.notice {font-size: 13px; line-height: 1.6; border-radius: 12px;}
.toolbar {
  padding: 18px 20px;
  background: #ffffffeb;
  border: 1px solid #dce9e8;
  border-radius: 16px;
  box-shadow: 0 3px 15px #0b234104;
}
.toolbar label {font-size: 12px; margin-bottom: 7px;}
.toolbar input, .toolbar select, .toolbar button {font-size: 14px;}
input, select {border-color: #ccdeda;}
input:focus, select:focus {border-color: #008c95;}
.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid #c7e5df;
  border-radius: 20px;
  background: linear-gradient(115deg, #e3f8ef, #eef8fb 68%, #e4efff);
  box-shadow: var(--brand-shadow);
  animation: brand-appear .35s ease-out both;
}
.welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -65px;
  top: -55px;
  border: 24px solid #ffffff55;
  border-radius: 50%;
  pointer-events: none;
}
.welcome span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #acd7d0;
  border-radius: 30px;
  background: #ffffff9c;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #17686c;
}
.welcome h2 {
  color: #0b2341;
  font-size: clamp(27px, 2.6vw, 37px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 14px 0 10px;
}
.welcome p {font-size: 15px; color: #45666f; line-height: 1.65; max-width: 620px;}
.quick-action {border-color: #d3e5e1; background: #ffffffed; box-shadow: var(--brand-shadow); font-size: 14px;}
.quick-icon {background: #eaf1fb; color: #286c94; border: 1px solid #d7e7ee;}
.quick-icon.income {background: #e3f6ed; color: #14664e; border-color: #cbe9db;}
.quick-icon.receipt {background: #e1f4f4; color: #116a74; border-color: #c6e4e6;}
.stats article, .church-stats article, .panel {
  border-color: #dbe8e6;
  box-shadow: var(--brand-shadow);
  background: #ffffffed;
  border-radius: 18px;
}
.stats article {border-top: 3px solid #8dcfc0;}
.stats article:nth-child(2) {border-top-color: #9dbbd6;}
.stats strong, .church-stats strong {font-variant-numeric: tabular-nums;}
.stats .balance {
  background: linear-gradient(115deg, #0b2341, #0b5265);
  border-color: #0b5265;
  color: #fff;
}
.stats .balance span, .stats .balance small {color: #e0f1f3;}
.stats small, .church-stats small {font-size: 12px; line-height: 1.55;}
.stats .comparison {font-size: 12px;}
.church-stats article {border-left: 3px solid #b1ded2;}
.church-stats span {font-size: 14px;}
.panel h2, .section-title h2 {font-size: 18px;}
.chart-heading p, .legend, .chart-details, .income-mix > .hint {font-size: 13px;}
.review-panel {background: linear-gradient(135deg, #e8f7f2, #eef6fc); border-color: #c9e2de;}
.review-panel .hint, .review-button {font-size: 13px;}
.review-count {color: #0b5265;}
.mix-label, .mix-label strong, .bar-row {font-size: 13px;}
.mix-track, .track {background: #edf4f4;}
.activity strong {font-size: 14px;}
.activity small {font-size: 12px;}
.activity {border-bottom-color: #e5efec;}
.flow {border: 1px solid #dfebe8; background: #eff5fa;}
.negative {color: #8d432e;}
th {background: #f0f7f6; color: #45616b; font-size: 12px;}
td {border-bottom-color: #e5eeec;}
.settings-tabs button {font-size: 14px;}
.settings-tabs button[aria-pressed="true"] {background: #0b5265; border-color: #0b5265;}
.hint, .payment-detail, #draftStatus {font-size: 13px;}
.report-brand, .profile-preview {background: #f7fcfa;}
dialog {border: 1px solid #d0e5de; border-radius: 20px;}
footer {font-size: 12px; color: #526b75;}
@keyframes brand-appear {from {opacity: .5;} to {opacity: 1;}}
@media (hover:hover) and (pointer:fine) {
  .quick-action:hover {transform: translateY(-2px); border-color: #85c4bd; box-shadow: 0 10px 25px #007b8312;}
  nav button:hover {background-color: #edf7f4; color: #0b5265;}
}
@media (max-width:650px) {
  body {background-attachment: scroll;}
  aside {background: #ffffffed; padding-bottom: 6px; border-bottom: 1px solid #dce9e8;}
  nav {gap: 6px; border-bottom: 0;}
  nav button {font-size: 13px; min-height: 46px; padding: 10px 12px; flex: 1 1 auto;}
  nav button.selected {box-shadow: inset 0 -3px #008c95;}
  main {padding: 22px 16px;}
  .notice {font-size: 12px;}
  .toolbar {padding: 14px; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));}
  .toolbar > * {min-width: 0;}
  .toolbar input, .toolbar select {font-size: 16px; min-width: 0; width: 100%;}
  .toolbar button {font-size: 13px;}
  .welcome {padding: 23px 21px; border-radius: 18px;}
  .welcome h2 {font-size: 28px;}
  .welcome p {font-size: 14px;}
  .welcome span {font-size: 10px; letter-spacing: 1.1px;}
  .quick-action {font-size: 13px; padding: 14px 10px;}
  .stats span {font-size: 13px;}
  .stats small, .church-stats small {font-size: 12px;}
  .stats .comparison {font-size: 11px;}
  .activity strong {font-size: 13px;}
  .activity small {font-size: 12px;}
  .settings-tabs button {font-size: 13px;}
}
/* Keep all five workspace destinations aligned in a compact mobile header. */
@media screen and (max-width:650px) {
  body > aside {padding: 18px 16px 14px;}
  body > aside > .brand {width: 164px; max-width: 65%; margin: 0;}
  body > aside > nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #e3eceb;
    width: 100%;
  }
  body > aside > nav > button {
    grid-column: span 2;
    min-width: 0;
    min-height: 44px;
    padding: 10px 6px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    border-radius: 10px;
    background-color: #f5f9f9;
  }
  body > aside > nav > button:nth-child(n+4) {grid-column: span 3;}
  body > aside > nav > button.selected {background: #e0f3ef; box-shadow: inset 0 -2px #008c95;}
  main > header {gap: 12px; padding-bottom: 8px;}
  main > header > div:first-child {min-width: 0;}
  main > header .eyebrow {font-size: 10px; letter-spacing: 1px;}
  main > header h1 {font-size: 28px; line-height: 1.2; margin-top: 6px;}
  main > header .head-actions {flex-shrink: 0;}
}
@media screen and (max-width:380px) {
  body > aside > nav > button {font-size: 13px; padding-inline: 4px;}
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {animation: none!important; transition: none!important; scroll-behavior: auto!important;}
}
@media print {
  body, .panel, .report-brand, .profile-preview {background: #fff!important; box-shadow: none!important;}
  .panel {border: 0;}
  .welcome::after {display: none;}
}
/* Bank summary cards use their available content width, including on iPad. */
#bankReview {container-type: inline-size; container-name: bank-panel;}
#bankReview .church-stats {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch;}
#bankReview .church-stats article {display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(42px, auto) auto; align-content: start; align-items: start; gap: 12px; min-width: 0; padding: 20px;}
#bankReview .church-stats article:last-child {grid-column: 1 / -1;}
#bankReview .church-stats span {grid-column: 1; grid-row: 1; min-width: 0; line-height: 1.5; font-size: 14px;}
#bankReview .church-stats strong {grid-column: 1; grid-row: 2; min-width: 0; max-width: 100%; font-size: 24px; line-height: 1.2; letter-spacing: -.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;}
@container bank-panel (min-width: 760px) {
  #bankReview .church-stats {grid-template-columns: repeat(6, minmax(0, 1fr));}
  #bankReview .church-stats article {grid-column: span 2;}
  #bankReview .church-stats article:nth-child(n+4) {grid-column: span 3;}
}
@container bank-panel (min-width: 1180px) {
  #bankReview .church-stats {grid-template-columns: repeat(5, minmax(0, 1fr));}
  #bankReview .church-stats article, #bankReview .church-stats article:nth-child(n+4) {grid-column: auto;}
}
@container bank-panel (max-width: 459px) {
  #bankReview .church-stats {grid-template-columns: minmax(0, 1fr); gap: 10px;}
  #bankReview .church-stats article {grid-column: auto; grid-template-rows: auto auto; gap: 8px; padding: 18px;}
}
