/* LifeNest UI mock — CSP-safe (no inline styles/scripts) */

:root{
  --bg1:#eaf0ef;
  --bg2:#e6eceb;
  --mint:#2f6f55;
  --text:#0f1311;
  --shadow: 0 14px 30px rgba(16, 24, 20, .10);
  --shadow2: 0 8px 18px rgba(16, 24, 20, .08);
  --radius: 16px;
  --pad: 18px;
  --max: 1500px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:-80px;
  z-index:-1;
  background:
    radial-gradient(1100px 700px at 10% 15%, rgba(255, 220, 160, .40), transparent 60%),
    radial-gradient(900px 700px at 78% 18%, rgba(180, 220, 255, .36), transparent 62%),
    radial-gradient(900px 900px at 70% 72%, rgba(160, 230, 205, .40), transparent 60%),
    radial-gradient(700px 700px at 18% 72%, rgba(230, 250, 180, .20), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.30));
  filter:saturate(1.08);
}

.page{
  max-width:var(--max);
  margin:0 auto;
  padding: 20px 28px 110px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  padding: 18px 22px 10px;
  backdrop-filter: blur(10px);
}

.topbar__inner{
  max-width:var(--max);
  margin:0 auto;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow2);
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 340px;
}

.brand__mark{ width:38px; height:38px; display:block; }
.brand__name{ font-weight: 800; font-size: 22px; }
.brand__divider{ width: 1px; height: 30px; background: rgba(0,0,0,.12); margin: 0 6px 0 2px; }
.brand__date{ font-weight: 600; color: rgba(0,0,0,.72); }

.topbar__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  flex: 1;
}

.search{
  display:flex;
  align-items:center;
  gap: 10px;
  width: 420px;
  max-width: 44vw;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.search__input{
  width:100%;
  border:0;
  outline:none;
  background: transparent;
  font-size: 16px;
}

.icon{ width: 22px; height: 22px; color: rgba(18, 24, 20, .72); }
.icon--muted{ color: rgba(18, 24, 20, .45); }
.icon--sm{ width:18px; height:18px; }
.icon--xs{ width:16px; height:16px; color: rgba(18,24,20,.55); }

.icon-btn{
  height: 42px;
  width: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.60);
  background: rgba(255,255,255,.45);
  box-shadow: var(--shadow2);
  display:grid;
  place-items:center;
  cursor:pointer;
}

.icon-btn--tiny{
  height: 28px;
  width: 28px;
  border-radius: 10px;
  box-shadow:none;
  background: rgba(255,255,255,.55);
}

.profile{
  border: 1px solid rgba(255,255,255,.60);
  background: rgba(255,255,255,.45);
  box-shadow: var(--shadow2);
  border-radius: 18px;
  height: 42px;
  padding: 0 10px 0 8px;
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
}

.avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47,111,85,.25), rgba(47,111,85,.10));
  border: 1px solid rgba(47,111,85,.22);
  color: rgba(0,0,0,.65);
  display:grid;
  place-items:center;
  font-weight: 700;
  font-size: 13px;
}

.menu-btn{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.50);
  box-shadow: var(--shadow2);
  cursor:pointer;
}
.menu-btn__bar{
  display:block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: rgba(0,0,0,.65);
}

.section-title{
  margin: 18px 4px 12px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(0,0,0,.78);
}

