/* TASK-058, palette pass. Surface colors sampled from both approved PNGs.
   Home surfaces and reference artwork; geometry is defined in home.css. */
.dashboard-home {
  --aqua: #00f5ee;
  --home-border: #07515c;
  --home-muted: #accbd8;
  color: #f0f5fa;
  background:
    radial-gradient(ellipse at 60% 0, #00526133, transparent 45%),
    linear-gradient(180deg, #001e27 0, #001820 45%, #010e13 100%);
}
.dashboard-home .home-topbar {
  background:
    radial-gradient(ellipse at 53% 0, #07596b77, transparent 70%),
    linear-gradient(100deg, #00171d, #03313b 52%, #00131a);
  border-bottom-color: #073740;
  box-shadow: 0 1px 0 #00101588;
}
.dashboard-home .home-main {
  position: relative;
  isolation: isolate;
}
.dashboard-home .home-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(161deg, transparent 36%, #16869788 36.15%, transparent 36.4%) calc(250 * var(--home-unit)) 0 / calc(950 * var(--home-unit)) calc(94 * var(--home-unit)) no-repeat,
    radial-gradient(ellipse at 45% -8%, #006b791a, transparent 48%);
}
.dashboard-home .home-search form {
  background: linear-gradient(110deg, #00202b, #033440b3);
  border-color: #336674;
  box-shadow: inset 0 1px calc(2 * var(--home-unit)) #0009, 0 1px 0 #53e9f008;
}
.dashboard-home .home-search input { color: #d5e4ed; }
.dashboard-home .home-search input::placeholder { color: #b4cbd6; }
.dashboard-home .home-search kbd { background: #19424f; color: #c7dce8; }
.dashboard-home .home-sidebar {
  background:
    radial-gradient(ellipse at 5% 56%, #00344155, transparent 75%),
    linear-gradient(155deg, #001d25, #00151d 62%, #010e14);
  border-right-color: #07313b;
}
.dashboard-home .home-nav.active,
.dashboard-home.drawer-open .home-sidebar [data-open-settings] {
  background: linear-gradient(90deg, #02616a99, #00323b 32%, #032a32 100%);
  border-left-color: #00f3ef;
  box-shadow: inset calc(6 * var(--home-unit)) 0 calc(9 * var(--home-unit)) calc(-3 * var(--home-unit)) #00fcffb3, inset 0 1px 0 #07d4e52b;
}
.dashboard-home .home-nav.active .icon,
.dashboard-home.drawer-open .home-sidebar [data-open-settings] .icon {
  color: #00f6f3;
  filter: drop-shadow(0 0 calc(5 * var(--home-unit)) #00dfe4aa);
}
.dashboard-home .home-mountains {
  opacity: 1;
  background-image: url('art/mountains.png?v=20260926-4');
  background-size: 100% auto;
  background-position: center bottom;
  /* Preserve the source mountain faces; fade only the surrounding sky/foot. */
  mask-image: linear-gradient(transparent, #000 7%, #000 95%, transparent);
}
@media (min-width: 801px) {
  .dashboard-home .home-mountains { height: calc(207 * var(--home-unit)); bottom: calc(120 * var(--home-unit)); }
}
.dashboard-home .home-heading h1 {
  color: #f4f7fc;
  text-shadow: 0 calc(2 * var(--home-unit)) calc(3 * var(--home-unit)) #0009;
}
.dashboard-home .home-heading p { color: #b4d2df; }
.dashboard-home .kpi-card {
  background:
    radial-gradient(ellipse at 12% 0, #03505a22, transparent 75%),
    linear-gradient(145deg, #00242d, #001f26 65%, #00242a);
  border-color: #07535f;
  border-top-color: #087180;
  border-left-color: #096475;
  box-shadow: inset 0 1px 0 #45dbe023, 0 1px calc(3 * var(--home-unit)) #0007, 0 calc(4 * var(--home-unit)) calc(10 * var(--home-unit)) #00000024;
}
.dashboard-home .kpi-value {
  color: #f3f5fd;
  text-shadow: 0 calc(2 * var(--home-unit)) calc(3 * var(--home-unit)) #000a;
}
html[data-theme=dark] .dashboard-home .positive { color: #00ffea !important; }
html[data-theme=dark] .dashboard-home .negative { color: #ff5b51 !important; }
.dashboard-home .icon-tile {
  color: #00f0ee;
  background: linear-gradient(135deg, #004752, #00303b 75%, #002a33);
  box-shadow: inset 0 1px 0 #41d5e01c, 0 calc(3 * var(--home-unit)) calc(8 * var(--home-unit)) #0003;
}
.dashboard-home .icon-tile .icon { filter: drop-shadow(0 0 calc(4 * var(--home-unit)) #00dae26b); }
.dashboard-home .home-panel {
  background: linear-gradient(135deg, #01353f 0, #002027 43%, #00151c 100%);
  border-color: #07545e;
  border-top-color: #116775;
  box-shadow: inset 0 1px 0 #3acee01c, 0 calc(2 * var(--home-unit)) calc(5 * var(--home-unit)) #0006, 0 calc(5 * var(--home-unit)) calc(12 * var(--home-unit)) #0003;
}
.dashboard-home .home-project-card {
  background:
    radial-gradient(ellipse at 85% 0, #17556570, transparent 60%),
    linear-gradient(150deg, #05343d, #00232a 47%, #001b22 80%, #02212a);
  border-color: #185560;
  border-top-color: #337b85;
  border-left-color: #246573;
  box-shadow: inset 0 1px 0 #81dae02a, inset 0 -1px 0 #001219aa, 0 calc(4 * var(--home-unit)) calc(8 * var(--home-unit)) #0005;
}
.dashboard-home .home-project-card h3,
.dashboard-home .section-heading h2 { text-shadow: 0 1px calc(2 * var(--home-unit)) #000a; }
.dashboard-home .home-values dt { color: #d0e3ed; }
.dashboard-home .home-values dd { color: #f4f7fc; text-shadow: 0 1px 0 #0008; }
.dashboard-home .expense-values { border-top-color: #194550; }
.dashboard-home .project-status {
  background: linear-gradient(#00514d, #002f33);
  border-color: #00988d;
  color: #00ffdc;
  box-shadow: inset 0 1px 1px #00d1ba30, 0 0 calc(4 * var(--home-unit)) #00d2bc20;
}
.dashboard-home .project-status.inactive {
  background: linear-gradient(#144551, #10333f);
  border-color: #396774;
  color: #b5d8e9;
}
.dashboard-home .project-art { opacity: 1; filter: saturate(1.06) contrast(1.03); }
.dashboard-home .financing-progress,
.dashboard-home .empty-progress,
.dashboard-home .financing-progress::-webkit-progress-bar {
  background: #123a43;
  box-shadow: inset 0 1px calc(3 * var(--home-unit)) #0007;
}
.dashboard-home .financing-progress::-webkit-progress-value {
  background: linear-gradient(#46f8ff, #03d4e1);
  border-top-color: #a7f9ff;
  box-shadow: 0 0 calc(6 * var(--home-unit)) #00ebee55;
}
.dashboard-home .financing-progress::-moz-progress-bar { background: linear-gradient(#46f8ff, #03d4e1); }
.dashboard-home .outline-button {
  background: linear-gradient(180deg, #003642, #002630 60%, #00202a);
  border-color: #00d1df;
  box-shadow: inset 0 1px 0 #63e9f02b, inset 0 0 0 1px #00232b, 0 calc(2 * var(--home-unit)) calc(5 * var(--home-unit)) #0006;
  color: #f3f7fb;
}
.dashboard-home .outline-button:hover { background: linear-gradient(#054d59, #01353e); }
.dashboard-home .quick-actions .outline-button { border-color: #076676; }
.dashboard-home .bank-balance {
  background: linear-gradient(115deg, #123640, #062831 70%, #00333c);
  border-color: #164653;
  box-shadow: inset 0 1px 0 #43b7c513;
}
.dashboard-home .bank-balance strong { text-shadow: 0 1px calc(3 * var(--home-unit)) #000b; }
.dashboard-home .bank-refresh {
  background: linear-gradient(105deg, #04f1f0, #00dce7 55%, #00bdcf);
  border-color: #02dce6;
  box-shadow: inset 0 1px 0 #abffff66, 0 0 calc(10 * var(--home-unit)) #00dbe71a;
}
.dashboard-home .bank-refresh:disabled { opacity: .9; }
.dashboard-home .attention-item {
  background: linear-gradient(110deg, #382d36, #222830 60%, #09232b);
  border-color: #42313b;
  color: #ff645a;
  box-shadow: inset 0 1px 0 #cb667012;
}
.dashboard-home .home-table th {
  background: linear-gradient(#06323c, #052832);
  color: #b1cfde;
  border-bottom: 1px solid #07303a;
}
.dashboard-home .home-table td { border-bottom-color: #0c3039; }
.dashboard-home .operation-status { color: #00ecd1; }
.dashboard-home .operation-status.pending { color: #ffc343; }
.dashboard-home .appearance-drawer {
  background: linear-gradient(115deg, #011a22 0, #031b23 45%, #00161d);
  border-color: #245766;
  box-shadow: calc(-10 * var(--home-unit)) calc(4 * var(--home-unit)) calc(26 * var(--home-unit)) #0006, inset 1px 0 0 #61c9d40a;
}
.dashboard-home .settings-navigation .selected {
  background: linear-gradient(110deg, #053d46, #06303a 80%);
  border-color: #0a424d;
  border-left-color: #00f8f5;
  box-shadow: calc(-4 * var(--home-unit)) 0 calc(9 * var(--home-unit)) #00e5ec26, inset 0 1px 0 #00bdca12;
}
.dashboard-home .settings-trigger {
  background: linear-gradient(125deg, #01333c, #00171f);
  border-color: #00c5d3;
  box-shadow: inset 0 0 calc(12 * var(--home-unit)) #00c8d321, 0 0 calc(10 * var(--home-unit)) #00c2d212;
}
.dashboard-home .tile-dark {
  background: radial-gradient(ellipse at 50% 0, #01404a66, transparent 70%), #001d26;
}
.dashboard-home .tile-light {
  background: linear-gradient(135deg, #fff, #f5f9fe);
  border-color: #c6e0e8;
  box-shadow: inset 0 0 calc(3 * var(--home-unit)) white, 0 calc(3 * var(--home-unit)) calc(9 * var(--home-unit)) #0004;
}
.dashboard-home .theme-tile[aria-pressed=true] {
  border-color: #00fcf5;
  box-shadow: 0 0 0 1px #006d7966, 0 0 calc(15 * var(--home-unit)) #00ced740, inset 0 0 calc(15 * var(--home-unit)) #00cdd22e;
}
.dashboard-home .settings-note {
  background: linear-gradient(110deg, #103341, #092732);
  border-color: #204a59;
  box-shadow: inset 0 1px 1px #7accdc0a;
}

/* In the light reference, the canvas/chrome stay dark; the surfaces turn white. */
html[data-theme=light] .dashboard-home {
  background:
    radial-gradient(ellipse at 55% 8%, #19505c33, transparent 62%),
    linear-gradient(135deg, #092b36, #082c37 55%, #04222c);
  color: #edf6ff;
}
html[data-theme=light] .dashboard-home .home-topbar {
  background:
    radial-gradient(ellipse at 52% 0, #226b7870, transparent 76%),
    linear-gradient(100deg, #031b24, #104350 55%, #041a23);
  border-color: #24515d;
}
html[data-theme=light] .dashboard-home .home-main { background: transparent; color: #0a1048; }
html[data-theme=light] .dashboard-home .home-main::before {
  background:
    linear-gradient(161deg, transparent 36%, #43a6bb99 36.15%, transparent 36.4%) calc(250 * var(--home-unit)) 0 / calc(1000 * var(--home-unit)) calc(98 * var(--home-unit)) no-repeat,
    radial-gradient(ellipse at 30% 0, #4694a20c, transparent 60%);
}
html[data-theme=light] .dashboard-home .home-heading h1 { color: #f4f7ff; }
html[data-theme=light] .dashboard-home .home-heading p { color: #d0e3f0; }
html[data-theme=light] .dashboard-home .kpi-card {
  background: linear-gradient(135deg, #f9fcff, #f2f7fc 60%, #f5faff);
  border-color: #e6f4fa;
  color: #090e44;
  box-shadow: inset 0 1px 1px #fff, 0 calc(4 * var(--home-unit)) calc(13 * var(--home-unit)) #051c283b, 0 1px calc(5 * var(--home-unit)) #84eaff24;
}
html[data-theme=light] .dashboard-home .home-panel {
  background: linear-gradient(135deg, #f8fcff 0, #edf5f9 60%, #e5f4f9);
  border-color: #d5edf5;
  color: #090f46;
  box-shadow: inset 0 1px 1px #fff, 0 calc(5 * var(--home-unit)) calc(14 * var(--home-unit)) #001a2b40, 0 0 calc(7 * var(--home-unit)) #8ae8ff21;
}
html[data-theme=light] .dashboard-home .home-project-card {
  background: linear-gradient(140deg, #fff, #f8fcfe 58%, #effbfe);
  border-color: #dbeaf2;
  color: #102357;
  box-shadow: inset 0 1px 0 #fff, 0 calc(5 * var(--home-unit)) calc(8 * var(--home-unit)) #51879b24;
}
html[data-theme=light] .dashboard-home .kpi-value {
  color: #080d43;
  text-shadow: 0 1px 0 white;
}
html[data-theme=light] .dashboard-home .kpi-heading h2,
html[data-theme=light] .dashboard-home .section-heading h2,
html[data-theme=light] .dashboard-home .home-project-card h3,
html[data-theme=light] .dashboard-home .project-result dt { color: #080e45; text-shadow: none; }
html[data-theme=light] .dashboard-home .home-main .positive { color: #00a37d !important; }
html[data-theme=light] .dashboard-home .home-main .negative { color: #ff202b !important; }
html[data-theme=light] .dashboard-home .home-values dt,
html[data-theme=light] .dashboard-home .project-card-heading p,
html[data-theme=light] .dashboard-home .kpi-card p,
html[data-theme=light] .dashboard-home .owners-totals small,
html[data-theme=light] .dashboard-home .bank-identity small { color: #496d9a; }
html[data-theme=light] .dashboard-home .home-values dd { color: #244572; text-shadow: none; }
html[data-theme=light] .dashboard-home .expense-values { border-color: #dfebf3; }
html[data-theme=light] .dashboard-home .icon-tile {
  background: linear-gradient(135deg, #d8fcff, #cef7fb);
  color: #00a8ca;
  box-shadow: inset 0 1px 0 #fff8;
}
html[data-theme=light] .dashboard-home .icon-tile .icon { filter: none; }
html[data-theme=light] .dashboard-home .project-status {
  color: #009d7f;
  background: linear-gradient(#c6fff0, #d3fbf2);
  border-color: #c5f4e9;
  box-shadow: none;
}
html[data-theme=light] .dashboard-home .project-status.inactive {
  color: #24609c;
  background: #d6ecff;
  border-color: #cee5fa;
}
html[data-theme=light] .dashboard-home .outline-button {
  color: #14345e;
  background: linear-gradient(170deg, #fff, #e1f8fc 65%, #cff1f8);
  border-color: #00cbe0;
  box-shadow: inset 0 0 0 1px #fff, 0 calc(2 * var(--home-unit)) calc(4 * var(--home-unit)) #5f99b018;
}
html[data-theme=light] .dashboard-home .outline-button:hover { background: linear-gradient(#f2feff, #c5f4fb); }
html[data-theme=light] .dashboard-home .outline-button .icon { color: #00aaca; }
html[data-theme=light] .dashboard-home .quick-actions .outline-button {
  border-color: #d0e8f1;
  background: linear-gradient(#fff, #f0f8fc);
}
html[data-theme=light] .dashboard-home .home-main .section-heading a,
html[data-theme=light] .dashboard-home .operation-project { color: #0097c5; }
html[data-theme=light] .dashboard-home .financing-progress,
html[data-theme=light] .dashboard-home .empty-progress,
html[data-theme=light] .dashboard-home .financing-progress::-webkit-progress-bar {
  background: #e6f2f7;
  box-shadow: none;
}
html[data-theme=light] .dashboard-home .financing-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #08a5ce, #00e5e2);
  border-top-color: #74eff3;
  box-shadow: none;
}
html[data-theme=light] .dashboard-home .financing-progress::-moz-progress-bar { background: linear-gradient(90deg, #08a5ce, #00e5e2); }
html[data-theme=light] .dashboard-home .bank-balance {
  background: linear-gradient(125deg, #f8fcfe, #e8f7fc);
  border-color: #e0eef6;
  box-shadow: inset 0 1px 0 #fff;
}
html[data-theme=light] .dashboard-home .bank-balance strong { color: #080e45; text-shadow: none; }
html[data-theme=light] .dashboard-home .bank-balance span,
html[data-theme=light] .dashboard-home .bank-balance small,
html[data-theme=light] .dashboard-home .sync-note { color: #496a96; }
html[data-theme=light] .dashboard-home .bank-refresh { color: #002843; }
html[data-theme=light] .dashboard-home .attention-item {
  background: linear-gradient(115deg, #ffedf1, #fff2f3);
  border-color: #ffebf0;
  color: #ff1425;
  box-shadow: inset 0 1px 0 #fff;
}
html[data-theme=light] .dashboard-home .home-table th {
  background: linear-gradient(#f0f7fb, #eaf3f9);
  color: #50749c;
  border-bottom-color: #dcebf3;
}
html[data-theme=light] .dashboard-home .home-table td { border-bottom-color: #dcebf3; color: #284c7a; }
html[data-theme=light] .dashboard-home .home-table .operation-project { color: #0097c5; }
html[data-theme=light] .dashboard-home .operation-status { color: #00a58b; }
html[data-theme=light] .dashboard-home .operation-status.pending { color: #c28b0c; }
html[data-theme=light] .dashboard-home .period-picker { color: #bdd9e6; }
html[data-theme=light] .dashboard-home .period-form,
html[data-theme=light] .dashboard-home .period-picker .home-values dd,
html[data-theme=light] .dashboard-home .period-picker .home-values dt { color: #d0e4ed; }
/* Keep the reference's rounded active-menu edge inside the sidebar. */
.dashboard-home .home-sidebar nav { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.dashboard-home .home-nav { min-width: 0; gap: calc(17 * var(--home-unit)); padding-left: calc(24 * var(--home-unit)); padding-right: calc(10 * var(--home-unit)); }
.dashboard-home .home-nav[href*="distribution_status"] { gap: calc(10 * var(--home-unit)); font-size: calc(12 * var(--home-unit)); }
.dashboard-home .nav-count { flex-shrink: 0; }
.dashboard-home .home-nav.active,
.dashboard-home.drawer-open .home-sidebar [data-open-settings] {
  border-radius: 0 calc(9 * var(--home-unit)) calc(9 * var(--home-unit)) 0;
  background: linear-gradient(90deg, #007e8666, #03424d 23%, #032d36 77%, #022730);
  box-shadow: inset calc(6 * var(--home-unit)) 0 calc(10 * var(--home-unit)) calc(-3 * var(--home-unit)) #00ffffc4, inset 0 1px 0 #00dce844;
}
@media (max-width: 800px) {
  .dashboard-home .home-nav { padding-left: calc(12 * var(--home-unit)); }
}
.dashboard-home .project-art.art-1 { background-image: url('art/project-1.png?v=20260926-4'); }
.dashboard-home .project-art.art-2 { background-image: url('art/project-2.png?v=20260926-4'); }
.dashboard-home .project-art.art-3 { background-image: url('art/project-3.png?v=20260926-4'); }

/* Separate shallow card shadows from the cyan edge light in the reference. */
html[data-theme=light] .dashboard-home .home-panel {
  box-shadow:inset 0 1px 0 #fff, 0 calc(3 * var(--home-unit)) calc(8 * var(--home-unit)) #001c2940, 0 0 calc(12 * var(--home-unit)) #78eaff24;
}
html[data-theme=light] .dashboard-home .home-project-card {
  box-shadow:inset 0 1px 0 #fff, 0 calc(3 * var(--home-unit)) calc(7 * var(--home-unit)) #52899e29;
}
html[data-theme=light] .dashboard-home .owner-total { background:linear-gradient(125deg,#f8fcff,#edf8fc); border:1px solid #dfedf5; }
html[data-theme=light] .dashboard-home .owner-debt { background:linear-gradient(125deg,#fff3f5,#ffedf0); border-color:#ffedf0; }
html[data-theme=light] .dashboard-home .owner-debt .icon-tile { background:#ffe9ed; color:#ff2438; }
html[data-theme=light] .dashboard-home .bank-sync,
html[data-theme=light] .dashboard-home .bank-chart-empty,
html[data-theme=light] .dashboard-home .bank-history { color:#496a96; }

/* TASK-058D: compare at 1672x941, 100% browser zoom. Keep a sharp
   physical CSS edge separate from a shallow glow; don't brighten the canvas. */
.dashboard-home .home-mountains {
  width: 272px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 272 / 207;
  right: auto;
  background-size: 100% 100%;
  /* The native PNG already contains the mountain lighting. */
  filter: none;
  opacity: 1;
  mask-image: linear-gradient(transparent, #000 5%, #000 97%, transparent);
  pointer-events: none;
}
.dashboard-home .home-nav .icon,
.dashboard-home .settings-trigger .icon,
.dashboard-home .settings-navigation .icon {
  stroke-width: 1.8;
}
.dashboard-home .home-nav.active,
.dashboard-home.drawer-open .home-sidebar [data-open-settings] {
  box-shadow: inset 4px 0 6px -2px #00f7ff99, inset 0 1px 0 #00dce820;
}
.dashboard-home .home-nav.active .icon,
.dashboard-home.drawer-open .home-sidebar [data-open-settings] .icon {
  filter: drop-shadow(0 0 2px #00e4ed99);
}
html[data-theme=dark] .dashboard-home .outline-button {
  border: 1px solid #007482;
  box-shadow: 0 -1px 0 #005a62, inset 0 1px 0 #001d23, 0 0 4px #00cddd14;
}
html[data-theme=dark] .dashboard-home .outline-button:hover,
html[data-theme=dark] .dashboard-home .outline-button:focus-visible {
  border-color: #00d8e5;
  box-shadow: 0 0 0 1px #005966, 0 0 5px #00d8e52b;
}
html[data-theme=dark] .dashboard-home .quick-actions .outline-button {
  border-color: #086777;
  box-shadow: inset 0 1px 0 #21748133, 0 0 3px #00cddd0c;
}
.dashboard-home .settings-trigger {
  border: 1px solid #00bcca;
  box-shadow: inset 0 0 6px #00c8d31c, 0 0 4px #00c2d218;
}
.dashboard-home .settings-trigger .icon { filter: drop-shadow(0 0 2px #00dfed66); }
.dashboard-home .theme-tile[aria-pressed=true] {
  border-color: #00eef0;
  box-shadow: 0 0 0 1px #006d7966, 0 0 6px #00ced733, inset 0 0 6px #00cdd221;
}
.dashboard-home .size-options button[aria-pressed=true] {
  border: 1px solid #00d9e5;
  box-shadow: inset 0 0 4px #00e9e926, 0 0 2px #00cddd1a;
}
html[data-theme=dark] .dashboard-home .kpi-value,
html[data-theme=dark] .dashboard-home .bank-balance strong,
html[data-theme=dark] .dashboard-home .section-heading h2,
html[data-theme=dark] .dashboard-home .home-project-card h3 {
  text-shadow: 0 1px 0 #0008;
}
html[data-theme=light] .dashboard-home .outline-button {
  border-width: 1px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px #5f99b018;
}
@media (max-width: 800px) {
  .dashboard-home .home-nav.active {
    box-shadow: inset 0 -2px #00f1ec;
  }
}
