html.preinit body > *:not(script):not(style):not(#lkBrandSplash):not(#secureUnlockOverlay):not(#utolduStartupBrand):not(.app-dialog-overlay[data-dialog-managed="true"]) {
  visibility: hidden;
}

html.page-resuming body > *:not(#lkBrandSplash):not(#secureUnlockOverlay):not(#utolduStartupBrand):not(.app-dialog-overlay[data-dialog-managed="true"]) {
  visibility: hidden;
}

html.utoldu-warm-index-return #utolduStartupBrand {
  display: none !important;
}

.mode-normal #sessionGate { display: none !important; }
.mode-normal.preinit #initLoading { display: block; }

.mode-test #sessionGate { display: block; }

#inviteModal input {
  box-sizing: border-box;
  display: block;
  width: 100%;
}

.manage-users-chooser-backdrop{
  position:fixed;
  inset:0;
  z-index:21000;
  padding:20px;
  background:rgba(15,23,42,.42);
  align-items:center;
  justify-content:center;
}

.manage-users-chooser{
  width:min(100%,360px);
  padding:20px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:26px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
}

.manage-users-chooser-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.manage-users-chooser-title{
  font-size:19px;
  line-height:1.2;
  font-weight:900;
  color:#0f274f;
}

.manage-users-chooser-subtitle{
  margin-top:5px;
  font-size:12px;
  line-height:1.4;
  color:#64748b;
}

.manage-users-chooser-close{
  width:34px;
  height:34px;
  flex:0 0 34px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  color:#475569;
  font-size:22px;
  line-height:1;
}

.manage-users-chooser-action{
  width:100%;
  min-height:70px;
  margin-top:11px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  color:#0f274f;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
}

.manage-users-chooser-action:active{
  transform:scale(.985);
  background:#f8fafc;
}

.manage-users-chooser-action-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#eaf3ff;
  color:#2563eb;
  font-size:20px;
  font-weight:800;
}

.manage-users-chooser-action-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.manage-users-chooser-action-copy strong{
  font-size:14px;
  font-weight:850;
}

.manage-users-chooser-action-copy small{
  font-size:11.5px;
  line-height:1.35;
  font-weight:500;
  color:#64748b;
}

.manage-users-chooser-cancel{
  width:100%;
  min-height:44px;
  margin-top:16px;
  border:0;
  border-radius:14px;
  background:#f1f5f9;
  color:#475569;
  font-size:13px;
  font-weight:750;
}

.manage-users-chooser-cancel:active{
  background:#e2e8f0;
}

.muCard {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.muTitle { font-weight: 800; }
.muMeta { font-size: 12px; color: #444; margin-top: 4px; line-height: 1.35; }

.muBtns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 86px;
}

.muBtnEdit {
  background: #1976d2;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.muBtnDelete {
  background: #555;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.muBtnEdit:disabled, .muBtnDelete:disabled { opacity: 0.5; cursor: not-allowed; }

#sessionGate #sessionInfo {
  margin-top: 2px !important;
  line-height: 1.15;
  padding-top: 0;
}
#sessionGate #familyLabel {
  margin-bottom: 0 !important;
  line-height: 1.2;
}

#familyLabel {
  display: block;
  margin-bottom: 2px;
  line-height: 1.2;
}

#sessionInfo {
  margin-top: 0;
  line-height: 1.15;
}

.valueAligned {
  padding-left: 10px;
}

#initLoading { display:none; }

    .topActions {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;

      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;

      padding: 10px 12px;
      background: rgba(255,255,255,0.95);
      border-bottom: 1px solid #e7e7e7;
      z-index: 10000;

      backdrop-filter: blur(6px);
    }

    .iconBtn {
      border: 1px solid #ddd;
      background: #fff;
      padding: 8px 10px;
      border-radius: 10px;
      cursor: pointer;
    }

    .topTitleSlot {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 6px;
    }