.snapshot{ display:grid; gap: 16px; }
.snapshot--cards{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.mini-card{
  position:relative;
  border-radius: var(--radius);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  min-height: 108px;
  overflow:hidden;
}

/* Subtle color tints to match the reference UI */
.mini-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.mini-card > *{ position:relative; z-index:1; }

.mini-card--warm::before{
  background: radial-gradient(420px 240px at 12% 18%, rgba(255, 233, 185, .80), transparent 58%);
}
.mini-card--cool::before{
  background: radial-gradient(420px 240px at 12% 18%, rgba(198, 228, 255, .78), transparent 58%);
}
.mini-card--mint::before{
  background: radial-gradient(420px 240px at 12% 18%, rgba(198, 245, 220, .78), transparent 58%);
}

.mini-card__title{ font-weight: 800; color: rgba(0,0,0,.78); font-size: 15px; }
.mini-card__value{ font-size: 36px; font-weight: 900; margin-top: 8px; line-height: 1; }
.mini-card__meta{ margin-top: 10px; color: rgba(0,0,0,.66); font-weight: 650; font-size: 13px; }

.mini-card__pie{ position:absolute; right: 14px; top: 34px; opacity: .95; }
.mini-card__spark{ position:absolute; right: 10px; bottom: 12px; opacity: .75; }

.mini-card__progress{ margin-top: 10px; height: 10px; border-radius: 999px; position:relative; }
.mini-card__track{ position:absolute; inset:0; border-radius: 999px; background: rgba(0,0,0,.08); }
.mini-card__fill{
  position:absolute; left:0; top:0; bottom:0;
  border-radius: 999px;
  width: calc(var(--p) * 1%);
  background: rgba(47,111,85,.88);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.55);
}

.p85{ --p: 85; }
.p75{ --p: 75; }
.p60{ --p: 60; }
.p52{ --p: 52; }
.p50{ --p: 50; }

.grid{
  display:grid;
  grid-template-columns: 340px 1fr 520px;
  gap: 18px;
  align-items:start;
}

.card{
  position:relative;
  border-radius: var(--radius);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card--study::before,
.card--budget::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(620px 320px at 20% 10%, rgba(198, 245, 220, .60), transparent 62%),
    radial-gradient(520px 320px at 80% 0%, rgba(230, 250, 180, .35), transparent 62%);
}
.card--study > *,
.card--budget > *{ position:relative; z-index:1; }

.card--plain{ padding: var(--pad); }

.card__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px 10px;
}

.card__title{ margin:0; font-size: 20px; font-weight: 900; color: rgba(0,0,0,.80); }

.dots-btn{
  border:0;
  background: transparent;
  color: rgba(0,0,0,.45);
  font-size: 20px;
  cursor:pointer;
}

.subhead{ font-weight: 900; font-size: 16px; color: rgba(0,0,0,.72); margin: 4px 0 12px; }
.subhead--mt{ margin-top: 16px; }

.today-plan{ padding: 0 18px 18px; }

.prio-list{ display:grid; gap: 12px; }
.prio-row{
  display:grid;
  grid-template-columns: 34px 1fr auto;
  align-items:center;
  gap: 12px;
}

.prio-row__text{
  font-weight: 800;
  color: rgba(0,0,0,.78);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill{
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(0,0,0,.70);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.pill--red{ background: rgba(248, 157, 157, .70); }
.pill--amber{ background: rgba(252, 214, 140, .74); }
.pill--sm{ padding: 5px 10px; font-size: 12px; }

.check{
  display:grid;
  place-items:center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(47,111,85,.18);
  border: 1px solid rgba(47,111,85,.22);
  position: relative;
}
.check input{ position:absolute; opacity:0; pointer-events:none; }
.check__box{
  width: 14px; height: 14px; border-radius: 4px;
  background: rgba(47,111,85,.82);
}
.check--empty{ background: rgba(255,255,255,.45); border: 1px solid rgba(0,0,0,.18); }
.check--empty .check__box{ background: transparent; border: 2px solid rgba(0,0,0,.18); }

.time-blocks{ display:grid; gap: 10px; }
.time-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.65);
  position:relative;
  overflow:hidden;
}
.time-row:before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 6px;
  border-radius: 14px 0 0 14px;
}
.time-row--focus:before{ background: rgba(47,111,85,.82); }
.time-row--admin:before{ background: rgba(78, 155, 207, .70); }
.time-row--low:before{ background: rgba(250, 210, 120, .90); }

