:root {
  font-family: "DM Sans", sans-serif;
  color: #26352c;
  background: #f7f8f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #26352c;
  --muted: #879188;
  --line: #e8ebe4;
  --paper: #fff;
  --green: #375e47;
  --green-2: #eaf1e9;
  --orange: #e9955d;
  --lav: #efedf7;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: #f7f8f4;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
[role="button"] {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 27px 17px 17px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 28px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #45654d;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 23px;
  position: relative;
}
.brand-mark span {
  font-size: 11px;
  position: absolute;
  right: 3px;
  top: 2px;
  color: #d8e4bc;
}
.brand-name {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.8px;
  font-size: 16px;
}
.brand-name span {
  color: #7c8d7e;
  margin-left: 3px;
  font-weight: 600;
}
.workspace-switch {
  border: 1px solid var(--line);
  background: #fff;
  width: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
}
.workspace-avatar {
  width: 34px;
  height: 34px;
  background: #f0eee4;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #657058;
  font-weight: 700;
}
.workspace-switch b,
.profile-row b {
  font-size: 12px;
  display: block;
}
.workspace-switch small,
.profile-row small {
  font-size: 10px;
  color: #98a098;
  display: block;
  margin-top: 3px;
}
.chevron {
  margin-left: auto;
  color: #89948a;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #a3aba2;
  font-weight: 700;
  padding: 27px 10px 9px;
}
.main-nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 9px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #6b786e;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav-item.active {
  background: #edf2eb;
  color: #31543c;
  font-weight: 700;
}
.nav-icon {
  font-size: 17px;
  width: 19px;
  text-align: center;
  color: #829085;
}
.nav-item.active .nav-icon {
  color: #43674a;
}
.nav-count {
  margin-left: auto;
  background: #dfe9dc;
  color: #426147;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 10px;
}
.family-label {
  padding-top: 24px;
}
.sidebar-bottom {
  margin-top: auto;
}
.help-card {
  background: #f5f5ef;
  border-radius: 13px;
  padding: 14px;
  margin: 0 2px 15px;
}
.help-spark {
  color: #79936a;
}
.help-card b {
  font-size: 11px;
  display: block;
  margin-top: 6px;
}
.help-card p {
  font-size: 10px;
  color: #858f84;
  line-height: 1.5;
  margin: 5px 0 10px;
}
.help-card button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  color: #49674c;
}
.help-card button span {
  padding-left: 5px;
}
.settings-link {
  margin-bottom: 10px;
}
.profile-row {
  border-top: 1px solid var(--line);
  padding: 14px 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.avatar-me {
  background: #d8c6ad;
  color: #705c46;
}
.more-btn {
  border: 0;
  background: transparent;
  margin-left: auto;
  font-size: 18px;
  color: #8e978e;
}
.main-content {
  margin-left: 258px;
  min-height: 100dvh;
}
.topbar {
  height: 66px;
  background: #f7f8f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid #eeefe9;
}
.breadcrumbs {
  font-size: 11px;
  color: #9aa39a;
  display: flex;
  gap: 10px;
  align-items: center;
}
.crumb-sep {
  color: #c8cec6;
}
.breadcrumbs b {
  font-size: 11px;
  color: #48584b;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.icon-button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #67776b;
}
.notification-button {
  font-size: 16px;
}
.notification-button i {
  position: absolute;
  width: 6px;
  height: 6px;
  right: 6px;
  top: 5px;
  border-radius: 50%;
  background: #e8965c;
  border: 1px solid #f7f8f4;
}
.top-divider {
  height: 23px;
  width: 1px;
  background: #e3e7df;
  margin: 0 3px;
}
.top-avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
}
.page-wrap {
  max-width: 1370px;
  margin: 0 auto;
  padding: 32px 42px 56px;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  color: #909a8f;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}
.page-title {
  font-family: Manrope, sans-serif;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 0;
  color: #27372d;
}
.welcome-copy {
  font-size: 11px;
  color: #89938a;
  margin: 7px 0 0;
}
.date-chip {
  font-size: 10px;
  color: #758276;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}
.grid {
  display: grid;
  gap: 17px;
}
.overview-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.92fr);
  align-items: stretch;
}
.panel {
  background: var(--paper);
  border: 1px solid #ebeee8;
  border-radius: 14px;
}
.hero-card {
  min-height: 226px;
  padding: 23px 25px;
  position: relative;
  overflow: hidden;
  background: #e9efe5;
  border: 0;
  display: flex;
}
.hero-copy {
  max-width: 55%;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7e0d2;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 9px;
  color: #62745d;
  background: #eff4ec;
}
.hero-tag span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #92a777;
}
.hero-card h2 {
  font:
    700 23px/1.24 Manrope,
    sans-serif;
  letter-spacing: -0.9px;
  margin: 15px 0 8px;
  max-width: 310px;
}
.hero-card p {
  font-size: 10px;
  line-height: 1.65;
  color: #778476;
  max-width: 260px;
  margin: 0;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #42654a;
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 15px;
  box-shadow: 0 4px 10px #42654a22;
}
.primary-btn:hover {
  background: #34563c;
}
.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
}
.summary-card {
  padding: 19px 19px 16px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-heading h3 {
  font:
    700 12px Manrope,
    sans-serif;
  margin: 0;
  color: #354439;
}
.subtle-link {
  border: 0;
  background: none;
  color: #778776;
  font-size: 9px;
  padding: 4px;
}
.summary-period {
  margin-top: 4px;
  color: #a0a99f;
  font-size: 9px;
}
.summary-amount {
  font:
    700 23px Manrope,
    sans-serif;
  letter-spacing: -0.8px;
  margin: 15px 0 4px;
}
.summary-trend {
  font-size: 9px;
  color: #8b9888;
}
.summary-trend strong {
  color: #4c8a58;
}
.sparkline {
  height: 52px;
  margin-top: 11px;
  position: relative;
  background: linear-gradient(180deg, #f1f6ef 0%, #fff 100%);
  border-radius: 8px;
  overflow: hidden;
}
.sparkline svg {
  width: 100%;
  height: 100%;
}
.summary-legend {
  display: flex;
  justify-content: space-between;
  color: #a1aaa0;
  font-size: 8px;
  margin-top: 7px;
}
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 17px;
}
.metric-card {
  padding: 15px 16px;
  min-height: 94px;
  position: relative;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8f9a90;
  font-size: 9px;
}
.metric-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #627c63;
  background: #edf2eb;
  font-size: 13px;
}
.metric-icon.orange {
  color: #bb835c;
  background: #fbf0e8;
}
.metric-icon.purple {
  color: #8076a1;
  background: #f1eff8;
}
.metric-icon.blue {
  color: #66869a;
  background: #edf3f5;
}
.metric-value {
  font:
    700 19px Manrope,
    sans-serif;
  letter-spacing: -0.5px;
  margin-top: 9px;
}
.metric-foot {
  font-size: 8px;
  color: #9aa39b;
  margin-top: 4px;
}
.metric-foot strong {
  color: #698c65;
}
.lower-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(275px, 0.8fr);
  margin-top: 17px;
}
.tasks-panel,
.business-panel {
  padding: 18px 19px;
}
.panel-heading .panel-title-wrap h3 {
  font-size: 12px;
}
.panel-title-wrap p {
  font-size: 9px;
  color: #a1aaa0;
  margin: 5px 0 0;
}
.task-list {
  margin-top: 13px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f1ed;
}
.check-button {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid #d9dfd6;
  background: #fff;
  border-radius: 5px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
}
.check-button.done {
  background: #527357;
  border-color: #527357;
}
.task-main {
  min-width: 0;
  flex: 1;
}
.task-name {
  font-size: 10px;
  font-weight: 600;
  color: #465448;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  color: #9ca69c;
  margin-top: 4px;
}
.task-source {
  color: #7f8c7d;
}
.task-due {
  font-size: 8px;
  color: #9a8270;
  background: #fbf3ec;
  padding: 4px 6px;
  border-radius: 5px;
  white-space: nowrap;
}
.task-due.today {
  color: #b6764b;
  background: #fff0e4;
}
.assignee {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 700;
  background: #e9d9c8;
  color: #77624d;
  flex: 0 0 21px;
}
.assignee.green {
  background: #dce9dd;
  color: #58745a;
}
.assignee.purple {
  background: #e6e0ef;
  color: #74688d;
}
.business-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}
.business-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.business-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
  background: #f5eee4;
  color: #a57b55;
}
.business-icon.green {
  background: #eaf1e8;
  color: #62805c;
}
.business-icon.blue {
  background: #e9f0f3;
  color: #678b99;
}
.business-info {
  min-width: 0;
  flex: 1;
}
.business-info b {
  display: block;
  font-size: 10px;
}
.business-info small {
  display: block;
  font-size: 8px;
  color: #9ba59b;
  margin-top: 3px;
}
.business-amount {
  text-align: right;
  font-size: 9px;
  font-weight: 700;
}
.business-amount small {
  display: block;
  font-size: 8px;
  color: #9ba59b;
  font-weight: 400;
  margin-top: 4px;
}
.business-footer {
  border-top: 1px solid #f0f1ed;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.member-stack {
  display: flex;
  padding-left: 5px;
}
.member-stack .avatar {
  width: 23px;
  height: 23px;
  font-size: 7px;
  border: 2px solid #fff;
  margin-left: -5px;
}
.member-stack .avatar:nth-child(2) {
  background: #ddc8c2;
  color: #795e5a;
}
.member-stack .avatar:nth-child(3) {
  background: #d8e5d4;
  color: #587353;
}
.member-stack .avatar:nth-child(4) {
  background: #e9e3cd;
  color: #787050;
}
.member-caption {
  font-size: 8px;
  color: #99a299;
  margin-left: 7px;
}
.members-left {
  display: flex;
  align-items: center;
}
.view-businesses {
  border: 0;
  background: none;
  color: #547451;
  font-weight: 700;
  font-size: 9px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 19px;
}
.section-head .page-title {
  font-size: 23px;
}
.section-actions {
  display: flex;
  gap: 8px;
}
.secondary-btn {
  border: 1px solid #e4e8e1;
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 600;
  color: #667469;
}
.section-intro {
  font-size: 10px;
  color: #939d93;
  margin-top: 6px;
}
.tasks-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid #e7eae4;
  background: #fff;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 9px;
  color: #7c887d;
}
.filter-pill.active {
  background: #eaf1e9;
  color: #456448;
  border-color: #dce8da;
  font-weight: 700;
}
.task-board {
  padding: 4px 19px;
}
.task-board .task-row {
  padding: 14px 0;
}
.task-empty {
  padding: 30px 10px;
  text-align: center;
  font-size: 11px;
  color: #929d93;
}
.finance-summary {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 17px;
}
.finance-chart {
  padding: 20px;
  margin-top: 17px;
}
.chart {
  height: 190px;
  position: relative;
  margin-top: 20px;
  border-bottom: 1px solid #e9ece7;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 45px, #f0f2ed 46px);
}
.chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a0a9a0;
  margin-top: 8px;
}
.transaction-panel {
  padding: 19px;
  margin-top: 17px;
}
.table-wrap {
  overflow: auto;
}
.transactions {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  min-width: 480px;
}
.transactions th {
  text-align: left;
  color: #9aa39a;
  font-size: 8px;
  font-weight: 500;
  padding: 9px;
  border-bottom: 1px solid #eef0eb;
}
.transactions td {
  padding: 12px 9px;
  border-bottom: 1px solid #f1f2ee;
  font-size: 9px;
}
.transactions td:first-child {
  font-weight: 600;
}
.transactions .income {
  color: #557d59;
  font-weight: 700;
}
.transactions .expense {
  color: #bd7c55;
  font-weight: 700;
}
.status-chip {
  background: #edf3eb;
  color: #638061;
  border-radius: 12px;
  padding: 4px 7px;
  font-size: 8px;
}
.business-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.business-card {
  padding: 18px;
}
.business-card .business-icon {
  width: 40px;
  height: 40px;
  font-size: 17px;
}
.business-card h3 {
  font:
    700 13px Manrope,
    sans-serif;
  margin: 14px 0 4px;
}
.business-card p {
  font-size: 9px;
  color: #98a198;
  margin: 0;
}
.business-stats {
  border-top: 1px solid #eff1ec;
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}
.business-stats span {
  color: #929c92;
}
.business-stats b {
  display: block;
  color: #425347;
  margin-top: 4px;
}
.occupancy-panel {
  padding: 20px;
}
.occupancy-row {
  display: grid;
  grid-template-columns: 105px 1fr 30px;
  gap: 11px;
  align-items: center;
  font-size: 9px;
  margin: 17px 0;
}
.progress {
  height: 7px;
  background: #edf0eb;
  border-radius: 9px;
  overflow: hidden;
}
.progress span {
  height: 100%;
  display: block;
  background: #789575;
  border-radius: 9px;
}
.occupancy-row b {
  text-align: right;
}
.family-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
.doc-row {
  padding: 12px 0;
  border-top: 1px solid #eef0ec;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.doc-icon {
  width: 30px;
  height: 33px;
  background: #f7eeea;
  color: #bd7b62;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.doc-row small {
  display: block;
  color: #a0a9a0;
  font-size: 8px;
  margin-top: 4px;
}
.member-row {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-row .avatar {
  width: 29px;
  height: 29px;
}
.member-row b {
  font-size: 10px;
}
.member-row small {
  font-size: 8px;
  color: #98a198;
  display: block;
  margin-top: 3px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #273b2c;
  color: #fff;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 11px;
  z-index: 30;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #14201955;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  background: #fff;
  width: min(440px, 100%);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 60px #1b2a1d33;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font:
    700 17px Manrope,
    sans-serif;
  margin: 0;
}
.modal-close {
  border: 0;
  background: #f3f5f1;
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.form-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #59665b;
  margin: 15px 0 6px;
}
.form-control {
  width: 100%;
  border: 1px solid #e4e9e1;
  border-radius: 8px;
  padding: 11px;
  font-size: 12px;
  outline: none;
  color: #354539;
  background: #fff;
}
.form-control {
  line-height: 1.3;
  min-height: 42px;
}
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23708072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
}
.form-control:focus {
  border-color: #88a487;
  box-shadow: 0 0 0 3px #eaf1e8;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.modal-footer .primary-btn {
  margin: 0;
}
.mobile-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 8;
  background: #fff;
  border-top: 1px solid #e8ebe4;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mobile-nav-item {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 54px;
  padding: 4px 3px;
  color: #929c92;
}
.mobile-nav-item span {
  font-size: 18px;
  line-height: 20px;
}
.mobile-nav-item small {
  font-size: 8px;
}
.mobile-nav-item.active {
  color: #45664a;
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover,
  .secondary-btn:hover,
  .filter-pill:hover {
    background: #f3f5f0;
  }
  .business-card:hover {
    box-shadow: 0 8px 24px #233a2510;
    transform: translateY(-1px);
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 230px;
  }
  .main-content {
    margin-left: 230px;
  }
  .topbar {
    padding: 0 26px;
  }
  .page-wrap {
    padding: 27px 26px 45px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(225px, 0.8fr);
  }
  .lower-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(235px, 0.8fr);
  }
  .hero-copy {
    max-width: 62%;
  }
  .hero-art {
    width: 40%;
    right: -3px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding-bottom: 78px;
  }
  .topbar {
    height: 56px;
    padding: 0 17px;
  }
  .mobile-brand {
    display: block;
    background: none;
    border: 0;
    padding: 0;
  }
  .mobile-brand .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .breadcrumbs {
    margin-right: auto;
    margin-left: 11px;
    font-size: 10px;
    gap: 7px;
  }
  .top-actions {
    gap: 7px;
  }
  .search-button {
    display: none;
  }
  .top-divider {
    margin: 0 2px;
  }
  .page-wrap {
    padding: 23px 17px 32px;
  }
  .mobile-nav {
    display: flex;
  }
  .welcome-row {
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .page-title {
    font-size: 22px;
  }
  .welcome-copy {
    font-size: 10px;
    max-width: 245px;
    line-height: 1.5;
  }
  .date-chip {
    font-size: 8px;
    padding: 7px 8px;
    white-space: nowrap;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-card {
    min-height: 211px;
    padding: 19px;
  }
  .hero-card h2 {
    font-size: 21px;
    max-width: 235px;
  }
  .hero-copy {
    max-width: 67%;
  }
  .hero-card p {
    max-width: 210px;
    font-size: 9px;
  }
  .hero-art {
    width: 48%;
  }
  .summary-card {
    padding: 16px;
  }
  .summary-amount {
    margin-top: 10px;
  }
  .sparkline {
    height: 42px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }
  .metric-card {
    min-height: 83px;
    padding: 12px;
  }
  .metric-value {
    font-size: 17px;
    margin-top: 6px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .tasks-panel,
  .business-panel {
    padding: 15px;
  }
  .section-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
  }
  .section-head .page-title {
    font-size: 21px;
  }
  .section-intro {
    max-width: 230px;
    line-height: 1.5;
  }
  .section-actions {
    gap: 5px;
  }
  .section-actions .secondary-btn {
    padding: 8px;
    font-size: 9px;
  }
  .section-actions .primary-btn {
    margin-top: 0;
    padding: 9px;
    font-size: 9px;
  }
  .business-cards {
    grid-template-columns: 1fr;
  }
  .finance-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .finance-summary .metric-card {
    min-height: 76px;
  }
  .family-grid {
    grid-template-columns: 1fr;
  }
  .task-board {
    padding: 3px 13px;
  }
  .task-board .task-row {
    gap: 8px;
  }
  .task-due {
    font-size: 7px;
    padding: 4px;
  }
  .tasks-toolbar {
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }
  .filter-pill {
    white-space: nowrap;
  }
  .table-wrap {
    margin: 0 -7px;
  }
  .transaction-panel {
    padding: 15px;
  }
  .occupancy-panel {
    padding: 16px;
  }
  .occupancy-row {
    grid-template-columns: 80px 1fr 27px;
    gap: 8px;
  }
  .toast {
    bottom: calc(79px + env(safe-area-inset-bottom));
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .page-wrap {
    padding-inline: 13px;
  }
  .topbar {
    padding-inline: 13px;
  }
  .hero-copy {
    max-width: 72%;
  }
  .hero-art {
    width: 62%;
    opacity: 0.55;
  }
  .hero-card h2 {
    font-size: 19px;
  }
  .date-chip {
    display: none;
  }
  .task-meta {
    font-size: 7px;
  }
}
input,
select,
textarea {
  font-size: 16px;
}
.check-button:active,
.primary-btn:active,
.mobile-nav-item:active {
  transform: scale(0.96);
}
button {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.show-small {
  display: none;
}
.completed {
  text-decoration: line-through;
  color: #9aa39a;
}
.primary-btn:hover {
  background: #34563c;
}
@media (hover: none), (pointer: coarse) {
  .primary-btn:hover {
    background: #42654a;
  }
}
@media (max-width: 760px) {
  .hide-small {
    display: none;
  }
  .show-small {
    display: inline;
  }
}
.notes-toolbar {
  display: flex;
  gap: 9px;
  margin: 0 0 13px;
}
.notes-search {
  height: 36px;
  max-width: 360px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #e6eae3;
  border-radius: 8px;
  background: #fff;
  color: #89958a;
}
.notes-search span {
  font-size: 18px;
}
.notes-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #405044;
  font-size: 11px;
}
.notes-search input::placeholder {
  color: #a1aaa0;
}
.notes-sort {
  border: 1px solid #e6eae3;
  background: #fff;
  border-radius: 8px;
  padding: 0 11px;
  color: #78857a;
  font-size: 9px;
}
.note-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
}
.filter-total {
  color: #94a093;
  font-size: 8px;
  margin-left: 3px;
}
.notes-total {
  margin-left: auto;
  font-size: 9px;
  color: #9ca69c;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.note-card {
  background: #fff;
  border: 1px solid #ebeee8;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.note-cover {
  width: 100%;
  height: 130px;
  border: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.note-cover:before,
.note-cover:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}
.note-cover:before {
  width: 170px;
  height: 170px;
  right: -42px;
  top: -95px;
  background: #fff;
}
.note-cover:after {
  width: 110px;
  height: 110px;
  left: -28px;
  bottom: -75px;
  background: #fff;
}
.note-cover.sage {
  background: #dfe9dc;
  color: #658267;
}
.note-cover.sand {
  background: #eee3d3;
  color: #9a7957;
}
.note-cover.blue {
  background: #dfe9eb;
  color: #668893;
}
.note-cover.rose {
  background: #efe1dc;
  color: #a57a68;
}
.note-cover.lilac {
  background: #e9e5ef;
  color: #817397;
}
.cover-glyph {
  font-size: 42px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  z-index: 1;
  opacity: 0.8;
}
.cover-scribble {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.8;
}
.note-card-body {
  padding: 13px 14px 12px;
}
.note-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note-category {
  font-size: 8px;
  color: #758574;
  background: #f0f4ee;
  border-radius: 20px;
  padding: 5px 8px;
}
.note-pin {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #a9b0a7;
  font-size: 14px;
}
.note-pin.pinned {
  color: #bb875d;
}
.note-title-button {
  border: 0;
  background: none;
  padding: 6px 0 0;
  text-align: left;
  font:
    700 12px Manrope,
    sans-serif;
  color: #334337;
}
.note-preview {
  min-height: 47px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.6;
  color: #909a90;
  margin: 7px 0 12px;
}
.note-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #f0f2ee;
  padding-top: 10px;
  font-size: 8px;
  color: #a0a9a0;
}
.note-mini-avatar {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e9e2d6;
  color: #776b53;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 700;
}
.note-add-card {
  min-height: 245px;
  border: 1px dashed #dce3da;
  border-radius: 12px;
  background: #fafbf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #728273;
}
.note-add-card > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf2eb;
  font-size: 20px;
}
.note-add-card b {
  font:
    700 10px Manrope,
    sans-serif;
  margin-top: 10px;
}
.note-add-card small {
  font-size: 8px;
  color: #a1aaa0;
  margin-top: 4px;
}
.note-empty {
  grid-column: 1/-1;
  background: #fff;
  border: 1px solid #ebeee8;
  border-radius: 12px;
  padding: 35px 20px;
  text-align: center;
  color: #919b91;
  font-size: 10px;
}
.note-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.note-detail h2 {
  font:
    700 20px Manrope,
    sans-serif;
  margin: 18px 0 12px;
  color: #334337;
}
.note-detail p {
  font-size: 12px;
  line-height: 1.9;
  color: #657267;
  white-space: normal;
  margin: 0 0 22px;
}
.note-detail > small {
  font-size: 9px;
  color: #a0a9a0;
}
.more-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.more-menu-card {
  position: relative;
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 12px;
}
.more-menu-card > span {
  font-size: 19px;
  color: #648065;
}
.more-menu-card b {
  font:
    700 12px Manrope,
    sans-serif;
}
.more-menu-card small {
  font-size: 9px;
  color: #98a198;
}
.more-menu-card i {
  position: absolute;
  right: 17px;
  top: 18px;
  color: #9ca69c;
  font-style: normal;
}
@media (hover: hover) and (pointer: fine) {
  .note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px #253d2810;
  }
  .note-add-card:hover,
  .more-menu-card:hover {
    background: #f3f6f1;
  }
}
@media (max-width: 760px) {
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .note-cover {
    height: 105px;
  }
  .note-card-body {
    padding: 10px;
  }
  .note-preview {
    font-size: 8px;
    min-height: 43px;
  }
  .note-title-button {
    font-size: 11px;
  }
  .notes-toolbar {
    gap: 6px;
  }
  .notes-sort {
    font-size: 8px;
    padding: 0 7px;
  }
  .notes-total {
    display: none;
  }
  .notes-head .section-intro {
    max-width: 235px;
  }
  .note-add-card {
    min-height: 218px;
  }
  .more-menu-grid {
    grid-template-columns: 1fr;
  }
  .note-detail {
    max-height: 85dvh;
    overflow: auto;
  }
}
@media (max-width: 380px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .note-cover {
    height: 125px;
  }
  .note-add-card {
    min-height: 170px;
  }
}
.is-hidden {
  display: none !important;
}
.app-shell {
  display: none;
}
.logout-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #b2503a;
  background: color-mix(in srgb, #d9694c 8%, transparent);
  border: 1px solid color-mix(in srgb, #d9694c 22%, transparent);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.logout-btn .ic {
  width: 15px;
  height: 15px;
}
.logout-btn:active {
  transform: scale(0.98);
}
@media (hover: hover) and (pointer: fine) {
  .logout-btn:hover {
    background: #c9543a;
    border-color: #c9543a;
    color: #fff;
  }
}
body[data-theme="dark"] .logout-btn {
  color: #f0a590;
}
.top-avatar {
  border: 0;
  cursor: pointer;
}
.settings-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.settings-page-head .page-title {
  font-size: 25px;
}
.settings-page-head .section-intro {
  font-size: 11px;
  margin-bottom: 0;
}
.save-preferences {
  flex: 0 0 auto;
  border: 0;
  background: #42654a;
  color: #fff;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 5px 14px #42654a25;
}
.preference-panel {
  padding: 25px 27px 26px;
}
.preference-section {
  min-width: 0;
}
.preference-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0eb;
}
.preference-symbol {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border-radius: 12px;
  background: #edf2eb;
  color: #527451;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.preference-heading h2 {
  font:
    700 14px Manrope,
    sans-serif;
  margin: 0;
  color: #354439;
}
.preference-heading p {
  font-size: 10px;
  color: #89958a;
  margin: 4px 0 0;
}
.theme-count {
  margin-left: auto;
  border: 1px solid #dce8da;
  background: #f5f8f2;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #577553;
  font-weight: 700;
  white-space: nowrap;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}