.topTitleMini {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.topTitleMini__wordmark {
  display: block;
  width: 104px;
  height: auto;
  max-width: 100%;
}
    .topTitleMini .tagline {
      font-weight: 600;
      font-size: 11px;
      opacity: 0.8;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
.topTitleMini.isOn {
  display: flex;
}
.monthRow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.monthValue{
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px dashed #e3e6ff;
}

    .menuPanel {
      display:none;
      position: fixed;
      top: 58px;
      left: 12px;
      width: 260px;
      max-width: calc(100vw - 24px);

      border: 1px solid #e6e6e6;
      background: #fff;
      border-radius: 14px;
      padding: 10px;

      box-shadow: 0 12px 30px rgba(0,0,0,0.12);
      z-index: 10002;
    }

    .menuItem {
      padding: 10px;
      border-radius: 10px;
      cursor: pointer;
    }
    .menuItem:hover { background: #f5f5f5; }

#menuFooter {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

    .hint {
      margin-top: 10px;
      padding: 10px 12px;
      border-radius: 14px;
      background: #f8f8f8;
      border: 1px solid #ededed;
      font-size: 12px;
      opacity: 0.95;
      line-height: 1.45;
    }

    #sessionGate {
      background: linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
      border: 1px solid #dfe3ff;
    }

    #sessionInfo {
      font-size: 12px;
      opacity: 0.75;
      margin-top: 10px;
    }

    #testModeBanner {
      display:none;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid #f0e6b3;
      background: #fff8d6;
      font-size: 13px;
      margin: 10px 0;
    }
.lekka-dashboard-experience{
  margin:20px 0 18px;
}

.dashboard-hero-card{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  padding:14px 16px 13px;
  box-sizing:border-box;
  min-height:0;
  color:#fff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.34), transparent 32%),
    linear-gradient(135deg,#172554,#2563eb 48%,#06b6d4);
  box-shadow:0 14px 32px rgba(37,99,235,.24);
}

.dashboard-hero-card::after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-56px;
  bottom:-82px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  pointer-events:none;
}

.dashboard-hero-top,
.dashboard-hero-main,
.dashboard-hero-subtitle,
.dashboard-refresh-time{
  position:relative;
  z-index:1;
}

.dashboard-hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-height:30px;
}

.dashboard-user-meta{
  flex:0 1 42%;
  min-width:0;
  max-width:160px;
  text-align:right;
  font-size:10.5px;
  line-height:1.35;
  color:rgba(255,255,255,.9);
}

.dashboard-user-meta b{
  display:block;
  font-size:11px;
  color:#fff;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dashboard-user-meta span{
  display:block;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dashboard-hero-kicker{
  font-size:10.5px;
  font-weight:900;
  letter-spacing:1.5px;
  opacity:.88;
}

.dashboard-brand-line{
  margin-top:2px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.15px;
  color:rgba(255,255,255,.92);
}

.dashboard-hero-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  margin-top:7px;
}

.dashboard-hero-title{
  min-width:0;
  font-size:19px;
  font-weight:900;
  line-height:1.08;
}

.dashboard-hero-subtitle{
  margin-top:5px;
  max-width:100%;
  font-size:11px;
  line-height:1.35;
  opacity:.9;
}

.index-feedback-contact{
  margin:18px 0 8px;
  text-align:center;
  font-size:12px;
  line-height:1.5;
  color:#64748b;
}

.index-feedback-contact-link{
  appearance:none;
  border:0;
  padding:0;
  background:transparent;
  color:#1d4ed8;
  font:inherit;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}

.dashboard-refresh-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:176px;
  min-height:36px;
}

.toggle-refreshed-link{
  display:none;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:36px;
  box-sizing:border-box;
  text-decoration:none;
  font-size:10.5px;
  line-height:1;
  font-weight:900;
  padding:9px 13px;
  border-radius:999px;
  color:#fff;
  border:1px solid rgba(255,255,255,.42);
  box-shadow:0 8px 20px rgba(15,23,42,.2);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space:nowrap;
}