.time-row__name{ font-weight: 900; color: rgba(0,0,0,.72); }
.time-row__time{ font-weight: 800; color: rgba(0,0,0,.62); }

.today-plan__actions{ display:grid; gap: 10px; margin-top: 14px; }
.today-plan__actions--mobile{ display:none; }

.btn{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  font-size: 15px;
  cursor:pointer;
  background: rgba(255,255,255,.55);
  color: rgba(0,0,0,.78);
  box-shadow: var(--shadow2);
}
.btn--ghost{
  background: rgba(255,255,255,.62);
  border-color: rgba(0,0,0,.10);
}
.btn--primary{
  background: rgba(47,111,85,.86);
  border-color: rgba(47,111,85,.18);
  color: rgba(255,255,255,.95);
}
.btn--danger{
  background: rgba(190, 54, 54, .86);
  border-color: rgba(190, 54, 54, .22);
  color: rgba(255,255,255,.96);
}
.btn--full{ width:100%; }
.btn__icon{ margin-right: 10px; font-weight: 900; }

.tabs{
  display:flex;
  gap: 22px;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.tab{
  border:0;
  background: transparent;
  font-weight: 900;
  font-size: 15px;
  color: rgba(0,0,0,.55);
  cursor:pointer;
  padding: 8px 2px;
  position:relative;
}
.tab.is-active{ color: rgba(47,111,85,.95); }
.tab.is-active:after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-12px;
  height: 3px;
  border-radius: 3px;
  background: rgba(47,111,85,.70);
}

.filters{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 18px 12px;
  color: rgba(0,0,0,.55);
}
.filters__label{ font-weight: 900; font-size: 14px; }
.chip{
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.52);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 900;
  color: rgba(0,0,0,.68);
  cursor:pointer;
}
.chip__chev{ margin-left: 10px; color: rgba(0,0,0,.45); }

.task-list{ padding: 0 18px 6px; display:grid; gap: 12px; }
.task{
  display:grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.65);
}
.task__title{ font-weight: 900; color: rgba(0,0,0,.78); }
.task__meta{ margin-top: 6px; display:flex; gap: 10px; color: rgba(0,0,0,.55); font-weight: 800; font-size: 13px; }
.meta-item{ display:inline-flex; align-items:center; gap: 6px; }
.task__side{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; justify-content:flex-end; }

.badge{
  min-width: 72px;
  text-align:center;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.65);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.badge__ic{ color: rgba(0,0,0,.52); }
.badge--mint{ background: rgba(210, 235, 220, .90); }
.badge--blue{ background: rgba(208, 230, 250, .90); }

.btn-mini{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.60);
  border-radius: 12px;
  padding: 7px 10px;
  font-weight: 900;
  color: rgba(0,0,0,.70);
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 8px;
}

.side-stack{ display:grid; gap: 18px; }

.study-grid{ padding: 0 18px 12px; display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.study-card{
  border-radius: 14px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.65);
  padding: 12px;
}
.study-card__top{ display:flex; justify-content:space-between; margin-bottom: 8px; }
.study-card__title{ font-weight: 900; color: rgba(0,0,0,.78); }
.study-card__hours{ font-weight: 900; color: rgba(0,0,0,.70); }
.study-card__bar{ position:relative; height: 10px; margin: 10px 0; border-radius: 999px; }
.study-card__track{ position:absolute; inset:0; border-radius: 999px; background: rgba(0,0,0,.10); }
.study-card__fill{ position:absolute; left:0; top:0; bottom:0; width: calc(var(--p) * 1%); border-radius: 999px; background: rgba(47,111,85,.80); }
.study-card__note{ color: rgba(0,0,0,.62); font-weight: 800; font-size: 13px; }

