:root{
  --bg:#f6f3ff;
  --bg2:#fff7ed;
  --surface:#ffffff;
  --surface2:#faf9ff;
  --text:#172033;
  --muted:#697386;
  --line:#e7e1f5;
  --primary:#7c3aed;
  --primary2:#5b21b6;
  --primary-soft:#f1eaff;
  --accent:#f59e0b;
  --accent-soft:#fff4dc;
  --success:#15803d;
  --danger:#dc2626;
  --danger-soft:#fff1f2;
  --shadow:0 18px 45px rgba(47,28,97,.12);
  --shadow-soft:0 8px 22px rgba(47,28,97,.08);
  --radius:24px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans Hebrew',Arial,sans-serif;background:radial-gradient(circle at top right,rgba(124,58,237,.14),transparent 28rem),linear-gradient(180deg,var(--bg2),var(--bg));color:var(--text);font-size:16px;line-height:1.55;min-height:100vh}
a{color:var(--primary2);text-decoration:none}a:hover{text-decoration:none}
.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.84);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(231,225,245,.8);padding:14px clamp(14px,3vw,28px);display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 28px rgba(47,28,97,.06)}
.brand a{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:900;color:var(--text);letter-spacing:-.02em}.brand-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:0 10px 20px rgba(124,58,237,.2)}
.topnav{display:flex;gap:8px;align-items:center;overflow:auto;scrollbar-width:none}.topnav::-webkit-scrollbar{display:none}.topnav a{white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 14px;color:var(--text);font-weight:800;box-shadow:var(--shadow-soft);transition:transform .16s ease,background .16s ease,color .16s ease}.topnav a:active{transform:scale(.96)}.topnav a.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border-color:transparent}
.container{width:min(1180px,100%);margin:auto;padding:28px clamp(12px,3vw,24px) 96px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px}h1{font-size:clamp(28px,5vw,40px);margin:0 0 18px;font-weight:950;color:#12192a;letter-spacing:-.04em}h2{font-size:clamp(20px,3vw,25px);margin:0 0 16px;color:#202a3c;font-weight:900}.card{background:rgba(255,255,255,.92);border:1px solid rgba(231,225,245,.9);border-radius:var(--radius);padding:22px;margin-bottom:20px;box-shadow:var(--shadow);overflow:hidden}.auth{max-width:480px;margin:42px auto}.auth .card,.auth.card{border-radius:30px;padding:28px;background:rgba(255,255,255,.94)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat{font-size:38px;font-weight:950;color:var(--primary);line-height:1}.card.stat strong{display:block;font-size:14px;color:var(--muted);font-weight:800;margin-bottom:8px}.card.stat span{font-size:22px;font-weight:900;color:var(--text)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-weight:900;margin:0 0 7px;color:#1d2638}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:18px;padding:14px 15px;background:#fff;color:var(--text);font-size:16px;outline:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;min-height:52px}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 5px rgba(124,58,237,.12)}textarea{min-height:105px;resize:vertical}
button,.btn{border:0;border-radius:18px;padding:14px 20px;min-height:50px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:950;cursor:pointer;box-shadow:0 12px 26px rgba(124,58,237,.22);display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}button:active,.btn:active{transform:scale(.97)}button:hover,.btn:hover{filter:brightness(.98);text-decoration:none}.btn.secondary,button.secondary,.btn-small.secondary{background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow-soft)}.btn-small{border-radius:14px;padding:8px 12px;min-height:38px;background:var(--primary);color:#fff;font-size:14px;font-weight:900;display:inline-flex;align-items:center;justify-content:center}.btn-small.danger,button.danger{background:var(--danger);color:#fff}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.inline-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.inline-form{display:inline}.inline-form button{padding:8px 12px;min-height:38px;border-radius:14px;box-shadow:none}
.notice{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:18px;padding:13px 16px;margin:12px 0;font-weight:700}.notice.error{border-color:#fecdd3;background:var(--danger-soft);color:#991b1b}.notice.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.muted{color:var(--muted);font-size:14px}.table-wrap{overflow:auto;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:14px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}th{background:linear-gradient(180deg,#fff,#f7f2ff);color:#392956;font-weight:950;position:sticky;top:0}tr:last-child td{border-bottom:0}.compact td,.compact th{font-size:15px}.empty-state{text-align:center;color:var(--muted);padding:25px}.received{color:var(--success);font-weight:950}.given{color:#a16207;font-weight:950}.edit-box{border-color:rgba(124,58,237,.45);background:linear-gradient(180deg,#fff,#fbf8ff)}.back-link{display:inline-flex;margin-bottom:12px;font-weight:900;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 14px;box-shadow:var(--shadow-soft)}
.bottom-nav{position:fixed;z-index:60;right:10px;left:10px;bottom:calc(10px + var(--safe-bottom));display:none;grid-template-columns:repeat(5,1fr);gap:5px;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(231,225,245,.9);border-radius:26px;padding:8px;box-shadow:0 18px 45px rgba(47,28,97,.18)}.bottom-nav a{min-height:54px;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-weight:900;font-size:11px}.bottom-nav a span{font-size:19px;line-height:1}.bottom-nav a.active{background:linear-gradient(135deg,var(--primary-soft),#fff4dc);color:var(--primary2)}
@media(min-width:801px) and (max-width:1100px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar{align-items:flex-start;flex-direction:column}.topnav{width:100%;padding-bottom:2px}.container{padding-bottom:108px}.bottom-nav{display:grid;right:22px;left:22px;max-width:760px;margin:auto}}
@media(max-width:800px){body{font-size:15px}.topbar{padding:12px 14px}.brand a{font-size:17px}.brand-icon{width:34px;height:34px;border-radius:14px}.topnav{display:none}.bottom-nav{display:grid}.container{padding:22px 12px 104px}.grid,.summary-grid,.form-grid{grid-template-columns:1fr;gap:12px}h1{font-size:30px}.card{padding:17px;border-radius:22px;margin-bottom:15px}.auth{margin:24px auto}.actions .btn,.actions button{flex:1 1 100%}button,.btn{width:100%}.inline-actions .btn-small,.inline-actions button{width:auto}.section-title{align-items:flex-start;flex-direction:column}.table-wrap{background:transparent;border:0;box-shadow:none;overflow:visible}table.responsive-table,table{min-width:0;border-collapse:separate;border-spacing:0 12px}table.responsive-table thead,table thead,table.responsive-table tr:first-child:has(th),table tr:first-child:has(th){display:none}table.responsive-table tr,table tr{display:block;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:22px;padding:8px 12px;box-shadow:var(--shadow-soft);margin-bottom:12px}table.responsive-table td,table td{display:flex;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid #f1edf8;padding:10px 2px;text-align:right;align-items:flex-start}table.responsive-table td:last-child,table td:last-child{border-bottom:0}td::before{content:attr(data-label);font-weight:950;color:#5b4a78;min-width:95px}.empty-state{display:block!important;text-align:center}.empty-state::before{display:none}.compact td,.compact th{font-size:14px}input,select,textarea{border-radius:16px;min-height:50px}.stat{font-size:34px}}
@media(max-width:380px){.bottom-nav{right:6px;left:6px;padding:6px;border-radius:22px}.bottom-nav a{min-height:50px;border-radius:17px;font-size:10px}.container{padding-left:9px;padding-right:9px}.card{padding:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


.profile-link{font-weight:950;color:var(--primary2);display:inline-flex;align-items:center;gap:6px}.profile-link:after{content:'›';font-weight:950;color:var(--accent)}
.profile-title h1{margin-bottom:4px}.profile-stats .card.stat span{font-size:clamp(19px,4vw,25px)}
.details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.details-grid div{background:var(--surface2);border:1px solid var(--line);border-radius:18px;padding:14px}.details-grid b{display:block;color:var(--muted);font-size:13px;margin-bottom:5px}.details-grid span{font-weight:900;color:var(--text);word-break:break-word}.notes-box{margin-top:14px;background:var(--accent-soft);border:1px solid #fde7b2;border-radius:18px;padding:15px;color:#473617}.event-profile-card{padding:18px}.event-profile-head{margin-bottom:10px}.event-profile-head h2{margin-bottom:4px}.mini-summary{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 14px}.mini-summary span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-weight:900;box-shadow:var(--shadow-soft)}.inner-table{box-shadow:none;border-radius:18px}.inner-table table{min-width:650px}
@media(max-width:800px){.details-grid{grid-template-columns:1fr}.profile-title .inline-actions,.event-profile-head .inline-actions{width:100%}.profile-title .btn-small,.event-profile-head .btn-small{flex:1}.mini-summary span{flex:1 1 100%;text-align:center}.inner-table table{min-width:0}.profile-card{padding:16px}.event-profile-card{padding:15px}}

/* Updates: mobile safe-area, row lists, search */
html, body { padding-top: max(env(safe-area-inset-top), 12px); padding-bottom: env(safe-area-inset-bottom); }
.searchbar{display:flex;gap:10px;align-items:center;margin:12px 0 18px;flex-wrap:wrap}.searchbar input{flex:1;min-width:180px}.searchbar select{min-width:150px}.list-table{display:flex;flex-direction:column;gap:10px;margin-top:12px}.list-row{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:14px 16px;display:grid;grid-template-columns:1.3fr 1.4fr auto;gap:12px;align-items:center;box-shadow:0 8px 24px rgba(15,23,42,.05)}.list-row.clickable{cursor:pointer}.list-row.clickable:hover{transform:translateY(-1px);box-shadow:0 12px 30px rgba(15,23,42,.08)}.row-main{display:flex;flex-direction:column;gap:4px}.row-main strong{font-size:16px;color:#111827}.row-main span,.row-info{color:#64748b;font-size:13px}.row-info{display:flex;gap:10px;flex-wrap:wrap}.account-card{background:linear-gradient(135deg,#ffffff,#f5f3ff)}
@media (max-width: 760px){.list-row{grid-template-columns:1fr;gap:10px}.row-info{font-size:12px}.inline-actions{justify-content:flex-start}.searchbar{display:grid;grid-template-columns:1fr}.searchbar input,.searchbar select,.searchbar button,.searchbar a{width:100%}.topnav a[href="change_password.php"]{display:none!important}}

/* Final UX updates: search results placement, gift/event color meaning, mobile/tablet, nicer reminders */
.search-results-list{margin:10px 0 26px}.searchbar{position:relative;z-index:2}.list-row.event-received{border-right:7px solid #22c55e;background:linear-gradient(90deg,#ffffff 0%,#f0fdf4 100%)}.list-row.event-given{border-right:7px solid #3b82f6;background:linear-gradient(90deg,#ffffff 0%,#eff6ff 100%)}.given-blue{color:#2563eb;font-weight:950}.list-row.event-received .row-main strong:before{content:'קיבלתי כסף';display:inline-flex;margin-left:8px;background:#dcfce7;color:#166534;border:1px solid #bbf7d0;border-radius:999px;padding:4px 9px;font-size:12px;vertical-align:middle}.list-row.event-given .row-main strong:before{content:'נתתי כסף';display:inline-flex;margin-left:8px;background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:999px;padding:4px 9px;font-size:12px;vertical-align:middle}.toggle-line{display:flex;align-items:center;gap:12px;min-height:52px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:10px 14px;cursor:pointer}.toggle-line input{position:absolute;opacity:0;pointer-events:none}.fake-toggle{width:54px;height:30px;border-radius:999px;background:#e5e7eb;position:relative;display:inline-block;transition:.18s ease;box-shadow:inset 0 2px 6px rgba(0,0,0,.08)}.fake-toggle:after{content:'';position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 2px 7px rgba(0,0,0,.18);transition:.18s ease}.toggle-line input:checked + .fake-toggle{background:linear-gradient(135deg,var(--primary),var(--primary2))}.toggle-line input:checked + .fake-toggle:after{right:28px}.toggle-line b{font-weight:950;color:#1f2937}.card + h2,.search-results-list + .card{margin-top:22px}@media(max-width:900px){.topbar{position:sticky;top:0}.container{padding-top:18px}.list-row{border-radius:22px;padding:16px;grid-template-columns:1fr}.list-row.event-received,.list-row.event-given{border-right-width:6px}.list-row .inline-actions{display:flex;gap:8px}.list-row .inline-actions .btn-small,.list-row .inline-actions button{min-width:92px}.search-results-list{margin-bottom:20px}.form-grid{gap:13px}.toggle-line{min-height:56px}.card{box-shadow:0 10px 30px rgba(47,28,97,.08)}}@media(max-width:520px){.list-row.event-received .row-main strong:before,.list-row.event-given .row-main strong:before{display:flex;width:max-content;margin:0 0 6px 0}.row-info{gap:7px}.row-info span{background:#f8fafc;border:1px solid #eef2f7;border-radius:999px;padding:5px 8px}.topbar{padding-top:max(env(safe-area-inset-top),10px)}input,select,textarea{font-size:16px}.searchbar{gap:8px}.searchbar .btn-small{min-height:46px}}


/* final layout corrections - search above results, compact yearly reminder */
.results-searchbar{margin:10px 0 12px;z-index:1}
.card + h2{margin-top:28px}
.search-results-list{margin-top:8px}
.compact-toggle{display:inline-flex!important;width:auto!important;min-height:44px!important;padding:8px 12px!important;border-radius:999px!important;gap:10px!important;align-items:center!important}
.compact-toggle .fake-toggle{width:44px!important;height:24px!important;flex:0 0 auto}
.compact-toggle .fake-toggle:after{width:18px!important;height:18px!important;top:3px!important;right:3px!important}
.compact-toggle input:checked + .fake-toggle:after{right:23px!important}
.compact-toggle span:last-child{font-weight:850;color:#1f2937;font-size:14px}
.compact-toggle b{display:none!important}
@media(max-width:760px){.card + h2{margin-top:22px}.results-searchbar{margin-bottom:10px}.compact-toggle{width:100%!important;justify-content:flex-start!important}.section-title h1{font-size:30px}.card{padding:18px}.form-grid{grid-template-columns:1fr!important}.list-row{grid-template-columns:1fr!important}}

/* Professional autocomplete + compact mobile list update */
.autocomplete-field{position:relative;z-index:5}
.autocomplete-menu{position:absolute;top:calc(100% - 2px);right:0;left:0;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 42px rgba(15,23,42,.16);overflow:hidden;display:none;max-height:260px;overflow-y:auto;z-index:1200}
.autocomplete-menu.show{display:block}
.autocomplete-option{padding:13px 15px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #f1edf8;color:#64748b;font-weight:650}
.autocomplete-option:last-child{border-bottom:0}
.autocomplete-option:hover,.autocomplete-option.active{background:linear-gradient(135deg,#f5f3ff,#fff7ed);color:#111827}
.autocomplete-option mark{background:transparent;color:#111827;font-weight:950;padding:0}
.autocomplete-option small{color:#94a3b8;font-weight:800}
.field-help{display:block;margin-top:7px;color:#64748b;font-size:12px;font-weight:700}
.compact-list .list-row{transition:transform .14s ease, box-shadow .14s ease}
@media(max-width:760px){
  .list-table.compact-list{gap:7px}
  .compact-list .list-row{display:grid!important;grid-template-columns:1fr auto!important;gap:6px 10px!important;padding:10px 12px!important;border-radius:15px!important;min-height:58px!important;box-shadow:0 4px 14px rgba(15,23,42,.045)!important;align-items:center!important}
  .compact-list .row-main{gap:2px!important;min-width:0!important}
  .compact-list .row-main strong{font-size:15px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .compact-list .row-main span{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#64748b!important;max-width:100%}
  .compact-list .row-info{grid-column:1/-1;display:flex!important;gap:6px!important;overflow:hidden!important;flex-wrap:nowrap!important;font-size:11px!important;color:#64748b!important}
  .compact-list .row-info span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#f8fafc;border:1px solid #eef2f7;border-radius:999px;padding:4px 7px;max-width:46%}
  .compact-list .inline-actions{grid-column:2;grid-row:1 / span 2;display:flex!important;gap:5px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
  .compact-list .inline-actions .btn-small,.compact-list .inline-actions button{min-width:auto!important;width:auto!important;min-height:34px!important;padding:7px 9px!important;font-size:11px!important;border-radius:11px!important;box-shadow:none!important}
  .compact-list .inline-form{display:inline-flex!important}
  .compact-list .list-row.event-received,.compact-list .list-row.event-given{border-right-width:4px!important}
  .compact-list .list-row.event-received .row-main strong:before,.compact-list .list-row.event-given .row-main strong:before{display:none!important}
  .reminder-row .row-info span:empty{display:none!important}
  .autocomplete-menu{position:absolute;max-height:220px;border-radius:16px}.autocomplete-option{padding:12px 13px;font-size:14px}
}


/* final mobile fixes: no copy, bottom nav flush, compact dashboard */

html,
body {
  margin: 0 !important;
  padding-bottom: 0 !important;
  overflow-x: hidden;
}

* {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

.bottom-nav {
  position: fixed !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  padding: 6px 8px 6px !important;
  padding-bottom: 6px !important;
  z-index: 9999 !important;
}

@media (max-width: 800px) {
  .container {
    padding-bottom: 82px !important;
  }

  .grid,
  .summary-grid,
  .dashboard-stats,
  .stats-grid,
  .quick-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .card.stat,
  .stat-card,
  .dashboard-card,
  .info-card {
    width: auto !important;
    flex: unset !important;
    margin-bottom: 0 !important;
    min-height: 92px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .stat {
    font-size: 32px !important;
    line-height: 1.05 !important;
  }

  .monthly-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .monthly-grid .card {
    min-height: 150px !important;
    padding: 14px !important;
  }

  .monthly-grid h2 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .bottom-nav a {
    min-height: 52px !important;
  }
}

@media (max-width: 420px) {
  .container {
    padding-bottom: 78px !important;
  }

  .bottom-nav {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .bottom-nav a {
    min-height: 50px !important;
    font-size: 10px !important;
  }

  .card.stat,
  .stat-card,
  .dashboard-card,
  .info-card {
    min-height: 86px !important;
    padding: 12px !important;
  }
}

/* dashboard clickable cards */
.dashboard-link {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.dashboard-link:hover {
  text-decoration: none !important;
  transform: translateY(-2px);
  filter: brightness(.99);
}

.dashboard-link:active {
  transform: scale(.98);
}

.dashboard-link div {
  color: inherit;
}


/* ===== ALIWOO GIFT APP LUXURY MOBILE THEME v1 ===== */
:root{--bg:#080613!important;--bg2:#15051f!important;--surface:rgba(17,14,29,.88)!important;--surface2:rgba(25,18,38,.82)!important;--text:#fff7e6!important;--muted:#c6b8d6!important;--line:rgba(255,204,105,.20)!important;--primary:#8b2cff!important;--primary2:#4c0d8c!important;--primary-soft:rgba(139,44,255,.16)!important;--accent:#f7c65a!important;--accent-soft:rgba(247,198,90,.14)!important;--success:#38d178!important;--danger:#ef4444!important;--shadow:0 22px 55px rgba(0,0,0,.42)!important;--shadow-soft:0 10px 30px rgba(0,0,0,.25)!important;--radius:28px!important}
html,body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
input,textarea,select,option{-webkit-user-select:text!important;user-select:text!important}
body{background:radial-gradient(circle at 75% 10%,rgba(247,198,90,.18),transparent 24rem),radial-gradient(circle at 15% 20%,rgba(139,44,255,.22),transparent 22rem),linear-gradient(180deg,#090613 0%,#170821 45%,#05030a 100%)!important;color:var(--text)!important;padding-bottom:0!important}
body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(130deg,transparent 0 55%,rgba(157,50,255,.10) 60%,transparent 68%),linear-gradient(35deg,transparent 0 60%,rgba(247,198,90,.08) 65%,transparent 74%)}
.topbar{background:rgba(8,6,19,.86)!important;border-bottom:1px solid rgba(247,198,90,.18)!important;box-shadow:0 12px 34px rgba(0,0,0,.35)!important}.brand a{color:var(--text)!important}
.brand-icon{width:50px!important;height:50px!important;border-radius:18px!important;overflow:hidden!important;background:linear-gradient(135deg,#32104d,#0a0614)!important;border:1px solid rgba(247,198,90,.42)!important;box-shadow:0 0 28px rgba(247,198,90,.20),0 0 35px rgba(139,44,255,.20)!important}.brand-icon img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.topnav a,.bottom-nav a{background:rgba(20,15,33,.92)!important;color:var(--text)!important;border:1px solid rgba(247,198,90,.18)!important}.topnav a.active,.bottom-nav a.active{background:linear-gradient(135deg,#7c2cff,#351174 55%,#d69d36)!important;color:#fff!important}
.card,.auth.card,.auth .card{background:linear-gradient(180deg,rgba(27,20,43,.94),rgba(14,10,25,.94))!important;border:1px solid rgba(247,198,90,.20)!important;box-shadow:0 18px 48px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.05)!important}
h1,h2,label{color:var(--text)!important}.muted{color:var(--muted)!important}
input,select,textarea{background:rgba(255,255,255,.06)!important;color:#fff!important;border:1px solid rgba(247,198,90,.20)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}input::placeholder,textarea::placeholder{color:rgba(230,220,240,.62)!important}
button,.btn,.btn-small{background:linear-gradient(135deg,#8b2cff 0%,#5b16c7 45%,#f0b84c 120%)!important;color:#fff!important;border:1px solid rgba(247,198,90,.35)!important;box-shadow:0 14px 28px rgba(139,44,255,.25)!important}.btn-small.secondary,.secondary{background:rgba(255,255,255,.06)!important;color:var(--text)!important}
.notice{background:rgba(56,209,120,.12)!important;border:1px solid rgba(56,209,120,.28)!important;color:#b9ffd4!important}.notice.error{background:rgba(239,68,68,.14)!important;border-color:rgba(239,68,68,.32)!important;color:#ffd0d0!important}
.bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;margin:0!important;border-radius:24px 24px 0 0!important;background:rgba(8,6,19,.92)!important;border:1px solid rgba(247,198,90,.18)!important;padding:8px 10px max(8px,env(safe-area-inset-bottom,0px))!important}.container{padding-bottom:92px!important}
.home-stats-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 18px!important}.home-stat-card{display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:118px!important;background:linear-gradient(180deg,rgba(27,20,43,.94),rgba(14,10,25,.94))!important;border:1px solid rgba(247,198,90,.20)!important;border-radius:24px!important;padding:18px!important;box-shadow:var(--shadow-soft)!important;color:var(--text)!important;text-decoration:none!important}.home-stat-card strong{color:#f6c453!important;font-size:clamp(34px,6vw,54px)!important;line-height:1!important;font-weight:950!important}.home-stat-card span{font-weight:850!important;color:var(--text)!important;margin-top:6px!important}
.home-quick-actions{display:flex!important;gap:12px!important;flex-wrap:wrap!important}.home-quick-actions .btn{flex:1 1 180px!important}.home-month-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}.mini-list{display:flex!important;flex-direction:column!important;gap:9px!important}.mini-row{display:block!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(247,198,90,.18)!important;border-radius:16px!important;padding:11px 13px!important;color:var(--text)!important;text-decoration:none!important}.mini-row b{display:block!important;font-weight:950!important;color:#f6c453!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.mini-row span{display:block!important;color:var(--muted)!important;font-size:13px!important;margin-top:3px!important}
.list-row{background:linear-gradient(180deg,rgba(27,20,43,.92),rgba(14,10,25,.92))!important;border-color:rgba(247,198,90,.18)!important;color:var(--text)!important}.row-main strong{color:#fff7e6!important}.row-main span,.row-info{color:var(--muted)!important}
@media(max-width:900px){.container{padding-bottom:88px!important}.home-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.home-stat-card{min-height:92px!important;border-radius:20px!important;padding:14px!important}.home-stat-card strong{font-size:34px!important}.home-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.home-month-card{min-height:160px!important;border-radius:20px!important;padding:15px!important}.home-month-card h2{font-size:20px!important;line-height:1.25!important}.home-quick-actions{flex-direction:column!important}.home-quick-actions .btn{width:100%!important;min-height:54px!important}.list-table,.list-table.compact-list{gap:7px!important}.list-row,.compact-list .list-row{display:grid!important;grid-template-columns:1fr auto!important;gap:5px 10px!important;min-height:54px!important;padding:9px 12px!important;border-radius:15px!important;margin-bottom:7px!important;box-shadow:0 4px 14px rgba(0,0,0,.20)!important}.list-row .row-main strong,.compact-list .row-main strong{font-size:15px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.list-row .row-main span,.compact-list .row-main span{font-size:12px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.list-row .row-info,.compact-list .row-info{grid-column:1/-1!important;display:flex!important;flex-wrap:nowrap!important;overflow:hidden!important;gap:5px!important;font-size:11px!important}.list-row .row-info span,.compact-list .row-info span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:48%!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(247,198,90,.13)!important;border-radius:999px!important;padding:4px 7px!important}.list-row .inline-actions,.compact-list .inline-actions{grid-column:2!important;grid-row:1/span 2!important;display:flex!important;flex-wrap:nowrap!important;gap:5px!important;align-items:center!important;justify-content:flex-end!important}.list-row .inline-actions .btn-small,.list-row .inline-actions button,.compact-list .inline-actions .btn-small,.compact-list .inline-actions button{width:auto!important;min-width:auto!important;min-height:32px!important;padding:7px 9px!important;font-size:11px!important;border-radius:11px!important}}


/* ===== ALIWOO GIFT APP FIXES v2 ===== */

/* Autocomplete exactly under field, no big gap, luxury colors */
.autocomplete-field{
  position:relative!important;
  z-index:50!important;
}
.autocomplete-menu{
  position:absolute!important;
  top:calc(100% + 6px)!important;
  right:0!important;
  left:0!important;
  margin:0!important;
  max-height:220px!important;
  overflow-y:auto!important;
  background:linear-gradient(180deg,rgba(27,20,43,.98),rgba(10,7,20,.98))!important;
  border:1px solid rgba(247,198,90,.38)!important;
  border-radius:18px!important;
  box-shadow:0 18px 42px rgba(0,0,0,.55),0 0 28px rgba(139,44,255,.20)!important;
  color:#fff7e6!important;
  z-index:9999!important;
}
.autocomplete-menu.show{display:block!important}
.autocomplete-option{
  color:#d9cfea!important;
  background:transparent!important;
  border-bottom:1px solid rgba(247,198,90,.13)!important;
  padding:12px 14px!important;
  min-height:44px!important;
}
.autocomplete-option:hover,
.autocomplete-option.active{
  background:linear-gradient(135deg,rgba(139,44,255,.22),rgba(247,198,90,.12))!important;
  color:#fff7e6!important;
}
.autocomplete-option mark{
  color:#f6c453!important;
  font-weight:950!important;
  background:transparent!important;
}
.autocomplete-option small{
  color:#bba6d6!important;
}
.field-help{display:none!important}

/* Better readable purple/gold list titles */
.list-row .row-main strong,
.compact-list .row-main strong,
.row-main strong,
.list-row a,
.mini-row b{
  color:#c084fc!important;
  text-shadow:0 0 12px rgba(192,132,252,.22)!important;
}
.list-row .row-main span,
.compact-list .row-main span,
.row-info,
.row-info span{
  color:#d8c9ea!important;
}
.list-row{
  border-right-color:#f6c453!important;
}

/* Hide empty chips/frames */
.row-info span:empty,
.list-row span:empty,
.pill:empty,
.badge:empty,
.tag:empty{
  display:none!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
}

/* Contact personal card readability */
.details-grid div,
.profile-card .details-grid div{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04))!important;
  border:1px solid rgba(247,198,90,.22)!important;
  color:#fff7e6!important;
}
.details-grid b,
.profile-card .details-grid b{
  color:#f6c453!important;
}
.details-grid span,
.profile-card .details-grid span{
  color:#fff7e6!important;
  font-weight:900!important;
}
.inner-table,
.table-wrap,
.profile-card table,
.event-profile-card table{
  background:rgba(15,10,28,.96)!important;
  color:#fff7e6!important;
}
td,th{
  color:#fff7e6!important;
}
th{
  background:linear-gradient(180deg,rgba(247,198,90,.18),rgba(139,44,255,.12))!important;
  color:#f6c453!important;
}

/* Home: remove quick actions visually even if cached old markup exists */
.home-quick-card{display:none!important}

/* Account buttons spacing */
.home-account .inline-actions{
  gap:9px!important;
  flex-wrap:wrap!important;
}
.home-account .inline-actions .btn-small{
  flex:1 1 auto!important;
  min-width:110px!important;
}

@media(max-width:900px){
  .autocomplete-menu{
    top:calc(100% + 5px)!important;
    border-radius:16px!important;
    max-height:190px!important;
  }
  .autocomplete-option{
    padding:11px 13px!important;
    font-size:14px!important;
  }
  .home-account .inline-actions .btn-small{
    min-height:42px!important;
    padding:9px 10px!important;
    font-size:13px!important;
  }
}


/* FIX COLORS LOGIN + RESET */
.notice-dark{
  background: linear-gradient(135deg, rgba(20,15,40,0.95), rgba(10,7,25,0.95));
  border: 1px solid rgba(192,132,252,0.4);
  color: #e9d5ff;
  box-shadow: 0 0 25px rgba(139,44,255,0.2);
  border-radius: 18px;
  text-align: center;
  font-weight: 600;
}
.auth a{
  color:#c084fc !important;
  font-weight:800;
}
.auth a:hover{
  color:#ffffff !important;
}
.auth input{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(192,132,252,0.25);
  color:#fff;
}


/* ===== READABILITY FIX v3 - contact profile + auth screens ===== */

/* כל הקישורים במסכי כניסה / הרשמה / שחזור */
.auth .muted,
.auth .muted a,
.auth a{
  color:#e9d5ff!important;
  opacity:1!important;
  font-weight:900!important;
  text-shadow:0 0 12px rgba(192,132,252,.32)!important;
}
.auth .muted a{
  color:#f6c453!important;
}
.auth .muted a:hover{
  color:#ffffff!important;
}

/* הודעת שחזור סיסמה - במקום ירוק */
.auth .notice,
.notice.notice-dark,
.forgot-password .notice{
  background:linear-gradient(145deg, rgba(33,22,55,.96), rgba(12,8,24,.96))!important;
  border:1px solid rgba(246,196,83,.42)!important;
  color:#fff7e6!important;
  box-shadow:0 0 32px rgba(139,44,255,.22), inset 0 1px 0 rgba(255,255,255,.06)!important;
  border-radius:22px!important;
  font-weight:850!important;
  line-height:1.7!important;
}
.auth .notice strong,
.notice.notice-dark strong{
  color:#f6c453!important;
  font-weight:950!important;
}

/* שדות וכותרות במסכי כניסה / הרשמה */
.auth h1{
  color:#fff7e6!important;
  text-shadow:0 0 16px rgba(246,196,83,.16)!important;
}
.auth label{
  color:#fff7e6!important;
  opacity:1!important;
  font-weight:950!important;
}
.auth input{
  color:#fff7e6!important;
  background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045))!important;
  border:1px solid rgba(246,196,83,.32)!important;
}
.auth input::placeholder{
  color:#cbb7dc!important;
}

/* כרטיס אישי - מסיר אזורים לבנים ומתקן קריאות */
.profile-card,
.profile-card *,
.profile-stats,
.profile-stats *,
.details-grid,
.details-grid *,
.card.profile-card{
  color:#fff7e6!important;
}

.profile-card,
.card.profile-card,
.profile-card .details-grid,
.details-grid,
.profile-card table,
.profile-card .table-wrap,
.profile-card .inner-table,
.event-profile-card,
.event-profile-card table,
.table-wrap,
.inner-table{
  background:linear-gradient(180deg, rgba(27,20,43,.97), rgba(10,7,20,.98))!important;
  border-color:rgba(246,196,83,.28)!important;
}

.details-grid div,
.profile-card .details-grid div{
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035))!important;
  border:1px solid rgba(246,196,83,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}

.details-grid b,
.profile-card .details-grid b,
.profile-card th,
.event-profile-card th{
  color:#f6c453!important;
  font-weight:950!important;
  opacity:1!important;
}

.details-grid span,
.profile-card .details-grid span,
.profile-card td,
.event-profile-card td,
.profile-card p,
.profile-card li{
  color:#fff7e6!important;
  opacity:1!important;
  font-weight:750!important;
}

/* טבלאות/כרטיסים פנימיים בכרטיס אישי - שלא יהיו לבנים */
.profile-card table,
.event-profile-card table,
table{
  background:rgba(13,9,25,.96)!important;
  color:#fff7e6!important;
  border-color:rgba(246,196,83,.18)!important;
}
.profile-card tr,
.event-profile-card tr,
tr{
  background:transparent!important;
}
.profile-card td,
.profile-card th,
.event-profile-card td,
.event-profile-card th,
td,th{
  border-color:rgba(246,196,83,.14)!important;
}
.profile-card td,
.event-profile-card td,
td{
  color:#fff7e6!important;
}
.profile-card th,
.event-profile-card th,
th{
  color:#f6c453!important;
  background:rgba(246,196,83,.08)!important;
}

/* אם יש כרטיס לבן של רשומת כסף בתוך פרופיל */
.gift-detail-card,
.record-card,
.profile-record,
.contact-gift-card,
.profile-card .gift-row,
.profile-card .list-row{
  background:linear-gradient(180deg, rgba(30,21,47,.96), rgba(14,9,25,.98))!important;
  border:1px solid rgba(246,196,83,.25)!important;
  color:#fff7e6!important;
}
.gift-detail-card *,
.record-card *,
.profile-record *,
.contact-gift-card *,
.profile-card .gift-row *,
.profile-card .list-row *{
  color:#fff7e6!important;
}
.gift-detail-card b,
.record-card b,
.profile-record b,
.contact-gift-card b{
  color:#f6c453!important;
}

/* סכומים בפרופיל */
.received,
.amount-received{
  color:#56e39f!important;
  font-weight:950!important;
}
.given,
.amount-given{
  color:#f6c453!important;
  font-weight:950!important;
}

/* כפתור עריכה שלא ייעלם על רקע בהיר */
.profile-card .btn-small,
.event-profile-card .btn-small,
.details-grid .btn-small{
  color:#fff!important;
  background:linear-gradient(135deg,#8b2cff,#5b16c7 55%,#f0b84c 120%)!important;
  border:1px solid rgba(246,196,83,.38)!important;
}

/* תיקון גלובלי למקומות לבנים שלא קריאים */
.card[style*="white"],
div[style*="background:#fff"],
div[style*="background: #fff"],
div[style*="background:white"],
div[style*="background: white"]{
  background:linear-gradient(180deg, rgba(27,20,43,.97), rgba(10,7,20,.98))!important;
  color:#fff7e6!important;
}

/* טקסטים חלשים מדי */
.profile-title .muted,
.profile-card .muted,
.event-profile-card .muted{
  color:#d8c9ea!important;
  opacity:1!important;
  font-weight:700!important;
}

@media(max-width:900px){
  .auth .notice{
    font-size:16px!important;
    padding:18px!important;
  }
  .profile-card,
  .event-profile-card{
    border-radius:24px!important;
  }
  .details-grid{
    gap:10px!important;
  }
  .details-grid div{
    padding:12px!important;
    border-radius:16px!important;
  }
}


/* ===== FIX WHITE BADGES (קיבלתי / נתתי) ===== */

.amount-badge,
.badge-amount,
.amount-pill,
.summary-pill{
  background:linear-gradient(135deg, rgba(139,44,255,.9), rgba(91,22,199,.9))!important;
  color:#fff!important;
  border:1px solid rgba(246,196,83,.35)!important;
  box-shadow:0 0 18px rgba(139,44,255,.35)!important;
  font-weight:900!important;
}

/* ספציפי לקיבלתי */
.amount-received{
  background:linear-gradient(135deg, rgba(34,197,94,.9), rgba(16,185,129,.9))!important;
  color:#fff!important;
}

/* ספציפי לנתתי */
.amount-given{
  background:linear-gradient(135deg, rgba(251,191,36,.9), rgba(245,158,11,.9))!important;
  color:#fff!important;
}

/* ביטול לבן קשיח */
div[style*="background:#fff"],
div[style*="background: #fff"]{
  background:unset!important;
}



/* ===== CONTACT PAGE MINI SUMMARY BADGES FIX v4 ===== */
/* מתקן ספציפית את הקופסאות של קיבלתי / נתתי בעמוד כרטיס אדם */
.event-profile-card .mini-summary{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin:14px 0!important;
}

.event-profile-card .mini-summary span,
.profile-card .mini-summary span,
.mini-summary span{
  background:linear-gradient(135deg, rgba(31,22,50,.96), rgba(13,8,25,.98))!important;
  color:#fff7e6!important;
  border:1px solid rgba(246,196,83,.34)!important;
  box-shadow:0 0 18px rgba(139,44,255,.22), inset 0 1px 0 rgba(255,255,255,.05)!important;
  border-radius:999px!important;
  padding:10px 16px!important;
  font-weight:950!important;
  min-width:130px!important;
  text-align:center!important;
}

.event-profile-card .mini-summary span:first-child,
.mini-summary span:first-child{
  background:linear-gradient(135deg, rgba(22,101,52,.92), rgba(16,185,129,.62))!important;
  border-color:rgba(86,227,159,.55)!important;
}

.event-profile-card .mini-summary span:last-child,
.mini-summary span:last-child{
  background:linear-gradient(135deg, rgba(113,63,18,.92), rgba(245,158,11,.62))!important;
  border-color:rgba(246,196,83,.62)!important;
}

.event-profile-card .mini-summary b.received,
.mini-summary b.received{
  color:#dcfce7!important;
  font-weight:950!important;
}

.event-profile-card .mini-summary b.given,
.mini-summary b.given{
  color:#fff7cc!important;
  font-weight:950!important;
}

/* מבטל כל עיצוב לבן קודם על הסיכום הקטן */
.event-profile-card .mini-summary span[style],
.mini-summary span[style]{
  background:linear-gradient(135deg, rgba(31,22,50,.96), rgba(13,8,25,.98))!important;
}

@media(max-width:900px){
  .event-profile-card .mini-summary,
  .mini-summary{
    justify-content:stretch!important;
  }
  .event-profile-card .mini-summary span,
  .mini-summary span{
    flex:1 1 140px!important;
    min-width:0!important;
    padding:9px 12px!important;
    font-size:14px!important;
  }
}

/* Offline / auto sync status */
#offline-sync-status{
  position:fixed;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:9999;
  display:none;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border-radius:16px;box-shadow:0 14px 34px rgba(15,23,42,.22);
  font-weight:700;line-height:1.45;direction:rtl;text-align:right;
}
#offline-sync-status.show{display:flex}
#offline-sync-status button{border:0;background:rgba(255,255,255,.22);color:inherit;border-radius:999px;width:30px;height:30px;font-size:22px;line-height:1;cursor:pointer;flex:0 0 auto}
#offline-sync-status.offline{background:#7f1d1d;color:#fff}
#offline-sync-status.saved{background:#92400e;color:#fff}
#offline-sync-status.syncing{background:#1e3a8a;color:#fff}
#offline-sync-status.online{background:#166534;color:#fff}
@media (min-width:760px){#offline-sync-status{right:auto;left:24px;bottom:24px;max-width:520px}}

/* ===== Offline pending actions v2 ===== */
.offline-pending-wrap{margin:18px 0 16px;display:grid;gap:10px}
.offline-pending-title{font-weight:950;color:#fff7e6;background:linear-gradient(135deg,rgba(113,63,18,.95),rgba(146,64,14,.86));border:1px solid rgba(246,196,83,.45);border-radius:16px;padding:12px 14px;box-shadow:0 14px 34px rgba(0,0,0,.16)}
.offline-pending-row{border:1px dashed rgba(246,196,83,.75)!important;background:linear-gradient(135deg,rgba(120,53,15,.24),rgba(31,22,50,.88))!important;position:relative}
.offline-pending-row:before{content:'ממתין לסנכרון';position:absolute;top:10px;left:10px;background:#f59e0b;color:#111827;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:950}
.offline-pending-row .row-main span{color:#fff0c2!important}
@media(max-width:760px){.offline-pending-row:before{position:static;display:inline-block;margin:0 0 8px auto;width:max-content}}


/* עדכוני מובייל/אופליין - חודש בזהב ושדות עם כיתוב בתוך המסגרת */
.month-gold{
  color:#f7c948;
  font-weight:900;
  text-shadow:0 1px 10px rgba(247,201,72,.28);
}
.sr-only-label{
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}
.placeholder-label-field input::placeholder,
.placeholder-label-field textarea::placeholder{
  color:rgba(255,255,255,.58);
  opacity:1;
}
.placeholder-label-field input:focus::placeholder,
.placeholder-label-field textarea:focus::placeholder{
  color:transparent;
}
.topbar{position:sticky;top:0;z-index:1000;}
.event-profile-card .section-title .muted:has(+ *){}

/* v15 compact accessible controls */
[hidden]{display:none!important}.gm-add{margin:0 0 12px}.form-grid label{display:block!important;color:#f5e9ff!important;font-size:14px!important;position:static!important;clip:auto!important;width:auto!important;height:auto!important}.form-grid input,.form-grid select{min-height:46px!important}.form-grid textarea{min-height:76px!important}.btn-small.danger,button.danger{background:#391b2a!important;color:#ffb7bd!important;border:1px solid #a84a57!important;box-shadow:none!important}.gm-connection{padding:10px;border:1px solid #f7c65a;border-radius:12px;color:#f7c65a}.container{overflow-wrap:anywhere}.row-main,.row-info{min-width:0}.bottom-nav{padding-bottom:env(safe-area-inset-bottom)}@media(max-width:800px){.container{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}.section-title h1,h1{font-size:25px!important}.card{padding:14px!important}.form-grid{gap:10px!important}}

/* v20 visual refinement */
html,body{padding-top:0!important}body{color-scheme:dark}.topbar{padding-top:calc(10px + env(safe-area-inset-top))!important;gap:10px!important}.gm-account-link{color:#f8df9a!important;font-size:13px;font-weight:700;white-space:nowrap;margin-inline-start:auto}.gm-intro{color:#e2d6ef;margin-top:-10px}.gm-finance-grid,.gm-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gm-finance-grid>div{min-width:0;padding:10px;background:#211630;border:1px solid #514060;border-radius:12px}.gm-finance-grid span,.gm-finance-grid strong{display:block}.gm-finance-grid span{font-size:13px;color:#e0d4ed}.gm-finance-grid strong{font-size:clamp(14px,3.5vw,22px);overflow-wrap:anywhere}.gm-quick{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.gm-quick .btn{min-height:44px;padding:8px;font-size:14px}.card,.list-row{box-shadow:none!important;border-radius:16px!important}.muted,.row-main span,.row-info{color:#d8cbe8!important}.section-title{margin-bottom:12px!important}.section-title h1{margin-bottom:0!important}.form-grid input,.form-grid select,.form-grid textarea{max-width:100%;min-width:0}.form-grid input::placeholder{color:#c3b3d4!important}.form-grid label{margin-bottom:5px!important}.searchbar input{min-width:0!important}.inline-actions{gap:8px!important}.inline-actions .btn-small,.inline-actions button{min-height:44px!important}.bottom-nav a{min-width:0}.bottom-nav a b{font-size:12px!important}.details-grid div{padding:10px!important}.details-grid span{font-size:14px}.gm-account-link:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #f8d47c!important;outline-offset:3px}.gm-finance h2{font-size:18px!important}.home-stat-card{min-height:86px!important}.gm-quick a{white-space:normal}.topnav .gm-logout button{min-height:40px!important}@media(max-width:800px){.gm-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.details-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.profile-stats .card{margin-bottom:0!important}.container{padding-top:16px!important}.bottom-nav{bottom:calc(6px + env(safe-area-inset-bottom))!important;padding:6px!important}.gm-finance-grid{gap:5px}.gm-finance-grid>div{padding:7px}.gm-finance-grid strong{font-size:14px}.topbar .brand a{font-size:15px!important}.searchbar{gap:8px!important}}