.theme-option {
  position: relative;
  display: block;
  min-width: 0;
  text-align: left;
  padding: 14px 13px 13px;
  border: 1px solid #e4e9e1;
  border-radius: 12px;
  background: #fff;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.theme-option.selected {
  border: 2px solid #739173;
  background: #fafcf8;
  box-shadow: 0 0 0 3px #78927322;
  padding: 13px 12px 12px;
}
.theme-option-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 37px;
  margin-bottom: 12px;
}
.theme-glyph {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: #f0f3ed;
  display: grid;
  place-items: center;
  color: #667d65;
  font-size: 15px;
}
.theme-title-wrap {
  min-width: 0;
  flex: 1;
}
.theme-title-wrap b {
  font:
    700 9px Manrope,
    sans-serif;
  display: block;
  white-space: nowrap;
  letter-spacing: 0.1px;
  color: #344337;
}
.theme-title-wrap small {
  font-size: 8px;
  display: block;
  color: #8c978d;
  margin-top: 3px;
  white-space: nowrap;
}
.selected-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: #547653;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  box-shadow: 0 2px 5px #253d2825;
}
.theme-preview {
  height: 101px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  display: flex;
  overflow: hidden;
  background: #f7f9f5;
}
.preview-sidebar {
  width: 25%;
  background: #fff;
  border-right: 1px solid #e1e7df;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-sidebar i {
  display: block;
  width: 80%;
  height: 6px;
  border-radius: 4px;
  background: #e5eae2;
}
.preview-sidebar i:first-child {
  width: 62%;
  height: 9px;
  background: #789273;
}
.preview-sidebar i:last-child {
  width: 48%;
}
.preview-content {
  position: relative;
  flex: 1;
  padding: 11px 9px;
}
.preview-top {
  height: 15px;
  border-bottom: 1px solid #dfe6dc;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.preview-top i {
  width: 36%;
  height: 8px;
  background: #5c665d;
  border-radius: 5px;
}
.preview-top b {
  font-size: 5px;
  background: #e8efe6;
  color: #668065;
  border-radius: 6px;
  padding: 2px 4px;
}
.preview-card {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 42px;
  height: 37px;
  border: 1px solid #e0e6dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px #253d2810;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.preview-card i {
  display: block;
  height: 5px;
  width: 75%;
  background: #667168;
  border-radius: 4px;
}
.preview-card i + i {
  width: 48%;
  background: #c6cec3;
}
.preview-action {
  position: absolute;
  bottom: 8px;
  right: 9px;
  background: #547653;
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 5px;
  font-weight: 700;
}
.theme-description {
  display: block;
  min-height: 44px;
  margin-top: 11px;
  font-size: 8px;
  line-height: 1.6;
  color: #838f83;
}
.theme-preview.dark {
  background: #121a25;
  border-color: #354252;
}
.theme-preview.dark .preview-sidebar {
  background: #172132;
  border-color: #354252;
}
.theme-preview.dark .preview-sidebar i {
  background: #38465a;
}
.theme-preview.dark .preview-sidebar i:first-child,
.theme-preview.dark .preview-action {
  background: #2eaad1;
}
.theme-preview.dark .preview-content {
  background: #101722;
}
.theme-preview.dark .preview-top {
  border-color: #354252;
}
.theme-preview.dark .preview-top i {
  background: #d4dbe3;
}
.theme-preview.dark .preview-top b {
  background: #163653;
  color: #7cddff;
}
.theme-preview.dark .preview-card {
  background: #202d3e;
  border-color: #3a4b61;
}
.theme-preview.dark .preview-card i {
  background: #b2bdca;
}
.theme-preview.dark .preview-card i + i {
  background: #687586;
}
.theme-preview.contrast {
  background: #fff;
  border-color: #8291a2;
}
.theme-preview.contrast .preview-sidebar {
  border-color: #8291a2;
}
.theme-preview.contrast .preview-sidebar i:first-child {
  background: #087fb3;
}
.theme-preview.contrast .preview-content {
  background: #f4f7fa;
}
.theme-preview.contrast .preview-top {
  border-color: #73849a;
}
.theme-preview.contrast .preview-action {
  background: #0076a9;
}
.theme-preview.contrast .preview-card {
  border: 1px solid #8091a5;
}
.theme-preview.vibrant {
  background: #eef5ff;
  border-color: #b9d3f7;
}
.theme-preview.vibrant .preview-sidebar {
  border-color: #c7daf7;
}
.theme-preview.vibrant .preview-sidebar i {
  background: #c3d9fb;
}
.theme-preview.vibrant .preview-sidebar i:first-child,
.theme-preview.vibrant .preview-action {
  background: #2865e8;
}
.theme-preview.vibrant .preview-content {
  background: #f2f7ff;
}
.theme-preview.vibrant .preview-top {
  border-color: #bdd3f1;
}
.theme-preview.vibrant .preview-top b {
  background: #dbeaff;
  color: #2a5fcc;
}
.theme-preview.vibrant .preview-card {
  border-color: #c5dafa;
}
.preference-divider {
  height: 1px;
  background: #edf0eb;
  margin: 22px 0;
}
.scale-heading {
  border: 0;
  padding: 0 0 14px;
}
.scale-heading h2 {
  font-size: 12px;
}
.scale-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.scale-option {
  height: 69px;
  border: 1px solid #e5eae3;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 10px 12px;
  position: relative;
}
.scale-option.selected {
  border: 2px solid #739173;
  background: #fafcf8;
  box-shadow: 0 0 0 3px #78927322;
  padding: 9px 11px;
}
.scale-glyph {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: #f0f3ed;
  color: #60755f;
  display: grid;
  place-items: center;
  font:
    700 16px Manrope,
    sans-serif;
}
.scale-option.selected .scale-glyph {
  background: #547653;
  color: #fff;
  font-size: 18px;
}
.scale-option b {
  display: block;
  font:
    700 10px Manrope,
    sans-serif;
  color: #3b493d;
}
.scale-option small {
  display: block;
  font-size: 8px;
  color: #89958a;
  margin-top: 3px;
}
.scale-option .selected-check {
  margin-left: auto;
}
.preference-note {
  margin-top: 12px;
  padding: 12px 15px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #819080;
}
.preference-note > span {
  font-size: 14px;
}
.preference-note p {
  font-size: 9px;
  line-height: 1.5;
  margin: 0;
}
.theme-option:active,
.scale-option:active {
  transform: scale(0.99);
}
@media (hover: hover) and (pointer: fine) {
  .theme-option:hover,
  .scale-option:hover {
    border-color: #a6b9a2;
  }
  .save-preferences:hover {
    background: #34563c;
  }
}
@media (max-width: 1050px) {
  .theme-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-description {
    min-height: 30px;
  }
  .preference-panel {
    padding: 21px;
  }
}
@media (max-width: 760px) {
  .settings-page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }
  .settings-page-head .page-title {
    font-size: 22px;
  }
  .save-preferences {
    width: 100%;
    height: 42px;
  }
  .preference-panel {
    padding: 16px 14px;
  }
  .preference-heading {
    align-items: flex-start;
    gap: 9px;
    padding-bottom: 14px;
  }
  .preference-heading p {
    line-height: 1.5;
    max-width: 230px;
  }
  .preference-symbol {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }
  .theme-count {
    font-size: 7px;
    padding: 5px 7px;
  }
  .theme-options {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-top: 12px;
  }
  .theme-option {
    padding: 12px;
  }
  .theme-option.selected {
    padding: 11px;
  }
  .theme-option-head {
    margin-bottom: 9px;
  }
  .theme-preview {
    height: 90px;
  }
  .theme-description {
    min-height: 0;
    margin-top: 8px;
  }
  .preference-divider {
    margin: 17px 0;
  }
  .scale-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .scale-option {
    height: 61px;
  }
  .preference-note {
    align-items: flex-start;
  }
}
body[data-theme="dark"] {
  background: #101712;
  color: #edf3e9;
}
body[data-theme="dark"] .main-content {
  background: #101712;
}
body[data-theme="dark"] .topbar {
  background: #131c16;
  border-color: #2d392f;
}
body[data-theme="dark"] .sidebar {
  background: #172119;
  border-color: #344036;
}
body[data-theme="dark"] .workspace-switch,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .business-card,
body[data-theme="dark"] .secondary-btn,
body[data-theme="dark"] .filter-pill:not(.active),
body[data-theme="dark"] .note-card,
body[data-theme="dark"] .scale-option,
body[data-theme="dark"] .theme-option {
  background: #1c281f;
  border-color: #38483b;
  color: #e8f0e5;
}
body[data-theme="dark"] .page-title,
body[data-theme="dark"] .panel-heading h3,
body[data-theme="dark"] .task-name,
body[data-theme="dark"] .business-info b,
body[data-theme="dark"] .business-card h3,
body[data-theme="dark"] .note-title-button,
body[data-theme="dark"] .preference-heading h2,
body[data-theme="dark"] .scale-option b,
body[data-theme="dark"] .theme-title-wrap b {
  color: #edf3e9;
}
body[data-theme="dark"] .hero-card {
  background: #263a2b;
}
body[data-theme="dark"] .summary-card,
body[data-theme="dark"] .task-board,
body[data-theme="dark"] .finance-chart,
body[data-theme="dark"] .transaction-panel,
body[data-theme="dark"] .occupancy-panel,
body[data-theme="dark"] .preference-panel,
body[data-theme="dark"] .preference-note {
  background: #1c281f;
  border-color: #38483b;
}
body[data-theme="dark"] .note-preview,
body[data-theme="dark"] .section-intro,
body[data-theme="dark"] .welcome-copy {
  color: #aab8aa;
}
body[data-theme="dark"] .task-row,
body[data-theme="dark"] .transactions td,
body[data-theme="dark"] .doc-row,
body[data-theme="dark"] .preference-heading,
body[data-theme="dark"] .preference-divider {
  border-color: #344137;
}
body[data-theme="dark"] .task-due {
  background: #3e3227;
  color: #e3af86;
}
body[data-theme="dark"] .note-cover.sage {
  background: #36483a;
}
body[data-theme="dark"] .note-cover.sand {
  background: #4a3d2f;
}
body[data-theme="dark"] .note-cover.blue {
  background: #2b4145;
}
body[data-theme="dark"] .note-cover.rose {
  background: #4a3835;
}
body[data-theme="dark"] .note-cover.lilac {
  background: #41384b;
}
body[data-theme="contrast"] {
  background: #fff;
  color: #101820;
}
body[data-theme="contrast"] .sidebar,
body[data-theme="contrast"] .panel,
body[data-theme="contrast"] .note-card,
body[data-theme="contrast"] .business-card {
  border: 2px solid #526273;
}
body[data-theme="contrast"] .page-title,
body[data-theme="contrast"] .panel-heading h3,
body[data-theme="contrast"] .task-name,
body[data-theme="contrast"] .business-info b,
body[data-theme="contrast"] .note-title-button {
  color: #101820;
}
body[data-theme="contrast"] .nav-item,
body[data-theme="contrast"] .subtle-link,
body[data-theme="contrast"] .section-intro,
body[data-theme="contrast"] .welcome-copy {
  color: #334155;
}
body[data-theme="contrast"] .primary-btn,
body[data-theme="contrast"] .save-preferences {
  background: #005b85;
}
body[data-theme="vibrant"] {
  background: #f0f5ff;
  color: #16243c;
}
body[data-theme="vibrant"] .main-content,
body[data-theme="vibrant"] .topbar {
  background: #f0f5ff;
}
body[data-theme="vibrant"] .sidebar {
  background: #fff;
  border-color: #d7e3f8;
}
body[data-theme="vibrant"] .panel,
body[data-theme="vibrant"] .business-card,
body[data-theme="vibrant"] .note-card {
  border-color: #d9e5f7;
}
body[data-theme="vibrant"] .hero-card {
  background: #e0ebff;
}
body[data-theme="vibrant"] .primary-btn,
body[data-theme="vibrant"] .save-preferences {
  background: #2865e8;
}
body[data-theme="vibrant"] .nav-item.active {
  background: #e7efff;
  color: #2457bd;
}
body[data-theme="vibrant"] .metric-icon {
  background: #e7efff;
  color: #3369d0;
}
body[data-theme="vibrant"] .page-title {
  color: #192a47;
}
body[data-font-size="large"] .app-shell {
  zoom: 1.12;
}
body[data-font-size="xlarge"] .app-shell {
  zoom: 1.25;
}
.quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.quick-actions > span {
  font-size: 9px;
  color: #9aa39a;
  margin-right: 3px;
}
.quick-actions button {
  border: 1px solid #e4e9e1;
  background: #fff;
  color: #657568;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 9px;
}
.quick-actions button:active {
  transform: scale(0.97);
}
.task-open {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.task-history {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #edf0eb;
  color: #99a399;
}
.task-detail-title {
  font:
    700 16px Manrope,
    sans-serif;
  margin: 8px 0 0;
}
.task-history small {
  font-size: 8px;
}
.charge-list {
  margin-top: 18px;
}
.charge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf0eb;
}
.charge-row > div {
  min-width: 0;
  flex: 1;
}
.charge-row b {
  display: block;
  font-size: 9px;
}
.charge-row small {
  display: block;
  color: #929d93;
  font-size: 8px;
  margin-top: 4px;
}
.charge-row strong {
  font-size: 9px;
}
.charge-row .due {
  color: #b87347;
}
.charge-row .paid {
  color: #58805c;
}
.business-detail h2 {
  font:
    700 20px Manrope,
    sans-serif;
  margin: 15px 0 5px;
}
.business-detail > p {
  font-size: 10px;
  color: #879388;
  margin: 0;
}
.business-detail-balance {
  display: grid;
  gap: 6px;
  background: #f4f7f1;
  border-radius: 9px;
  padding: 13px;
  margin-top: 17px;
}
.business-detail-balance small {
  font-size: 8px;
  color: #839083;
}
.business-detail-balance b {
  font:
    700 17px Manrope,
    sans-serif;
  color: #3c5540;
}
.business-detail .modal-footer {
  justify-content: flex-start;
}
.search-modal {
  align-self: start;
  margin-top: min(18vh, 130px);
}
.search-modal-input {
  max-width: none;
  margin-top: 15px;
}
.search-results {
  display: grid;
  gap: 3px;
  margin-top: 11px;
  max-height: 48dvh;
  overflow: auto;
}
.search-result {
  position: relative;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 7px;
  padding: 10px 30px 10px 10px;
}
.search-result b {
  display: block;
  font-size: 10px;
}
.search-result small {
  display: block;
  font-size: 8px;
  color: #96a096;
  margin-top: 4px;
}
.search-result span {
  position: absolute;
  right: 10px;
  top: 13px;
  color: #95a095;
}
.search-empty {
  padding: 20px;
  text-align: center;
  color: #929d92;
  font-size: 9px;
}
.notification-modal {
  align-self: start;
  margin: 74px 0 0 auto;
  max-width: 400px;
}
.notification-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #edf0eb;
}
.notification-row > span {
  color: #db9363;
  font-size: 20px;
}
.notification-row b {
  display: block;
  font-size: 10px;
}
.notification-row small {
  display: block;
  font-size: 8px;
  color: #929d92;
  margin-top: 4px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  margin-top: 12px;
}
.finance-select {
  min-width: 140px;
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .quick-actions button:hover,
  .search-result:hover {
    background: #f5f8f3;
  }
  .task-open:hover {
    color: #496b4d;
  }
}
@media (max-width: 760px) {
  .quick-actions {
    gap: 6px;
  }
  .quick-actions > span {
    width: 100%;
    margin-bottom: 2px;
  }
  .quick-actions button {
    padding: 8px 9px;
    font-size: 8px;
  }
  .charge-row {
    gap: 6px;
  }
  .charge-row .subtle-link {
    font-size: 8px;
    padding: 3px;
  }
  .member-grid {
    grid-template-columns: 1fr;
  }
  .notification-modal {
    margin: 55px 0 0;
    max-width: none;
  }
  .search-modal {
    margin-top: 8vh;
  }
}
/* Readability pass: strengthen secondary copy and controls across themes. */
:root {
  --muted: #5f6d61;
}
.workspace-switch small,
.profile-row small,
.nav-label,
.help-card p,
.topbar .breadcrumbs,
.eyebrow,
.welcome-copy,
.hero-card p,
.summary-period,
.summary-trend,
.summary-legend,
.metric-top,
.metric-foot,
.panel-title-wrap p,
.task-meta,
.task-due,
.business-info small,
.section-intro,
.note-preview,
.note-meta,
.preference-heading p,
.theme-option p,
.theme-option small,
.scale-option small,
.preference-note,
.charge-row small,
.business-detail > p,
.business-detail-balance small,
.search-result small,
.search-result span,
.search-empty,
.notification-row small {
  color: #5f6d61;
}
.nav-item {
  color: #46564a;
}
.nav-icon,
.chevron,
.more-btn,
.icon-button {
  color: #526455;
}
.subtle-link {
  color: #526455;
}
.metric-top,
.metric-foot {
  color: #59675b;
}
.summary-period,
.summary-legend,
.task-meta,
.charge-row small {
  color: #626f63;
}
body[data-theme="dark"] .workspace-switch small,
body[data-theme="dark"] .profile-row small,
body[data-theme="dark"] .nav-label,
body[data-theme="dark"] .help-card p,
body[data-theme="dark"] .breadcrumbs,
body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .welcome-copy,
body[data-theme="dark"] .hero-card p,
body[data-theme="dark"] .summary-period,
body[data-theme="dark"] .summary-trend,
body[data-theme="dark"] .summary-legend,
body[data-theme="dark"] .metric-top,
body[data-theme="dark"] .metric-foot,
body[data-theme="dark"] .panel-title-wrap p,
body[data-theme="dark"] .task-meta,
body[data-theme="dark"] .section-intro,
body[data-theme="dark"] .note-preview,
body[data-theme="dark"] .note-meta,
body[data-theme="dark"] .preference-heading p,
body[data-theme="dark"] .theme-option p,
body[data-theme="dark"] .theme-option small,
body[data-theme="dark"] .scale-option small,
body[data-theme="dark"] .preference-note,
body[data-theme="dark"] .charge-row small,
body[data-theme="dark"] .business-detail > p,
body[data-theme="dark"] .business-detail-balance small,
body[data-theme="dark"] .search-result small,
body[data-theme="dark"] .search-result span,
body[data-theme="dark"] .search-empty,
body[data-theme="dark"] .notification-row small {
  color: #c1cec1;
}
body[data-theme="contrast"] .workspace-switch small,
body[data-theme="contrast"] .profile-row small,
body[data-theme="contrast"] .nav-label,
body[data-theme="contrast"] .help-card p,
body[data-theme="contrast"] .eyebrow,
body[data-theme="contrast"] .welcome-copy,
body[data-theme="contrast"] .hero-card p,
body[data-theme="contrast"] .summary-period,
body[data-theme="contrast"] .summary-legend,
body[data-theme="contrast"] .metric-top,
body[data-theme="contrast"] .metric-foot,
body[data-theme="contrast"] .task-meta,
body[data-theme="contrast"] .section-intro,
body[data-theme="contrast"] .note-preview,
body[data-theme="contrast"] .note-meta,
body[data-theme="contrast"] .preference-heading p,
body[data-theme="contrast"] .theme-option p,
body[data-theme="contrast"] .theme-option small,
body[data-theme="contrast"] .scale-option small,
body[data-theme="contrast"] .preference-note,
body[data-theme="contrast"] .charge-row small {
  color: #334155;
}
body[data-theme="vibrant"] .workspace-switch small,
body[data-theme="vibrant"] .profile-row small,
body[data-theme="vibrant"] .nav-label,
body[data-theme="vibrant"] .help-card p,
body[data-theme="vibrant"] .breadcrumbs,
body[data-theme="vibrant"] .eyebrow,
body[data-theme="vibrant"] .welcome-copy,
body[data-theme="vibrant"] .hero-card p,
body[data-theme="vibrant"] .summary-period,
body[data-theme="vibrant"] .summary-legend,
body[data-theme="vibrant"] .metric-top,
body[data-theme="vibrant"] .metric-foot,
body[data-theme="vibrant"] .panel-title-wrap p,
body[data-theme="vibrant"] .task-meta,
body[data-theme="vibrant"] .section-intro,
body[data-theme="vibrant"] .note-preview,
body[data-theme="vibrant"] .note-meta,
body[data-theme="vibrant"] .preference-heading p,
body[data-theme="vibrant"] .theme-option p,
body[data-theme="vibrant"] .theme-option small,
body[data-theme="vibrant"] .scale-option small,
body[data-theme="vibrant"] .preference-note,
body[data-theme="vibrant"] .charge-row small {
  color: #465875;
}
/* Business management module */
.bm-business-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.bm-business-card {
  cursor: pointer;
  min-width: 0;
}
.business-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.business-description {
  font-size: 10px;
  line-height: 1.55;
  color: #56665a;
  min-height: 30px;
  margin-top: 9px;
}
.business-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #edf0eb;
  margin-top: 13px;
  padding-top: 10px;
  font-size: 9px;
  color: #59675b;
}
.business-card-foot .subtle-link {
  margin-left: auto;
}
.data-origin {
  font-size: 8px;
  color: #725a3f;
  background: #f7f0e4;
  padding: 4px 7px;
  border-radius: 20px;
}
.data-origin.actual {
  color: #315a3a;
  background: #eaf2e9;
}
.business-expense-hint {
  display: block;
  color: #526455;
  margin-top: 8px;
}
.business-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.business-toolbar .notes-search {
  flex: 1;
  max-width: 500px;
}
.business-data-note {
  font-size: 9px;
  color: #526455;
  margin: 0 0 14px;
}
.business-empty {
  padding: 22px;
  text-align: center;
  color: #526455;
  font-size: 11px;
}
.status-muted {
  background: #f0f1ed;
  color: #5d665e;
}
.bm-detail-head {
  margin-bottom: 16px;
}
.back-link {
  border: 0;
  background: none;
  color: #436749;
  padding: 0;
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
}
.bm-tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  border-bottom: 1px solid #e8ece5;
}
.bm-tab {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #526455;
  padding: 11px 12px 10px;
  font-size: 10px;
}
.bm-tab.active {
  color: #31583a;
  border-color: #547653;
  font-weight: 700;
}
.bm-tab span {
  background: #edf2eb;
  border-radius: 12px;
  padding: 2px 5px;
  margin-left: 3px;
}
.bm-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #526455;
  margin: 12px 0;
}
.bm-filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bm-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 15px;
}
.bm-panel {
  padding: 18px;
}
.bm-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}
.bm-profile-grid div {
  min-width: 0;
}
.bm-profile-grid dt {
  font-size: 8px;
  color: #5f6d61;
}
.bm-profile-grid dd {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: #2f4033;
  overflow-wrap: anywhere;
}
.bm-profile-grid dd small {
  font-size: 8px;
  font-weight: 400;
  color: #5f6d61;
}
.bm-attention-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #edf0eb;
}
.bm-attention-row > span {
  font-size: 16px;
  color: #668168;
}
.bm-attention-row > div {
  flex: 1;
}
.bm-attention-row b,
.bm-activity b {
  display: block;
  font-size: 9px;
}
.bm-attention-row small,
.bm-activity small {
  display: block;
  font-size: 8px;
  color: #5f6d61;
  margin-top: 4px;
}
.bm-attention-row button {
  border: 0;
  background: none;
  color: #466c49;
  font-size: 9px;
}
.bm-activity {
  padding: 9px 0;
  border-top: 1px solid #edf0eb;
}
.bm-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 9px;
  color: #344639;
}
.bm-check-row > span {
  color: #46744b;
}
.bm-check-row small {
  margin-left: auto;
  color: #5f6d61;
  font-size: 8px;
}
.bm-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 18px 0 13px;
}
.bm-content-head h2 {
  font:
    700 15px Manrope,
    sans-serif;
  margin: 0;
}
.bm-content-head p {
  font-size: 9px;
  color: #526455;
  margin: 5px 0 0;
}
.bm-property-list {
  display: grid;
  gap: 12px;
  margin-bottom: 15px;
}
.bm-property {
  padding: 17px;
}
.bm-property .panel-heading p {
  font-size: 9px;
  color: #526455;
  margin: 5px 0 0;
}
.bm-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.bm-room {
  display: grid;
  gap: 5px;
  border: 1px solid #e7ece5;
  border-radius: 9px;
  padding: 11px;
}
.bm-room b {
  font-size: 10px;
}
.bm-room span {
  font-size: 9px;
  color: #334f38;
}
.bm-room small {
  font-size: 8px;
  color: #526455;
}
.bm-empty {
  padding: 17px 8px;
  color: #526455;
  font-size: 10px;
  line-height: 1.6;
}
.bm-table-row,
.bm-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-top: 1px solid #edf0eb;
  font-size: 9px;
}
.bm-table-row b,
.bm-category-row b {
  white-space: nowrap;
}
.bm-expense-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  gap: 13px;
}
.bm-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0eb;
}
.bm-person-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.bm-person-row b {
  display: block;
  font-size: 10px;
}
.bm-person-row small {
  display: block;
  font-size: 8px;
  color: #526455;
  margin-top: 4px;
}
.bm-person-comp {
  text-align: right;
  font-size: 9px;
}
.bm-linked-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0eb;
}
.bm-linked-task > div {
  min-width: 0;
  flex: 1;
}
.bm-linked-task b {
  font-size: 10px;
}
.bm-linked-task small {
  display: block;
  font-size: 8px;
  color: #526455;
  margin-top: 4px;
}
.bm-linked-task > span {
  font-size: 8px;
  color: #526455;
  white-space: nowrap;
}
.bm-note-row {
  padding: 10px 0;
  border-top: 1px solid #edf0eb;
}
.bm-note-row b {
  font-size: 10px;
}
.bm-note-row small {
  display: block;
  white-space: pre-wrap;
  color: #526455;
  font-size: 9px;
  margin-top: 5px;
  line-height: 1.6;
}
.bm-wizard-modal {
  max-height: 88dvh;
  overflow: auto;
  width: min(560px, 100%);
}
.bm-wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 15px 0 20px;
}
.bm-wizard-progress span {
  text-align: center;
  border-bottom: 3px solid #e7ece5;
  padding: 0 0 8px;
  color: #68766b;
  font-size: 8px;
}
.bm-wizard-progress span.active {
  border-color: #587b59;
  color: #31583a;
  font-weight: 700;
}
.bm-step h3 {
  font:
    700 13px Manrope,
    sans-serif;
  margin: 0 0 12px;
}
.bm-form-hint {
  font-size: 9px;
  color: #526455;
  line-height: 1.55;
}
.bm-review {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f5f7f3;
  border-radius: 10px;
  font-size: 10px;
}
.bm-review small {
  display: block;
  color: #526455;
  margin-top: 4px;
}
.bm-wizard-modal [hidden],
.bm-type-fields[hidden] {
  display: none !important;
}
.bm-wizard-modal .modal-footer {
  position: sticky;
  bottom: -22px;
  background: #fff;
  padding: 12px 0 2px;
}
.bm-export-buffer {
  width: 1px;
  height: 1px;
}
body[data-theme="dark"] .business-description,
body[data-theme="dark"] .business-card-foot,
body[data-theme="dark"] .business-data-note,
body[data-theme="dark"] .bm-tab,
body[data-theme="dark"] .bm-filter-row,
body[data-theme="dark"] .bm-profile-grid dt,
body[data-theme="dark"] .bm-profile-grid dd small,
body[data-theme="dark"] .bm-attention-row small,
body[data-theme="dark"] .bm-activity small,
body[data-theme="dark"] .bm-check-row small,
body[data-theme="dark"] .bm-content-head p,
body[data-theme="dark"] .bm-property .panel-heading p,
body[data-theme="dark"] .bm-room span,
body[data-theme="dark"] .bm-room small,
body[data-theme="dark"] .bm-empty,
body[data-theme="dark"] .bm-person-row small,
body[data-theme="dark"] .bm-linked-task small,
body[data-theme="dark"] .bm-linked-task > span,
body[data-theme="dark"] .bm-note-row small,
body[data-theme="dark"] .bm-form-hint,
body[data-theme="dark"] .bm-review small {
  color: #c1cec1;
}
body[data-theme="dark"] .bm-profile-grid dd,
body[data-theme="dark"] .bm-person-row b,
body[data-theme="dark"] .bm-linked-task b {
  color: #edf3e9;
}
body[data-theme="dark"] .bm-room,
body[data-theme="dark"] .bm-review {
  background: #202d23;
  border-color: #405043;
}
body[data-theme="dark"] .bm-wizard-modal .modal-footer {
  background: #1c281f;
}
body[data-theme="dark"] .bm-tabs {
  border-color: #344137;
}
body[data-theme="contrast"] .business-description,
body[data-theme="contrast"] .business-card-foot,
body[data-theme="contrast"] .business-data-note,
body[data-theme="contrast"] .bm-filter-row,
body[data-theme="contrast"] .bm-profile-grid dt,
body[data-theme="contrast"] .bm-attention-row small,
body[data-theme="contrast"] .bm-activity small,
body[data-theme="contrast"] .bm-empty,
body[data-theme="contrast"] .bm-content-head p,
body[data-theme="contrast"] .bm-form-hint {
  color: #334155;
}
@media (max-width: 760px) {
  .bm-business-cards,
  .bm-overview-grid,
  .bm-expense-layout {
    grid-template-columns: 1fr;
  }
  .business-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .business-toolbar .notes-search {
    min-width: 100%;
    max-width: none;
  }
  .business-toolbar select {
    flex: 1;
  }
  .business-card-foot {
    gap: 7px;
  }
  .business-card-foot .subtle-link {
    margin-left: 0;
  }
  .bm-content-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .bm-content-head .section-actions {
    width: 100%;
  }
  .bm-tabs {
    margin-right: -17px;
    padding-right: 17px;
  }
  .bm-filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .bm-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bm-profile-grid {
    gap: 11px;
  }
  .bm-person-row {
    flex-wrap: wrap;
  }
  .bm-person-comp {
    width: 100%;
    text-align: left;
    padding-left: 39px;
  }
  .bm-linked-task {
    gap: 7px;
  }
  .bm-linked-task > span {
    display: none;
  }
  .bm-wizard-modal {
    max-height: calc(100dvh - 30px);
    padding: 17px;
  }
  .bm-wizard-progress span {
    font-size: 7px;
  }
  .bm-wizard-modal .modal-footer {
    bottom: -17px;
  }
  .bm-detail .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .bm-detail .section-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
/* Keep business detail header actions compact and consistently sized. */
.bm-detail .section-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
  flex-wrap: nowrap;
}
.bm-detail .section-actions > .status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  line-height: 1;
  white-space: nowrap;
}
.bm-detail .section-actions > .secondary-btn,
.bm-detail .section-actions > .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 15px;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .bm-detail .section-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
  }
  .bm-detail .section-actions > .status-chip {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
  }
  .bm-detail .section-actions > .secondary-btn,
  .bm-detail .section-actions > .primary-btn {
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
  }
}
/* Calendar */
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
}
.calendar-month-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}
.calendar-month-nav h2 {
  font:
    700 15px Manrope,
    sans-serif;
  margin: 0 4px;
}
.calendar-month-nav .secondary-btn {
  padding: 8px 11px;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 14px;
}
.calendar-month-panel {
  padding: 16px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-weekdays {
  margin-bottom: 6px;
}
.calendar-weekdays span {
  text-align: center;
  padding: 7px 0;
  color: #5f6d61;
  font-size: 9px;
  font-weight: 700;
}
.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 68px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  padding: 8px 3px;
  color: #304234;
  font-size: 10px;
}
.calendar-day:hover {
  background: #f1f5ef;
}
.calendar-day.outside {
  visibility: hidden;
}
.calendar-day.today span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf1e8;
  color: #31583a;
  font-weight: 700;
}
.calendar-day.selected {
  border-color: #6a8867;
  background: #f6f9f4;
}
.calendar-day i {
  font-size: 7px;
  font-style: normal;
  color: #526455;
  white-space: nowrap;
}
.calendar-legend {
  display: flex;
  gap: 15px;
  border-top: 1px solid #edf0eb;
  padding: 12px 3px 0;
  margin-top: 8px;
  color: #526455;
  font-size: 8px;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.calendar-legend i,
.calendar-event-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #708e6e;
}
.calendar-legend i.tagihan,
.calendar-event-dot.tagihan {
  background: #d38a5a;
}
.calendar-legend i.task,
.calendar-event-dot.tugas {
  background: #6d8c6d;
}
.calendar-legend i.keluarga,
.calendar-event-dot.keluarga {
  background: #7d77a2;
}
.calendar-event-dot.bisnis,
.calendar-event-dot.operasional {
  background: #5785a3;
}
.calendar-side {
  display: grid;
  align-content: start;
  gap: 12px;
}
.calendar-agenda-panel {
  padding: 15px;
}
.calendar-agenda-panel .panel-heading {
  align-items: flex-start;
}
.calendar-agenda-panel .panel-heading h3 {
  font-size: 11px;
}
.calendar-agenda-panel .summary-period {
  font-size: 8px;
}
.calendar-event-list {
  margin-top: 8px;
}
.calendar-event-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf0eb;
  padding: 11px 0;
}
.calendar-event-main {
  min-width: 0;
  flex: 1;
}
.calendar-event-main b {
  display: block;
  font-size: 9px;
  line-height: 1.4;
}
.calendar-event-main small {
  display: block;
  color: #526455;
  font-size: 8px;
  margin-top: 4px;
}
.calendar-event-row time {
  color: #526455;
  font-size: 8px;
  white-space: nowrap;
}
.calendar-event-row.is-done .calendar-event-main b {
  text-decoration: line-through;
  color: #68766b;
}
.calendar-delete {
  border: 0;
  background: #f3f5f1;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  color: #526455;
}
.calendar-empty {
  padding: 18px 5px;
  text-align: center;
  color: #526455;
  font-size: 9px;
}
.calendar-head .section-actions .primary-btn {
  margin-top: 0;
}
body[data-theme="dark"] .calendar-month-panel,
body[data-theme="dark"] .calendar-agenda-panel {
  background: #1c281f;
  border-color: #38483b;
}
body[data-theme="dark"] .calendar-weekdays span,
body[data-theme="dark"] .calendar-day,
body[data-theme="dark"] .calendar-legend,
body[data-theme="dark"] .calendar-day i,
body[data-theme="dark"] .calendar-event-main small,
body[data-theme="dark"] .calendar-event-row time,
body[data-theme="dark"] .calendar-empty {
  color: #c1cec1;
}
body[data-theme="dark"] .calendar-day.selected {
  background: #253629;
  border-color: #6c8a6d;
}
body[data-theme="dark"] .calendar-day.today span {
  background: #36513a;
  color: #e6f0e4;
}
body[data-theme="dark"] .calendar-event-row {
  border-color: #344137;
}
body[data-theme="contrast"] .calendar-weekdays span,
body[data-theme="contrast"] .calendar-day,
body[data-theme="contrast"] .calendar-legend,
body[data-theme="contrast"] .calendar-day i,
body[data-theme="contrast"] .calendar-event-main small,
body[data-theme="contrast"] .calendar-event-row time,
body[data-theme="contrast"] .calendar-empty {
  color: #334155;
}
@media (max-width: 760px) {
  .calendar-head {
    align-items: flex-start;
  }
  .calendar-head .section-actions {
    width: auto;
  }
  .calendar-head .section-actions .primary-btn {
    height: 39px;
    padding: 0 11px;
  }
  .calendar-toolbar {
    align-items: flex-start;
    gap: 9px;
    flex-direction: column;
  }
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-month-panel {
    padding: 10px;
  }
  .calendar-grid {
    gap: 2px;
  }
  .calendar-day {
    min-height: 52px;
    padding: 5px 1px;
    font-size: 9px;
  }
  .calendar-day i {
    font-size: 6px;
  }
  .calendar-weekdays span {
    font-size: 8px;
  }
  .calendar-side {
    grid-template-columns: 1fr;
  }
  .calendar-month-nav h2 {
    font-size: 13px;
  }
  .calendar-month-nav .subtle-link {
    font-size: 8px;
  }
}

