/* App dashboard: the dark band with the live background, glass figures and the "what's owed" chart. */
.dh { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: #0a0a0a; color: #fff; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 18px; }
.dh::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 300px at 70% 85%, rgba(200, 75, 31, 0.4), transparent 70%), radial-gradient(420px 240px at 8% 100%, rgba(184, 134, 11, 0.16), transparent 70%); }
.dh #heroFlow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.dh #heroFlow.on { opacity: 0.85; }
.dh .ph-t { color: #fff; font-size: 28px; }
.dh .ph-t em { color: #f08a52; }
.dh .ph-s { color: rgba(255, 255, 255, 0.66); }
.dh .btn { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.dh .btn:hover { background: rgba(255, 255, 255, 0.14); }
.dh .btn-ink { background: #c2410c; border-color: #c2410c; color: #fff; }
.dh .btn-ink:hover { background: #d9541d; }
.dh .kpi { background: rgba(18, 16, 15, 0.72); border-color: rgba(255, 255, 255, 0.13); box-shadow: none; }
.dh .kpi-accent { color: #fff; opacity: 0.07; }
.dh .kpi-label { color: rgba(255, 255, 255, 0.62); }
.dh .kpi-val { color: #fff; }
.dh .kpi-val em { color: #fff; }
.dh .kp { color: #8fd0ad; }
.dh .kn { color: #f0b35a; }
.dh .kpi:last-child { background: linear-gradient(140deg, rgba(200, 75, 31, 0.5), rgba(184, 134, 11, 0.22)); border-color: rgba(240, 138, 82, 0.5); }
.dh-chart { background: rgba(18, 16, 15, 0.78); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 12px; padding: 16px 18px; }
.dh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.dh-head b { font-size: 14px; font-weight: 700; }
.dh-tabs { display: inline-flex; background: rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 3px; }
.dh-tabs button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 7px; font: 500 12.5px var(--ff-body); color: rgba(255, 255, 255, 0.7); }
.dh-tabs button[aria-pressed="true"] { background: #fff; color: #1c1917; font-weight: 700; }
.dh-tabs button:focus-visible { outline: 2px solid #f5a67a; outline-offset: 2px; }
.dh-note { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin: 0 0 12px; min-height: 1.4em; }
.dh-rows { display: grid; gap: 9px; }
.dh-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; }
.dh-row > span { color: rgba(255, 255, 255, 0.8); }
.dh-bar { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dh-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c, #f08a52); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dh-row em { font-style: normal; font-family: var(--ff-mono); font-size: 12.5px; white-space: nowrap; text-align: right; }
.dh-row em small { color: rgba(255, 255, 255, 0.55); font-size: 11.5px; margin-left: 6px; }
.dh-empty { font-size: 13px; color: rgba(255, 255, 255, 0.7); padding: 6px 0 2px; }
@media (max-width: 640px) {
  .dh { padding: 18px 14px 16px; border-radius: 14px; }
  .dh .ph-t { font-size: 24px; }
  .dh .kgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dh .kpi { padding: 14px 14px; }
  .dh .kpi-val { font-size: 24px; }
  .dh .kpi-delta { font-size: 10.5px; }
  .dh-row { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; }
  .dh-row em small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dh #heroFlow, .dh-bar i { transition: none; } }

/* ---------- the same look across the whole app: night top bar and menu, and a dark band heading every page ---------- */
.topbar { background: #0a0a0a; border-bottom-color: rgba(255, 255, 255, 0.1); box-shadow: none; color: #fff; }
.t-logo { color: #fff; }
.t-logo em { color: #f08a52; }
.t-search { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }
.t-search input { color: #fff; }
.t-search input::placeholder { color: rgba(255, 255, 255, 0.5); }
.topbar .ai-pill { background: rgba(143, 208, 173, 0.12); color: #8fd0ad; border-color: rgba(143, 208, 173, 0.35); }
.topbar .ai-dot { background: #8fd0ad; }
.topbar .plan-pill { background: rgba(240, 179, 90, 0.12); color: #f0c36a; border-color: rgba(240, 179, 90, 0.4); }
.topbar .t-av { background: #c2410c; }
.topbar .t-name { color: #fff; }
.topbar .t-role, .t-signout { color: rgba(255, 255, 255, 0.6); }
.t-signout:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sidebar { background: #100f0e; border-right-color: rgba(255, 255, 255, 0.08); }
.nav-section { color: rgba(255, 255, 255, 0.4); }
.nav-item { color: rgba(255, 255, 255, 0.66); }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.on { color: #fff; background: linear-gradient(90deg, rgba(200, 75, 31, 0.42), rgba(200, 75, 31, 0.08)); border-left-color: #f08a52; }
.nav-ct { background: rgba(240, 138, 82, 0.16); color: #f5a67a; border-color: rgba(240, 138, 82, 0.4); }
.sidebar-bot { border-top-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.sidebar-bot .t-av { background: #c2410c; }
.sidebar-bot .t-name { color: #fff; }
.sidebar-bot .t-role { color: rgba(255, 255, 255, 0.55); }
.view > .ph { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: #0a0a0a; color: #fff; padding: 22px 24px; align-items: center; }
.view > .ph::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(520px 200px at 78% 110%, rgba(200, 75, 31, 0.5), transparent 70%), radial-gradient(360px 160px at 6% 120%, rgba(184, 134, 11, 0.2), transparent 70%); }
.view > .ph #heroFlow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.view > .ph #heroFlow.on { opacity: 0.42; }
.view > .ph .ph-t { color: #fff; font-size: 26px; }
.view > .ph .ph-t em { color: #f08a52; }
.view > .ph .ph-s { color: rgba(255, 255, 255, 0.82); }
.view > .ph .btn { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.view > .ph .btn:hover { background: rgba(255, 255, 255, 0.14); }
.view > .ph .btn-ink { background: #c2410c; border-color: #c2410c; color: #fff; }
.view > .ph .btn-ink:hover { background: #d9541d; }
.card { border-radius: 14px; }
@media (max-width: 860px) { .view > .ph { align-items: flex-start; padding: 18px 16px; } }