.budget-head{ padding: 0 18px 6px; display:flex; justify-content:space-between; font-weight: 900; }
.budget-bar{ position:relative; height: 10px; margin: 8px 18px 12px; border-radius: 999px; }
.budget-bar__track{ position:absolute; inset:0; border-radius:999px; background: rgba(0,0,0,.10); }
.budget-bar__fill{ position:absolute; left:0; top:0; bottom:0; width: calc(var(--p) * 1%); border-radius:999px; background: rgba(47,111,85,.85); }
.budget-sub{ padding: 0 18px 12px; color: rgba(0,0,0,.62); font-weight: 800; font-size: 13px; }

.budget-form{ margin: 0 18px 10px; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.65); padding: 12px; }
.budget-form__title{ font-weight: 900; color: rgba(0,0,0,.70); margin-bottom: 10px; }
.budget-form__row{ display:grid; grid-template-columns: 1fr 1fr 92px; gap: 10px; align-items:center; }
.input{
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.60);
  padding: 0 12px;
  font-weight: 800;
  outline:none;
}
.select{
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.60);
  padding: 0 12px;
  font-weight: 900;
  color: rgba(0,0,0,.70);
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}
.select__chev{ color: rgba(0,0,0,.45); }

.budget-last{ padding: 0 18px 12px; }
.budget-last__title{ font-weight: 900; color: rgba(0,0,0,.70); margin-bottom: 8px; }
.budget-last__row{ display:flex; justify-content:space-between; font-weight: 900; }

.alert{
  margin: 0 18px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 221, 160, .52);
  border: 1px solid rgba(255, 221, 160, .65);
  color: rgba(0,0,0,.70);
  font-weight: 900;
  display:flex;
  align-items:center;
  gap: 10px;
}

.footer{ margin-top: 18px; text-align:center; color: rgba(0,0,0,.52); font-weight: 800; font-size: 13px; }

.fab-wrap{
  position:fixed;
  right: 26px;
  bottom: 24px;
  z-index: 50;
  display:flex;
  align-items:flex-end;
  gap: 14px;
}
.fab{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(47,111,85,.88);
  border: 1px solid rgba(47,111,85,.22);
  box-shadow: 0 18px 30px rgba(20, 30, 24, .18);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.fab__plus{ font-size: 28px; font-weight: 900; color: rgba(255,255,255,.95); line-height: 1; }

.speed-dial{
  width: 280px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: var(--shadow);
  padding: 12px;
  transform-origin: bottom right;
  transform: scale(1);
  opacity: 0;
  pointer-events:none;
}
.speed-dial.is-open{ opacity: 1; pointer-events:auto; }
.speed-dial__grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.speed-item{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.70);
  padding: 10px 8px;
  cursor:pointer;
  display:grid;
  gap: 6px;
  justify-items:center;
}
.speed-item__icon{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  display:grid;
  place-items:center;
  font-weight: 900;
  color: rgba(0,0,0,.65);
}
.speed-item__label{ font-weight: 900; font-size: 11px; color: rgba(0,0,0,.72); text-align:center; line-height: 1.15; }
.speed-dial__reports{ margin-top: 10px; display:grid; gap: 8px; }
.speed-report{
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.70);
  font-weight: 900;
  cursor:pointer;
}

.bottom-nav{
  position:fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(980px, 100%);
  z-index: 40;
  background: rgba(255,255,255,.70);
  border-top: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 -14px 30px rgba(16,24,20,.10);
  display:none;
  padding: 10px 14px 14px;
  align-items:flex-end;
  justify-content:space-around;
}
.bottom-nav__item{
  color: rgba(0,0,0,.55);
  text-decoration:none;
  font-weight: 900;
  font-size: 12px;
  display:grid;
  justify-items:center;
  gap: 6px;
  min-width: 64px;
}
.bottom-nav__item.is-active{ color: rgba(47,111,85,.95); }
.nav-ic{ width: 24px; height: 24px; color: currentColor; }
.bottom-nav__item--ghost{ min-width: 90px; }
.nav-fab{
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(47,111,85,.88);
  color: rgba(255,255,255,.95);
  display:grid;
  place-items:center;
  font-size: 32px;
  box-shadow: 0 18px 30px rgba(20,30,24,.18);
  margin-top: -38px;
}