/* ---------- Icons ---------- */
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}
.nav-icon,
.help-spark,
.mobile-nav-item span,
.icon-button span,
.metric-icon,
.business-icon,
.doc-icon,
.note-glyph,
.more-menu-card > span,
.search-result > span,
.date-chip .ic {
  display: inline-grid;
  place-items: center;
}
.nav-icon {
  font-size: 19px;
  width: 22px;
  height: 22px;
}
.metric-icon {
  font-size: 15px;
}
.business-icon {
  font-size: 20px;
}
.icon-button {
  font-size: 19px;
}
.icon-button span {
  width: 100%;
  height: 100%;
}
.mobile-nav-item span {
  font-size: 22px;
  line-height: 1;
}
.quick-actions button,
.primary-btn,
.secondary-btn,
.subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quick-actions .ic {
  font-size: 13px;
}
.title-sun {
  display: inline-block;
  margin-left: 4px;
  font-size: 22px;
  color: #e0953f;
  vertical-align: -3px;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.date-chip .ic {
  font-size: 14px;
}
.help-spark {
  font-size: 18px;
}

/* ---------- Hero scene ---------- */
.hero-art {
  --art-sun: #f0b45f;
  --art-cloud: #fbf8ef;
  --art-hill-far: #c9d8c0;
  --art-hill-near: #b3c8a8;
  --art-ground: #9db892;
  --art-grass: #6f9a68;
  --art-wall: #f6ecd8;
  --art-base: #e2d3b4;
  --art-roof: #c4633f;
  --art-tile: #a64d2e;
  --art-eave: #8c3f27;
  --art-leaf: #5e8f62;
  --art-leaf-dk: #3f6e4b;
  --art-trunk: #8a6a49;
  --art-door: #5a7c62;
  --art-win: #b9d9d6;
  --art-shutter: #5a7c62;
  --art-ink: #2e3d33;
  --art-sign: #fbf3df;
  --art-dark: #3a4a3f;
}
.scene {
  overflow: visible;
  display: block;
  width: 100%;
  height: 100%;
}
.scene .s-ink {
  stroke: var(--art-ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.scene .c-sun { fill: var(--art-sun); }
.scene .c-sun-ring { stroke: var(--art-sun); stroke-width: 1.5; opacity: 0.5; }
.scene .c-cloud { fill: var(--art-cloud); opacity: 0.85; }
.scene .c-hill-far { fill: var(--art-hill-far); }
.scene .c-hill-near { fill: var(--art-hill-near); }
.scene .c-ground { fill: var(--art-ground); }
.scene .c-grass { stroke: var(--art-grass); }
.scene .c-wall { fill: var(--art-wall); }
.scene .c-base { fill: var(--art-base); }
.scene .c-roof { fill: var(--art-roof); }
.scene .c-tile { stroke: var(--art-tile); }
.scene .c-ridge { fill: var(--art-eave); }
.scene .c-eave { stroke: var(--art-eave); }
.scene .c-leaf { fill: var(--art-leaf); }
.scene .c-leaf-dk { fill: var(--art-leaf-dk); }
.scene .c-trunk { stroke: var(--art-trunk); }
.scene .c-coco { fill: #7a5a3a; }
.scene .c-door { fill: var(--art-door); }
.scene .c-knob { fill: var(--art-sign); }
.scene .c-win rect { fill: var(--art-win); stroke: var(--art-ink); stroke-width: 1.6; }
.scene .c-shutter rect { fill: var(--art-shutter); stroke: var(--art-ink); stroke-width: 1.4; }
.scene .c-step { fill: var(--art-base); stroke: var(--art-ink); stroke-width: 1.4; }
.scene .c-glow { fill: #f6c77a; opacity: 0.35; }
.scene .c-lamp { fill: #f6c77a; stroke: var(--art-ink); stroke-width: 1.2; }
.scene .c-pot { fill: var(--art-roof); }
.scene .c-sign { fill: var(--art-sign); }
.scene .c-dark { fill: var(--art-dark); }
.scene .c-shelf { stroke: #5b6a5f; }
.scene .c-jars rect:nth-child(odd) { fill: #e9955d; }
.scene .c-jars rect:nth-child(even) { fill: #cfe0b8; }
.scene .c-counter { fill: #b98a5a; }
.scene .c-awn-a { fill: var(--art-sign); }
.scene .c-awn-b { fill: var(--art-roof); }
.scene .c-cat { fill: var(--art-ink); }
.scene .c-cat-tail { stroke: var(--art-ink); }
.scene .t-sign { font: 800 9px Manrope, sans-serif; letter-spacing: 0.08em; fill: var(--art-ink); }
.scene .t-kos { font: 800 6.5px Manrope, sans-serif; letter-spacing: 0.06em; fill: var(--art-ink); }
.scene .palm {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: palm-sway 7s ease-in-out infinite;
}
@keyframes palm-sway {
  0%, 100% { transform: translate(8px, 150px) rotate(-1.5deg); }
  50% { transform: translate(8px, 150px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .scene .palm { animation: none; }
}
body[data-theme="dark"] .hero-art {
  --art-hill-far: #34503a;
  --art-hill-near: #2d4833;
  --art-ground: #27402d;
  --art-grass: #3f6847;
  --art-cloud: #4a6650;
  --art-ink: #14211a;
  --art-sun: #e8c07a;
}
body[data-theme="vibrant"] .hero-art {
  --art-hill-far: #bcd0f2;
  --art-hill-near: #a6c0ec;
  --art-ground: #8fb0e6;
  --art-grass: #5b86cf;
  --art-roof: #e0643f;
  --art-door: #2865e8;
  --art-shutter: #2865e8;
}

/* ---- Halaman Anggota ---- */
.member-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.member-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.member-stat > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--green-2);
  color: var(--green);
}
.member-stat .ic {
  width: 18px;
  height: 18px;
}
.member-stat b {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.member-stat small {
  font-size: 10px;
  color: var(--muted);
}
.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.member-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.member-avatar.tone-0 { background: #d8c6ad; color: #5e4c37; }
.member-avatar.tone-1 { background: #cfe3d2; color: #2f5a3d; }
.member-avatar.tone-2 { background: #dcd7ee; color: #50467d; }
.member-avatar.tone-3 { background: #f6d9c3; color: #8a4b22; }
.member-avatar.tone-4 { background: #cfe2ea; color: #2f5d70; }
.member-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: var(--muted);
}
.member-badge.owner {
  background: var(--green-2);
  color: var(--green);
}
.member-name {
  margin: 0;
  font-size: 14px;
}
.member-you {
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--lav);
  color: #5b4f8a;
  vertical-align: middle;
}
.member-mail {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.member-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.member-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.member-meta .ic {
  width: 13px;
  height: 13px;
}
.member-invite-card {
  min-height: 190px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 18px;
  cursor: pointer;
  font: inherit;
}
.member-invite-card span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-2);
  color: var(--green);
  margin-bottom: 4px;
}
.member-invite-card b {
  font-size: 12px;
  color: var(--ink);
}
.member-invite-card small {
  font-size: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(38, 53, 44, 0.08);
  }
  .member-invite-card:hover {
    border-color: var(--green);
    color: var(--green);
  }
}
body[data-theme="dark"] .member-stat > span,
body[data-theme="dark"] .member-invite-card span,
body[data-theme="dark"] .member-badge.owner {
  background: #2a3d2f;
  color: #bfe0c6;
}
body[data-theme="dark"] .member-invite-card b,
body[data-theme="dark"] .member-name {
  color: #edf3e9;
}
body[data-theme="dark"] .member-meta,
body[data-theme="dark"] .member-invite-card {
  border-color: #38483b;
}
body[data-theme="dark"] .member-you {
  background: #2f2c47;
  color: #cfc8f5;
}
@media (max-width: 760px) {
  .member-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .member-cards {
    grid-template-columns: 1fr;
  }
  .member-invite-card {
    min-height: 110px;
  }
}
[data-page][hidden] {
  display: none !important;
}
.member-role-select {
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  cursor: pointer;
}
body[data-theme="dark"] .member-role-select {
  background: #1c281f;
  color: #bfe0c6;
  border-color: #38483b;
}
.member-form-hint {
  font-size: 9px;
  color: var(--muted);
  margin: 10px 0 0;
}
.member-actions {
  display: flex;
  gap: 6px;
}
.member-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.member-icon-btn .ic {
  width: 15px;
  height: 15px;
}
.member-icon-btn:hover {
  color: var(--green);
  border-color: var(--green);
}
.member-icon-btn.danger:hover {
  color: #c0492f;
  border-color: #c0492f;
}
.member-card .member-badge {
  align-self: flex-start;
  margin-bottom: 8px;
}
body[data-theme="dark"] .member-icon-btn {
  border-color: #38483b;
}

/* ---- Edit & hapus di baris data ---- */
.row-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  align-items: center;
}
.row-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.row-icon-btn .ic {
  width: 14px;
  height: 14px;
}
.row-icon-btn:hover {
  color: var(--green);
  border-color: var(--green);
}
.row-icon-btn.danger:hover {
  color: #c0492f;
  border-color: #c0492f;
}
.transactions td:last-child .row-actions {
  margin-left: 0;
}
.charge-row .row-actions,
.bm-person-row .row-actions,
.bm-category-row .row-actions {
  margin-left: 10px;
}
.bm-note-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.modal-footer-spacer {
  flex: 1;
}
.danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b2503a;
  border-color: color-mix(in srgb, #d9694c 35%, transparent);
}
.danger-btn .ic {
  width: 14px;
  height: 14px;
}
.danger-btn:hover {
  background: #c9543a;
  border-color: #c9543a;
  color: #fff;
}
body[data-theme="dark"] .row-icon-btn {
  border-color: #38483b;
}
body[data-theme="dark"] .danger-btn {
  color: #f0a590;
}
.doc-row .row-actions {
  margin-left: auto;
}

/* ---- Riwayat aktivitas ---- */
.audit-panel {
  padding: 18px;
}
.audit-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.audit-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.audit-actor {
  width: auto;
  min-width: 160px;
}
.audit-day {
  margin: 20px 0 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.audit-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.audit-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--green-2);
  color: var(--green);
}
.audit-dot .ic {
  width: 16px;
  height: 16px;
}
.op-update .audit-dot { background: #e3ecf7; color: #3a5f8f; }
.op-delete .audit-dot { background: #f8e3dd; color: #b2503a; }
.op-member .audit-dot { background: var(--lav); color: #5b4f8a; }
.op-login .audit-dot { background: #eeeeea; color: #7a8077; }
.audit-body {
  flex: 1;
  min-width: 0;
}
.audit-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.audit-body small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}
.audit-changes {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  font-size: 10.5px;
  display: grid;
  gap: 3px;
}
.audit-changes li span {
  color: var(--muted);
  margin-right: 6px;
}
.audit-changes s {
  color: #b2503a;
  text-decoration-thickness: 1px;
}
.audit-changes i {
  font-style: normal;
  color: var(--muted);
}
.audit-changes b {
  color: #2f6d45;
  font-weight: 600;
}
.audit-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: var(--muted);
  white-space: nowrap;
}
.audit-more {
  margin: 14px auto 0;
  display: block;
}
body[data-theme="dark"] .op-update .audit-dot { background: #223245; color: #a9c8ee; }
body[data-theme="dark"] .op-delete .audit-dot { background: #402620; color: #f0a590; }
body[data-theme="dark"] .op-member .audit-dot { background: #2f2c47; color: #cfc8f5; }
body[data-theme="dark"] .op-login .audit-dot { background: #2a312b; color: #aab3a8; }
body[data-theme="dark"] .audit-dot { background: #2a3d2f; color: #bfe0c6; }
body[data-theme="dark"] .audit-changes b { color: #9fd9b0; }
body[data-theme="dark"] .audit-changes s { color: #f0a590; }
@media (max-width: 760px) {
  .audit-tag { display: none; }
  .audit-actor { width: 100%; }
}
body[data-theme="dark"] .audit-day,
body[data-theme="dark"] .audit-body small,
body[data-theme="dark"] .audit-tag,
body[data-theme="dark"] .audit-changes li span,
body[data-theme="dark"] .audit-changes i {
  color: #a9b6ab;
}
.audit-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.audit-count {
  font-size: 10px;
  color: var(--muted);
}
.audit-pages {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.audit-page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}
.audit-page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}
.audit-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.audit-page-btn:not(:disabled):not(.active):hover {
  border-color: var(--green);
  color: var(--green);
}
.audit-gap {
  color: var(--muted);
  padding: 0 2px;
}
body[data-theme="dark"] .audit-page-btn {
  color: #e8f0e5;
  border-color: #38483b;
}
body[data-theme="dark"] .audit-count {
  color: #a9b6ab;
}

/* ---- Filter rentang tanggal ---- */
.date-filter {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.date-filter .df-ic {
  align-self: center;
  color: var(--muted);
  display: grid;
}
.date-filter .df-ic .ic {
  width: 16px;
  height: 16px;
}
.date-filter label {
  display: grid;
  gap: 3px;
  font-size: 9px;
  color: var(--muted);
}
.date-filter input[type="date"] {
  font: inherit;
  font-size: 11px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.date-filter .df-reset {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.date-filter .df-note {
  align-self: center;
  font-size: 9px;
  color: var(--muted);
}
.tasks-toolbar .date-filter {
  padding: 0;
  margin-left: auto;
}
body[data-theme="dark"] .date-filter input[type="date"] {
  color: #e8f0e5;
  border-color: #38483b;
  color-scheme: dark;
}
body[data-theme="dark"] .date-filter label,
body[data-theme="dark"] .date-filter .df-note {
  color: #a9b6ab;
}
body[data-theme="dark"] .date-filter .df-reset {
  color: #bfe0c6;
  border-color: #4a5e4d;
}
@media (max-width: 760px) {
  .tasks-toolbar .date-filter {
    flex: 0 0 100%;
    margin-left: 0;
    padding-top: 6px;
  }
}

/* ---- Beranda: arus kas nyata ---- */
.flow-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.flow-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.flow-row b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}
.flow-track {
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  overflow: hidden;
}
.flow-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  min-width: 2px;
}
.flow-track i.in { background: #789273; }
.flow-track i.out { background: #dfa37a; }
body[data-theme="dark"] .flow-row,
body[data-theme="dark"] .flow-row b {
  color: #cfdacb;
}

/* ---- Ukuran kontrol seragam: tombol, pil filter, dropdown, kolom cari ---- */
:root {
  --control-h: 42px;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23708072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.primary-btn,
.secondary-btn,
.filter-pill,
.notes-search {
  min-height: var(--control-h);
  box-sizing: border-box;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.2;
}
.primary-btn,
.secondary-btn,
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  white-space: nowrap;
}
.primary-btn {
  border: 1px solid #42654a;
  margin-top: 0;
}
.hero-copy .primary-btn {
  margin-top: 15px;
}
.section-actions,
.modal-footer {
  align-items: center;
}
.notes-search {
  height: var(--control-h);
}
.primary-btn .ic,
.secondary-btn .ic {
  width: 15px;
  height: 15px;
}
/* Dropdown: tampilan sendiri supaya tingginya sama dengan tombol di sebelahnya */
select.filter-pill,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px !important;
  background-image: var(--chevron) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  text-align: left;
  justify-content: flex-start;
}
select.filter-pill {
  padding-left: 14px;
  min-width: 150px;
}
.date-filter input[type="date"],
.date-filter .df-reset {
  min-height: var(--control-h);
  font-size: 11px;
}
.filter-pill:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 2px solid #88a487;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  select.filter-pill {
    min-width: 0;
  }
}

/* ==========================================================================
   Tagihan & Transaksi Rutin (Recurring) + Due Notifications
   ========================================================================== */
.finance-tab-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.finance-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #647366;
  cursor: pointer;
  transition: all 0.15s ease;
}
.finance-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1f2e21;
}
.finance-tab.active {
  background: #fff;
  border-color: var(--line);
  color: #203525;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.finance-tab small {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 700;
}
.finance-tab.active small {
  background: #e8eee6;
  color: #3b5b42;
}
.tab-badge-warning {
  background: #ffede0 !important;
  color: #ba4e12 !important;
  border: 1px solid #fed2b7;
  padding: 2px 9px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.due-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #fffbf7 0%, #fff3eb 100%);
  border: 1px solid #fcd9c3;
  border-left: 4px solid #e06c28;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(224, 108, 40, 0.07);
}
.due-alert-banner.is-danger {
  background: linear-gradient(135deg, #fff8f8 0%, #ffeded 100%);
  border-color: #f7cece;
  border-left-color: #d94242;
}
.due-alert-lead {
  display: flex;
  align-items: center;
  gap: 14px;
}
.due-alert-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.due-alert-lead strong {
  display: block;
  font-size: 14px;
  color: #242c24;
  margin-bottom: 2px;
}
.due-alert-lead p {
  margin: 0;
  font-size: 13px;
  color: #657065;
  line-height: 1.4;
}
.due-alert-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sm-btn {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.due-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.due-chip.overdue {
  background: #feeaea;
  color: #b52222;
  border: 1px solid #f9c7c7;
}
.due-chip.due-today {
  background: #fff0d9;
  color: #a45300;
  border: 1px solid #fcdbb0;
}
.due-chip.due-soon {
  background: #fdf5d8;
  color: #8c6e00;
  border: 1px solid #f6e69d;
}
.due-chip.upcoming {
  background: #eff4ee;
  color: #4a5e49;
  border: 1px solid #d9e6d7;
}
.due-chip.paused {
  background: #ebebeb;
  color: #7b7b7b;
}

.freq-chip {
  display: inline-block;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #eef4ec;
  color: #38563c;
  border: 1px solid #d5e4d2;
}
.freq-chip.quarterly {
  background: #e9f2fa;
  color: #1f5682;
  border-color: #cae0f2;
}
.freq-chip.semiannual {
  background: #f4ecf7;
  color: #622f7c;
  border-color: #e5d1ee;
}
.freq-chip.yearly {
  background: #faedf3;
  color: #882b5d;
  border-color: #f3d1e1;
}

.btn-pay-quick {
  background: #46674e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-pay-quick:hover {
  background: #35523c;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(53, 82, 60, 0.25);
}
.btn-pay-quick.is-income {
  background: #2e6b77;
}
.btn-pay-quick.is-income:hover {
  background: #21535d;
  box-shadow: 0 2px 5px rgba(33, 83, 93, 0.25);
}

.home-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fffaf4;
  border: 1px solid #fce0ce;
  border-left: 4px solid #df6f29;
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 18px;
  margin-bottom: 6px;
}
.home-alert-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-alert-body b {
  font-size: 13.5px;
  color: #2b332b;
}
.home-alert-body p {
  margin: 0;
  font-size: 12px;
  color: #6a746a;
}
.notif-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.notif-quick-pay {
  background: #46674e;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  white-space: nowrap;
}
.notif-quick-pay:hover {
  background: #35523c;
}
