:root {
      --ink: #202b27;
      --muted: #7d8982;
      --soft-muted: #a4aea8;
      --line: #e9ede8;
      --canvas: #f5f6f2;
      --surface: #ffffff;
      --green: #23483e;
      --green-2: #315e50;
      --green-soft: #e9f1eb;
      --orange: #df8967;
      --orange-soft: #fbf0e9;
      --yellow: #e8be67;
      --yellow-soft: #faf4e7;
      --blue: #7e9dba;
      --blue-soft: #edf3f8;
      --shadow: 0 10px 35px rgba(35, 55, 45, .045);
      --radius: 18px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    .app-shell { min-height: 100vh; }
    .sidebar {
      width: 248px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column;
      padding: 27px 18px 20px; background: #fff; border-right: 1px solid var(--line);
    }
    .brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; margin-bottom: 44px; }
    .brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--green); color: white; }
    .brand-mark svg { width: 20px; height: 20px; stroke-width: 1.8; }
    .brand-name { font: 800 22px/1 'Manrope', sans-serif; letter-spacing: -1.1px; }
    .brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
    .nav-label { padding: 0 13px; margin: 0 0 11px; color: #a3ada6; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
    .nav-list { display: grid; gap: 5px; }
    .nav-link { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: #78837c; text-align: left; transition: .2s ease; }
    .nav-link svg { width: 18px; height: 18px; stroke-width: 1.8; }
    .nav-link span { font-size: 13px; font-weight: 600; }
    .nav-link:hover { background: #f7f8f5; color: var(--ink); }
    .nav-link.active { background: var(--green-soft); color: var(--green); }
    .nav-link.active::before { content: ''; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0; background: var(--green); }
    .nav-count { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 20px; background: #f8e7dd; color: #b86e4e; font-size: 10px; font-weight: 700; text-align: center; }
    .sidebar-spacer { flex: 1; }
    .home-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
    .home-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .home-card-label { color: var(--muted); font-size: 11px; }
    .home-card-title { font: 700 13px 'Manrope', sans-serif; }
    .home-card-address { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 10px; }
    .home-card-address svg { width: 12px; height: 12px; }
    .home-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
    .home-status { display: flex; align-items: center; gap: 6px; color: #5a8a6d; font-size: 10px; font-weight: 700; }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #68a77d; }
    .home-card-foot button { border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; }
    .sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 19px 7px 0; }
    .avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #eee9e1; color: #756e60; font-size: 10px; font-weight: 700; }
    .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .profile-name { font-size: 11px; font-weight: 700; }
    .profile-role { margin-top: 3px; color: var(--muted); font-size: 10px; }
    .profile-more { margin-left: auto; border: 0; background: transparent; color: #97a19a; }

    .main { min-height: 100vh; margin-left: 248px; padding: 0 38px 50px; }
    .topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9ede8; }
    .crumb { display: flex; align-items: center; gap: 9px; color: #9aa49d; font-size: 12px; }
    .crumb svg { width: 14px; height: 14px; }
    .crumb strong { color: var(--ink); font-weight: 600; }
    .topbar-right { display: flex; align-items: center; gap: 12px; }
    .search-box { width: 235px; height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e8ece7; border-radius: 10px; background: #fff; color: #a3ada6; }
    .search-box svg { width: 16px; height: 16px; }
    .search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
    .search-box input::placeholder { color: #a7b0aa; }
    .icon-button { position: relative; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #e8ece7; border-radius: 10px; background: #fff; color: #68756d; }
    .icon-button svg { width: 17px; height: 17px; }
    .notification-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 1.5px solid #fff; border-radius: 50%; background: var(--orange); }
    .top-avatar { width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #e9e4dc; }
    .top-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .mobile-brand, .mobile-bottom { display: none; }

    .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 31px 0 23px; }
    .eyebrow { margin-bottom: 8px; color: #8b978f; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; }
    h1, h2, h3, p { margin-top: 0; }
    h1 { margin-bottom: 7px; font: 800 27px/1.2 'Manrope', sans-serif; letter-spacing: -.9px; }
    .heading-desc { margin: 0; color: var(--muted); font-size: 12px; }
    .date-pill { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid #e5eae4; border-radius: 10px; background: white; color: #67746c; font-size: 11px; font-weight: 600; white-space: nowrap; }
    .date-pill svg { width: 15px; height: 15px; color: #829187; }

    .welcome-banner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 174px; overflow: hidden; padding: 26px 31px; border-radius: 19px; background: var(--green); color: white; }
    .welcome-banner::before, .welcome-banner::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; pointer-events: none; }
    .welcome-banner::before { width: 280px; height: 280px; right: 160px; top: -170px; }
    .welcome-banner::after { width: 380px; height: 380px; right: 90px; top: -210px; }
    .welcome-copy { position: relative; z-index: 1; max-width: 450px; }
    .welcome-tag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: #c6d9cd; font-size: 10px; font-weight: 600; letter-spacing: .5px; }
    .welcome-tag svg { width: 14px; height: 14px; }
    .welcome-title { margin: 0 0 8px; font: 700 22px/1.3 'Manrope', sans-serif; letter-spacing: -.65px; }
    .welcome-subtitle { margin: 0; color: #c4d3cb; font-size: 11px; line-height: 1.7; }
    .welcome-illustration { position: relative; z-index: 1; width: 215px; height: 120px; display: flex; align-items: center; justify-content: center; margin-right: 16px; }
    .welcome-illustration .sun { position: absolute; top: 0; right: 35px; width: 40px; height: 40px; border-radius: 50%; background: #e7bd79; opacity: .95; }
    .welcome-illustration .house { position: absolute; right: 35px; bottom: 1px; width: 129px; height: 76px; border-radius: 5px 5px 3px 3px; background: #f0d9b9; }
    .welcome-illustration .roof { position: absolute; right: 20px; bottom: 62px; width: 0; height: 0; border-left: 80px solid transparent; border-right: 80px solid transparent; border-bottom: 54px solid #d98c6d; }
    .welcome-illustration .door { position: absolute; right: 91px; bottom: 1px; width: 27px; height: 48px; border-radius: 4px 4px 0 0; background: #789a80; }
    .welcome-illustration .window { position: absolute; right: 49px; bottom: 31px; width: 25px; height: 24px; border: 4px solid #a4b9a3; background: #d8e2d3; }
    .welcome-illustration .plant { position: absolute; right: 171px; bottom: 2px; width: 16px; height: 32px; border-radius: 100% 0 100% 0; background: #88a58b; transform: rotate(-24deg); }
    .welcome-illustration .plant::after { content: ''; position: absolute; width: 12px; height: 25px; left: 11px; top: 9px; border-radius: 100% 0 100% 0; background: #a5b99a; transform: rotate(35deg); }
    .welcome-illustration .ground { position: absolute; right: 6px; bottom: 0; width: 210px; height: 8px; border-radius: 50%; background: rgba(7,29,23,.2); }

    .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
    .stat-card { min-height: 112px; padding: 16px 17px; border: 1px solid #e9ede8; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
    .stat-top { display: flex; align-items: center; justify-content: space-between; color: #8c9890; font-size: 10px; font-weight: 600; }
    .stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; }
    .stat-icon svg { width: 15px; height: 15px; }
    .stat-icon.green { background: var(--green-soft); color: #527b62; }
    .stat-icon.orange { background: var(--orange-soft); color: #c57a5c; }
    .stat-icon.blue { background: var(--blue-soft); color: #7192ae; }
    .stat-icon.yellow { background: var(--yellow-soft); color: #c49b4e; }
    .stat-value { margin-top: 8px; font: 800 22px/1 'Manrope', sans-serif; letter-spacing: -.6px; }
    .stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #97a19a; font-size: 9px; }
    .stat-foot .positive { color: #6c9c79; font-weight: 700; }
    .stat-foot .neutral { color: #c18665; font-weight: 700; }

    .content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr); gap: 17px; margin-top: 18px; align-items: start; }
    .column { display: grid; gap: 17px; min-width: 0; }
    .panel { min-width: 0; padding: 19px; border: 1px solid #e9ede8; border-radius: 16px; background: white; box-shadow: var(--shadow); }
    .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
    .panel-title { margin: 0; font: 800 13px 'Manrope', sans-serif; letter-spacing: -.2px; }
    .panel-subtitle { margin: 5px 0 0; color: #98a29b; font-size: 10px; }
    .text-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--green-2); font-size: 10px; font-weight: 700; white-space: nowrap; }
    .text-link svg { width: 13px; height: 13px; }
    .task-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding: 12px 13px; border-radius: 11px; background: #f7f9f6; }
    .task-summary strong { font: 700 12px 'Manrope', sans-serif; }
    .task-summary span { color: #89958d; font-size: 10px; }
    .progress-track { height: 5px; overflow: hidden; margin-top: 8px; border-radius: 10px; background: #e8eee8; }
    .progress-fill { width: 64%; height: 100%; border-radius: inherit; background: #648d70; transition: width .25s ease; }
    .task-list { display: grid; }
    .task-item { display: flex; align-items: center; gap: 11px; min-height: 54px; border-bottom: 1px solid #f0f2ef; }
    .task-item:last-child { border-bottom: 0; }
    .task-check { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border: 1.5px solid #cbd5cc; border-radius: 6px; background: #fff; color: white; transition: .2s; }
    .task-check svg { width: 12px; height: 12px; opacity: 0; }
    .task-item.done .task-check { border-color: #6d9477; background: #6d9477; }
    .task-item.done .task-check svg { opacity: 1; }
    .task-copy { min-width: 0; flex: 1; }
    .task-name { overflow: hidden; color: #3a4740; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .task-item.done .task-name { color: #a0aaa3; text-decoration: line-through; }
    .task-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: #a0aaa3; font-size: 9px; }
    .task-meta svg { width: 11px; height: 11px; }
    .priority { padding: 4px 7px; border-radius: 5px; font-size: 8px; font-weight: 700; white-space: nowrap; }
    .priority.high { background: #fbedeb; color: #c57968; }
    .priority.medium { background: #fbf4e6; color: #b28b47; }
    .priority.low { background: #eef4ee; color: #719076; }
    .empty-state { padding: 24px 8px; color: #98a29b; font-size: 11px; text-align: center; }

    .schedule-list { display: grid; gap: 13px; }
    .schedule-item { display: grid; grid-template-columns: 48px 3px minmax(0,1fr) auto; align-items: center; gap: 11px; }
    .schedule-time { color: #7f8b83; font-size: 10px; font-weight: 700; }
    .schedule-line { width: 3px; height: 37px; border-radius: 5px; background: #d8e7dc; }
    .schedule-item:nth-child(2) .schedule-line { background: #f0d8ca; }
    .schedule-item:nth-child(3) .schedule-line { background: #d9e5ee; }
    .schedule-name { color: #3b4840; font-size: 10px; font-weight: 700; }
    .schedule-detail { margin-top: 4px; color: #9ba59e; font-size: 9px; }
    .schedule-tag { padding: 4px 7px; border-radius: 5px; background: #f2f5f1; color: #849188; font-size: 8px; font-weight: 700; }

    .budget-total { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
    .budget-amount { font: 800 21px/1 'Manrope', sans-serif; letter-spacing: -.7px; }
    .budget-label { margin-top: 5px; color: #9aa49d; font-size: 9px; }
    .budget-change { color: #6b9778; font-size: 9px; font-weight: 700; }
    .budget-track { height: 8px; overflow: hidden; display: flex; gap: 3px; border-radius: 20px; background: #eef1ec; }
    .budget-track span { height: 100%; border-radius: 20px; }
    .budget-track .spent { width: 68%; background: #73967b; }
    .budget-track .remaining { flex: 1; background: #e8eee6; }
    .budget-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; color: #99a39c; font-size: 9px; }
    .budget-legend strong { color: #56645b; }
    .budget-categories { display: grid; gap: 11px; margin-top: 19px; }
    .budget-category { display: flex; align-items: center; gap: 9px; }
    .category-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; }
    .category-icon svg { width: 14px; height: 14px; }
    .category-icon.food { background: #fbf1e8; color: #c88b60; }
    .category-icon.bill { background: #edf3f8; color: #7e9ab2; }
    .category-icon.home { background: #eff4ed; color: #7c967c; }
    .category-copy { min-width: 0; flex: 1; }
    .category-name { color: #58645d; font-size: 10px; font-weight: 600; }
    .category-sub { margin-top: 3px; color: #a2aca5; font-size: 8px; }
    .category-value { color: #4d5b52; font-size: 10px; font-weight: 700; }

    .members-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .member-stack { display: flex; align-items: center; padding-left: 3px; }
    .member-stack .avatar { width: 35px; height: 35px; margin-left: -4px; border: 2px solid white; }
    .add-member { width: 32px; height: 32px; display: grid; place-items: center; margin-left: 9px; border: 1px dashed #c8d2ca; border-radius: 50%; background: #f9fbf8; color: #718779; }
    .add-member svg { width: 15px; height: 15px; }
    .member-count { color: #8d9991; font-size: 9px; }
    .member-note { margin-top: 14px; padding: 11px 12px; border-radius: 10px; background: #f7f9f6; color: #7f8c83; font-size: 9px; line-height: 1.6; }
    .member-note strong { color: #52665a; }

    .quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .quick-action { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid #edf0eb; border-radius: 11px; background: #fff; color: #748178; transition: .2s; }
    .quick-action:hover { border-color: #cbd9ce; background: #f8faf7; transform: translateY(-2px); }
    .quick-action span { font-size: 9px; font-weight: 600; }
    .quick-action svg { width: 18px; height: 18px; color: #587b65; }
    .panel-footer-link { display: flex; justify-content: center; margin-top: 13px; padding-top: 12px; border-top: 1px solid #f0f2ef; }

    .toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 11px; background: #233f35; color: white; box-shadow: 0 12px 35px rgba(25,50,39,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; }
    .toast.show { opacity: 1; transform: translateY(0); }
    .toast svg { width: 15px; height: 15px; color: #b9d5bf; }
    .modal-backdrop { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(24,36,30,.42); backdrop-filter: blur(4px); }
    .modal-backdrop.open { display: flex; }
    .modal { width: min(420px, 100%); padding: 23px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: white; box-shadow: 0 25px 80px rgba(20,38,29,.22); animation: pop .2s ease; }
    @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
    .modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 19px; }
    .modal-title { margin: 0 0 5px; font: 800 17px 'Manrope', sans-serif; }
    .modal-desc { margin: 0; color: #94a097; font-size: 10px; }
    .modal-close { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f4f6f2; color: #768279; }
    .modal-close svg { width: 15px; height: 15px; }
    .form-field { display: grid; gap: 7px; margin-bottom: 14px; }
    .form-field label { color: #647168; font-size: 10px; font-weight: 700; }
    .form-field input, .form-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e5eae4; border-radius: 9px; outline: 0; background: #fbfcfa; color: #344139; font-size: 11px; }
    .form-field input:focus, .form-field select:focus { border-color: #9bb5a0; box-shadow: 0 0 0 3px #edf4ee; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .modal-submit { width: 100%; height: 43px; margin-top: 5px; border: 0; border-radius: 10px; background: var(--green); color: white; font-size: 11px; font-weight: 700; transition: .2s; }
    .modal-submit:hover { background: #315c4d; }

    @media (max-width: 1180px) {
      .sidebar { width: 220px; }
      .main { margin-left: 220px; padding-right: 25px; padding-left: 25px; }
      .content-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr); }
      .welcome-illustration { margin-right: 0; transform: scale(.9); transform-origin: right center; }
    }
    @media (max-width: 980px) {
      .sidebar { width: 76px; padding: 24px 12px 16px; align-items: center; }
      .brand { padding: 0; margin-bottom: 40px; }
      .brand-copy, .nav-label, .nav-link span, .nav-count, .home-card, .sidebar-profile .profile-copy, .profile-more { display: none; }
      .nav-list { width: 100%; }
      .nav-link { justify-content: center; padding: 0; }
      .nav-link.active::before { left: -12px; }
      .sidebar-profile { padding: 18px 0 0; }
      .main { margin-left: 76px; }
      .content-grid { grid-template-columns: minmax(0, 1fr); }
      .right-column { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
      .right-column .panel:last-child { grid-column: 1 / -1; }
    }
    @media (max-width: 680px) {
      body { background: #f6f7f3; }
      .sidebar { display: none; }
      .main { margin-left: 0; padding: 0 17px 100px; }
      .topbar { height: 66px; border-bottom: 0; }
      .crumb { display: none; }
      .mobile-brand { display: flex; align-items: center; gap: 8px; }
      .mobile-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
      .mobile-brand .brand-mark svg { width: 17px; }
      .mobile-brand .brand-name { font-size: 19px; }
      .topbar-right { gap: 8px; }
      .search-box { width: 36px; height: 36px; justify-content: center; padding: 0; border: 0; background: transparent; }
      .search-box input { display: none; }
      .search-box svg { color: #64736a; }
      .icon-button { width: 36px; height: 36px; border: 0; background: transparent; }
      .top-avatar { width: 33px; height: 33px; }
      .page-heading { align-items: flex-start; margin: 20px 0 17px; }
      .eyebrow { margin-bottom: 6px; font-size: 9px; }
      h1 { font-size: 23px; }
      .heading-desc { max-width: 240px; font-size: 10px; line-height: 1.5; }
      .date-pill { gap: 6px; padding: 8px 9px; font-size: 9px; }
      .date-pill svg { width: 13px; height: 13px; }
      .welcome-banner { min-height: 155px; padding: 20px; border-radius: 16px; }
      .welcome-copy { max-width: 70%; }
      .welcome-tag { margin-bottom: 10px; font-size: 8px; }
      .welcome-title { font-size: 17px; }
      .welcome-subtitle { font-size: 9px; }
      .welcome-illustration { position: absolute; right: -39px; bottom: 8px; width: 165px; transform: scale(.72); transform-origin: bottom right; opacity: .9; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 11px; }
      .stat-card { min-height: 97px; padding: 12px; border-radius: 13px; }
      .stat-top { font-size: 9px; }
      .stat-icon { width: 26px; height: 26px; }
      .stat-value { margin-top: 7px; font-size: 20px; }
      .stat-foot { margin-top: 6px; font-size: 8px; }
      .content-grid { gap: 12px; margin-top: 12px; }
      .column { gap: 12px; }
      .panel { padding: 15px; border-radius: 14px; }
      .panel-header { margin-bottom: 13px; }
      .panel-title { font-size: 12px; }
      .panel-subtitle { font-size: 9px; }
      .task-summary { margin-bottom: 10px; padding: 10px; }
      .task-summary strong { font-size: 10px; }
      .task-summary span { font-size: 9px; }
      .task-item { min-height: 52px; gap: 9px; }
      .task-name { font-size: 10px; }
      .priority { font-size: 7px; }
      .right-column { grid-template-columns: minmax(0,1fr); gap: 12px; }
      .right-column .panel:last-child { grid-column: auto; }
      .mobile-bottom { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e8ece7; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
      .mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; border: 0; background: transparent; color: #9aa49d; font-size: 8px; font-weight: 600; }
      .mobile-nav-item svg { width: 18px; height: 18px; stroke-width: 1.8; }
      .mobile-nav-item.active { color: var(--green); }
      .mobile-nav-item.active svg { stroke-width: 2.2; }
      .toast { right: 16px; bottom: 78px; left: 16px; justify-content: center; }
    }
    @media (max-width: 380px) {
      .main { padding-right: 13px; padding-left: 13px; }
      .date-pill { font-size: 8px; }
      .welcome-illustration { right: -52px; opacity: .75; }
      .welcome-copy { max-width: 76%; }
      .welcome-title { font-size: 16px; }
      .stat-card { padding: 10px; }
      .stat-value { font-size: 18px; }
    }


    /* Dashboard Homely: menu utama dan ringkasan rumah */
    .welcome-banner { margin-top: 24px; }
    .menu-section { margin-top: 21px; }
    .menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
    .menu-card { min-width: 0; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 8px 5px; border: 0; border-radius: 0; background: transparent; color: #64736a; text-align: center; box-shadow: none; transition: color .2s ease, transform .2s ease; }
    .menu-card:hover { transform: translateY(-3px); border-color: transparent; background: transparent; color: var(--green); }
    .menu-card.active { color: var(--green); }
    .menu-card > span:last-child { min-width: 0; max-width: 100%; font-size: 10px; font-weight: 700; line-height: 1.35; }
    .menu-icon { width: auto; height: auto; flex: 0 0 auto; display: grid; place-items: center; border-radius: 0; background: transparent !important; }
    .menu-icon svg { width: 25px; height: 25px; stroke-width: 1.75; }
    .menu-green { color: #557d62; }
    .menu-pink { color: #c17f78; }
    .menu-blue { color: #7194b0; }
    .menu-orange { color: #c58965; }
    .menu-lilac { color: #8c7cae; }
    .menu-yellow { color: #b99550; }
    .menu-teal { color: #608e86; }
    .menu-neutral { color: #7b8980; }

    .dashboard-sections { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 15px; margin-top: 16px; align-items: stretch; }
    .dashboard-panel { min-width: 0; padding: 19px; }
    .agenda-progress { margin: -2px 0 9px; padding: 11px 12px; border-radius: 10px; background: #f7f9f6; }
    .agenda-progress-copy { display: flex; align-items: center; justify-content: space-between; color: #89958d; font-size: 10px; }
    .agenda-progress-copy strong { color: #526157; font: 700 11px 'Manrope', sans-serif; }
    .agenda-progress .progress-track { margin-top: 8px; }
    .agenda-progress .progress-fill { width: 25%; }
    .agenda-list .task-item { min-height: 58px; }
    .agenda-list .task-check { width: 19px; height: 19px; border-radius: 6px; }
    .agenda-list .task-name { font-size: 11px; }
    .agenda-status { padding: 5px 7px; border-radius: 6px; background: #f4f5f2; color: #929d95; font-size: 8px; font-weight: 700; white-space: nowrap; }
    .agenda-status.status-done { background: #edf4ed; color: #6f9277; }
    .agenda-list .task-item.done .agenda-status { background: #edf4ed; color: #6f9277; }

    .bill-list { display: grid; }
    .bill-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #f0f2ef; }
    .bill-item:first-child { padding-top: 1px; }
    .bill-item:last-child { padding-bottom: 1px; border-bottom: 0; }
    .bill-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }
    .bill-icon svg { width: 16px; height: 16px; }
    .bill-electric { background: #fbf4e6; color: #b99550; }
    .bill-internet { background: #edf3f8; color: #7194b0; }
    .bill-water { background: #eaf3f6; color: #6c9ca6; }
    .bill-home { background: #eff4ed; color: #789477; }
    .bill-copy { min-width: 0; flex: 1; }
    .bill-name { overflow: hidden; color: #455249; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .bill-due { margin-top: 4px; color: #9aa49d; font-size: 9px; }
    .bill-due.due-today { color: #c17b62; font-weight: 700; }
    .bill-amount-wrap { display: grid; justify-items: end; gap: 5px; flex: 0 0 auto; }
    .bill-amount-wrap strong { color: #445148; font-size: 10px; white-space: nowrap; }
    .bill-state { padding: 4px 6px; border-radius: 5px; font-size: 8px; font-weight: 700; white-space: nowrap; }
    .bill-state.unpaid { background: #fbefeb; color: #bd7965; }
    .bill-state.upcoming { background: #f3f5f1; color: #87948a; }

    .wealth-panel { position: relative; overflow: hidden; border-color: #23483e; background: #23483e; color: #fff; }
    .wealth-panel::after { content: ''; position: absolute; top: -88px; right: -50px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; pointer-events: none; }
    .wealth-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #c5d5cb; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
    .wealth-topline > span { display: flex; align-items: center; gap: 7px; }
    .wealth-topline svg { width: 15px; height: 15px; }
    .wealth-more { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; background: rgba(255,255,255,.07); color: #d4e0d8; }
    .wealth-amount { position: relative; z-index: 1; margin-top: 19px; font: 800 clamp(21px, 2.1vw, 27px)/1.2 'Manrope', sans-serif; letter-spacing: -.9px; overflow-wrap: anywhere; }
    .wealth-caption { position: relative; z-index: 1; margin-top: 6px; color: #bdcec3; font-size: 10px; }
    .wealth-divider { height: 1px; margin: 18px 0 13px; background: rgba(255,255,255,.14); }
    .wealth-breakdown { display: grid; gap: 10px; }
    .wealth-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #bfd0c5; font-size: 10px; }
    .wealth-breakdown strong { color: #fff; font-size: 10px; font-weight: 700; }
    .wealth-breakdown .wealth-liability { color: #f0c2ac; }
    .wealth-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); color: #bcd0c2; font-size: 9px; }
    .wealth-foot span { display: flex; align-items: center; gap: 6px; }
    .wealth-foot span svg { width: 13px; height: 13px; color: #b7d4bc; }
    .wealth-foot button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #fff; font-size: 9px; font-weight: 700; }
    .wealth-foot button svg { width: 12px; height: 12px; }

    .transaction-list { display: grid; }
    .transaction-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #f0f2ef; }
    .transaction-item:first-child { padding-top: 1px; }
    .transaction-item:last-child { padding-bottom: 1px; border-bottom: 0; }
    .transaction-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; }
    .transaction-icon svg { width: 16px; height: 16px; }
    .transaction-expense { background: #fbf0e9; color: #c68765; }
    .transaction-income { background: #edf4ed; color: #6f9577; }
    .transaction-bill { background: #edf3f8; color: #7795af; }
    .transaction-copy { min-width: 0; flex: 1; }
    .transaction-name { overflow: hidden; color: #455249; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .transaction-meta { overflow: hidden; margin-top: 4px; color: #9ba59e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .transaction-value { flex: 0 0 auto; font-size: 9px; white-space: nowrap; }
    .expense-value { color: #bd806b; }
    .income-value { color: #6e9877; }

    @media (max-width: 1180px) {
      .menu-grid { gap: 17px 9px; }
      .menu-card { padding: 8px 4px; gap: 8px; }
      .menu-card > span:last-child { font-size: 9px; }
      .dashboard-sections { gap: 12px; }
      .dashboard-panel { padding: 16px; }
    }
    @media (max-width: 980px) {
      .dashboard-sections { grid-template-columns: minmax(0, 1fr); }
      .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    @media (max-width: 680px) {
      .welcome-banner { margin-top: 10px; }
      .menu-section { margin-top: 13px; }
      .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 5px; }
      .menu-card { min-height: 72px; gap: 7px; padding: 7px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
      .menu-icon { width: auto; height: auto; border-radius: 0; }
      .menu-icon svg { width: 23px; height: 23px; }
      .menu-card > span:last-child { display: block; width: 100%; font-size: 8px; line-height: 1.25; overflow-wrap: anywhere; }
      .dashboard-sections { grid-template-columns: minmax(0, 1fr); gap: 11px; margin-top: 12px; }
      .dashboard-panel { padding: 15px; border-radius: 14px; }
      .agenda-list .task-item { min-height: 54px; }
      .bill-item, .transaction-item { gap: 8px; }
      .bill-icon, .transaction-icon { width: 33px; height: 33px; }
      .bill-name, .transaction-name { font-size: 9px; }
      .bill-amount-wrap strong { font-size: 9px; }
      .transaction-value { font-size: 8px; }
      .wealth-amount { font-size: 23px; }
    }
    @media (max-width: 360px) {
      .menu-grid { gap: 10px 3px; }
      .menu-card { min-height: 68px; }
      .menu-icon svg { width: 21px; height: 21px; }
      .menu-card > span:last-child { font-size: 7.5px; }
      .bill-state { font-size: 7px; }
      .wealth-amount { font-size: 21px; }
    }


    /* SPA modules */
    [hidden] { display: none !important; }
    .spa-page { padding: 28px 0 42px; animation: spaIn .24s ease both; }
    @keyframes spaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    .spa-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
    .spa-kicker { margin-bottom: 7px; color: #8d9a91; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; }
    .spa-title { margin: 0; color: var(--ink); font: 800 25px/1.2 'Manrope', sans-serif; letter-spacing: -.8px; }
    .spa-description { max-width: 560px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
    .spa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .btn-primary, .btn-secondary, .btn-soft, .btn-danger { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 700; transition: .2s ease; }
    .btn-primary { background: var(--green); color: white; }
    .btn-primary:hover { background: #315c4d; transform: translateY(-1px); }
    .btn-secondary { border-color: #e5ebe5; background: white; color: #5c6c61; }
    .btn-secondary:hover { background: #f8faf7; border-color: #cad8cc; }
    .btn-soft { background: #edf4ee; color: #587b62; }
    .btn-danger { background: #fbefec; color: #b97965; }
    .btn-primary svg, .btn-secondary svg, .btn-soft svg, .btn-danger svg { width: 14px; height: 14px; }
    .spa-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
    .spa-stat { min-width: 0; padding: 16px; border: 1px solid #e9ede8; border-radius: 14px; background: white; box-shadow: var(--shadow); }
    .spa-stat-label { display: flex; align-items: center; gap: 7px; color: #87948b; font-size: 9px; font-weight: 600; }
    .spa-stat-label svg { width: 14px; height: 14px; }
    .spa-stat-value { margin-top: 10px; color: #314138; font: 800 19px/1.2 'Manrope', sans-serif; letter-spacing: -.5px; overflow-wrap: anywhere; }
    .spa-stat-note { margin-top: 5px; color: #9ba69e; font-size: 8px; }
    .spa-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(250px,.7fr); gap: 15px; align-items: start; }
    .spa-stack { display: grid; gap: 14px; min-width: 0; }
    .spa-card { min-width: 0; padding: 18px; border: 1px solid #e9ede8; border-radius: 15px; background: white; box-shadow: var(--shadow); }
    .spa-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .spa-card-title { margin: 0; color: #35443b; font: 800 12px 'Manrope', sans-serif; }
    .spa-card-subtitle { margin: 5px 0 0; color: #9aa49d; font-size: 9px; }
    .spa-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf4ee; color: #64846b; }
    .spa-card-icon svg { width: 17px; height: 17px; }
    .spa-list { display: grid; }
    .spa-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #f0f2ef; }
    .spa-row:first-child { padding-top: 2px; }
    .spa-row:last-child { padding-bottom: 2px; border-bottom: 0; }
    .spa-row-main { min-width: 0; flex: 1; }
    .spa-row-title { overflow: hidden; color: #455249; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .spa-row-meta { margin-top: 4px; color: #9ba59e; font-size: 8px; line-height: 1.5; }
    .spa-row-value { flex: 0 0 auto; color: #4c5a51; font-size: 10px; font-weight: 700; white-space: nowrap; }
    .spa-row-actions { display: flex; align-items: center; gap: 5px; }
    .mini-icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #edf0eb; border-radius: 8px; background: white; color: #849188; }
    .mini-icon-btn:hover { background: #f6f8f5; color: var(--green); }
    .mini-icon-btn svg { width: 13px; height: 13px; }
    .status-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 5px; background: #f1f4ef; color: #829087; font-size: 8px; font-weight: 700; white-space: nowrap; }
    .status-pill.success { background: #edf4ed; color: #6f9277; }
    .status-pill.warning { background: #fbf1e8; color: #bd8860; }
    .status-pill.danger { background: #fbefeb; color: #bd7965; }
    .status-pill.info { background: #edf3f8; color: #7795af; }
    .module-task .task-item { min-height: 59px; }
    .module-task .task-name { font-size: 10px; }
    .module-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
    .filter-chip { min-height: 29px; padding: 0 10px; border: 1px solid #e9ede8; border-radius: 7px; background: #fff; color: #839087; font-size: 9px; font-weight: 600; }
    .filter-chip.active { border-color: #d4e2d6; background: #edf4ee; color: #557b60; }
    .empty-module { padding: 28px 12px; color: #9aa49d; font-size: 10px; text-align: center; }
    .empty-module svg { display: block; width: 24px; height: 24px; margin: 0 auto 9px; color: #aab7ad; }
    .wish-grid, .more-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
    .wish-card { padding: 15px; border: 1px solid #e9ede8; border-radius: 14px; background: white; box-shadow: var(--shadow); }
    .wish-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .wish-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #faeeed; color: #c17f78; }
    .wish-icon svg { width: 16px; height: 16px; }
    .wish-title { margin: 13px 0 5px; color: #445249; font: 700 11px 'Manrope', sans-serif; }
    .wish-meta { color: #98a39b; font-size: 9px; }
    .wish-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #f0f2ef; }
    .wish-price { color: #526157; font-size: 10px; font-weight: 700; }
    .calendar-day { margin: 0 0 11px; color: #8b978f; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
    .event-row { display: grid; grid-template-columns: 58px 3px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f0f2ef; }
    .event-row:last-child { border-bottom: 0; }
    .event-time { color: #6e7c72; font-size: 9px; font-weight: 700; }
    .event-bar { width: 3px; height: 37px; border-radius: 3px; background: #d9e7db; }
    .event-bar.orange { background: #f0d8ca; }
    .event-bar.blue { background: #d9e5ee; }
    .event-title { color: #455249; font-size: 10px; font-weight: 700; }
    .event-meta { margin-top: 4px; color: #9ba59e; font-size: 8px; }
    .repair-state { min-width: 68px; text-align: center; }
    .faq-list { display: grid; gap: 8px; }
    .faq-list details { padding: 13px 14px; border: 1px solid #edf0eb; border-radius: 10px; background: #fff; }
    .faq-list summary { color: #4b5a50; font-size: 10px; font-weight: 700; cursor: pointer; }
    .faq-list details p { margin: 9px 0 0; color: #8d9991; font-size: 9px; line-height: 1.7; }
    .more-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid #e9ede8; border-radius: 13px; background: white; color: #526157; text-align: left; box-shadow: var(--shadow); transition: .2s; }
    .more-card:hover { border-color: #cfdbd0; transform: translateY(-2px); }
    .more-card .spa-card-icon { flex: 0 0 auto; }
    .more-card-copy { min-width: 0; flex: 1; }
    .more-card-copy strong { display: block; color: #455249; font-size: 10px; }
    .more-card-copy small { display: block; margin-top: 4px; color: #9ba59e; font-size: 8px; line-height: 1.45; }
    .report-bars { display: grid; gap: 13px; }
    .report-bar-row { display: grid; grid-template-columns: 78px minmax(0,1fr) 88px; align-items: center; gap: 10px; color: #8b978f; font-size: 9px; }
    .report-track { height: 8px; overflow: hidden; border-radius: 20px; background: #eef2ed; }
    .report-track span { display: block; height: 100%; border-radius: inherit; background: #76977d; }
    .report-bar-row strong { color: #526157; font-size: 9px; text-align: right; }
    .settings-form { display: grid; gap: 14px; }
    .settings-field { display: grid; gap: 6px; }
    .settings-field label { color: #738078; font-size: 9px; font-weight: 700; }
    .settings-field input, .settings-field select { height: 39px; padding: 0 11px; border: 1px solid #e6ebe5; border-radius: 8px; outline: 0; background: #fbfcfa; color: #405047; font-size: 10px; }
    .settings-field input:focus, .settings-field select:focus { border-color: #9bb5a0; }
    .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2ef; color: #627067; font-size: 10px; }
    .switch-row input { accent-color: var(--green); }
    .avatar-small { width: 34px; height: 34px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: #eee9e1; }
    .avatar-small img { width: 100%; height: 100%; object-fit: cover; }
    .muted-note { color: #9ba59e; font-size: 9px; line-height: 1.65; }
    .search-box.is-open { width: 235px; }
    .search-box.is-open input { display: block; }
    @media (max-width: 980px) {
      .spa-layout { grid-template-columns: minmax(0,1fr); }
      .spa-layout .spa-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    }
    @media (max-width: 680px) {
      .spa-page { padding: 20px 0 32px; }
      .spa-page-head { flex-direction: column; gap: 13px; margin-bottom: 16px; }
      .spa-title { font-size: 22px; }
      .spa-description { font-size: 10px; }
      .spa-actions { width: 100%; }
      .spa-actions .btn-primary, .spa-actions .btn-secondary { flex: 1; }
      .spa-stats { gap: 8px; margin-bottom: 11px; }
      .spa-stat { padding: 12px 10px; border-radius: 12px; }
      .spa-stat-label { gap: 5px; font-size: 8px; }
      .spa-stat-value { font-size: 15px; }
      .spa-stat-note { font-size: 7px; }
      .spa-layout { gap: 11px; }
      .spa-layout .spa-side { grid-template-columns: minmax(0,1fr); }
      .spa-card { padding: 15px; border-radius: 13px; }
      .wish-grid, .more-grid { gap: 9px; }
      .wish-card { padding: 12px; }
      .more-card { padding: 12px; gap: 9px; }
      .report-bar-row { grid-template-columns: 65px minmax(0,1fr) 75px; gap: 7px; }
      .search-box.is-open { position: absolute; top: 67px; left: 17px; right: 17px; z-index: 60; width: auto; height: 42px; padding: 0 12px; border: 1px solid #e5ebe5; border-radius: 10px; background: white; box-shadow: var(--shadow); }
      .search-box.is-open input { display: block; }
    }

/* Shared PHP template refinements: navigation elements remain visually identical. */
.nav-link, .mobile-nav-item { text-decoration: none; }
.nav-link { font-family: inherit; }
.app-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 34px; padding: 17px 2px 4px; border-top: 1px solid var(--line);
  color: #9aa49d; font-size: 10px;
}
.app-footer strong { color: #6f7d73; font-weight: 700; }
.app-footer a { color: var(--green); text-decoration: none; font-weight: 700; }
@media (max-width: 680px) {
  .app-footer { margin-top: 24px; padding-bottom: 4px; font-size: 9px; }
}