.snapshot--mobile{ display:none; margin-bottom: 14px; }
.mobile-snap{
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  align-items:center;
  padding: 12px 10px 4px;
}
.mobile-snap__divider{ width: 1px; height: 110px; background: rgba(0,0,0,.10); }
.mobile-snap__label{ text-align:center; font-weight: 950; font-size: 30px; color: rgba(0,0,0,.78); }
.mobile-snap__big{ text-align:center; font-weight: 950; font-size: 54px; margin-top: 6px; color: rgba(0,0,0,.82); }
.mobile-snap__bar{ margin: 10px auto 6px; width: 85%; height: 10px; border-radius: 999px; position:relative; }
.mobile-snap__track{ position:absolute; inset:0; border-radius:999px; background: rgba(0,0,0,.10); }
.mobile-snap__fill{ position:absolute; left:0; top:0; bottom:0; border-radius:999px; width: calc(var(--p) * 1%); background: rgba(47,111,85,.85); }
.mobile-snap__hint{ text-align:center; font-weight: 900; color: rgba(0,0,0,.65); font-size: 16px; padding-bottom: 10px; }

.budget-mobile{ display:none; }

/* Responsive */
@media (max-width: 1320px){
  .grid{ grid-template-columns: 1fr 1fr; }
  .card--tasks{ grid-column: 1 / -1; }
  .side-stack{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px){
  .snapshot--cards{ grid-template-columns: repeat(6, minmax(220px, 1fr)); overflow-x:auto; padding-bottom: 8px; }
  .bottom-nav{ display:flex; }
  .fab-wrap{ right: 18px; bottom: 92px; }
}
@media (max-width: 860px){
  .side-stack{ grid-template-columns: 1fr; }
  .page{ padding: 16px 16px 120px; }
  .brand{ min-width: 240px; }
  .search{ width: 320px; }
}
@media (max-width: 640px){
  .snapshot--cards{ display:none; }
  .snapshot--mobile{ display:block; }
  .grid{ grid-template-columns: 1fr; }
  .today-plan__actions--desktop{ display:none; }
  .today-plan__actions--mobile{ display:block; }
  .study-grid{ grid-template-columns: 1fr; }

  .budget-head, .budget-bar, .budget-sub, .budget-form, .budget-last, .alert{ display:none; }
  .budget-mobile{ display:block; padding: 0 18px 16px; }

  .topbar{ padding: 14px 12px 8px; }
  .topbar__inner{ padding: 12px 12px; }
  .topbar__right{ display:none; }
  .menu-btn{ display:block; }
  .brand__divider{ display:none; }
  .brand__date--wide{ display:none; }
  .brand__name{ font-size: 26px; }

  .fab-wrap{ display:none; }
}
@media (max-width: 420px){
  .mobile-snap__label{ font-size: 26px; }
  .mobile-snap__big{ font-size: 50px; }
}
/* ===== LifeNest dynamic dashboard wiring (CSP-safe, no inline styles) ===== */
.is-hidden{ display:none !important; }

/* Profile dropdown */
.profile-wrap{ position:relative; }
.profile-menu{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0,0,0,.14);
  padding: 8px;
  z-index: 60;
}
.profile-menu[aria-hidden="true"]{ display:none; }
.profile-menu__item{
  display:block;
  width:100%;
  text-decoration:none;
  border: 0;
  background: transparent;
  font-weight: 900;
  color: rgba(0,0,0,.70);
  padding: 10px 10px;
  border-radius: 12px;
  text-align:left;
  cursor:pointer;
}
.profile-menu__item:hover,
.profile-menu__item:focus{ outline:none; background: rgba(47,111,85,.10); }

