/* KamaVLama Home 2026 — presentation layer only.
   No rules target authentication, off-screen finance/budget dialogs or persistence. */
#dashboard.neon-home-dashboard {
  --neon-purple:#b36aff;--neon-cyan:#42ccff;--neon-pink:#ff69b4;
  --neon-green:#40edb4;--neon-ink:#060a28;
  width:min(1120px,100%);
  padding:28px clamp(12px,3vw,35px) 55px;
  isolation:isolate;
  color:#f5f1ff;
  overflow:visible;
}
body:has(#dashboard.neon-home-dashboard:not(.hidden)){
  background:
    radial-gradient(ellipse 65% 44% at 55% -4%,rgba(104,17,214,.30),transparent 85%),
    radial-gradient(ellipse 50% 35% at 0% 65%,rgba(54,19,171,.20),transparent 80%),
    linear-gradient(155deg,#030417,#090c30 55%,#050920);
  background-attachment:fixed;
}
#dashboard.neon-home-dashboard .page-header {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:0!important;
  margin:0 0 12px!important;min-width:0;
}
:is(#dashboard,#kf-view) .neon-topbar {
  display:grid;grid-template-columns:46px minmax(0,1fr) 46px;
  align-items:center;gap:12px;direction:ltr;margin:0 0 13px;
}
:is(#dashboard,#kf-view) .neon-brand {min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px}
:is(#dashboard,#kf-view) .neon-brand .brand-wordmark {
  display:inline-flex;align-items:baseline;justify-content:center;
  gap:0;margin:0;direction:ltr;white-space:nowrap;
  color:#fbfaff;font-family:Arial,sans-serif;
  font-size:clamp(23px,4vw,47px);font-weight:800;letter-spacing:-.055em;
  text-shadow:0 0 16px #a67cff48;
}
:is(#dashboard,#kf-view) .neon-brand .brand-wordmark .brand-v {
  display:inline!important;place-items:unset;
  width:auto!important;height:auto!important;margin-inline:0!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:linear-gradient(155deg,#f9b4ff 3%,#bd5aff 41%,#6533fd 85%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  box-shadow:none!important;color:#ad64ff;transform:none;line-height:inherit;
  font-weight:950;font-size:1.05em;
  filter:drop-shadow(0 0 7px #a342ffb0);
}
:is(#dashboard,#kf-view) .neon-tagline {
  margin:0;color:#d7ccea;text-align:center;font-size:clamp(11px,1.8vw,17px);
  line-height:1.4;white-space:nowrap;
}
:is(#dashboard,#kf-view) .neon-head-button {
  width:45px;height:45px;border:1px solid #7556da9e;border-radius:17px;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(142deg,#211451,#0b1445);
  color:#e8d8ff;box-shadow:inset 0 0 16px #6231da2e,0 0 15px #592bca30;
  cursor:pointer;font-size:25px;transition:box-shadow .2s,transform .2s;
}
:is(#dashboard,#kf-view) .neon-head-button:hover,:is(#dashboard,#kf-view) .neon-head-button:focus-visible {
  border-color:#c09bff;box-shadow:0 0 20px #8e44f969;
}
:is(#dashboard,#kf-view) .neon-head-button:active {transform:scale(.96)}
:is(#dashboard,#kf-view) .neon-topbar>.neon-head-button:last-child{direction:rtl}
#dashboard .neon-settings-panel[hidden]{display:none!important}
#dashboard .neon-settings-panel {
  width:min(460px,100%);align-self:start;margin:0 0 12px;
  padding:18px;border:1px solid #8d54ec90;border-radius:20px;
  display:grid;gap:15px;background:linear-gradient(150deg,#111b3b,#0c102a);
  box-shadow:0 14px 45px #0008;z-index:4;
}
#dashboard .neon-settings-heading{display:flex;justify-content:space-between;align-items:center}
:is(#dashboard,#kf-view) .neon-settings-heading .neon-head-button{width:37px;height:37px;border-radius:10px;font-size:20px}
#dashboard .neon-settings-panel .account-bar,
#dashboard .neon-settings-panel .account-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;max-width:100%}
#dashboard .neon-settings-panel .account-bar{justify-content:space-between}
#dashboard .neon-settings-panel .account-bar>div:first-child{min-width:0;flex:1 1 180px}
#dashboard .neon-settings-panel .account-actions{flex:0 0 auto}
#dashboard .neon-settings-panel .reset-day-control{width:100%}
#dashboard .neon-settings-panel #resetDayHint{display:block}
:is(#dashboard,#kf-view) .neon-greeting-row {
  display:flex;flex-wrap:wrap;gap:12px;align-items:end;
  justify-content:space-between;margin:4px 0 16px;direction:rtl;
  background:linear-gradient(120deg,transparent 38%,#4224ad28 69%,transparent);
}
:is(#dashboard,#kf-view) .neon-greeting-copy{display:grid;gap:2px;min-width:0}
:is(#dashboard,#kf-view) .neon-greeting{font-size:clamp(17px,2.6vw,23px);font-weight:800;color:#fff}
:is(#dashboard,#kf-view) .neon-greeting-copy>span{font-size:12px;color:#beb3dd}
#dashboard .period-controls{
  display:flex!important;gap:0;grid-template-columns:none!important;align-items:center;min-width:0;
}
#dashboard .period-controls .month-control {
  display:flex;align-items:center;position:relative;
  min-height:42px;padding:4px 10px;
  border:1px solid #8d58f597;border-radius:15px;
  color:#ece3ff;background:linear-gradient(120deg,#22114f,#111541);
  box-shadow:inset 0 0 15px #8029cb2b;gap:3px;min-width:0;
}
#dashboard .month-control>span:first-child{display:none}
#dashboard .month-picker-field {min-width:0}
#dashboard #monthPickerLabel{font-size:14px;font-weight:700}
#dashboard .month-picker-icon{font-size:18px}
#dashboard .header-controls{display:none!important}
#dashboard .dashboard-topbar{display:none!important}
#dashboard .dashboard-title-row{display:none!important}
#dashboard .neon-home-overview {display:grid;gap:13px;margin-bottom:20px}
#dashboard .neon-hero {
  display:flex;gap:16px;justify-content:space-between;align-items:end;
  min-height:184px;padding:23px clamp(17px,3vw,31px);
  border-radius:22px;border:1px solid #a05cfd;
  box-shadow:inset 0 0 27px #5c25e954,0 0 19px #7628e644;
  background:
    radial-gradient(ellipse at 20% 100%,#4926c259,transparent 68%),
    linear-gradient(138deg,#150e52,#0a163f 68%,#180949);
}
#dashboard .neon-hero-copy{display:grid;justify-items:start;gap:11px;min-width:0}
#dashboard .neon-hero-label{color:#e9defd;font-size:clamp(14px,2vw,19px)}
#dashboard .neon-hero-amount{font-size:clamp(31px,5.8vw,63px);line-height:1.08;font-weight:850;white-space:nowrap;text-align:right;color:#fff;text-shadow:0 0 15px #9379ff73}
#dashboard .neon-hero-note{font-size:12px;color:#baa8e9}
#dashboard .neon-hero-graph{
  display:flex;direction:ltr;align-items:end;justify-content:center;
  width:39%;max-width:320px;height:110px;gap:clamp(8px,2vw,17px);
  padding:0 8px 5px;border-bottom:1px solid #7852d64d;
}
#dashboard .neon-hero-graph i{
  display:block;width:18%;min-height:9px;border-radius:6px 6px 2px 2px;
  background:linear-gradient(0deg,#6d2ae6,#8156ff 60%,#63ccff);
  box-shadow:0 0 13px #793dff93;
}
#dashboard .neon-summary {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;min-width:0;
}
#dashboard .neon-stat {
  display:grid;justify-items:center;gap:6px;text-align:center;
  padding:15px 8px 12px;min-width:0;min-height:155px;
  border:1px solid #6550c2a8;border-radius:17px;
  background:linear-gradient(145deg,#181445e0,#081534ea);
  box-shadow:inset 0 0 19px #6530b327;
}
#dashboard .neon-stat-income{--tile:#42c9ff}
#dashboard .neon-stat-expenses{--tile:#ff71ae}
#dashboard .neon-stat-savings{--tile:#ad62ff}
#dashboard .neon-stat-budget{--tile:#3ff0b5}
#dashboard .neon-stat-pict{font-size:26px;color:var(--tile);text-shadow:0 0 12px var(--tile);line-height:1.1}
#dashboard .neon-stat-title{font-size:14px;font-weight:700;color:#ece8ff;line-height:1.2}
#dashboard .neon-stat-value{color:#fff;font-size:clamp(13px,2.6vw,23px);max-width:100%;overflow-wrap:anywhere;line-height:1.3}
#dashboard .neon-stat-detail{font-size:11px;color:#b3a9d9;line-height:1.2}
#dashboard .neon-stat-rail{display:block;width:100%;height:6px;border-radius:10px;overflow:hidden;background:#252057}
#dashboard .neon-stat-rail i{display:block;height:100%;border-radius:10px;background:var(--tile);box-shadow:0 0 7px var(--tile)}
#dashboard .neon-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#dashboard .neon-quick-btn{
  display:grid;justify-items:center;align-content:center;gap:8px;
  min-width:0;min-height:98px;padding:9px 5px;
  border:1px solid #7655dcbd;border-radius:17px;
  background:linear-gradient(140deg,#191044,#131b50);
  color:#f2eeff;font-size:clamp(11px,1.7vw,15px);font-weight:800;
  cursor:pointer;box-shadow:inset 0 0 15px #6928df25;
}
#dashboard .neon-quick-pict{
  display:grid;place-items:center;width:43px;height:43px;
  border:1px solid #955afa99;border-radius:50%;
  font-size:29px;line-height:1;color:#c18aff;
  background:radial-gradient(circle at 35% 25%,#8055fe,#341080);
  box-shadow:0 0 12px #662aff68;
}
#dashboard .neon-quick-income .neon-quick-pict{background:linear-gradient(140deg,#41efb5,#127e77);color:white}
#dashboard .neon-quick-btn:hover,#dashboard .neon-quick-btn:focus-visible{
  border-color:#ceabff;box-shadow:inset 0 0 25px #7134ec50,0 0 16px #824cff64;
  transform:translateY(-1px);
}
#dashboard .tracker-grid {
  display:flex!important;flex-direction:column!important;
  grid-template-columns:none!important;grid-template-areas:none!important;
  gap:11px!important;min-width:0;align-items:stretch;
}
#dashboard .tracker-column {
  display:contents!important;
}
#dashboard .extra-credit-group{
  display:contents!important;grid-area:auto!important;
}
#dashboard .extra-credit-group>.credit-card {order:4}
#dashboard .extra-credit-group>.extra-credit-cards{
  order:4;display:none!important;
}
#dashboard .extra-credit-group:has(>.credit-card.is-mobile-open)>.extra-credit-cards:not(:empty){
  display:grid!important;gap:11px;
}
#dashboard .tracker-grid .income-card{order:1}
#dashboard .tracker-grid .fixed-card{order:2}
#dashboard .tracker-grid .variable-card{order:3}
#dashboard .tracker-grid .credit-card:not(.extra-credit-card){order:4}
#dashboard .tracker-grid .checking-card{order:5}
#dashboard .tracker-grid .savings-card{order:6}
#dashboard .tracker-grid .loans-card{order:7}
#dashboard .tracker-grid .budget-center-card,
#dashboard .tracker-grid .summary-card {display:none!important}
#dashboard .tracker-grid .finance-card{
  grid-area:auto!important;min-width:0;width:100%;min-height:0;
  height:auto!important;max-height:none!important;overflow:visible;
  border:1px solid #723effc7;border-radius:18px;
  padding:0!important;background:linear-gradient(112deg,#131141ee,#0b1840f0 80%,#170d47ef);
  box-shadow:inset 0 0 21px #6020dc28,0 2px 15px #291c7363;
  transition:border-color .18s,box-shadow .18s;
}
#dashboard .tracker-grid .finance-card::before{display:none!important}
#dashboard .tracker-grid .finance-card .card-heading {
  display:flex!important;position:relative;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:space-between;
  min-height:82px!important;margin:0!important;padding:13px 19px!important;
  gap:13px;cursor:pointer;user-select:none;
}
:is(#dashboard,#kf-view) .tracker-grid .finance-card .card-heading .neon-icon {
  flex:none;display:grid;width:43px;height:43px;place-items:center;
  border:1px solid var(--item-accent,#9156ff);border-radius:13px;
  color:var(--item-accent,#b58aff);background:#191444;
  font-size:25px;line-height:1;
  box-shadow:inset 0 0 11px #5f2dde55,0 0 12px #391ac570;
}
#dashboard .tracker-grid .income-card{--item-accent:#3bf1b3}
#dashboard .tracker-grid .fixed-card,#dashboard .tracker-grid .variable-card{--item-accent:#ff6cac}
#dashboard .tracker-grid .credit-card{--item-accent:#4dd9ff}
#dashboard .tracker-grid .checking-card{--item-accent:#ab80ff}
#dashboard .tracker-grid .savings-card{--item-accent:#cc77ff}
#dashboard .tracker-grid .loans-card{--item-accent:#49deb0}
#dashboard .tracker-grid .finance-card .card-heading>div:first-of-type{
  min-width:0;flex:1;display:grid;gap:3px;text-align:right;
}
#dashboard .tracker-grid .finance-card .card-heading h2{
  font-size:clamp(17px,2.4vw,23px);line-height:1.2;font-weight:800;color:#fff;
}
#dashboard .tracker-grid .finance-card .card-heading .card-kicker{
  margin:0;color:#b5a7d8;font-size:12px;line-height:1.4;
  letter-spacing:0;font-weight:400;
}
#dashboard .tracker-grid .finance-card .total-badge{
  flex:none;font-size:clamp(17px,2.9vw,25px)!important;
  margin-inline-end:clamp(25px,3vw,43px);font-weight:800!important;
  color:var(--item-accent,#b48aff);text-align:left;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#dashboard .tracker-grid .finance-card .card-heading::after{
  content:"⌄"!important;position:absolute;
  inset-inline-end:12px!important;inset-inline-start:auto;
  top:50%;transform:translateY(-57%)!important;
  display:grid;place-items:center!important;
  width:21px!important;height:28px!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:none!important;color:#c5a7ff!important;
  font-size:29px!important;font-weight:500!important;transition:transform .2s!important;
}
#dashboard .tracker-grid .finance-card.is-mobile-open .card-heading::after {
  transform:translateY(-45%) rotate(180deg)!important;
}
#dashboard .tracker-grid .finance-card:not(.is-mobile-open)>:not(.card-heading){
  display:none!important;
}
#dashboard .tracker-grid .finance-card.is-mobile-open{
  border-color:#b080ff;
  box-shadow:inset 0 0 21px #6020dc40,0 0 22px #5e35eb3a;
}
#dashboard .tracker-grid .finance-card.is-mobile-open>:not(.card-heading){
  margin-inline:14px;max-width:calc(100% - 28px);
}
#dashboard .tracker-grid .finance-card.is-mobile-open>.add-row-btn{margin-block:14px}
#dashboard .tracker-grid .finance-card .card-heading:focus-visible{
  outline:2px solid #b590ff;outline-offset:-4px;border-radius:15px;
}
#dashboard .tracker-grid .finance-card.hidden {display:none!important}
#dashboard .tracker-grid .loans-card:not(.hidden) {display:block}
#dashboard .tracker-grid .budget-center-card .card-heading{display:none!important}
/* Compact mode on mobile; retain existing full-width editable tables inside opened cards */
@media(max-width:640px){
 #dashboard.neon-home-dashboard{
   padding:max(14px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right))
      max(30px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
 }
 :is(#dashboard,#kf-view) .neon-topbar{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}
 :is(#dashboard,#kf-view) .neon-head-button{width:38px;height:38px;border-radius:13px;font-size:21px}
 :is(#dashboard,#kf-view) .neon-brand .brand-wordmark{font-size:clamp(22px,6.8vw,37px)}
 :is(#dashboard,#kf-view) .neon-tagline{font-size:clamp(10px,3.05vw,13px)}
 :is(#dashboard,#kf-view) .neon-greeting-row{gap:8px;margin:5px 0 13px}
 :is(#dashboard,#kf-view) .neon-greeting{font-size:18px}
 :is(#dashboard,#kf-view) .neon-greeting-copy>span{font-size:11px}
 #dashboard .period-controls .month-control{min-height:38px;padding:4px 8px}
 #dashboard #monthPickerLabel{font-size:12px}
 #dashboard .neon-home-overview{gap:11px;margin-bottom:14px}
 #dashboard .neon-hero{min-height:140px;padding:15px 14px;border-radius:17px}
 #dashboard .neon-hero-copy{gap:7px}
 #dashboard .neon-hero-label{font-size:13px}
 #dashboard .neon-hero-amount{font-size:clamp(27px,7.5vw,46px)}
 #dashboard .neon-hero-note{font-size:10px}
 #dashboard .neon-hero-graph{height:86px;width:36%;gap:7px;padding-inline:1px}
 #dashboard .neon-summary{gap:6px}
 #dashboard .neon-stat{min-height:116px;padding:9px 3px 7px;gap:5px;border-radius:13px}
 #dashboard .neon-stat-pict{font-size:22px}
 #dashboard .neon-stat-title{font-size:clamp(10px,2.7vw,13px)}
 #dashboard .neon-stat-value{font-size:clamp(10px,3.3vw,16px)}
 #dashboard .neon-stat-detail{font-size:9px}
 #dashboard .neon-stat-rail{height:5px}
 #dashboard .neon-quick{gap:6px}
 #dashboard .neon-quick-btn{min-height:76px;padding:5px 3px;gap:5px;font-size:clamp(10px,2.8vw,12px);border-radius:13px}
 #dashboard .neon-quick-pict{width:36px;height:36px;font-size:24px}
 #dashboard .tracker-grid{gap:8px!important}
 #dashboard .tracker-grid .finance-card{border-radius:15px}
 #dashboard .tracker-grid .finance-card .card-heading{min-height:71px!important;padding:11px 12px!important;gap:9px}
 :is(#dashboard,#kf-view) .tracker-grid .finance-card .card-heading .neon-icon{width:36px;height:36px;border-radius:11px;font-size:20px}
 #dashboard .tracker-grid .finance-card .card-heading h2{font-size:clamp(15px,4vw,19px)}
 #dashboard .tracker-grid .finance-card .card-heading .card-kicker{font-size:10px}
 #dashboard .tracker-grid .finance-card .total-badge{font-size:clamp(14px,4.1vw,19px)!important;margin-inline-end:19px}
 #dashboard .tracker-grid .finance-card .card-heading::after{inset-inline-end:6px!important;font-size:24px!important}
 #dashboard .tracker-grid .finance-card.is-mobile-open>:not(.card-heading){margin-inline:9px;max-width:calc(100% - 18px)}
}
/* Small phones: allow a two-line greeting before the month chooser. */
@media(max-width:370px){
 :is(#dashboard,#kf-view) .neon-greeting-row{flex-direction:column;align-items:stretch}
 #dashboard .neon-hero-graph{width:29%;gap:4px}
 #dashboard .neon-summary{gap:4px}
 #dashboard .neon-stat-detail{font-size:8px}
 #dashboard .tracker-grid .finance-card .card-heading{gap:6px;padding:9px 9px!important}
 #dashboard .tracker-grid .finance-card .total-badge{margin-inline-end:16px}
}
@media(prefers-reduced-motion:reduce){
 :is(#dashboard,#kf-view) .neon-quick-btn,:is(#dashboard,#kf-view) .neon-head-button,
 :is(#dashboard,#kf-view) .tracker-grid .finance-card{transition:none!important}
}