.toggle-refreshed-link[data-state="show"]{
  background:linear-gradient(135deg,#ff9800,#ef6c00);
}

.toggle-refreshed-link[data-state="hide"]{
  background:linear-gradient(135deg,#2563eb,#0891b2);
}

.toggle-refreshed-link:hover,
.toggle-refreshed-link:focus-visible{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 10px 24px rgba(15,23,42,.25);
}

.toggle-refreshed-link:active{
  transform:translateY(0);
  filter:brightness(.98);
}

.toggle-refreshed-link:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
}

.toggle-refreshed-icon{
  display:inline-grid;
  place-items:center;
  width:17px;
  height:17px;
  flex:0 0 17px;
}

.toggle-refreshed-eye{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.toggle-refreshed-eye-hide{
  display:none;
}

.toggle-refreshed-link[data-state="hide"] .toggle-refreshed-eye-show{
  display:none;
}

.toggle-refreshed-link[data-state="hide"] .toggle-refreshed-eye-hide{
  display:block;
}

.dashboard-refresh-time{
  margin-top:6px;
  min-height:15px;
  font-size:10.5px;
  line-height:1.35;
  color:rgba(255,255,255,.86);
}

@media (max-width:380px){
  .dashboard-hero-card{
    border-radius:22px;
    padding:13px 14px 12px;
  }

  .dashboard-hero-main{
    grid-template-columns:1fr;
    gap:7px;
  }

  .dashboard-refresh-actions{
    min-width:0;
    min-height:34px;
    justify-content:flex-end;
  }

  .toggle-refreshed-link{
    min-height:34px;
    padding:8px 12px;
    font-size:10px;
  }

  .dashboard-hero-title{
    font-size:18px;
  }

  .dashboard-hero-subtitle{
    font-size:10.5px;
  }
}
.dashboard-insights-area{
  padding:10px 0 4px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.dashboard-insight-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  border-radius:20px;
  padding:12px;
  min-height:74px;
  color:#fff;
  cursor:pointer;
  transition:all .25s ease;
  box-shadow:0 10px 26px rgba(15,23,42,.16);
}

.dashboard-insight-card::after{
  content:"";
  position:absolute;
  width:105px;
  height:105px;
  border-radius:50%;
  background:rgba(255,255,255,.20);
}

.dashboard-insight-card.arc-br::after{
  right:-48px;
  bottom:-48px;
}

.dashboard-insight-card.arc-bl::after{
  left:-48px;
  bottom:-48px;
}

.dashboard-insight-card.arc-tl::after{
  left:-48px;
  top:-48px;
}

.dashboard-insight-card.arc-tr::after{
  right:-48px;
  top:-48px;
}

.dashboard-insight-card::before{
  content:"";
  position:absolute;
  width:105px;
  height:105px;
  border-radius:50%;
  background:rgba(255,255,255,.20);
  display:none;
}

.dashboard-insight-card.arc2-br::before{
  display:block;
  right:-48px;
  bottom:-48px;
}

.dashboard-insight-card.arc2-bl::before{
  display:block;
  left:-48px;
  bottom:-48px;
}

.dashboard-insight-card:hover{
  transform:translateY(-2px);
}

.dashboard-insight-title{
  position:relative;
  z-index:1;
  min-width:0;
  font-size:13px;
  font-weight:900;
  opacity:.96;
  line-height:1.15;
}

.dashboard-insight-title-note{
  display:block;
  margin-top:1px;
  font-size:8px;
  line-height:1.1;
  font-weight:850;
  color:#fecaca;
  letter-spacing:.15px;
}
.dashboard-insight-value{
  position:relative;
  z-index:2;
  min-width:0;
  margin-top:7px;
  font-size:clamp(15px, 4.6vw, 19px);
  font-weight:850;
  line-height:1.08;
  letter-spacing:0;
  white-space:nowrap;
  overflow:visible;
}

.dashboard-insight-value-note{
  display:block;
  margin-top:3px;
  font-size:9px;
  font-weight:700;
  line-height:1.15;
  opacity:.78;
  white-space:nowrap;
}

.dashboard-insight-value--long{
  font-size:clamp(14.5px, 4.15vw, 17px);
}

.dashboard-insight-value--xl{
  font-size:clamp(13.5px, 3.8vw, 15.5px);
}

.dashboard-insight-illustration{
  position:absolute;
  z-index:0;
  right:11px;
  bottom:10px;
  width:18%;
  min-width:28px;
  max-width:38px;
  height:auto;
  object-fit:contain;
  opacity:.70;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  filter:saturate(.92);
}
.dashboard-insight-link{
  position:relative;
  z-index:1;
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  border:0;
  border-radius:999px;
  padding:6px 10px;
  font-size:10.5px;
  font-weight:850;
  color:#0f172a;
  background:rgba(255,255,255,.92);
  box-shadow:0 6px 14px rgba(15,23,42,.16);
  cursor:pointer;
}

.gradient-cash{background:linear-gradient(135deg,#0284c7,#06b6d4);}
.gradient-safe{background:linear-gradient(135deg,#0f766e,#22c55e);}
.gradient-receivable{background:linear-gradient(135deg,#15803d,#84cc16);}
.gradient-commitment{background:linear-gradient(135deg,#6d28d9,#a855f7);}
.gradient-budget{
  background:linear-gradient(135deg,#0f766e 0%,#0891b2 52%,#06b6d4 100%);
}
.gradient-liability{background:linear-gradient(135deg,#9a3412,#ef4444);}
.gradient-credit-card{background:linear-gradient(135deg,#1d4ed8,#60a5fa);}
.gradient-expenses{
  background:linear-gradient(135deg,#475569 0%,#4f46e5 52%,#6366f1 100%);
}
.gradient-cash-outflow{
  background:linear-gradient(135deg,#92400e 0%,#b45309 52%,#d97706 100%);
}
.gradient-analysis{
  background:linear-gradient(135deg,#4338ca 0%,#5b21b6 52%,#7c3aed 100%);
}

.dashboard-inline-panel{
  margin:12px 0 18px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,250,252,.88));
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 18px 38px rgba(15,23,42,.12);
  color:#111827;
}

.dashboard-inline-panel.is-inside-grid{
  grid-column:1 / -1;
  margin:0 0 4px;
}

.dashboard-detail-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
  font-size:13px;
}

.dashboard-detail-row:last-child{
  border-bottom:none;
}

.dashboard-section-title{
  margin:18px 2px 10px;
  font-size:14px;
  font-weight:950;
  color:#0f172a;
}

.dashboard-suggestion-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.dashboard-suggestion-card{
  border-radius:20px;
  padding:14px;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid #e5e7eb;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}

.suggestion-title{
  font-size:13px;
  font-weight:900;
  color:#0f172a;
}

.suggestion-message{
  margin-top:5px;
  font-size:12px;
  line-height:1.45;
  color:#475569;
}

.dashboard-module-tiles{
  padding:8px 0 96px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.dashboard-module-tile{
  position:relative;
  overflow:hidden;
  min-width:0;
  border-radius:24px;
  padding:8px 8px 16px;
  min-height:0;
  border:1px solid rgba(226,232,240,.95);
  color:#0f274f;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}

.dashboard-module-tile:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(15,23,42,.11);
}

.dashboard-module-tile:active,
.dashboard-module-tile.is-navigating{
  transform:scale(.98);
  opacity:.86;
}

.dashboard-module-tile *{
  pointer-events:none;
}

.module-tile-image-wrap{
  width:100%;
  height:128px;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
}

.module-tile-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.module-tile-title{
  margin-top:13px;
  padding:0 7px;
  font-size:16px;
  line-height:1.2;
  font-weight:900;
  color:#0f274f;
  text-align:center;
}

.module-tile-desc{
  margin-top:7px;
  padding:0 7px;
  min-height:32px;
  font-size:11.5px;
  line-height:1.45;
  font-weight:500;
  color:#334155;
  text-align:center;
}

.dashboard-module-tile[data-key="expense"]{
  background:linear-gradient(145deg,#fff9f3,#fff1df);
  border-color:#f8dfc4;
}

.dashboard-module-tile[data-key="earnings"]{
  background:linear-gradient(145deg,#f6fff4,#e8f9e5);
  border-color:#d4edce;
}

.dashboard-module-tile[data-key="budget"]{
  background:linear-gradient(145deg,#f7fbff,#eaf4ff);
  border-color:#d4e7fb;
}

.dashboard-module-tile[data-key="commit"]{
  background:linear-gradient(145deg,#fff8fa,#fdebf1);
  border-color:#f4d5df;
}

.dashboard-module-tile[data-key="liabilities"]{
  background:linear-gradient(145deg,#faf8ff,#f0ebff);
  border-color:#dfd7f6;
}

.dashboard-module-tile[data-key="analysis"]{
  background:linear-gradient(145deg,#f5fffb,#e7faf3);
  border-color:#d0eee3;
}

.dashboard-module-tile[data-key="manage-users"]{
  background:linear-gradient(145deg,#fffdf6,#fff5dc);
  border-color:#f3e2b6;
}

.dashboard-module-tile[data-key="internal-transfer"]{
  background:linear-gradient(145deg,#f4fbff,#e5f4ff);
  border-color:#cfe7f7;
}

@media (max-width:380px){
  .dashboard-module-tiles{
    gap:10px;
  }

.dashboard-module-tile{
  min-height:0;
  padding:7px 7px 14px;
  border-radius:21px;
}

  .module-tile-image-wrap{
    height:112px;
    border-radius:16px;
  }

  .module-tile-title{
    font-size:15px;
  }

  .module-tile-desc{
    font-size:11px;
  }
}
.legacy-dashboard-card{
  display:none;
}

.hidden{
  display:none !important;
}

body {
      margin: 0;
      padding: 56px 12px 16px;
    }

    .card {
      border: 1px solid #e7e7e7;
      background: #ffffff;
      border-radius: 20px;
      padding: 14px;
      margin: 12px 0;
      box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    }

    .card .label {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 12px;
      background: #f4f6ff;
      border: 1px solid #e3e6ff;
      font-weight: 700;

      font-size: 13px;
      max-width: 100%;
      white-space: normal;
    }

    label {
      font-size: 13px;
      font-weight: 700;
    }

    .big {
      font-size: 30px;
      font-weight: 800;
      margin-top: 10px;
      letter-spacing: 0.2px;
    }

    select {
      border: 1px solid #d9d9d9;
      outline: none;
    }
    select:focus {
      border-color: #b9c4ff;
    }

    button {
      border-radius: 12px;
      padding: 10px 12px;
    }

    .modalContentBody {
      font-size: 13px;
      line-height: 1.6;
      max-height: 65vh;
      overflow: auto;
      padding-right: 4px;
    }
    .modalContentBody h1, .modalContentBody h2, .modalContentBody h3 {
      margin: 12px 0 6px;
    }
    .modalContentBody p { margin: 8px 0; }
    .modalContentBody ul { margin: 8px 0 8px 18px; }

.saffron-cta {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ff9800, #ef6c00);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.primary-cta {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #ffffff;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.primary-cta:active {
  transform: scale(0.98);
}

.profile-quick-bar {
  position: fixed;
  top: 58px;
  right: 12px;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.profile-user-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #2563eb;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(37,99,235,.24);
  cursor: pointer;
}

.switch-family-btn {
  display: none;
  pointer-events: auto;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
  white-space: nowrap;
  cursor: pointer;
}

.switch-family-btn:active {
  transform: scale(0.97);
}

.profile-quick-bar {
  gap: 8px;
  align-items: center;
}

.invite-family-link {
  pointer-events: auto;
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.invite-family-link:active {
  transform: scale(0.98);
}

.profile-quick-bar.has-family-switch {
  display: grid;
  grid-template-columns: auto 38px;
  align-items: center;
  justify-items: end;
}

.profile-quick-bar.has-family-switch .switch-family-btn {
  grid-column: 1;
  grid-row: 1;
}

.profile-quick-bar.has-family-switch .profile-user-btn {
  grid-column: 2;
  grid-row: 1;
}

.profile-quick-bar.has-family-switch .invite-family-link {
  grid-column: 1 / 3;
  grid-row: 2;
  justify-self: end;
}

.quick-expense-fab {
  --expense-fab-size: 76px;

  position: fixed;
  right: 14px;
  top: 52%;
  z-index: 9000;

  width: var(--expense-fab-size);
  height: var(--expense-fab-size);
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;

  touch-action: none;

  transform: translateY(-50%);

  transition:
    filter .16s ease,
    transform .16s ease,
    opacity .16s ease;
}

.quick-expense-fab img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.quick-expense-fab:active {
  transform:
    translateY(-50%)
    scale(.96);
}

.quick-expense-fab.is-dragging {
  transition:
    filter .16s ease,
    opacity .16s ease;

  filter:
    drop-shadow(
      0 6px 10px
      rgba(15, 23, 42, .22)
    );

  cursor: grabbing;
}

.quick-expense-fab:focus-visible {
  outline:
    3px solid
    rgba(11, 99, 206, .32);

  outline-offset: 3px;
}

.quick-expense-fab.onboarding-emphasis {
  animation:
    expenseFabOnboardingPulse
    1.25s ease-out 2;
}

@keyframes expenseFabOnboardingPulse {
  0% {
    filter:
      drop-shadow(
        0 0 0
        rgba(22, 119, 242, 0)
      );
  }

  45% {
    filter:
      drop-shadow(
        0 0 9px
        rgba(22, 119, 242, .45)
      );
  }

  100% {
    filter:
      drop-shadow(
        0 0 0
        rgba(22, 119, 242, 0)
      );
  }
}

@media (max-width: 420px) {
  .quick-expense-fab {
    --expense-fab-size: 70px;
    right: 10px;
  }
}

@media (max-height: 620px) {
  .quick-expense-fab {
    --expense-fab-size: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-expense-fab,
  .quick-expense-fab.onboarding-emphasis {
    animation: none;
    transition: none;
  }
}

html.preinit body > .app-dialog-overlay[data-dialog-managed="true"],
html.page-resuming body > .app-dialog-overlay[data-dialog-managed="true"] {
  visibility: visible;
  z-index: 2147483647;
}