/* Native select wrappers to keep the same look */
.select-wrap,
.date-wrap{ position:relative; width:100%; }
.select.select--native{
  width: 100%;
  display:block;
  -webkit-appearance:none;
  appearance:none;
  padding-right: 36px;
  cursor:pointer;
}
.select-wrap__ic,
.date-wrap__ic{
  position:absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(0,0,0,.45);
  pointer-events:none;
}
.input.input--date{
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.60);
  padding: 0 12px;
  font-weight: 900;
  color: rgba(0,0,0,.70);
  width:100%;
}

/* Budget quick add hint */
.budget-form__hint{
  margin-top: 10px;
  color: rgba(0,0,0,.55);
  font-weight: 850;
  min-height: 18px;
}

/* Modals */
.ln-modal{ position:fixed; inset:0; z-index: 80; display:none; }
.ln-modal[aria-hidden="false"]{ display:block; }
.ln-modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(3px);
}
.ln-modal__panel{
  position:relative;
  max-width: 560px;
  margin: 8vh auto 0;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  overflow:hidden;
}
.ln-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.ln-modal__title{ margin:0; font-size: 18px; font-weight: 950; color: rgba(0,0,0,.80); }
.ln-modal__close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.60);
  cursor:pointer;
  font-weight: 950;
  color: rgba(0,0,0,.65);
}
.ln-modal__close:hover{ background: rgba(0,0,0,.04); }

.ln-form{ padding: 14px 16px 16px; }
.ln-form__row{ margin-bottom: 12px; }
.ln-form__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ln-label{ display:block; font-weight: 950; font-size: 13px; color: rgba(0,0,0,.64); margin-bottom: 6px; }
.ln-form__actions{ display:flex; gap: 10px; justify-content:flex-end; margin-top: 12px; }
.ln-form__hint{ margin-top: 10px; color: rgba(0,0,0,.55); font-weight: 850; min-height: 18px; }

/* Expenses modal */
.ln-exp{ padding: 14px 16px 16px; }
.ln-exp__filters{ display:flex; flex-wrap:wrap; gap: 12px; align-items:flex-end; }
.ln-exp__field{ min-width: 220px; flex: 1 1 220px; }
.ln-exp__summary{ margin-top: 10px; color: rgba(0,0,0,.62); font-weight: 850; }
.ln-exp__list{ margin-top: 12px; display:grid; gap: 10px; max-height: 52vh; overflow:auto; padding-right: 6px; }
.ln-exp-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 10px;
}
.ln-exp-row__main{ min-width:0; }
.ln-exp-row__title{ font-weight: 950; color: rgba(0,0,0,.78); }
.ln-exp-row__meta{ margin-top: 6px; display:flex; gap: 10px; flex-wrap:wrap; color: rgba(0,0,0,.55); font-weight: 850; font-size: 13px; }
.ln-exp-row__amt{ font-weight: 950; white-space:nowrap; color: rgba(0,0,0,.78); }
.ln-exp-row__actions{ display:flex; gap: 8px; flex-wrap:wrap; justify-content:flex-end; }

.input.input--ta{ min-height: 110px; padding: 10px 12px; resize: vertical; }

.ln-note{ padding: 12px 16px 16px; }
.ln-note__task{ font-weight: 950; color: rgba(0,0,0,.72); margin-bottom: 10px; }
.ln-note__list{ display:flex; flex-direction:column; gap: 10px; margin-bottom: 12px; }
.ln-note__item{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 10px;
}
.ln-note__meta{ display:flex; justify-content:space-between; align-items:center; gap: 12px; }
.ln-note__time{ font-weight: 900; font-size: 12px; color: rgba(0,0,0,.50); }
.ln-note__del{ border:0; background: transparent; font-weight: 950; color: rgba(0,0,0,.45); cursor:pointer; }
.ln-note__del:hover{ color: rgba(0,0,0,.70); }
.ln-note__edit{ border:0; background: transparent; font-weight: 950; color: rgba(0,0,0,.45); cursor:pointer; }
.ln-note__edit:hover{ color: rgba(0,0,0,.70); }
.ln-note__body{ margin-top: 8px; white-space: pre-wrap; font-weight: 850; color: rgba(0,0,0,.72); line-height: 1.45; }

/* Responsive modal */
@media (max-width: 640px){
  .ln-modal__panel{ width: calc(100% - 18px); margin: 10vh auto 0; }
  .ln-form__grid{ grid-template-columns: 1fr; }
}

/* Progress helper classes 0..100 so JS can set percents without inline styles */
.p0{ --p: 0; }
.p1{ --p: 1; }
.p2{ --p: 2; }
.p3{ --p: 3; }
.p4{ --p: 4; }
.p5{ --p: 5; }
.p6{ --p: 6; }
.p7{ --p: 7; }
.p8{ --p: 8; }
.p9{ --p: 9; }
.p10{ --p: 10; }
.p11{ --p: 11; }
.p12{ --p: 12; }
.p13{ --p: 13; }
.p14{ --p: 14; }
.p15{ --p: 15; }
.p16{ --p: 16; }
.p17{ --p: 17; }
.p18{ --p: 18; }
.p19{ --p: 19; }
.p20{ --p: 20; }
.p21{ --p: 21; }
.p22{ --p: 22; }
.p23{ --p: 23; }
.p24{ --p: 24; }
.p25{ --p: 25; }
.p26{ --p: 26; }
.p27{ --p: 27; }
.p28{ --p: 28; }
.p29{ --p: 29; }
.p30{ --p: 30; }
.p31{ --p: 31; }
.p32{ --p: 32; }
.p33{ --p: 33; }
.p34{ --p: 34; }
.p35{ --p: 35; }
.p36{ --p: 36; }
.p37{ --p: 37; }
.p38{ --p: 38; }
.p39{ --p: 39; }
.p40{ --p: 40; }
.p41{ --p: 41; }
.p42{ --p: 42; }
.p43{ --p: 43; }
.p44{ --p: 44; }
.p45{ --p: 45; }
.p46{ --p: 46; }
.p47{ --p: 47; }
.p48{ --p: 48; }
.p49{ --p: 49; }
.p50{ --p: 50; }
.p51{ --p: 51; }
.p52{ --p: 52; }
.p53{ --p: 53; }
.p54{ --p: 54; }
.p55{ --p: 55; }
.p56{ --p: 56; }
.p57{ --p: 57; }
.p58{ --p: 58; }
.p59{ --p: 59; }
.p60{ --p: 60; }
.p61{ --p: 61; }
.p62{ --p: 62; }
.p63{ --p: 63; }
.p64{ --p: 64; }
.p65{ --p: 65; }
.p66{ --p: 66; }
.p67{ --p: 67; }
.p68{ --p: 68; }
.p69{ --p: 69; }
.p70{ --p: 70; }
.p71{ --p: 71; }
.p72{ --p: 72; }
.p73{ --p: 73; }
.p74{ --p: 74; }
.p75{ --p: 75; }
.p76{ --p: 76; }
.p77{ --p: 77; }
.p78{ --p: 78; }
.p79{ --p: 79; }
.p80{ --p: 80; }
.p81{ --p: 81; }
.p82{ --p: 82; }
.p83{ --p: 83; }
.p84{ --p: 84; }
.p85{ --p: 85; }
.p86{ --p: 86; }
.p87{ --p: 87; }
.p88{ --p: 88; }
.p89{ --p: 89; }
.p90{ --p: 90; }
.p91{ --p: 91; }
.p92{ --p: 92; }
.p93{ --p: 93; }
.p94{ --p: 94; }
.p95{ --p: 95; }
.p96{ --p: 96; }
.p97{ --p: 97; }
.p98{ --p: 98; }
.p99{ --p: 99; }
.p100{ --p: 100; }
