:root{
  --bg:#0d1714;--panel:#13211d;--panel2:#182a25;--card:#142620;--border:rgba(218,183,103,.23);
  --text:#eef8f1;--muted:#91a59b;--green:#35cc88;--green2:#1f9d66;--gold:#dab767;--red:#ff6b6b;
  --shadow:0 18px 45px rgba(0,0,0,.24);--radius:22px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:
  radial-gradient(circle at top right,rgba(53,204,136,.13),transparent 32%),
  radial-gradient(circle at top left,rgba(218,183,103,.12),transparent 30%),
  var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;padding-bottom:86px}
button,input,select{font:inherit}
button{cursor:pointer;border:0}
input,select{width:100%;min-height:0;border:1px solid var(--border);border-radius:15px;background:var(--panel2);color:var(--text);padding:0 13px;font-size:16px;outline:none}
input:focus,select:focus{border-color:rgba(53,204,136,.65);box-shadow:0 0 0 3px rgba(53,204,136,.14)}
.app-header{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:rgba(13,23,20,.86);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.06)}
.app-header h1{margin:0;font-size:21px}.eyebrow{margin:0 0 4px;color:var(--gold);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.header-right{display:flex;gap:8px;align-items:center}.version-badge{font-size:10px;font-weight:900;border:1px solid var(--border);border-radius:999px;padding:6px 8px;color:var(--gold);white-space:nowrap}
.app-shell{max-width:980px;margin:0 auto;padding:16px}
.page{display:none;animation:fade .18s ease}.page.active{display:block}@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.hero,.card,.metric{background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero{padding:22px;margin-bottom:14px}.hero h2{font-size:42px;letter-spacing:-1.5px;margin:0 0 8px}.muted{color:var(--muted);line-height:1.5}.progress-wrap{margin-top:18px}.progress{height:12px;background:var(--panel2);border-radius:999px;overflow:hidden}.progress div{height:100%;width:0;background:linear-gradient(90deg,var(--green2),var(--green),var(--gold));border-radius:999px}
.grid-2,.grid-3,.quick-grid,.form-grid{display:grid;gap:12px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.metric{padding:16px}.metric span{display:block;color:var(--muted);font-size:12px;font-weight:800}.metric strong{display:block;font-size:24px;margin:6px 0}.metric small{color:var(--muted)}.metric[data-open]{cursor:pointer}
.card{padding:16px;margin:14px 0}.section-head,.page-head,.item-top,.form-actions{display:flex;justify-content:space-between;gap:12px;align-items:center}.section-head h3,.page-head h2{margin:0}.page-head{margin:8px 0 16px}.page-head h2{font-size:25px}
.primary,.secondary,.ghost{border-radius:15px;min-height:0;padding:0 14px;font-weight:900}.primary{background:linear-gradient(135deg,var(--green2),var(--green));color:#062014}.secondary{background:var(--panel2);color:var(--text);border:1px solid var(--border)}.ghost{background:transparent;color:var(--muted);border:1px solid rgba(255,255,255,.12)}.small{min-height:0;padding:0 10px;font-size:12px}.full{width:100%}.danger{color:#ffd1d1;border-color:rgba(255,107,107,.35)}
.toolbar{display:grid;grid-template-columns:1fr 160px;gap:10px;margin:10px 0 14px}.list{display:grid;gap:12px}
.item{background:var(--card);border:1px solid var(--border);border-radius:19px;padding:14px}.item h3{margin:0}.item .sub{color:var(--muted);font-size:12px;margin-top:3px}.item-values{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.item-values div{background:rgba(255,255,255,.035);border-radius:13px;padding:10px}.item-values small{display:block;color:var(--muted);font-size:11px}.item-values strong{font-size:14px}.item-actions{display:flex;gap:8px;margin-top:12px}.item-actions button{flex:1}
.form-card{max-width:760px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid label span{display:block;color:var(--muted);font-size:12px;font-weight:900;margin:0 0 6px}.form-actions{margin-top:14px;justify-content:flex-start}.form-actions button{min-width:130px}
.bars{display:grid;gap:10px}.bar-row{display:grid;grid-template-columns:110px 1fr 80px;gap:10px;align-items:center}.bar-track{height:12px;background:var(--panel2);border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--green),var(--gold));border-radius:999px}.diagnostics{background:rgba(53,204,136,.07);border:1px solid rgba(53,204,136,.22);border-radius:16px;padding:12px;color:var(--muted);font-size:13px;line-height:1.5}
.import-box{display:block;margin-top:16px;border:1px dashed var(--border);border-radius:18px;padding:14px;color:var(--muted)}.import-box span{display:block;margin-bottom:8px;font-weight:900;color:var(--text)}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(13,23,20,.92);backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.08)}
.bottom-nav button{min-height:0;border-radius:16px;background:transparent;color:var(--muted);font-size:12px;font-weight:900}.bottom-nav button.active{background:rgba(53,204,136,.12);color:var(--green);border:1px solid rgba(53,204,136,.22)}
.toast{position:fixed;left:14px;right:14px;bottom:86px;z-index:9999;transform:translateY(150%);opacity:0;transition:.22s;padding:13px;border-radius:17px;background:#173426;color:#eafff2;text-align:center;font-weight:900;border:1px solid rgba(53,204,136,.45);box-shadow:var(--shadow)}.toast.show{opacity:1;transform:translateY(0)}
.positive{color:var(--green)!important}.negative{color:var(--red)!important}
@media(max-width:720px){.grid-2,.grid-3,.quick-grid,.form-grid{grid-template-columns:1fr}.toolbar{grid-template-columns:1fr}.hero h2{font-size:35px}.app-header{align-items:flex-start}.version-badge{display:none}.item-values{grid-template-columns:1fr}.bar-row{grid-template-columns:86px 1fr 70px}.page-head{align-items:flex-start}.page-head .primary{min-width:120px}}


/* NAVIGATION INPUT MEGA FIX */
.back-button{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--panel2);
  color:var(--text);
  font-size:22px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.back-button:disabled{opacity:.35}
.nav-input-test-card{
  border-color:rgba(53,204,136,.38) !important;
  background:
    radial-gradient(circle at top right, rgba(53,204,136,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.form-hint{
  margin:0 0 14px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(53,204,136,.07);
  border:1px solid rgba(53,204,136,.22);
  color:var(--muted);
  font-size:13px;
}
input, select, textarea, button{
  pointer-events:auto !important;
  touch-action:manipulation;
}
input, select{
  position:relative;
  z-index:2;
}
.form-grid label{min-width:0}
.form-grid input,.form-grid select{
  display:block !important;
  width:100% !important;
  max-width:none !important;
}
.bottom-nav,.bottom-nav button{
  pointer-events:auto !important;
}
.bottom-nav button{
  position:relative;
  z-index:5;
}
.page.active{
  pointer-events:auto !important;
}
@media(max-width:720px){
  .app-header{align-items:center}
  .form-grid{grid-template-columns:1fr !important}
  input, select{min-height:0;font-size:17px}
  .primary,.secondary,.ghost{min-height:0}
  .page-head{gap:10px}
  .page-head .primary{width:auto;min-width:126px}
}


/* GOLD GRAMS MEGA UPDATE */
.gold-gram-box{
  grid-column:1/-1;
  margin:4px 0 8px;
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(218,183,103,.38);
  background:
    radial-gradient(circle at top right, rgba(218,183,103,.14), transparent 34%),
    rgba(255,255,255,.025);
}
.section-head.compact{
  margin-bottom:8px;
}
.gold-summary-card{
  border-color:rgba(218,183,103,.36) !important;
}
.metal-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.metal-pill{
  padding:12px;
  border-radius:15px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(218,183,103,.22);
}
.metal-pill span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.metal-pill strong{
  display:block;
  margin-top:5px;
  font-size:18px;
  color:var(--gold);
}
.metal-pill small{
  display:block;
  margin-top:4px;
  color:rgba(224,235,227,.72);
  font-size:11px;
  font-weight:800;
}
.gold-quick{
  border-color:rgba(218,183,103,.35);
  color:var(--gold);
}
@media(max-width:720px){
  .metal-summary{
    grid-template-columns:1fr;
  }
}


/* DASHBOARD CUSTOM MEGA UPDATE */
.home-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.home-settings-grid label{
  display:flex;
  gap:9px;
  align-items:center;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  font-weight:800;
  font-size:13px;
}
.home-settings-grid input[type="checkbox"]{
  width:20px !important;
  min-height:20px !important;
  accent-color:var(--green);
}
.all-asset-overview{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.asset-type-card{
  padding:13px;
  border:1px solid rgba(218,183,103,.22);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}
.asset-type-card span{display:block;color:var(--muted);font-size:12px;font-weight:900}
.asset-type-card strong{display:block;font-size:20px;margin:5px 0}
.asset-type-card small{color:var(--muted)}
.compact-metrics{margin:0}
.bar-row{grid-template-columns:120px 1fr 94px}
.bar-row strong{font-size:13px}
@media(max-width:720px){
  .home-settings-grid,.all-asset-overview{grid-template-columns:1fr}
  .bar-row{grid-template-columns:92px 1fr 84px}
}


/* CLEAN NAVIGATION MEGA UPDATE */
.more-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.more-tile{
  text-align:left;
  min-height:78px;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
}
.more-tile strong{
  display:block;
  font-size:16px;
  margin-bottom:5px;
}
.more-tile span{
  color:var(--muted);
  font-size:12px;
}
.bottom-nav button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
.bottom-nav button span{
  font-size:20px;
  line-height:1;
}
.bottom-nav button small{
  font-size:10px;
  font-weight:900;
}
.card[data-home-section="diagnostics"],
.card[data-home-section="navtest"]{
  opacity:.96;
}
@media(max-width:720px){
  .more-grid{
    grid-template-columns:1fr;
  }
}


/* PRO SUITE MEGA UPDATE */
.history-chart{
  min-height:190px;
  display:flex;
  align-items:flex-end;
  gap:6px;
  padding:14px 4px 4px;
  border-radius:18px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(218,183,103,.18);
  overflow-x:auto;
}
.chart-bar{
  min-width:24px;
  border-radius:8px 8px 3px 3px;
  background:linear-gradient(180deg,var(--green),var(--gold));
  position:relative;
}
.chart-bar small{
  position:absolute;
  bottom:100%;
  left:50%;
  transform:translateX(-50%) rotate(-45deg);
  transform-origin:left bottom;
  color:var(--muted);
  font-size:10px;
  white-space:nowrap;
  margin-bottom:4px;
}
.activity-row,.health-row,.snapshot-row{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}
.activity-row strong,.health-row strong,.snapshot-row strong{
  display:block;
  margin-bottom:4px;
}
.activity-row span,.health-row span,.snapshot-row span{
  color:var(--muted);
  font-size:12px;
}
.health-row.ok{
  border-color:rgba(53,204,136,.35);
}
.health-row.warn{
  border-color:rgba(218,183,103,.35);
}
.health-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.health-pill{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
}
.health-pill span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.health-pill strong{
  display:block;
  margin-top:5px;
  font-size:20px;
}
@media(max-width:720px){
  .health-summary{
    grid-template-columns:1fr;
  }
}


/* SIMPLE PRO RELEASE */
.simple-pro-card{
  border-color:rgba(53,204,136,.36) !important;
  background:radial-gradient(circle at top right, rgba(53,204,136,.13), transparent 34%),linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.simple-action-grid,.add-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.add-tile{text-align:left;min-height:92px;padding:15px;border-radius:20px;border:1px solid var(--border);background:rgba(255,255,255,.03);color:var(--text)}
.add-tile strong{display:block;font-size:18px;margin-bottom:6px}
.add-tile span{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.add-tile.gold{border-color:rgba(218,183,103,.42);background:linear-gradient(180deg,rgba(218,183,103,.08),rgba(255,255,255,.025))}
.check-results{display:grid;gap:10px}
.check-item{border:1px solid var(--border);border-radius:16px;padding:12px;background:rgba(255,255,255,.03)}
.check-item.ok{border-color:rgba(53,204,136,.42)}
.check-item.warn{border-color:rgba(218,183,103,.48)}
.check-item strong{display:block;margin-bottom:4px}
.check-item span{color:var(--muted);font-size:12px}
.header-right .primary.small{color:#062014;white-space:nowrap}
@media(max-width:720px){
  .simple-action-grid,.add-hub-grid{grid-template-columns:1fr}
  .header-right{gap:5px}
  .header-right .ghost.small{display:none}
}


/* SCROLL METAL FIX */

.app-shell{
  padding-bottom:125px !important;
}
.bottom-nav{
  touch-action:manipulation;
}
.bottom-nav button{
  touch-action:manipulation;
}
#dividendField.is-hidden{
  display:none !important;
}
.gold-gram-box{
  display:none;
}
@media(max-width:720px){
  body{
    padding-bottom:110px !important;
  }
  .app-shell{
    padding-bottom:150px !important;
  }
}


/* GLOBAL SCROLL FIX */
html{
  min-height:100%;
  height:auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
body{
  min-height:100%;
  height:auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  touch-action:pan-y !important;
  -webkit-overflow-scrolling:touch;
}
.app-shell{
  min-height:100vh;
  height:auto !important;
  overflow:visible !important;
  padding-bottom:155px !important;
}
main,
main > .page,
.page.active{
  height:auto !important;
  min-height:auto !important;
  overflow:visible !important;
  touch-action:pan-y !important;
}
.page{
  display:none !important;
  pointer-events:none !important;
}
.page.active{
  display:block !important;
  pointer-events:auto !important;
}
.card,
.hero,
.grid-2,
.grid-3,
.list,
.more-grid,
.add-hub-grid{
  overflow:visible !important;
}
.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:12px;
  z-index:80;
  max-width:min(760px, calc(100vw - 20px));
}
.bottom-nav button{
  touch-action:manipulation !important;
}
.scroll-spacer{
  height:90px;
}
@media(max-width:720px){
  .app-shell{
    padding-bottom:180px !important;
  }
  .scroll-spacer{
    height:125px;
  }
}


/* EASY BUY FORECAST UPDATE */
.checkbox-line{
  display:flex !important;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:15px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.025);
  color:var(--text);
  font-weight:800;
}
.checkbox-line input{
  width:22px !important;
  min-height:22px !important;
  accent-color:var(--green);
}
.quick-buy-list{
  display:grid;
  gap:12px;
}
.quick-buy-card{
  border:1px solid rgba(218,183,103,.24);
  background:rgba(255,255,255,.03);
  border-radius:20px;
  padding:14px;
}
.quick-buy-card .topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.quick-buy-card .topline strong{
  font-size:18px;
}
.quick-buy-card .topline span{
  color:var(--muted);
  font-size:12px;
}
.quick-buy-form{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:9px;
  align-items:end;
}
.quick-buy-form label span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  margin-bottom:6px;
}
.quick-buy-form input{
  width:100%;
}
.auto-million-card{
  border-color:rgba(53,204,136,.38) !important;
  background:radial-gradient(circle at top right, rgba(53,204,136,.13), transparent 36%),rgba(255,255,255,.025);
}
.auto-goal-grid,
.million-auto-box{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.auto-goal-pill,
.million-pill{
  border:1px solid var(--border);
  border-radius:17px;
  padding:13px;
  background:rgba(255,255,255,.03);
}
.auto-goal-pill span,
.million-pill span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.auto-goal-pill strong,
.million-pill strong{
  display:block;
  margin-top:5px;
  font-size:20px;
}
.million-note{
  grid-column:1/-1;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(218,183,103,.28);
  background:rgba(218,183,103,.07);
  color:var(--muted);
  font-size:13px;
}
@media(max-width:720px){
  .quick-buy-form{
    grid-template-columns:1fr;
  }
  .auto-goal-grid,
  .million-auto-box{
    grid-template-columns:1fr;
  }
}


/* COMPACT HOME UPDATE */
.home-compact-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.home-compact-grid .metric{
  min-height:112px;
  padding:13px;
  border-radius:18px;
}
.home-compact-grid .metric strong{
  font-size:clamp(18px,2.6vw,26px);
  line-height:1.1;
  word-break:break-word;
}
.home-compact-grid .metric span{
  font-size:12px;
}
.home-compact-grid .metric small{
  font-size:11px;
}
.home-layout-hint{
  padding:10px 12px !important;
  margin-top:8px;
  border-color:rgba(53,204,136,.18) !important;
}
.home-layout-hint p{
  margin:0;
  font-size:12px;
}
.auto-goal-grid,
.million-auto-box,
.health-summary,
.metal-summary,
.compact-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.all-asset-overview{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.asset-type-card,
.auto-goal-pill,
.million-pill,
.health-pill,
.metal-pill{
  padding:11px !important;
  border-radius:15px !important;
}
.asset-type-card strong,
.auto-goal-pill strong,
.million-pill strong,
.health-pill strong,
.metal-pill strong{
  font-size:17px !important;
}
.simple-action-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.simple-action-grid button{
  min-height:0;
  padding:10px 8px;
  font-size:13px;
}
@media(max-width:900px){
  .home-compact-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .all-asset-overview,
  .auto-goal-grid,
  .million-auto-box,
  .health-summary,
  .metal-summary,
  .compact-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .simple-action-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:420px){
  .home-compact-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
  }
  .home-compact-grid .metric{
    min-height:96px;
    padding:10px;
  }
  .home-compact-grid .metric strong{
    font-size:18px;
  }
  .home-compact-grid .metric span{
    font-size:11px;
  }
  .home-compact-grid .metric small{
    font-size:10px;
  }
  .all-asset-overview,
  .auto-goal-grid,
  .million-auto-box,
  .health-summary,
  .metal-summary,
  .compact-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
  }
}


/* APP DESIGN POLISH UPDATE */
:root{
  --glass:rgba(255,255,255,.045);
  --glass2:rgba(255,255,255,.028);
  --shadow:0 18px 45px rgba(0,0,0,.28);
}
body{
  background:
    radial-gradient(circle at 20% -10%, rgba(53,204,136,.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(218,183,103,.12), transparent 30%),
    linear-gradient(180deg,#07140f 0%, #091813 42%, #06100d 100%) !important;
}
.app-header{
  position:sticky;
  top:0;
  z-index:70;
  margin:-6px auto 0;
  max-width:980px;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  background:rgba(7,20,15,.72) !important;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
  border-radius:0 0 24px 24px;
}
.app-status-strip{
  max-width:980px;
  margin:10px auto 0;
  padding:0 14px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.status-chip{
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  padding:9px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  min-height:0;
}
.status-chip span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.status-chip strong{
  color:var(--green);
  font-size:12px;
  white-space:nowrap;
}
.card,.metric,.hero,.quick-buy-card,.more-tile,.add-tile{
  box-shadow:var(--shadow);
}
.card{
  background:linear-gradient(180deg,var(--glass),var(--glass2)) !important;
  border-color:rgba(255,255,255,.075) !important;
}
.hero{
  border-radius:30px !important;
  box-shadow:0 24px 60px rgba(0,0,0,.34);
}
.hero strong,
.metric strong{
  letter-spacing:-.03em;
}
.today-card{
  border-color:rgba(53,204,136,.30) !important;
}
.today-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.today-pill{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}
.today-pill span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.today-pill strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
.mini-list{
  display:grid;
  gap:8px;
}
.mini-row{
  padding:10px 11px;
  border-radius:14px;
  background:rgba(255,255,255,.032);
  border:1px solid rgba(255,255,255,.06);
}
.mini-row strong{
  display:block;
  font-size:13px;
}
.mini-row span{
  color:var(--muted);
  font-size:11px;
}
.app-tabbar{
  background:rgba(8,22,17,.88) !important;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.36);
  border-radius:26px !important;
  padding:7px !important;
}
.app-tabbar button{
  border-radius:19px !important;
  transition:transform .12s ease, background .12s ease;
}
.app-tabbar button:active{
  transform:scale(.96);
}
.app-tabbar button.active{
  background:linear-gradient(180deg,rgba(53,204,136,.22),rgba(53,204,136,.10)) !important;
  border:1px solid rgba(53,204,136,.28);
}
.primary{
  box-shadow:0 10px 24px rgba(53,204,136,.16);
}
button{
  -webkit-tap-highlight-color:transparent;
}
input,select,textarea{
  background:rgba(255,255,255,.045) !important;
  border-color:rgba(255,255,255,.09) !important;
}
@media(max-width:720px){
  .app-header{
    margin:0 8px;
    border-radius:0 0 22px 22px;
  }
  .app-status-strip{
    padding:0 10px;
    grid-template-columns:1fr 1fr 1fr;
  }
  .status-chip{
    flex-direction:column;
    gap:1px;
    padding:8px 4px;
  }
  .today-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .header-right .version-badge{
    display:none;
  }
}


/* SIMPLE BUY TAX UPDATE */
.simple-buy-box{
  grid-column:1/-1;
  margin:4px 0 8px;
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(53,204,136,.30);
  background:radial-gradient(circle at top right, rgba(53,204,136,.12), transparent 34%), rgba(255,255,255,.025);
}
#simpleBuyBox.is-hidden,
#goldGramBox.is-hidden,
#dividendField.is-hidden{
  display:none !important;
}
.tax-card{border-color:rgba(218,183,103,.30) !important}
.tax-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.tax-pill{
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.032);
}
.tax-pill span{display:block;color:var(--muted);font-size:11px;font-weight:900}
.tax-pill strong{display:block;margin-top:5px;font-size:17px}
@media(max-width:720px){
  .tax-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* SELECT BUY UPDATE */
.select-buy-card{
  border-color:rgba(53,204,136,.32) !important;
}
.select-buy-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.select-buy-btn{
  min-height:82px;
  text-align:left;
  padding:14px;
  border-radius:19px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:var(--text);
}
.select-buy-btn strong{
  display:block;
  font-size:17px;
  margin-bottom:5px;
}
.select-buy-btn span{
  display:block;
  color:var(--muted);
  font-size:12px;
}
.select-buy-btn.active{
  border-color:rgba(53,204,136,.45);
  background:linear-gradient(180deg,rgba(53,204,136,.16),rgba(255,255,255,.035));
}
.selected-buy-form{
  border-color:rgba(218,183,103,.26) !important;
}
.new-value-hint{
  grid-column:1/-1;
}
@media(max-width:720px){
  .select-buy-buttons{
    grid-template-columns:1fr;
  }
}


/* SELECT BUY HOLDINGS UPDATE */
.selected-holding-info{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:0 0 14px;
}
.holding-pill{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
}
.holding-pill span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.holding-pill strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
.form-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.select-buy-btn.just-saved{
  border-color:rgba(53,204,136,.55);
  box-shadow:0 0 0 2px rgba(53,204,136,.12) inset;
}
@media(max-width:720px){
  .selected-holding-info{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .form-actions{
    grid-template-columns:1fr;
  }
}


/* HOME CHART UPDATE */
.home-chart-card{
  border-color:rgba(53,204,136,.34) !important;
}
.range-tabs{
  display:flex;
  gap:5px;
  padding:4px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}
.range-tabs button{
  min-height:0;
  padding:5px 10px;
  border-radius:999px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
}
.range-tabs button.active{
  background:rgba(53,204,136,.18);
  color:var(--text);
}
.chart-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-bottom:10px;
}
.chart-summary div{
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:11px;
  background:rgba(255,255,255,.03);
}
.chart-summary span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.chart-summary strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
.svg-chart-wrap{
  height:220px;
  border-radius:22px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(53,204,136,.08),transparent),
    rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.065);
}
#homeWealthChart{
  width:100%;
  height:100%;
  display:block;
}
.chart-grid-line{
  stroke:rgba(255,255,255,.08);
  stroke-width:1;
}
.chart-area{
  fill:rgba(53,204,136,.14);
}
.chart-line{
  fill:none;
  stroke:rgba(53,204,136,.95);
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.chart-dot{
  fill:rgba(218,183,103,.95);
  stroke:rgba(7,20,15,.9);
  stroke-width:2;
}
.chart-empty{
  fill:rgba(255,255,255,.58);
  font-size:20px;
  font-weight:800;
}
.chart-note{
  margin-top:9px;
}
@media(max-width:720px){
  .home-chart-card .section-head{
    align-items:flex-start;
  }
  .range-tabs{
    width:100%;
    justify-content:space-between;
  }
  .range-tabs button{
    flex:1;
  }
  .chart-summary{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .chart-summary div{
    padding:9px;
  }
  .chart-summary strong{
    font-size:14px;
  }
  .svg-chart-wrap{
    height:190px;
  }
}


/* BUYIN CHART UPDATE */
.buyin-chart-card{
  border-color:rgba(218,183,103,.34) !important;
}
.home-buyin-card{
  border-color:rgba(218,183,103,.24) !important;
}
.buyin-line{
  fill:none;
  stroke:rgba(218,183,103,.96);
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.price-line{
  fill:none;
  stroke:rgba(53,204,136,.85);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:7 7;
}
.buyin-area{
  fill:rgba(218,183,103,.12);
}
.buyin-dot{
  fill:rgba(218,183,103,.96);
  stroke:rgba(7,20,15,.9);
  stroke-width:2;
}
.buyin-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  margin-top:8px;
}
.buyin-legend span::before{
  content:"";
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:5px;
  vertical-align:-1px;
  background:rgba(218,183,103,.96);
}
.buyin-legend span:nth-child(2)::before{
  background:rgba(53,204,136,.85);
}


/* HERO CHART UPDATE */
.hero{
  display:grid !important;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  align-items:stretch;
  gap:18px;
}
.hero > *:not(.hero-chart-panel){
  min-width:0;
}
.hero-chart-panel{
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  padding:14px;
  background:
    radial-gradient(circle at top right, rgba(53,204,136,.16), transparent 38%),
    rgba(255,255,255,.035);
  min-height:220px;
  display:flex;
  flex-direction:column;
}
.hero-chart-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:8px;
}
.hero-chart-head span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.hero-chart-head strong{
  display:block;
  font-size:20px;
  margin-top:3px;
  color:var(--green);
}
#heroMiniChart{
  flex:1;
  width:100%;
  min-height:155px;
  display:block;
}
.hero-mini-area{
  fill:rgba(53,204,136,.14);
}
.hero-mini-line{
  fill:none;
  stroke:rgba(53,204,136,.96);
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hero-mini-dot{
  fill:rgba(218,183,103,.95);
  stroke:rgba(7,20,15,.9);
  stroke-width:2;
}
.hero-mini-grid{
  stroke:rgba(255,255,255,.08);
  stroke-width:1;
}
.hero-mini-empty{
  fill:rgba(255,255,255,.62);
  font-size:16px;
  font-weight:800;
}
@media(max-width:820px){
  .hero{
    grid-template-columns:1fr !important;
  }
  .hero-chart-panel{
    min-height:185px;
  }
}


/* APP FINISH PACK */
.finish-home-card{border-color:rgba(53,204,136,.24) !important}
.home-finish-status,.finish-score{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.finish-pill,.detail-pill{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.075);
}
.finish-pill span,.detail-pill span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.finish-pill strong,.detail-pill strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
.roadmap-list{display:grid;gap:10px}
.roadmap-item{
  padding:13px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
}
.roadmap-item.done{border-color:rgba(53,204,136,.32)}
.roadmap-item.open{border-color:rgba(218,183,103,.32)}
.roadmap-item strong{display:block;margin-bottom:4px}
.roadmap-item span{color:var(--muted);font-size:12px}
.position-detail-box{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.item-actions{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.item-actions button{
  min-height:0;
  padding:7px 10px;
}
@media(max-width:720px){
  .home-finish-status,.finish-score,.position-detail-box{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* ALL ASSETS BUYIN UPDATE */
.select-buy-btn.metal-buyin{
  border-color:rgba(218,183,103,.40);
  background:linear-gradient(180deg,rgba(218,183,103,.10),rgba(255,255,255,.03));
}
.buyin-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  margin-left:6px;
}


/* PRE-DEPLOY FINISH UPDATE */
.dashboard-pro-card{border-color:rgba(53,204,136,.22) !important}
.dashboard-pro-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.dashboard-tile{
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
  text-align:left;
  color:var(--text);
}
.dashboard-tile strong{
  display:block;
  font-size:17px;
  margin-bottom:4px;
}
.dashboard-tile span{
  display:block;
  color:var(--muted);
  font-size:12px;
}
.dashboard-tile small{
  display:block;
  margin-top:8px;
  color:var(--green);
  font-weight:900;
}
.backup-safety{
  border-color:rgba(218,183,103,.30) !important;
}
.backup-checklist{
  margin-top:10px;
  padding:10px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.03);
}
.backup-checklist label{
  display:flex;
  gap:9px;
  align-items:flex-start;
  color:var(--muted);
  font-weight:800;
}
.quick-update-kind{
  display:inline-flex;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(53,204,136,.12);
  color:var(--green);
  font-size:10px;
  font-weight:900;
  margin-left:6px;
}
.empty-polished{
  padding:18px;
  border-radius:20px;
  border:1px dashed rgba(255,255,255,.12);
  background:rgba(255,255,255,.025);
  color:var(--muted);
}
@media(max-width:900px){
  .dashboard-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .dashboard-pro-grid{grid-template-columns:1fr}
}


/* MARKET TILES UPDATE */
.market-tiles-card{
  border-color:rgba(53,204,136,.30) !important;
}
.market-tiles-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.market-tile{
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(53,204,136,.12), transparent 35%),
    rgba(255,255,255,.032);
  border-radius:22px;
  padding:14px;
  text-align:left;
  color:var(--text);
  min-height:178px;
  overflow:hidden;
}
.market-tile.large{
  min-height:226px;
}
.market-tile.goldish{
  border-color:rgba(218,183,103,.38);
  background:
    radial-gradient(circle at top right, rgba(218,183,103,.16), transparent 35%),
    rgba(255,255,255,.032);
}
.market-tile-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:8px;
}
.market-tile-title strong{
  display:block;
  font-size:17px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.market-tile-title span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.market-tile-value{
  text-align:right;
}
.market-tile-value strong{
  display:block;
  font-size:18px;
}
.market-tile-value span{
  display:block;
  margin-top:3px;
  color:var(--green);
  font-size:11px;
  font-weight:900;
}
.market-tile.goldish .market-tile-value span{
  color:var(--gold);
}
.market-mini-chart{
  width:100%;
  height:72px;
  display:block;
  margin:8px 0;
}
.market-tile.large .market-mini-chart{
  height:112px;
}
.market-chart-line{
  fill:none;
  stroke:rgba(53,204,136,.95);
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.market-chart-area{
  fill:rgba(53,204,136,.13);
}
.market-chart-bar{
  fill:rgba(53,204,136,.55);
}
.market-tile.goldish .market-chart-line{
  stroke:rgba(218,183,103,.96);
}
.market-tile.goldish .market-chart-area{
  fill:rgba(218,183,103,.13);
}
.market-tile.goldish .market-chart-bar{
  fill:rgba(218,183,103,.58);
}
.market-tile-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.market-tile-meta div{
  padding:8px;
  border-radius:13px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.055);
}
.market-tile-meta span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}
.market-tile-meta strong{
  display:block;
  font-size:12px;
  margin-top:3px;
}
.market-empty{
  grid-column:1/-1;
  padding:18px;
  border:1px dashed rgba(255,255,255,.13);
  border-radius:20px;
  color:var(--muted);
  background:rgba(255,255,255,.025);
}
@media(min-width:1000px){
  .market-tiles-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .market-tiles-grid{
    grid-template-columns:1fr;
  }
}


/* REALIZED PROFIT UPDATE */
.realized-profit-card{
  border-color:rgba(53,204,136,.30) !important;
}
.realized-counter-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.realized-pill{
  padding:13px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
}
.realized-pill.main{
  border-color:rgba(53,204,136,.34);
  background:linear-gradient(180deg,rgba(53,204,136,.12),rgba(255,255,255,.032));
}
.realized-pill.loss{
  border-color:rgba(255,110,110,.22);
}
.realized-pill span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.realized-pill strong{
  display:block;
  margin-top:5px;
  font-size:18px;
}
.realized-pill.main strong{
  font-size:22px;
  color:var(--green);
}
.realized-tax-note{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}
@media(max-width:760px){
  .realized-counter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* HOME GOLD CHART FIX */
.market-tiles-card{
  order:-5;
  box-shadow:0 18px 48px rgba(0,0,0,.16);
}
.market-tiles-card .section-head h3{
  font-size:20px;
}
.market-empty strong{
  display:block;
  color:var(--text);
  margin-bottom:5px;
}
.market-mini-chart{
  min-height:76px;
  background:rgba(255,255,255,.018);
  border-radius:14px;
}
.market-chart-empty-text{
  fill:rgba(255,255,255,.70);
  font-size:15px;
  font-weight:800;
}
.dashboard-tile[data-kind="properties"]{
  opacity:.72;
}
.dashboard-tile[data-kind="properties"] small::after{
  content:" · selten geändert";
}


/* GOLD PRICE TEST UPDATE */
.gold-price-card{
  border-color:rgba(218,183,103,.38) !important;
  background:
    radial-gradient(circle at top right, rgba(218,183,103,.14), transparent 35%),
    var(--card-bg, rgba(255,255,255,.035));
}
.gold-price-box{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.gold-price-pill{
  padding:13px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
}
.gold-price-pill.main{
  border-color:rgba(218,183,103,.42);
}
.gold-price-pill span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.gold-price-pill strong{
  display:block;
  margin-top:5px;
  font-size:18px;
}
.gold-price-pill.main strong{
  color:var(--gold);
  font-size:23px;
}
@media(max-width:760px){
  .gold-price-box{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* PRICE CENTER FINISH UPDATE */
.price-center-card,
.price-center-home-card{
  border-color:rgba(53,204,136,.28) !important;
}
.price-center-list{
  display:grid;
  gap:10px;
}
.price-row{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(110px,.6fr) minmax(120px,.6fr) auto;
  gap:9px;
  align-items:end;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
}
.price-row-title strong{
  display:block;
  font-size:16px;
}
.price-row-title span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
}
.price-row input{
  min-height:0;
}
.price-center-home-box{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.price-home-pill{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
}
.price-home-pill span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.price-home-pill strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
.quick-price-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.quick-price-btn{
  min-height:0;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-weight:900;
}
.quick-price-btn.goldish{
  border-color:rgba(218,183,103,.40);
}
.quick-price-btn.silverish{
  border-color:rgba(210,220,230,.30);
}
@media(max-width:760px){
  .price-row{
    grid-template-columns:1fr;
  }
  .price-center-home-box{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .quick-price-grid{
    grid-template-columns:1fr;
  }
}


/* HOME FIRST CHARTS FIX */
.top-category-card{
  order:-10;
  border-color:rgba(53,204,136,.34) !important;
  background:
    radial-gradient(circle at top right, rgba(53,204,136,.12), transparent 34%),
    rgba(255,255,255,.032);
}
.category-chart-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.category-chart-tile{
  min-height:210px;
  border-radius:23px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.032);
  color:var(--text);
  text-align:left;
  overflow:hidden;
}
.category-chart-tile.gold{
  border-color:rgba(218,183,103,.42);
  background:
    radial-gradient(circle at top right, rgba(218,183,103,.16), transparent 36%),
    rgba(255,255,255,.032);
}
.category-chart-tile .cat-head{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
  margin-bottom:8px;
}
.category-chart-tile .cat-head strong{
  display:block;
  font-size:17px;
}
.category-chart-tile .cat-head span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  margin-top:3px;
}
.category-chart-tile .cat-value{
  text-align:right;
}
.category-chart-tile .cat-value strong{
  display:block;
  font-size:18px;
}
.category-chart-tile .cat-value span{
  display:block;
  color:var(--green);
  font-size:11px;
  font-weight:900;
}
.category-chart-tile.gold .cat-value span{
  color:var(--gold);
}
.category-chart-svg{
  width:100%;
  height:86px;
  display:block;
  margin:10px 0;
  border-radius:14px;
  background:rgba(255,255,255,.018);
}
.category-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.category-meta div{
  padding:8px;
  border-radius:13px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.055);
}
.category-meta span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}
.category-meta strong{
  display:block;
  margin-top:3px;
  font-size:12px;
}
@media(max-width:1100px){
  .category-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .category-chart-grid{grid-template-columns:1fr;}
  .category-chart-tile{min-height:190px;}
}


/* HERO MARKET TILES UPDATE */
.hero{
  grid-template-columns:minmax(0,1fr) minmax(420px,1.05fr) !important;
}
.hero-market-panel{
  min-height:100%;
  padding:14px;
}
.hero-category-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.hero-market-tile{
  min-height:130px;
  border-radius:19px;
  padding:11px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.032);
  color:var(--text);
  text-align:left;
  overflow:hidden;
}
.hero-market-tile.gold{
  border-color:rgba(218,183,103,.42);
  background:
    radial-gradient(circle at top right, rgba(218,183,103,.16), transparent 38%),
    rgba(255,255,255,.032);
}
.hero-market-tile-head{
  display:flex;
  justify-content:space-between;
  gap:7px;
  align-items:flex-start;
}
.hero-market-tile-head strong{
  display:block;
  font-size:14px;
  white-space:nowrap;
}
.hero-market-tile-head span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  margin-top:2px;
}
.hero-market-tile-value{
  text-align:right;
}
.hero-market-tile-value strong{
  display:block;
  font-size:14px;
}
.hero-market-tile-value span{
  display:block;
  font-size:10px;
  color:var(--green);
  font-weight:900;
  margin-top:2px;
}
.hero-market-tile.gold .hero-market-tile-value span{
  color:var(--gold);
}
.hero-market-svg{
  width:100%;
  height:50px;
  display:block;
  margin:8px 0 5px;
  border-radius:11px;
  background:rgba(255,255,255,.018);
}
.hero-market-meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}
@media(max-width:980px){
  .hero{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:520px){
  .hero-category-grid{
    grid-template-columns:1fr;
  }
  .hero-market-tile{
    min-height:120px;
  }
}


/* HOME CLEAN PRIORITY UPDATE */
.price-center-home-card{
  display:none !important;
}


/* SUBTLE PROGRESS UPDATE */
.hero .progress,
.hero .progress-bar,
.hero .million-progress,
.hero .goal-progress,
.hero .wealth-progress,
.progress,
.progress-bar,
.million-progress,
.goal-progress,
.wealth-progress{
  max-height:8px !important;
}

.hero .progress,
.hero .million-progress,
.hero .goal-progress,
.hero .wealth-progress{
  height:7px !important;
  margin:8px 0 4px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.045) !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

.hero .progress > *,
.hero .million-progress > *,
.hero .goal-progress > *,
.hero .wealth-progress > *,
.progress-bar{
  height:100% !important;
  border-radius:999px !important;
  box-shadow:none !important;
}

.hero .progress-label,
.hero .progress-text,
.hero .goal-label,
.hero .million-label{
  font-size:11px !important;
  color:var(--muted) !important;
  margin-top:4px !important;
}

.hero .goal-box,
.hero .million-box,
.hero .progress-card{
  padding-top:8px !important;
  padding-bottom:8px !important;
}

/* Falls die alte Fortschrittsanzeige als große Karte gebaut war */
.hero [class*="progress"]{
  min-height:0 !important;
}
.hero [class*="goal"] .bar,
.hero [class*="million"] .bar{
  height:7px !important;
  margin:7px 0 4px !important;
}


/* CLEAN CHART INFO UPDATE */
.home-chart-card .chart-summary{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
#chartSnapshotCount,
#chartSnapshotCountText{
  display:none !important;
}


/* DEMO PORTFOLIO MIX UPDATE */
.demo-card,
.demo-home-card{
  border-color:rgba(218,183,103,.30) !important;
}
.demo-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:12px 0;
}
.demo-grid div{
  padding:14px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
  text-align:center;
}
.demo-grid strong{
  display:block;
  font-size:26px;
  color:var(--gold);
}
.demo-grid span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.mix-empty-note{
  color:var(--muted);
  font-size:12px;
  margin-top:8px;
}
@media(max-width:720px){
  .demo-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* DIVIDEND RADAR UPDATE */
.dividend-radar-card{
  border-color:rgba(53,204,136,.30) !important;
}
.dividend-news-list{
  display:grid;
  gap:10px;
}
.dividend-news-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at top left, rgba(53,204,136,.10), transparent 38%),
    rgba(255,255,255,.032);
}
.dividend-news-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(53,204,136,.13);
  color:var(--green);
  font-weight:1000;
}
.dividend-news-main strong{
  display:block;
  font-size:15px;
}
.dividend-news-main span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
}
.dividend-news-amount{
  text-align:right;
}
.dividend-news-amount strong{
  display:block;
  color:var(--green);
  font-size:16px;
}
.dividend-news-amount span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:3px;
}
.dividend-source-box{
  margin-top:12px;
  padding:13px;
  border-radius:17px;
  border:1px solid rgba(218,183,103,.26);
  background:rgba(218,183,103,.06);
}
.dividend-source-box strong,
.dividend-source-box span{
  display:block;
}
.dividend-source-box span{
  color:var(--muted);
  margin-top:4px;
  font-size:13px;
}
@media(max-width:640px){
  .dividend-news-card{
    grid-template-columns:auto 1fr;
  }
  .dividend-news-amount{
    grid-column:1/-1;
    text-align:left;
    padding-left:54px;
  }
}


/* SAFE RESTORE DESIGN UPDATE */
/* Eleganteres Grün, aber ohne Layout/Navigation zu beschädigen. */
:root{
  --bg:#080d0b !important;
  --panel:#101613 !important;
  --panel2:#141b17 !important;
  --card:#111814 !important;
  --green:#7fd6a0 !important;
  --green2:#a7e8bd !important;
  --accent:#7fd6a0 !important;
  --gold:#d7b56d !important;
  --text:#eef4ef !important;
  --muted:#8d9b93 !important;
}

body{
  background:
    radial-gradient(circle at top left, rgba(127,214,160,.09), transparent 28%),
    radial-gradient(circle at top right, rgba(215,181,109,.07), transparent 25%),
    linear-gradient(180deg,#070b09 0%,#0b100d 45%,#070b09 100%) !important;
}

/* Karten ruhiger, aber Inhalte bleiben sichtbar. */
.card,
.hero{
  border-color:rgba(255,255,255,.075) !important;
  box-shadow:0 16px 42px rgba(0,0,0,.22) !important;
}

.primary,
button.primary{
  background:linear-gradient(135deg,#7fd6a0,#d7b56d) !important;
  color:#07100b !important;
  box-shadow:0 10px 24px rgba(127,214,160,.13) !important;
}

.market-chart-line,
.hero-mini-line{
  stroke:#a7e8bd !important;
}
.market-chart-area,
.hero-mini-area{
  fill:rgba(127,214,160,.13) !important;
}

/* Bottom Navigation: größere Trefferfläche, aber sicher sichtbar lassen. */
.bottom-nav{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:8px !important;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  background:linear-gradient(180deg, rgba(10,16,13,.76), rgba(6,10,8,.96)) !important;
  backdrop-filter:blur(18px) !important;
  border-top:1px solid rgba(255,255,255,.075) !important;
  z-index:1000 !important;
}

.bottom-nav button{
  min-height:56px !important;
  padding:8px 6px !important;
  border-radius:17px !important;
  margin:0 !important;
  touch-action:manipulation !important;
}

.bottom-nav button span{
  font-size:11px !important;
  line-height:1.05 !important;
}

.bottom-nav button.active{
  background:linear-gradient(180deg, rgba(127,214,160,.18), rgba(215,181,109,.09)) !important;
  border-color:rgba(127,214,160,.36) !important;
  color:#f4fff7 !important;
}

@media(max-width:640px){
  body{
    padding-bottom:86px !important;
  }
  .bottom-nav{
    gap:7px !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }
  .bottom-nav button{
    min-height:56px !important;
    min-width:0 !important;
  }
}

/* Home etwas app-artiger, aber keine Daten entfernen. */
.demo-home-card,
[data-home-section="diagnostics"],
[data-home-section="navtest"],
[data-home-section="simplehint"]{
  display:none !important;
}

.hero-market-tile,
.category-chart-tile,
.home-dividend-pill,
.dividend-news-card{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020)) !important;
  border-color:rgba(255,255,255,.075) !important;
}


/* PRINCIPLE HOME UPDATE */
/* Grundprinzip: Home ist ein Finanz-Dashboard, keine technische Rechenzentrale. */
#home.page.active{
  display:flex !important;
  flex-direction:column;
  gap:11px;
}
#home > section{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
.hero{order:1;}
.home-dividend-focus{order:2;}
.market-tiles-card{order:3;}
.realized-profit-card{order:4;}
.dividend-radar-card{order:5;}
.home-chart-card{order:6;}
[data-home-section="mix"]{order:7;}
[data-home-section="income"]{order:8;}
[data-home-section="recent"]{order:9;}

/* Diese Bereiche bleiben im Hintergrund/unter Mehr/Einstellungen, aber nicht auf Home. */
[data-home-section="metrics"],
[data-home-section="dashboardpro"],
[data-home-section="allassets"],
[data-home-section="today"],
[data-home-section="simple"],
[data-home-section="quick"],
[data-home-section="navtest"],
[data-home-section="diagnostics"],
[data-home-section="autogoal"],
[data-home-section="next"],
[data-home-section="finish"],
[data-home-section="buyinhome"],
[data-home-section="simplehint"],
[data-home-section="demohint"],
[data-home-section="goldprice"],
[data-home-section="metals"]{
  display:none !important;
}

/* Monatliche Dividenden als App-Kachel statt alte Depot/Immo/Werte/Dividenden-Reihe */
.home-dividend-focus{
  margin:0 !important;
}
.home-dividend-focus-pill{
  width:100%;
  border:1px solid rgba(127,214,160,.22);
  background:
    radial-gradient(circle at left, rgba(127,214,160,.12), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020));
  color:var(--text);
  border-radius:20px;
  padding:12px 14px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
  text-align:left;
}
.home-dividend-focus-pill span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.home-dividend-focus-pill strong{
  font-size:22px;
  color:var(--green);
  justify-self:end;
}
.home-dividend-focus-pill small{
  grid-column:1/-1;
  color:rgba(224,235,227,.58);
  font-size:11px;
}

/* Chart-Kacheln bleiben sichtbar und wichtig */
.market-tiles-card{
  border-color:rgba(127,214,160,.24) !important;
}
.market-tiles-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

/* Vermögensmix und Einnahmen bleiben als Info, aber tiefer und kompakt */
[data-home-section="mix"] .mini-row,
#mixList .mini-row{
  border-radius:16px;
  padding:10px 12px;
  background:rgba(255,255,255,.032);
  border:1px solid rgba(255,255,255,.065);
}
[data-home-section="income"] .compact-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
[data-home-section="income"] .metric{
  min-height:78px;
  border-radius:17px;
  padding:11px;
}

/* Steuerhinweis im realisierten Gewinn kompakt */
.realized-pill small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

.check-row{
  display:flex !important;
  align-items:center;
  gap:9px;
}
.check-row input{
  width:18px;
  height:18px;
}

@media(max-width:760px){
  #home.page.active{gap:9px;}
  .market-tiles-grid{grid-template-columns:1fr;}
  [data-home-section="income"] .compact-metrics{grid-template-columns:1fr;}
  .home-dividend-focus-pill{
    border-radius:18px;
    padding:11px 12px;
  }
  .home-dividend-focus-pill strong{font-size:20px;}
}


/* DAILY CHART PIE METALS UPDATE */
.chart-range-tabs,
#homeChartRangeTabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.chart-range-tabs button,
#homeChartRangeTabs button{
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  font-weight:900;
}
.chart-range-tabs button.active,
#homeChartRangeTabs button.active{
  color:#07100b;
  background:linear-gradient(135deg,var(--green),var(--gold));
  border-color:transparent;
}
.home-chart-card svg,
#homeWealthChart{
  min-height:170px;
}
.metals-summary-card{
  order:4;
  border-color:rgba(215,181,109,.26) !important;
}
.realized-profit-card{order:5 !important;}
.dividend-radar-card{order:6 !important;}
.home-chart-card{order:7 !important;}
[data-home-section="mix"]{order:8 !important;}
[data-home-section="income"]{order:9 !important;}
.metals-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.metals-summary-grid div{
  padding:12px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020));
}
.metals-summary-grid .total{
  border-color:rgba(215,181,109,.34);
  background:
    radial-gradient(circle at top right, rgba(215,181,109,.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020));
}
.metals-summary-grid span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.metals-summary-grid strong{
  display:block;
  margin-top:5px;
  font-size:18px;
}
.metals-summary-grid small{
  display:block;
  margin-top:3px;
  color:rgba(224,235,227,.60);
  font-size:11px;
  font-weight:800;
}
.mix-pie-wrap{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:14px;
  align-items:center;
  margin-bottom:12px;
}
.mix-pie-svg{
  width:220px;
  height:220px;
  display:block;
  filter:drop-shadow(0 16px 24px rgba(0,0,0,.22));
}
.mix-pie-center-main{
  fill:var(--text);
  font-size:13px;
  font-weight:900;
}
.mix-pie-center-sub{
  fill:var(--muted);
  font-size:10px;
  font-weight:800;
}
.mix-pie-legend{
  display:grid;
  gap:7px;
}
.mix-pie-legend div{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(255,255,255,.032);
  border:1px solid rgba(255,255,255,.055);
}
.mix-pie-legend i{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--green);
}
.mix-pie-legend span{
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.mix-pie-legend strong{
  font-size:12px;
  color:var(--text);
}
.mix-home-card .section-head h3::after,
[data-home-section="mix"] .section-head h3::after{
  content:" · ohne Immobilien";
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
@media(max-width:760px){
  .mix-pie-wrap{
    grid-template-columns:1fr;
  }
  .mix-pie-svg{
    width:min(220px,100%);
    height:auto;
    justify-self:center;
  }
  .metals-summary-grid{
    grid-template-columns:1fr;
  }
}


/* MIX SETTINGS UPDATE */
.mix-settings-card{
  border-color:rgba(127,214,160,.22) !important;
}
.mix-settings-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.mix-settings-grid label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:11px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.032);
  font-weight:850;
}
.mix-settings-grid input{
  width:18px;
  height:18px;
}
.button-row{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:12px;
}
@media(max-width:760px){
  .mix-settings-grid{
    grid-template-columns:1fr;
  }
}


/* WORKFLOW BACKUP UPDATE */
.workflow-card,
.backup-priority-card{
  border-color:rgba(127,214,160,.22) !important;
}
.workflow-choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-bottom:13px;
}
.workflow-choice-grid button{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020));
  color:var(--text);
  border-radius:17px;
  padding:13px;
  text-align:left;
}
.workflow-choice-grid strong,
.workflow-choice-grid span{
  display:block;
}
.workflow-choice-grid span{
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
}
.workflow-preview{
  margin:12px 0;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(215,181,109,.22);
  background:rgba(215,181,109,.055);
  color:var(--text);
}
.backup-status-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.backup-status-grid div{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.032);
}
.backup-status-grid span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.backup-status-grid strong{
  display:block;
  margin-top:5px;
}
.more-tile.highlight{
  border-color:rgba(127,214,160,.34) !important;
  background:
    radial-gradient(circle at top right, rgba(127,214,160,.13), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020)) !important;
}
@media(max-width:760px){
  .workflow-choice-grid,
  .backup-status-grid{
    grid-template-columns:1fr;
  }
}


/* SMART SAFETY GOALS UPDATE */
.today-important-card{order:3 !important;}
.backup-reminder-card{order:4 !important;}
.metals-summary-card{order:6 !important;}
.realized-profit-card{order:7 !important;}
.dividend-radar-card{order:8 !important;}
.home-chart-card{order:9 !important;}
[data-home-section="mix"]{order:10 !important;}
[data-home-section="income"]{order:11 !important;}

.today-important-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.today-important-grid div,
.smart-score,
.backup-reminder-text,
.goal-row,
.detail-pro-grid div{
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020));
  border-radius:17px;
  padding:12px;
}
.today-important-grid span,
.backup-reminder-text span,
.detail-pro-grid span,
.goal-row span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.today-important-grid strong,
.backup-reminder-text strong,
.detail-pro-grid strong,
.goal-row strong{
  display:block;
  margin-top:5px;
  font-size:14px;
}
.backup-reminder-text.warn{
  border-color:rgba(215,181,109,.32);
  background:rgba(215,181,109,.06);
}
.backup-reminder-text.ok{
  border-color:rgba(127,214,160,.28);
  background:rgba(127,214,160,.055);
}
.smart-score{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.smart-score strong{
  font-size:24px;
  color:var(--green);
}
.smart-score span{
  color:var(--muted);
  font-weight:900;
}
.smart-check-list{
  display:grid;
  gap:8px;
}
.smart-check-list div{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.032);
}
.smart-check-list div.ok{
  border-color:rgba(127,214,160,.23);
}
.smart-check-list div.warn{
  border-color:rgba(215,181,109,.30);
  background:rgba(215,181,109,.055);
}
.smart-check-list strong,
.smart-check-list span{
  display:block;
}
.smart-check-list span{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}
.goals-grid{
  display:grid;
  gap:10px;
}
.goal-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px 12px;
  align-items:center;
}
.goal-row b{
  color:var(--green);
}
.goal-bar{
  grid-column:1/-1;
  height:8px;
  border-radius:99px;
  background:rgba(255,255,255,.07);
  overflow:hidden;
}
.goal-bar i{
  display:block;
  height:100%;
  border-radius:99px;
  background:linear-gradient(90deg,var(--green),var(--gold));
}
.detail-pro-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.detail-history{
  margin-top:12px;
  display:grid;
  gap:8px;
}
.history-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.028);
}
.history-line span{
  color:var(--muted);
  font-size:12px;
}
@media(max-width:900px){
  .today-important-grid,
  .detail-pro-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .today-important-grid,
  .detail-pro-grid{
    grid-template-columns:1fr;
  }
}


/* CUSTOM GOALS UPDATE */
.goals-settings-card{
  border-color:rgba(215,181,109,.25) !important;
}
.goals-settings-card .form-grid{
  margin-top:12px;
}
.goals-settings-card input{
  font-weight:850;
}


/* CLICK SELECT SETTINGS UPDATE */
.click-select-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.select-tile{
  position:relative;
  min-height:78px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.018));
  color:var(--text);
  border-radius:18px;
  padding:13px 14px;
  text-align:left;
  transition:transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.select-tile:active{
  transform:scale(.985);
}
.select-tile strong,
.select-tile span{
  display:block;
}
.select-tile strong{
  font-size:14px;
}
.select-tile span{
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.select-tile::after{
  content:"";
  position:absolute;
  right:12px;
  top:12px;
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
}
.select-tile.selected{
  border-color:rgba(127,214,160,.55);
  background:
    radial-gradient(circle at top right, rgba(127,214,160,.18), transparent 42%),
    linear-gradient(180deg, rgba(127,214,160,.105), rgba(255,255,255,.025));
  box-shadow:0 12px 26px rgba(0,0,0,.18), inset 0 0 0 1px rgba(127,214,160,.16);
}
.select-tile.selected::after{
  border-color:transparent;
  background:linear-gradient(135deg,var(--green),var(--gold));
  box-shadow:0 0 0 3px rgba(127,214,160,.12);
}
.select-tile.selected span{
  color:var(--green);
}
.home-select-card,
.mix-settings-card{
  border-color:rgba(127,214,160,.24) !important;
}
.mix-settings-grid label{
  display:none !important;
}
@media(max-width:760px){
  .click-select-grid{
    grid-template-columns:1fr;
  }
  .select-tile{
    min-height:66px;
  }
}


/* MOBILE SETTINGS ROWS UPDATE */
/* Einstellungen sollen wie eine Handy-App wirken: Zeilen statt PC-Kacheln/Checkboxen. */
.click-select-grid,
.settings-list,
.mix-settings-grid,
.home-select-grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:7px !important;
  margin-top:12px !important;
}
.settings-row-toggle,
.select-tile{
  width:100%;
  min-height:58px !important;
  border:1px solid rgba(255,255,255,.065) !important;
  background:rgba(255,255,255,.028) !important;
  color:var(--text);
  border-radius:15px !important;
  padding:11px 12px !important;
  text-align:left;
  display:grid !important;
  grid-template-columns:1fr auto !important;
  grid-template-rows:auto auto;
  align-items:center;
  gap:2px 12px;
  box-shadow:none !important;
}
.settings-row-toggle strong,
.select-tile strong{
  grid-column:1;
  font-size:14px !important;
  margin:0 !important;
}
.settings-row-toggle span,
.select-tile span{
  grid-column:1;
  margin:2px 0 0 0 !important;
  color:var(--muted) !important;
  font-size:11px !important;
  font-weight:850 !important;
}
.settings-row-toggle::after,
.select-tile::after{
  content:"Aus" !important;
  position:static !important;
  grid-column:2;
  grid-row:1/3;
  width:auto !important;
  height:auto !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.045) !important;
  color:var(--muted);
  padding:5px 10px;
  font-size:11px;
  font-weight:950;
  box-shadow:none !important;
}
.settings-row-toggle.selected,
.select-tile.selected{
  border-color:rgba(127,214,160,.26) !important;
  background:rgba(127,214,160,.055) !important;
  box-shadow:none !important;
}
.settings-row-toggle.selected::after,
.select-tile.selected::after{
  content:"Aktiv" !important;
  border-color:rgba(127,214,160,.28) !important;
  background:rgba(127,214,160,.16) !important;
  color:var(--green);
}
.settings-row-toggle.selected span,
.select-tile.selected span{
  color:rgba(127,214,160,.85) !important;
}
.home-select-card,
.mix-settings-card,
.goals-settings-card{
  border-color:rgba(255,255,255,.075) !important;
}
.mix-settings-grid label,
.home-select-grid label{
  display:none !important;
}

/* Alte Auswahlkachel-Optik endgültig entschärfen */
.select-tile:active,
.settings-row-toggle:active{
  transform:none !important;
  opacity:.86;
}

@media(max-width:760px){
  .settings-row-toggle,
  .select-tile{
    min-height:56px !important;
    border-radius:14px !important;
  }
}


/* SMART ADD DIVIDEND UPDATE */
.smart-add-tabs{
  display:flex;
  gap:7px;
  overflow:auto;
  padding-bottom:4px;
  margin:10px 0 12px;
}
.smart-add-tabs button{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  border-radius:999px;
  padding:9px 12px;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
.smart-add-tabs button.active{
  color:#07100b;
  border-color:transparent;
  background:linear-gradient(135deg,var(--green),var(--gold));
}
.smart-add-list{
  display:grid;
  gap:7px;
}
.smart-preset-row{
  min-height:54px !important;
}
.smart-preset-row.selected{
  border-color:rgba(127,214,160,.30) !important;
  background:rgba(127,214,160,.065) !important;
}
#smartAddName[readonly]{
  opacity:.82;
}
.dividend-month-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.dividend-month-list div,
.dividend-year-list div{
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.032);
  border-radius:15px;
  padding:10px 11px;
}
.dividend-month-list span,
.dividend-year-list span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.dividend-month-list strong,
.dividend-year-list strong{
  display:block;
  margin-top:4px;
}
.dividend-year-list{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.dividend-growth-wrap{
  min-height:180px;
}
@media(max-width:760px){
  .dividend-month-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .dividend-year-list{
    grid-template-columns:1fr;
  }
}


/* HOME ORDER CLEANUP UPDATE */
/* Datensicherung gehört unter Mehr/Backup, nicht auf die Hauptseite. */
[data-home-section="backupreminder"],
.backup-reminder-card{
  display:none !important;
}

/* Neue Priorität auf Home:
   1 Gesamt,
   2 Heute wichtig,
   3 Dividenden-Fokus,
   4 Vermögensmix,
   5 Einnahmen,
   danach Chart-/Depot-Details. */
.hero{order:1 !important;}
.today-important-card{order:2 !important;}
.home-dividend-focus{order:3 !important;}
[data-home-section="mix"]{order:4 !important;}
[data-home-section="income"]{order:5 !important;}
.metals-summary-card{order:6 !important;}
.market-tiles-card,
[data-home-section="markets"]{order:7 !important;}
.realized-profit-card{order:8 !important;}
.dividend-radar-card{order:9 !important;}
.home-chart-card,
[data-home-section="chart"]{order:10 !important;}
[data-home-section="recent"]{order:11 !important;}

/* Mix und Einnahmen als wichtige Info optisch etwas stärker */
[data-home-section="mix"],
[data-home-section="income"]{
  border-color:rgba(127,214,160,.20) !important;
}
[data-home-section="mix"] .section-head,
[data-home-section="income"] .section-head{
  margin-bottom:10px;
}


/* TAGESGELD ACCOUNTS UPDATE */
.tagesgeld-rows{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.tagesgeld-row{
  display:grid;
  grid-template-columns:1.2fr 1fr .8fr auto;
  gap:8px;
  align-items:center;
  padding:9px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.030);
}
.tagesgeld-row input{
  width:100%;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
  color:var(--text);
  border-radius:13px;
  padding:10px 11px;
  font-weight:850;
}
.tg-rate-wrap{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:6px;
  border:1px solid rgba(127,214,160,.18);
  border-radius:13px;
  padding-right:9px;
  background:rgba(0,0,0,.18);
}
.tg-rate-wrap input{
  border:0;
  background:transparent;
}
.tg-rate-wrap span{
  color:var(--green);
  font-weight:950;
}
.ghost.danger{
  color:#f3a6a6;
  border-color:rgba(243,166,166,.25);
}
.ghost.tiny{
  min-width:38px;
  padding:8px 10px;
  border-radius:13px;
}
.tagesgeld-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:12px 0;
}
.tagesgeld-summary div{
  padding:12px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.020));
}
.tagesgeld-summary span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.tagesgeld-summary strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}
@media(max-width:760px){
  .tagesgeld-row{
    grid-template-columns:1fr;
  }
  .tagesgeld-summary{
    grid-template-columns:1fr;
  }
}


/* BACK BUTTON STYLE UPDATE */
/* Die Navigations-Buttons oben sollen wie App-Navigation wirken und nicht wie alte Desktop-Buttons. */
.page-head{
  align-items:center;
}
.page-head .app-back-button,
.page-head button.primary,
.page-head button.ghost{
  min-width:auto !important;
  height:auto !important;
  padding:9px 14px 9px 12px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:
    radial-gradient(circle at top right, rgba(127,214,160,.10), transparent 48%),
    rgba(255,255,255,.035) !important;
  color:var(--text) !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:.01em;
  display:inline-flex !important;
  align-items:center;
  gap:8px;
}
.page-head .app-back-button::before,
.page-head button.primary::before,
.page-head button.ghost::before{
  content:"‹";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  color:var(--green);
  font-size:18px;
  font-weight:900;
  line-height:1;
  transform:translateY(-1px);
}
.page-head .app-back-button:hover,
.page-head button.primary:hover,
.page-head button.ghost:hover{
  border-color:rgba(127,214,160,.22) !important;
  background:
    radial-gradient(circle at top right, rgba(127,214,160,.14), transparent 46%),
    rgba(255,255,255,.048) !important;
}
.page-head .app-back-button:active,
.page-head button.primary:active,
.page-head button.ghost:active{
  transform:scale(.99);
}
.page-head .app-back-button[data-nav-label="Home"]::after,
.page-head button.primary[data-nav-label="Home"]::after,
.page-head button.ghost[data-nav-label="Home"]::after{
  content:"Zurück";
  display:none;
}
/* Gleichmäßiger, appiger Abstand im Kopfbereich */
.page-head h2{
  margin-bottom:2px;
}
.page-head .eyebrow{
  margin-bottom:4px;
}
@media(max-width:760px){
  .page-head .app-back-button,
  .page-head button.primary,
  .page-head button.ghost{
    padding:8px 12px 8px 10px !important;
    font-size:11.5px !important;
  }
  .page-head .app-back-button::before,
  .page-head button.primary::before,
  .page-head button.ghost::before{
    width:20px;
    height:20px;
    font-size:17px;
  }
}


/* WORKFLOW NO NAME UPDATE */
.workflow-name-note{
  margin-top:10px;
  margin-bottom:0;
}
#wfName[readonly],
#smartAddName[readonly]{
  opacity:.84;
}


/* BUTTON INPUT AUDIT UPDATE */
/* Keine sichtbaren Auswahllisten mehr: Auswahl erfolgt über App-Zeilen/Buttons. */
.native-select-hidden{
  display:none !important;
}
select{
  display:none !important;
}
.field-caption{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:950;
  margin:4px 0 8px;
}
.compact-select-list{
  display:grid;
  gap:7px;
}
.compact-select-list .settings-row-toggle{
  min-height:52px !important;
}
.empty-list-note{
  padding:12px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:850;
}
.smart-add-tabs button.active,
.settings-row-toggle.selected,
.smart-preset-row.selected{
  border-color:rgba(127,214,160,.36) !important;
  background:
    radial-gradient(circle at top right, rgba(127,214,160,.14), transparent 44%),
    rgba(127,214,160,.065) !important;
}
.smart-add-tabs button.active{
  color:#07100b !important;
  background:linear-gradient(135deg,var(--green),var(--gold)) !important;
}
#tagesgeld .tagesgeld-card{
  border-color:rgba(127,214,160,.22) !important;
}


/* MIX PERCENT CLEANUP UPDATE */
/* Prozentangaben bleiben nur neben dem Kreisdiagramm. Die Liste darunter zeigt keine Prozentwerte mehr. */
#mixBars .mini-row span,
#mixList .mini-row span,
[data-home-section="mix"] .mini-row span{
  color:rgba(224,235,227,.58);
}


/* RED CHART BACK BUTTON UPDATE */
/* Zurückbutton soll wie ein dezenter Chartpfeil wirken – appiger, nicht Desktop-artig. */
.page-head > button,
.page-head button,
.page-head .app-back-button{
  appearance:none !important;
  -webkit-appearance:none !important;
  min-width:0 !important;
  width:auto !important;
  height:40px !important;
  padding:0 14px 0 10px !important;
  border-radius:999px !important;
  border:1px solid rgba(226,112,112,.22) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022)) !important;
  color:transparent !important;
  box-shadow:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  font-size:0 !important;
  font-weight:950 !important;
  letter-spacing:.01em !important;
  overflow:hidden;
}

.page-head > button::before,
.page-head button::before,
.page-head .app-back-button::before{
  content:"↗" !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:24px !important;
  height:24px !important;
  border-radius:999px !important;
  background:rgba(226,112,112,.11) !important;
  border:1px solid rgba(226,112,112,.18) !important;
  color:#df7f7f !important;
  font-size:16px !important;
  font-weight:900 !important;
  line-height:1 !important;
  transform:scaleX(-1) rotate(-12deg) !important;
  text-shadow:none !important;
}

.page-head > button::after,
.page-head button::after,
.page-head .app-back-button::after{
  content:"Zurück" !important;
  display:inline-block !important;
  color:#e6b4b4 !important;
  font-size:12px !important;
  font-weight:950 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.page-head > button:hover,
.page-head button:hover,
.page-head .app-back-button:hover{
  border-color:rgba(226,112,112,.30) !important;
  background:
    radial-gradient(circle at 80% 15%, rgba(226,112,112,.07), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.026)) !important;
}

.page-head > button:active,
.page-head button:active,
.page-head .app-back-button:active{
  transform:scale(.985) !important;
  opacity:.92 !important;
}

@media(max-width:760px){
  .page-head > button,
  .page-head button,
  .page-head .app-back-button{
    height:38px !important;
    padding:0 12px 0 9px !important;
  }
  .page-head > button::before,
  .page-head button::before,
  .page-head .app-back-button::before{
    width:22px !important;
    height:22px !important;
    font-size:15px !important;
  }
  .page-head > button::after,
  .page-head button::after,
  .page-head .app-back-button::after{
    font-size:11.5px !important;
  }
}


/* NETLIFY ICON BACK FIX */
/* Wirklich nur obere Zurück-/Navigationsbuttons. Home-Charts bleiben unberührt. */
.page-head .back-chart-button{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:auto !important;
  min-width:0 !important;
  height:38px !important;
  padding:0 13px 0 9px !important;
  border-radius:999px !important;
  border:1px solid rgba(210,100,100,.24) !important;
  background:
    radial-gradient(circle at 78% 20%, rgba(210,100,100,.08), transparent 46%),
    rgba(255,255,255,.035) !important;
  color:transparent !important;
  font-size:0 !important;
  box-shadow:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  overflow:hidden !important;
}
.page-head .back-chart-button::before{
  content:"↙" !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:23px !important;
  height:23px !important;
  border-radius:999px !important;
  background:rgba(210,100,100,.13) !important;
  border:1px solid rgba(210,100,100,.20) !important;
  color:#d78383 !important;
  font-size:17px !important;
  font-weight:950 !important;
  line-height:1 !important;
  transform:rotate(18deg) !important;
}
.page-head .back-chart-button::after{
  content:"Zurück" !important;
  color:#e2b0b0 !important;
  font-size:12px !important;
  font-weight:950 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.page-head .back-chart-button:active{
  transform:scale(.985) !important;
  opacity:.90 !important;
}

/* Falls alte primary/ghost-Regeln später geladen werden: zusätzlich härter überschreiben. */
.page-head button.primary.back-chart-button,
.page-head button.ghost.back-chart-button{
  background:
    radial-gradient(circle at 78% 20%, rgba(210,100,100,.08), transparent 46%),
    rgba(255,255,255,.035) !important;
  border-color:rgba(210,100,100,.24) !important;
  color:transparent !important;
}

@media(max-width:760px){
  .page-head .back-chart-button{
    height:37px !important;
    padding:0 11px 0 8px !important;
  }
  .page-head .back-chart-button::before{
    width:22px !important;
    height:22px !important;
    font-size:16px !important;
  }
  .page-head .back-chart-button::after{
    font-size:11.5px !important;
  }
}


/* MIX ONE CHART + REAL BACK BUTTON UPDATE */
/* Vermögensmix: aus zwei Darstellungen wird eine. Die Balken/Liste unter dem Kreisdiagramm ist weg. */
#mixBars,
#mixList,
[data-home-section="mix"] > .bars{
  display:none !important;
}
.mix-pie-legend strong{
  text-align:right;
  white-space:nowrap;
}
.mix-pie-legend div{
  grid-template-columns:auto 1fr auto !important;
}

/* Zurückbutton: jetzt mit echten HTML-Elementen statt nur CSS-Pseudo-Elementen. */
.page-head .back-real-button{
  appearance:none !important;
  -webkit-appearance:none !important;
  height:38px !important;
  min-width:0 !important;
  width:auto !important;
  padding:0 13px 0 9px !important;
  border-radius:999px !important;
  border:1px solid rgba(210,100,100,.26) !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(210,100,100,.09), transparent 46%),
    rgba(255,255,255,.035) !important;
  color:#e2b0b0 !important;
  box-shadow:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  font-size:12px !important;
  font-weight:950 !important;
  line-height:1 !important;
  overflow:hidden !important;
}
.page-head .back-real-button::before,
.page-head .back-real-button::after{
  content:none !important;
  display:none !important;
}
.back-real-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:23px !important;
  height:23px !important;
  border-radius:999px !important;
  background:rgba(210,100,100,.13) !important;
  border:1px solid rgba(210,100,100,.20) !important;
  color:#d78383 !important;
  font-size:17px !important;
  font-weight:950 !important;
  line-height:1 !important;
  transform:rotate(18deg) !important;
}
.back-real-label{
  display:inline-block !important;
  color:#e2b0b0 !important;
  font-size:12px !important;
  font-weight:950 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.page-head .back-real-button:active{
  transform:scale(.985) !important;
  opacity:.90 !important;
}
@media(max-width:760px){
  .page-head .back-real-button{
    height:37px !important;
    padding:0 11px 0 8px !important;
  }
  .back-real-icon{
    width:22px !important;
    height:22px !important;
    font-size:16px !important;
  }
  .back-real-label{
    font-size:11.5px !important;
  }
}


/* NAV BACK REPAIR UPDATE */
/* Reparatur: Untere Reiter wieder sauber bedienbar und nicht vom Zurückbutton-Stil betroffen. */
.bottom-nav{
  position:fixed !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  bottom:calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  width:min(560px, calc(100% - 18px)) !important;
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  gap:7px !important;
  padding:8px !important;
  border-radius:24px !important;
  background:rgba(10,16,13,.92) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:0 18px 50px rgba(0,0,0,.38) !important;
  z-index:9999 !important;
  backdrop-filter:blur(16px) !important;
}
.bottom-nav button{
  all:unset;
  box-sizing:border-box !important;
  min-width:0 !important;
  min-height:54px !important;
  border-radius:18px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  color:rgba(224,235,227,.62) !important;
  font-size:11px !important;
  font-weight:900 !important;
  line-height:1 !important;
  cursor:pointer !important;
  touch-action:manipulation !important;
  background:transparent !important;
  border:1px solid transparent !important;
}
.bottom-nav button .nav-ico{
  display:block !important;
  font-size:17px !important;
  line-height:1 !important;
  color:inherit !important;
}
.bottom-nav button.active,
.bottom-nav button[aria-current="page"]{
  color:#07100b !important;
  background:linear-gradient(135deg,var(--green),var(--gold)) !important;
  border-color:rgba(255,255,255,.12) !important;
}
.bottom-nav button:active{
  transform:scale(.97) !important;
}

/* Zurückbutton: schlicht, gerade, klein, app-artig. Kein schiefer Chartbutton mehr. */
.page-head .app-clean-back{
  all:unset;
  box-sizing:border-box !important;
  height:34px !important;
  padding:0 11px 0 7px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  color:#d9a5a5 !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  background:rgba(210,100,100,.075) !important;
  border:1px solid rgba(210,100,100,.18) !important;
  box-shadow:none !important;
  cursor:pointer !important;
  touch-action:manipulation !important;
}
.page-head .app-clean-back::before,
.page-head .app-clean-back::after{
  content:none !important;
  display:none !important;
}
.app-clean-back-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:20px !important;
  height:20px !important;
  border-radius:999px !important;
  background:rgba(210,100,100,.13) !important;
  color:#d78383 !important;
  font-size:20px !important;
  font-weight:900 !important;
  line-height:.75 !important;
}
.page-head .app-clean-back:active{
  transform:scale(.97) !important;
}
main, .app, body{
  padding-bottom:90px !important;
}
@media(max-width:380px){
  .bottom-nav{
    gap:5px !important;
    padding:7px !important;
  }
  .bottom-nav button{
    min-height:51px !important;
    font-size:10.5px !important;
    border-radius:16px !important;
  }
}


/* MOBILE APP CLEANUP UPDATE */
/* Technik-Kacheln auf dem Handy ausblenden: App prüfen/App-Test gehört nicht in die normale Bedienung. */
[data-open="appCheck"],
[data-open="appStatus"]{
  display:none !important;
}

/* Untere Reiter: mehr wie Handy-App, mehr Abstand, größere Klickflächen. */
.bottom-nav{
  width:min(560px, calc(100% - 16px)) !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  gap:9px !important;
  padding:9px !important;
  border-radius:26px !important;
  bottom:calc(9px + env(safe-area-inset-bottom, 0px)) !important;
}
.bottom-nav button{
  min-height:58px !important;
  border-radius:19px !important;
  gap:5px !important;
  font-size:11.3px !important;
  letter-spacing:.01em !important;
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(255,255,255,.045) !important;
}
.bottom-nav button .nav-ico{
  font-size:18px !important;
}
.bottom-nav button.active{
  box-shadow:0 8px 22px rgba(127,214,160,.16) !important;
}

/* Zurückbutton: final schlicht, nicht schief, nicht zu groß. */
.page-head .app-clean-back{
  height:33px !important;
  padding:0 10px 0 7px !important;
  border-radius:999px !important;
  background:rgba(210,100,100,.065) !important;
  border:1px solid rgba(210,100,100,.16) !important;
}
.app-clean-back-icon{
  width:19px !important;
  height:19px !important;
  font-size:19px !important;
}
.page-head .app-clean-back span:last-child{
  font-size:11.5px !important;
}

/* Mehr-Seite wirkt weniger wie Admin/PC: engere, app-artige Listen. */
#more .tool-grid,
#more .quick-grid,
#more .grid{
  gap:10px !important;
}
#more [data-open]{
  min-height:54px;
}

/* Auf kleinen Handys zusätzlich Luft schaffen. */
@media(max-width:420px){
  .bottom-nav{
    width:calc(100% - 12px) !important;
    gap:7px !important;
    padding:8px !important;
  }
  .bottom-nav button{
    min-height:56px !important;
    font-size:10.7px !important;
    border-radius:17px !important;
  }
  .bottom-nav button .nav-ico{
    font-size:17px !important;
  }
}


/* MIX SLASH BARS UPDATE */
/* Vermögensmix: Prozent / Euro und farbige Mini-Balken in der Legende */
.mix-pie-legend .mix-legend-row,
#mixLegend .mix-legend-row{
  display:grid !important;
  grid-template-columns:auto 1fr auto !important;
  gap:8px 10px !important;
  align-items:center !important;
  padding:8px 0 !important;
}
.mix-pie-legend .mix-legend-row i,
#mixLegend .mix-legend-row i{
  width:11px !important;
  height:11px !important;
  border-radius:999px !important;
  display:block !important;
}
.mix-pie-legend .mix-legend-row span,
#mixLegend .mix-legend-row span{
  min-width:0;
}
.mix-pie-legend .mix-legend-row strong,
#mixLegend .mix-legend-row strong{
  white-space:nowrap !important;
  text-align:right !important;
}
.mix-pie-legend .mix-legend-progress,
#mixLegend .mix-legend-progress{
  grid-column:2 / 4 !important;
  display:block !important;
  width:100% !important;
  height:7px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.06) !important;
  overflow:hidden !important;
  font-style:normal !important;
}
.mix-pie-legend .mix-legend-progress u,
#mixLegend .mix-legend-progress u{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  text-decoration:none !important;
  min-width:6px;
  opacity:.95;
  box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;
}


/* EMERGENCY OPEN REPAIR UPDATE */
#includePropertiesToggle.selected{
  border-color:rgba(127,214,160,.34) !important;
  background:
    radial-gradient(circle at top right, rgba(127,214,160,.14), transparent 44%),
    rgba(127,214,160,.065) !important;
}


/* BACKUP TRANSFER SAFE UPDATE */
/* Backup als einfacher Gerätewechsel-Workflow, nicht als Technikseite. */
.backup-transfer-card{
  border-color:rgba(127,214,160,.20) !important;
}
.backup-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:12px 0;
}
.backup-steps div{
  display:flex;
  gap:9px;
  align-items:center;
  padding:11px;
  border-radius:17px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}
.backup-steps strong{
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--green),var(--gold));
  color:#07100b;
  font-weight:950;
  flex:0 0 auto;
}
.backup-steps span{
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.backup-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
.backup-status-grid div{
  padding:12px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
}
.backup-status-grid span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
}
.backup-status-grid strong{
  display:block;
  margin-top:5px;
  font-size:16px;
}
@media(max-width:760px){
  .backup-steps,
  .backup-status-grid{
    grid-template-columns:1fr;
  }
  .backup-transfer-card .app-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .backup-transfer-card .app-actions button{
    width:100%;
    min-height:52px;
  }
}


/* HIDE APP CHECK CLEAN UPDATE */
/* App prüfen/App-Status bleibt intern vorhanden, wird aber in der normalen Handy-Oberfläche ausgeblendet. */
button[data-open="appCheck"],
button[data-open="appStatus"],
a[data-open="appCheck"],
a[data-open="appStatus"],
.card[data-open="appCheck"],
.card[data-open="appStatus"],
[data-target="appCheck"],
[data-target="appStatus"]{
  display:none !important;
}


/* Heute Wichtig Raus Update */
[data-section="today-important"],
[data-card="today-important"],
#todayImportant,
#heuteWichtig,
.heute-wichtig,
.today-important{
  display:none !important;
}


/* Mix Lean Update: optionale DOM-Fallbacks */
.mix-legend-item[data-label="Bargeld"],
.mix-row[data-label="Bargeld"],
.legend-row[data-label="Bargeld"],
.mix-legend-item[data-label="Cash"],
.mix-row[data-label="Cash"],
.legend-row[data-label="Cash"]{
  display:none !important;
}


/* Metals Layout Update */
.metals-summary-wrap{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:10px;
}
.metals-top-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.metal-mini-card{
  border:1px solid rgba(212,175,55,.32);
  border-radius:16px;
  padding:14px 14px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.metal-mini-label{
  font-size:12px;
  opacity:.78;
  margin-bottom:6px;
}
.metal-mini-value{
  font-size:18px;
  font-weight:700;
  line-height:1.2;
}
.metals-chart-card{
  border:1px solid rgba(212,175,55,.18);
  border-radius:16px;
  padding:12px 12px 10px;
  background:rgba(255,255,255,.02);
}
.metals-chart-title{
  font-size:12px;
  opacity:.78;
  margin-bottom:8px;
}
.metals-total-card{
  border:1px solid rgba(212,175,55,.38);
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg, rgba(212,175,55,.10), rgba(255,255,255,.02));
}
.metals-total-label{
  font-size:12px;
  opacity:.78;
  margin-bottom:6px;
}
.metals-total-value{
  font-size:22px;
  font-weight:800;
  line-height:1.15;
}
.metals-comparison-chart{
  width:100%;
  height:130px;
  display:block;
}
@media (max-width:600px){
  .metals-top-row{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .metal-mini-card,
  .metals-chart-card,
  .metals-total-card{
    border-radius:14px;
  }
  .metals-comparison-chart{
    height:118px;
  }
}


/* Einnahmen Zinsen Update */
.income-overview-grid.income-overview-grid-4,
.monthly-income-grid.monthly-income-grid-4,
.cashflow-grid.cashflow-grid-4{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.income-interest-card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:14px;
  background:rgba(255,255,255,.025);
}
.income-interest-label{
  font-size:12px;
  opacity:.75;
  margin-bottom:6px;
}
.income-interest-value{
  font-size:18px;
  font-weight:750;
  line-height:1.2;
}
@media (max-width:420px){
  .income-overview-grid.income-overview-grid-4,
  .monthly-income-grid.monthly-income-grid-4,
  .cashflow-grid.cashflow-grid-4{
    gap:10px;
  }
}


/* Gesamtchart Top Update */
.total-wealth-topline{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(120px,.75fr);
  gap:12px;
  align-items:stretch;
}
.total-wealth-main-compact{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.total-wealth-inline-chart{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:10px;
  background:rgba(255,255,255,.025);
  min-height:104px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.total-wealth-inline-chart-title{
  font-size:11px;
  opacity:.72;
  margin-bottom:4px;
}
.total-wealth-inline-chart svg{
  width:100%;
  height:64px;
  display:block;
}
.total-wealth-inline-chart-info{
  font-size:11px;
  opacity:.74;
  margin-top:4px;
}
.total-wealth-progress-compact{
  margin-top:8px !important;
}
.total-wealth-progress-compact .progress,
.total-wealth-progress-compact progress,
.total-wealth-progress-compact [role="progressbar"]{
  margin-top:6px !important;
}
@media (max-width:430px){
  .total-wealth-topline{
    grid-template-columns:minmax(0,1fr) 118px;
    gap:10px;
  }
  .total-wealth-inline-chart{
    min-height:96px;
    padding:9px;
    border-radius:14px;
  }
  .total-wealth-inline-chart svg{
    height:56px;
  }
}



/* Home Optik Repair Update */
/* Heute wichtig komplett aus Home entfernen */
.today-important-card,
[data-home-section="todayimportant"]{
  display:none !important;
}

/* Hero stabil für PC und Handy: links Gesamtvermögen, rechts kleiner Gesamtchart */
.hero.hero-top-repair{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(300px,0.82fr) !important;
  grid-auto-flow:row !important;
  gap:14px !important;
  align-items:stretch !important;
  overflow:hidden !important;
}
.hero-top-repair .hero-wealth-block{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}
.hero-top-repair .hero-wealth-block h2{
  margin-bottom:6px !important;
}
.hero-top-repair .hero-progress-compact{
  margin-top:8px !important;
  max-width:100% !important;
}
.hero-top-repair .hero-progress-compact .progress{
  margin-top:0 !important;
}
.hero-top-repair .hero-progress-compact small{
  display:block !important;
  margin-top:5px !important;
  text-align:left !important;
}
.hero-total-chart-panel{
  min-height:150px !important;
  max-height:190px !important;
  padding:12px !important;
  border-radius:20px !important;
  overflow:hidden !important;
}
.hero-total-chart-panel #homeWealthChart{
  width:100% !important;
  height:108px !important;
  min-height:0 !important;
  flex:1 1 auto !important;
  display:block !important;
}
.hero-total-chart-panel .hero-chart-head{
  margin-bottom:6px !important;
}
.hero-total-chart-panel .hero-chart-head strong{
  font-size:17px !important;
}
.hero-chart-change{
  color:var(--green) !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* Die alte große Gesamtchart-Kachel bleibt entfernt/unsichtbar, falls sie aus Cache/JS doch noch auftaucht */
.home-chart-card[data-home-section="chart"]{
  display:none !important;
}

/* Alte DOM-Wrapping-Klassen vom vorherigen Update entschärfen */
.total-wealth-topline{
  display:block !important;
}
.total-wealth-inline-chart{
  display:none !important;
}

@media (max-width:900px){
  .hero.hero-top-repair{
    grid-template-columns:1fr !important;
  }
  .hero-total-chart-panel{
    min-height:145px !important;
    max-height:none !important;
  }
}
@media (max-width:520px){
  .hero.hero-top-repair{
    gap:10px !important;
  }
  .hero-total-chart-panel #homeWealthChart{
    height:94px !important;
  }
}


/* Metals Repair Update */
.metals-summary-card .metal-summary-note{margin:2px 0 12px;}
.metals-duo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.metal-chart-tile{border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:12px;background:rgba(255,255,255,.02);overflow:hidden;}
.metal-chart-tile.gold{box-shadow:inset 0 0 0 1px rgba(214,176,74,.22);}
.metal-chart-tile.silver{box-shadow:inset 0 0 0 1px rgba(180,190,205,.18);}
.metal-chart-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:4px;}
.metal-chart-head span{font-size:13px;color:rgba(255,255,255,.72);}
.metal-chart-head strong{font-size:18px;line-height:1.1;}
.metal-chart-tile small{display:block;color:rgba(255,255,255,.62);margin-bottom:8px;}
.metal-mini-svg{width:100%;height:92px;display:block;}
.metal-grid{stroke:rgba(255,255,255,.08);stroke-width:1;}
.metal-area{fill:rgba(255,255,255,.08);}
.metal-area.gold{fill:rgba(214,176,74,.16);}
.metal-area.silver{fill:rgba(186,195,207,.16);}
.metal-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.metal-line.gold{stroke:var(--gold,#d6b04a);}
.metal-line.silver{stroke:#c7d0d7;}
.metals-total-bar{margin-top:12px;padding:12px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);display:flex;justify-content:space-between;align-items:end;gap:14px;}
.metals-total-bar span{display:block;font-size:12px;color:rgba(255,255,255,.68);margin-bottom:4px;}
.metals-total-bar strong{font-size:20px;line-height:1.1;}
.metals-total-bar small{color:rgba(255,255,255,.62);white-space:nowrap;}
.metals-summary-wrap,.metals-top-row,.metals-chart-card,.metals-total-card{all:unset;}
@media (max-width:640px){
  .metals-duo-grid{grid-template-columns:1fr;}
  .metals-total-bar{align-items:flex-start;flex-direction:column;}
}


/* Topchart Filter Update */
.hero-top-repair .hero-total-chart-panel{
  min-height:120px !important;
  max-height:154px !important;
  padding:10px !important;
  border-radius:18px !important;
}
.hero-total-chart-panel .hero-chart-head{
  margin-bottom:5px !important;
}
.hero-total-chart-panel .hero-chart-head span{
  font-size:11px !important;
}
.hero-total-chart-panel .hero-chart-head strong{
  font-size:15px !important;
}
.hero-chart-change{
  font-size:11px !important;
}
.hero-chart-range{
  display:flex;
  gap:4px;
  margin:4px 0 5px;
  overflow-x:auto;
  scrollbar-width:none;
}
.hero-chart-range::-webkit-scrollbar{display:none;}
.hero-chart-range button{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.72);
  border-radius:999px;
  padding:4px 7px;
  font-size:10.5px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.hero-chart-range button.active{
  border-color:rgba(212,175,55,.55);
  background:rgba(212,175,55,.16);
  color:#fff;
}
.hero-total-chart-panel #homeWealthChart{
  height:68px !important;
  max-height:68px !important;
}
@media (max-width:900px){
  .hero-top-repair .hero-total-chart-panel{
    min-height:118px !important;
    max-height:148px !important;
  }
}
@media (max-width:520px){
  .hero-total-chart-panel #homeWealthChart{
    height:62px !important;
  }
  .hero-chart-range button{
    padding:4px 6px;
    font-size:10px;
  }
}



/* Appcheck Raus Update */
button[data-open="appCheck"],
button[data-open="appStatus"],
a[data-open="appCheck"],
a[data-open="appStatus"],
.card[data-open="appCheck"],
.card[data-open="appStatus"],
.more-tile[data-open="appCheck"],
.more-tile[data-open="appStatus"],
[data-target="appCheck"],
[data-target="appStatus"],
#appCheck,
#appStatus{
  display:none !important;
}


/* Einnahmen Zinsen Fix Update */
.income-monthly-grid,
.grid-4.compact-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){
  .income-monthly-grid,
  .grid-4.compact-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:420px){
  .income-monthly-grid,
  .grid-4.compact-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
}


/* Metals Compact NoChart Update */
.metals-summary-card{padding:16px !important;}
.metals-summary-card .metal-summary-note{margin:2px 0 10px !important;font-size:12px;color:rgba(255,255,255,.66);}
.compact-metals-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.metal-stat-tile{padding:10px 12px !important;min-height:auto !important;background:rgba(255,255,255,.025) !important;}
.metal-stat-tile .metal-chart-head{margin-bottom:2px !important;}
.metal-stat-tile .metal-chart-head span{font-size:12px !important;}
.metal-stat-tile .metal-chart-head strong{font-size:18px !important;line-height:1.1 !important;}
.metal-stat-tile small{margin:0 !important;font-size:12px !important;}
.metal-stat-tile .metal-mini-svg{display:block !important;}
.compact-metals-total{margin-top:10px !important;padding:10px 12px !important;border-radius:16px !important;}
.compact-metals-total strong{font-size:18px !important;}
.compact-metals-total small{font-size:12px !important;}
@media (max-width:640px){
  .compact-metals-grid{grid-template-columns:1fr 1fr;gap:8px;}
  .metal-stat-tile{padding:9px 10px !important;}
  .metal-stat-tile .metal-chart-head strong{font-size:16px !important;}
}

/* No MarketTile Update */
.market-tiles-card,[data-home-section="markets"],#marketTilesGrid,#marketPriorityHint{display:none !important;}


/* Einnahmen Investitionen Update */
[data-home-section="income"] .section-head h3,
[data-home-section="income"] .section-head h2{
  letter-spacing:-0.01em;
}


/* Einnahmen Investitionen Metallcharts Update */
.compact-metal-chart,
.metal-stat-tile .compact-metal-chart{
  display:block !important;
  width:100% !important;
  height:48px !important;
  margin-top:7px !important;
}
.metal-stat-tile{
  padding:10px 12px 9px !important;
}
.metal-stat-tile small{
  margin-bottom:0 !important;
}
.metal-grid{
  stroke:rgba(255,255,255,.08);
  stroke-width:1;
}
.metal-area.gold{fill:rgba(214,176,74,.14);}
.metal-area.silver{fill:rgba(186,195,207,.13);}
.metal-line{
  fill:none;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.metal-line.gold{stroke:var(--gold,#d6b04a);}
.metal-line.silver{stroke:#c7d0d7;}
@media (max-width:640px){
  .compact-metal-chart,
  .metal-stat-tile .compact-metal-chart{
    height:42px !important;
  }
}



/* Apppruefen Raus Update */
button[data-open="appCheck"],
button[data-open="appStatus"],
a[data-open="appCheck"],
a[data-open="appStatus"],
.card[data-open="appCheck"],
.card[data-open="appStatus"],
.more-tile[data-open="appCheck"],
.more-tile[data-open="appStatus"],
[data-target="appCheck"],
[data-target="appStatus"],
#appCheck,
#appStatus{
  display:none !important;
}


/* Zukauf 0 Werte Raus Update */
[data-zukauf-zero],
.zukauf-zero,
.quickbuy-empty-home{
  display:none !important;
}


/* Gesamtchart Filter Fix Update */
.hero-chart-range{
  position:relative !important;
  z-index:5 !important;
  pointer-events:auto !important;
}
.hero-chart-range button{
  cursor:pointer !important;
  pointer-events:auto !important;
  user-select:none !important;
}
.hero-total-chart-panel #homeWealthChart{
  position:relative !important;
  z-index:1 !important;
  pointer-events:none !important;
}


/* Progress Unter Wert Update */
.hero-wealth-block{
  display:flex;
  flex-direction:column;
}
.hero-wealth-block h2#totalWealth{
  margin-bottom:6px !important;
}
.hero-wealth-block .hero-progress-compact{
  margin-top:0 !important;
  margin-bottom:8px !important;
}
.hero-wealth-block .hero-progress-compact .progress{
  margin-top:0 !important;
}
.hero-wealth-block #millionText{
  margin-top:0 !important;
}


/* Gesamtvermögen Ring Update */
.hero.hero-top-repair{
  grid-template-columns:minmax(0,1fr) !important;
}
.hero-top-repair .hero-wealth-block{
  display:none !important;
}
.hero-top-repair .hero-total-chart-panel{
  position:relative !important;
  isolation:isolate !important;
  min-height:174px !important;
  max-height:none !important;
  padding:14px !important;
  border-radius:22px !important;
  --goal-progress-angle:0deg;
  border:4px solid transparent !important;
  background:
    linear-gradient(180deg,rgba(19,24,29,.96),rgba(14,18,22,.98)) padding-box,
    conic-gradient(from -90deg, rgba(64,197,130,.95) 0deg, rgba(214,176,74,.95) var(--goal-progress-angle), rgba(255,255,255,.12) var(--goal-progress-angle), rgba(255,255,255,.12) 360deg) border-box !important;
  box-shadow:0 10px 28px rgba(0,0,0,.28) !important;
}
.hero-top-repair .hero-total-chart-panel::before{
  display:none !important;
  content:none !important;
}
.hero-total-chart-panel .hero-chart-head span{
  font-size:12px !important;
  letter-spacing:.02em;
}
.hero-total-chart-panel .hero-chart-head strong{
  font-size:22px !important;
}
.hero-top-repair .hero-total-chart-panel #homeWealthChart{
  height:88px !important;
  max-height:88px !important;
}
.hero-goal-inline{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
}
.hero-goal-inline small{
  font-weight:800;
  color:#fff;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
}
.hero-goal-inline .muted{
  margin:0;
  font-size:12px;
  line-height:1.35;
  text-align:right;
}
@media (max-width:640px){
  .hero-top-repair .hero-total-chart-panel{padding:12px !important;border-radius:20px !important;border-width:4px !important;}
  .hero-top-repair .hero-total-chart-panel::before{display:none !important;}
  .hero-total-chart-panel .hero-chart-head strong{font-size:20px !important;}
  .hero-top-repair .hero-total-chart-panel #homeWealthChart{height:78px !important;max-height:78px !important;}
  .hero-goal-inline{flex-direction:column;align-items:flex-start;gap:6px;}
  .hero-goal-inline .muted{text-align:left;}
}


/* Marktüberblick zwischen Gesamtvermögen und Vermögensmix */
.macro-chart-card{
  order:2 !important;
  padding:14px !important;
}
.home-dividend-focus{order:3 !important;}
.macro-chart-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.macro-mini-tile{
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:10px 10px 8px;
  min-width:0;
}
.macro-mini-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}
.macro-mini-name{
  font-size:13px;
  font-weight:800;
  color:#f4f7f5;
  line-height:1.2;
}
.macro-mini-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}
.macro-mini-value{
  font-size:14px;
  font-weight:800;
  text-align:right;
  color:#fff;
  white-space:nowrap;
}
.macro-mini-change{
  font-size:11px;
  font-weight:700;
  margin-top:2px;
  text-align:right;
}
.macro-mini-tile.up .macro-mini-change{color:#7edfa4;}
.macro-mini-tile.down .macro-mini-change{color:#f08a8a;}
.macro-mini-chart{
  margin-top:6px;
  height:46px;
  border-radius:12px;
  overflow:hidden;
}
.macro-mini-chart .market-mini-chart{height:46px;}
.macro-mini-chart .market-chart-line{stroke-width:2.5 !important;}
.macro-mini-chart .market-chart-area{opacity:.16 !important;}
@media (max-width:900px){
  .macro-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .macro-chart-card{padding:12px !important;}
  .macro-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px;}
  .macro-mini-tile{padding:9px 9px 8px; border-radius:16px;}
  .macro-mini-name{font-size:12px;}
  .macro-mini-sub{font-size:10px;}
  .macro-mini-value{font-size:13px;}
  .macro-mini-chart{height:40px;}
  .macro-mini-chart .market-mini-chart{height:40px;}
}


/* Macro 6 charts + metal spot values */
.macro-chart-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
.macro-mini-tile{padding:10px 10px 9px !important;}
.macro-mini-chart{height:44px !important;}
.macro-mini-chart .market-mini-chart{height:44px !important;}
.metal-spot-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;margin-bottom:6px;font-size:11px;color:rgba(255,255,255,.66);}
.metal-spot-row strong{font-size:11px;color:rgba(255,255,255,.88);font-weight:800;}
@media (max-width:900px){.macro-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media (max-width:640px){.macro-mini-chart{height:40px !important;}.macro-mini-chart .market-mini-chart{height:40px !important;}.metal-spot-row{font-size:10px;margin-top:4px;}}


/* Depotkarte oben Update */
.depot-top-card{
  order:0 !important;
  padding:13px 14px !important;
  border-color:rgba(127,214,160,.22) !important;
}
.depot-top-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.depot-top-head h3{
  margin:0;
  font-size:16px;
}
.depot-top-values{
  text-align:right;
}
.depot-top-values strong{
  display:block;
  font-size:20px;
  line-height:1.1;
}
.depot-top-values span{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:800;
}
.depot-top-values span.positive{color:var(--green);}
.depot-top-values span.negative{color:var(--red);}
.depot-chart-range{
  display:flex;
  gap:4px;
  margin:9px 0 6px;
  overflow-x:auto;
  scrollbar-width:none;
}
.depot-chart-range::-webkit-scrollbar{display:none;}
.depot-chart-range button{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.72);
  border-radius:999px;
  padding:4px 7px;
  font-size:10.5px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}
.depot-chart-range button.active{
  border-color:rgba(127,214,160,.55);
  background:rgba(127,214,160,.16);
  color:#fff;
}
.depot-top-chart{
  width:100%;
  height:58px;
  display:block;
}
.depot-top-area{
  fill:rgba(127,214,160,.13);
}
.depot-top-line{
  fill:none;
  stroke:var(--green);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media (max-width:640px){
  .depot-top-card{padding:12px !important;}
  .depot-top-values strong{font-size:18px;}
  .depot-top-chart{height:52px;}
}


/* Million-Kachel neu Update */
.app-status-strip .status-chip[onclick*="millionAuto"]{
  display:none !important;
}
.goal-pulse-card{
  border-color:rgba(127,214,160,.24) !important;
  background:
    radial-gradient(circle at 15% 10%, rgba(127,214,160,.13), transparent 38%),
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.014)) !important;
}
.goal-pulse-card .section-head{
  margin-bottom:10px;
}
.goal-pulse-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr;
  gap:10px;
}
.goal-pulse-main,
.goal-pulse-mini{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:16px;
  padding:11px 12px;
}
.goal-pulse-main{
  background:linear-gradient(135deg,rgba(127,214,160,.14),rgba(255,255,255,.03));
}
.goal-pulse-main span,
.goal-pulse-mini span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  margin-bottom:5px;
}
.goal-pulse-main strong{
  display:block;
  font-size:24px;
  line-height:1.05;
}
.goal-pulse-mini strong{
  display:block;
  font-size:16px;
  line-height:1.1;
}
.goal-pulse-main small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:5px;
}
@media (max-width:760px){
  .goal-pulse-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .goal-pulse-main{
    grid-column:span 2;
  }
}


/* Depot Optik + Steuer Update */
#depot .page-head{
  background:
    radial-gradient(circle at 12% 8%, rgba(127,214,160,.12), transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.014));
  border:1px solid rgba(127,214,160,.18);
  border-radius:22px;
  padding:14px;
  margin-bottom:12px;
}
#depot .page-head h2{
  font-size:30px;
  letter-spacing:-.03em;
}
#depot .grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
#depot .grid-3 .metric{
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
  border-color:rgba(255,255,255,.09);
  padding:14px;
}
#depot .grid-3 .metric strong{
  font-size:21px;
}
#depot .grid-3 .metric small{
  font-size:11px;
}
#depot .toolbar{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:10px;
  margin-bottom:12px;
}
#depotList{
  display:grid;
  gap:10px;
}
#depotList .item{
  border-radius:22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(127,214,160,.07), transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.016));
  border-color:rgba(255,255,255,.09);
}
#depotList .item h3{
  font-size:18px;
  letter-spacing:-.01em;
}
#depotList .item-values div{
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.028);
}
#depotList .positive{color:var(--green) !important;}
#depotList .negative{color:var(--red) !important;}
@media (max-width:720px){
  #depot .grid-3{
    grid-template-columns:1fr;
  }
  #depot .page-head{
    padding:13px;
  }
}


/* Metals Design Update */
.metals-summary-card{
  padding:16px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(214,176,74,.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)) !important;
}
.metals-summary-card .metal-summary-note{
  margin:4px 0 12px !important;
  font-size:12px !important;
  color:rgba(255,255,255,.68) !important;
}
.metals-modern-layout{
  display:grid;
  grid-template-columns:1fr 1fr 1.04fr;
  gap:12px;
  align-items:stretch;
}
.metal-panel,
.metals-total-panel{
  border-radius:20px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  overflow:hidden;
}
.metal-panel.gold{
  box-shadow:inset 0 0 0 1px rgba(214,176,74,.20);
}
.metal-panel.silver{
  box-shadow:inset 0 0 0 1px rgba(190,198,208,.16);
}
.metals-total-panel{
  background:
    radial-gradient(circle at 100% 0%, rgba(214,176,74,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
}
.metal-panel-top,
.metals-total-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:4px;
}
.metal-kicker{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.58);
  margin-bottom:4px;
}
.metal-panel strong,
.metals-total-head strong{
  display:block;
  font-size:20px;
  line-height:1.05;
}
.metal-chip,
.metal-total-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.03em;
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.04);
  white-space:nowrap;
}
.metal-chip.gold{
  border-color:rgba(214,176,74,.34);
  background:rgba(214,176,74,.12);
}
.metal-chip.silver{
  border-color:rgba(188,198,209,.26);
  background:rgba(188,198,209,.10);
}
.metal-panel small,
.metals-total-panel small{
  display:block;
  margin:0 0 10px 0 !important;
  font-size:12px !important;
  color:rgba(255,255,255,.62) !important;
}
.metal-spot-row{
  margin-bottom:10px;
}
.compact-metal-chart{
  width:100%;
  height:76px !important;
  display:block;
  border-radius:12px;
  background:rgba(255,255,255,.018);
}
.metals-share-stack{
  display:grid;
  gap:10px;
  margin-top:10px;
}
.metals-share-row{
  display:grid;
  gap:6px;
}
.metals-share-label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  font-size:12px;
}
.metals-share-label span{
  color:rgba(255,255,255,.72);
}
.metals-share-label strong{
  font-size:12px;
  color:#fff;
}
.metals-share-track{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.06);
}
.metals-share-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  transition:width .35s ease;
}
.metals-share-fill.gold{
  background:linear-gradient(90deg, rgba(214,176,74,.55), rgba(214,176,74,.95));
}
.metals-share-fill.silver{
  background:linear-gradient(90deg, rgba(182,191,204,.55), rgba(205,214,223,.95));
}
.metals-total-footer{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
}
.metals-total-footer span{
  color:rgba(255,255,255,.68);
  font-size:12px;
}
.metals-total-footer strong{
  font-size:18px;
  line-height:1.05;
}
@media (max-width:980px){
  .metals-modern-layout{
    grid-template-columns:1fr 1fr;
  }
  .metals-total-panel{
    grid-column:1/-1;
  }
}
@media (max-width:560px){
  .metals-modern-layout{
    grid-template-columns:1fr;
    gap:10px;
  }
  .metal-panel,
  .metals-total-panel{
    padding:12px;
    border-radius:18px;
  }
  .compact-metal-chart{
    height:68px !important;
  }
}


/* Depotchart Fix Update */
.depot-top-card{
  order:0 !important;
  padding:13px 14px !important;
  border-color:rgba(127,214,160,.24) !important;
}
.depot-top-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.depot-top-values{text-align:right;}
.depot-top-values strong{
  display:block;
  font-size:20px;
  line-height:1.1;
}
.depot-top-values span{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:800;
}
.depot-top-values span.positive{color:var(--green);}
.depot-top-values span.negative{color:var(--red);}
.depot-chart-range{
  display:flex !important;
  gap:4px;
  margin:9px 0 7px;
  overflow-x:auto;
  scrollbar-width:none;
}
.depot-chart-range::-webkit-scrollbar{display:none;}
.depot-chart-range button{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.72);
  border-radius:999px;
  padding:4px 7px;
  font-size:10.5px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}
.depot-chart-range button.active{
  border-color:rgba(127,214,160,.55);
  background:rgba(127,214,160,.16);
  color:#fff;
}
#homeDepotTopChart,
.depot-top-chart{
  display:block !important;
  width:100% !important;
  height:64px !important;
  min-height:64px !important;
  margin-top:2px;
  background:rgba(255,255,255,.018);
  border-radius:14px;
}
.depot-top-area{
  fill:rgba(127,214,160,.14);
}
.depot-top-line{
  fill:none;
  stroke:var(--green);
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media (max-width:640px){
  #homeDepotTopChart,
  .depot-top-chart{
    height:58px !important;
    min-height:58px !important;
  }
}


/* Depot Prozent-Rand anschaulicher */
.depot-top-card{
  position:relative !important;
  isolation:isolate !important;
  border:4px solid transparent !important;
  border-radius:22px !important;
  --depot-ring-angle:0deg;
  background:
    linear-gradient(180deg,rgba(18,24,28,.96),rgba(13,18,21,.98)) padding-box,
    conic-gradient(from -90deg,
      rgba(127,214,160,.98) 0deg,
      rgba(214,176,74,.92) var(--depot-ring-angle),
      rgba(255,255,255,.12) var(--depot-ring-angle),
      rgba(255,255,255,.12) 360deg
    ) border-box !important;
  box-shadow:0 10px 26px rgba(0,0,0,.24) !important;
}
.depot-top-card.depot-loss{
  background:
    linear-gradient(180deg,rgba(18,24,28,.96),rgba(13,18,21,.98)) padding-box,
    conic-gradient(from -90deg,
      rgba(255,107,107,.98) 0deg,
      rgba(255,170,120,.88) var(--depot-ring-angle),
      rgba(255,255,255,.12) var(--depot-ring-angle),
      rgba(255,255,255,.12) 360deg
    ) border-box !important;
}
.depot-top-percent-badge{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  margin-top:6px !important;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px !important;
  font-weight:900 !important;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
}
.depot-top-percent-badge.positive{
  color:var(--green) !important;
  border-color:rgba(127,214,160,.28);
  background:rgba(127,214,160,.09);
}
.depot-top-percent-badge.negative{
  color:var(--red) !important;
  border-color:rgba(255,107,107,.28);
  background:rgba(255,107,107,.09);
}
.depot-top-card .depot-chart-range button.active{
  box-shadow:0 0 0 1px rgba(127,214,160,.22) inset;
}


/* Swipe Navigation Update */
@media (max-width:720px){
  #backBtn,
  .back-btn,
  button[onclick*="ppBack"],
  button[onclick*="goBack"],
  button[onclick*="back"]{
    display:none !important;
  }
  .page.active{
    touch-action:pan-y;
  }
  .bottom-nav{
    box-shadow:0 -10px 28px rgba(0,0,0,.22);
  }
}

/* dezenter Hinweis nur über Bewegungsgefühl: keine sichtbare Extra-Kachel */
#home.page.active,
#depot.page.active,
#immo.page.active,
#assets.page.active,
#more.page.active{
  overscroll-behavior-x:contain;
}


/* Backbuttons raus Update */
#backBtn,
.back-btn,
button.back,
button[data-back],
button[aria-label="Zurück"],
button[title="Zurück"],
button[onclick*="ppBack"],
button[onclick*="goBack"],
button[onclick*="history.back"],
button[onclick*="back"],
a[onclick*="ppBack"],
a[onclick*="goBack"],
a[onclick*="history.back"],
a[onclick*="back"]{
  display:none !important;
}

.page-head > button:first-child:is(.ghost,.secondary,.small),
.page-head .ghost.small[onclick*="ppBack"]{
  display:none !important;
}


/* Depotwert + Gesamtvermoegen Update */

.hero.hero-top-repair{
  position:relative !important;
  padding:18px !important;
  border:none !important;
  background:conic-gradient(from -90deg, var(--green) 0deg, var(--green) var(--goal-progress-angle, 0deg), rgba(255,255,255,.09) var(--goal-progress-angle, 0deg), rgba(255,255,255,.09) 360deg) !important;
  isolation:isolate;
}
.hero.hero-top-repair::before{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:calc(var(--radius) - 5px);
  background:
    radial-gradient(circle at top right, rgba(53,204,136,.10), transparent 30%),
    radial-gradient(circle at top left, rgba(218,183,103,.10), transparent 28%),
    linear-gradient(180deg, rgba(19,33,29,.98), rgba(20,38,32,.98));
  z-index:0;
}
.hero.hero-top-repair > *{
  position:relative;
  z-index:1;
}
.hero.hero-top-repair .hero-wealth-block{
  padding:4px 2px 4px 2px !important;
}
.hero.hero-top-repair .hero-wealth-block h2{
  margin:0 0 10px !important;
}
.hero-goal-summary{
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex-wrap:wrap;
}
.hero-goal-summary small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:68px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--gold);
  font-weight:900;
}
.hero-goal-summary p{
  margin:1px 0 0 0;
}
.hero-top-repair .hero-progress-compact,
.hero-top-repair .progress-wrap,
.hero-top-repair .progress{
  display:none !important;
}
.hero-total-chart-panel{
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}
.hero-goal-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.hero-goal-inline small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:62px;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--gold);
  font-weight:900;
}
@media (max-width:640px){
  .hero.hero-top-repair{padding:15px !important;}
  .hero-goal-summary{gap:8px;}
}


/* Depot compact mobile update */
.compact-depot-page{
  gap:10px;
}
.depot-page-head{
  margin:4px 0 10px !important;
  align-items:center !important;
}
.depot-add-btn{
  width:44px;
  min-width:44px !important;
  height:44px;
  padding:0 !important;
  border-radius:14px !important;
  font-size:28px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.depot-overview-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.depot-mini-metric{
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:10px 11px;
  min-width:0;
}
.depot-mini-metric span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.depot-mini-metric strong{
  display:block;
  margin-top:5px;
  font-size:18px;
  line-height:1.1;
}
.compact-gold-summary-card{
  margin:0 0 10px !important;
  padding:12px !important;
}
.compact-section-head{
  margin-bottom:8px;
}
.compact-gold-summary-card .section-head h3{
  font-size:16px;
}
.compact-gold-summary-card .eyebrow{
  font-size:10px;
}
.compact-gold-summary-card .metal-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.compact-gold-summary-card .metal-pill{
  padding:10px;
  border-radius:13px;
}
.compact-gold-summary-card .metal-pill strong{
  font-size:16px;
}
.depot-toolbar-compact{
  grid-template-columns:minmax(0,1fr) 118px !important;
  gap:8px !important;
  margin:0 0 10px !important;
}
.depot-toolbar-compact input,
.depot-toolbar-compact select{
  min-height:42px;
  border-radius:14px;
  font-size:14px;
}
.depot-compact-list{
  gap:9px !important;
}
.compact-depot-item{
  padding:11px 12px !important;
  border-radius:17px !important;
}
.compact-item-top{
  align-items:flex-start !important;
  gap:10px !important;
}
.compact-item-copy{
  min-width:0;
  flex:1 1 auto;
}
.compact-item-copy h3{
  font-size:16px;
  line-height:1.15;
}
.compact-item-copy .sub{
  margin-top:4px !important;
  font-size:11px !important;
  line-height:1.35;
}
.compact-item-value{
  text-align:right;
  min-width:88px;
  flex:0 0 auto;
}
.compact-item-value strong{
  display:block;
  font-size:17px;
  line-height:1.1;
}
.compact-item-value small{
  display:block;
  margin-top:4px;
  font-size:11px;
  font-weight:900;
}
.compact-item-values{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:7px !important;
  margin-top:10px !important;
}
.compact-item-values div{
  padding:8px 9px !important;
  border-radius:12px !important;
}
.compact-item-values small{
  font-size:10px !important;
}
.compact-item-values strong{
  font-size:13px !important;
  line-height:1.15;
}
.compact-item-actions{
  margin-top:9px !important;
  gap:7px !important;
}
.compact-item-actions button{
  min-height:38px;
  border-radius:12px !important;
  font-size:12px;
  padding:0 10px !important;
}
.empty-compact{padding:14px !important;}
@media(max-width:720px){
  .compact-depot-page{padding-bottom:2px;}
  .depot-overview-strip{gap:7px;}
  .depot-mini-metric{padding:9px 10px;}
  .depot-mini-metric strong{font-size:15px;}
  .compact-gold-summary-card .metal-summary{grid-template-columns:1fr 1fr 1fr;}
  .depot-toolbar-compact{grid-template-columns:1fr 108px !important;}
  .compact-item-values{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:430px){
  .depot-page-head h2{font-size:22px !important;}
  .depot-overview-strip{grid-template-columns:1fr;}
  .depot-mini-metric strong{font-size:18px;}
  .compact-gold-summary-card .metal-summary{grid-template-columns:1fr;}
  .depot-toolbar-compact{grid-template-columns:1fr !important;}
  .compact-item-top{gap:8px !important;}
  .compact-item-value{min-width:78px;}
  .compact-item-value strong{font-size:15px;}
  .compact-item-values{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .compact-item-values div:last-child{grid-column:1 / -1;}
}


/* DEPOT VISUAL REFRESH + BUTTON CLEANUP */
#backBtn,
.back-chart-button,
.app-back-button,
.depot-add-btn{
  display:none !important;
}
.compact-depot-page .page-head,
.depot-page-head{
  justify-content:flex-start !important;
  align-items:flex-end !important;
}
.depot-page-head h2{
  font-size:26px;
  letter-spacing:-0.02em;
}
.depot-overview-strip{gap:10px;}
.depot-mini-metric{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(18,30,24,.96),rgba(10,20,16,.98));
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.depot-mini-metric::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:3px;
  background:linear-gradient(90deg,rgba(53,204,136,.92),rgba(218,183,103,.85));
}
.compact-depot-item{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.085) !important;
  background:linear-gradient(180deg,rgba(16,27,23,.98),rgba(10,18,15,.99)) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.compact-depot-item::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background:var(--depot-accent, rgba(53,204,136,.9));
}
.compact-depot-item::after{
  content:"";
  position:absolute;
  inset:auto -40px -55px auto;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle,var(--depot-accent-soft, rgba(53,204,136,.16)) 0%,transparent 68%);
  pointer-events:none;
}
.depot-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.depot-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border-radius:999px;
  background:var(--depot-accent-soft, rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.08);
  color:var(--text);
  font-size:10px;
  font-weight:900;
  letter-spacing:.03em;
}
.compact-item-copy h3{margin:0;}
.compact-item-value strong{font-size:18px;}
.depot-net-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:6px;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px !important;
  font-weight:900;
  white-space:nowrap;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.depot-net-pill.positive{color:var(--green); border-color:rgba(53,204,136,.22); background:rgba(53,204,136,.10);}
.depot-net-pill.negative{color:#ff8f8f; border-color:rgba(255,96,96,.22); background:rgba(255,96,96,.10);}
.compact-item-values div{
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.06);
}
.depot-perf-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.depot-perf-label{
  flex:0 0 auto;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.depot-perf-track{
  flex:1 1 auto;
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.06);
}
.depot-perf-fill{
  display:block;
  height:100%;
  border-radius:999px;
}
.depot-perf-fill.positive{background:linear-gradient(90deg,rgba(53,204,136,.72),rgba(53,204,136,1));}
.depot-perf-fill.negative{background:linear-gradient(90deg,rgba(255,122,122,.70),rgba(255,94,94,1));}
.depot-perf-value{
  flex:0 0 auto;
  min-width:54px;
  text-align:right;
  font-size:12px;
}
@media(max-width:430px){
  .depot-title-row{gap:6px;}
  .depot-type-badge{font-size:9px; padding:3px 8px;}
  .depot-net-pill{font-size:9px !important;}
  .depot-perf-value{min-width:48px;}
}


/* Depot: dezente Listenansicht + Tagesgeld/Festgeld */
.depot-cash-card{
  margin:0 0 10px !important;
  padding:12px !important;
  border-color:rgba(143,178,255,.22) !important;
  background:
    radial-gradient(circle at top right, rgba(143,178,255,.10), transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)) !important;
}
.depot-cash-summary{
  display:grid;
  grid-template-columns:.95fr 1.4fr;
  gap:8px;
}
.depot-cash-main,
.depot-cash-split div,
.depot-cash-empty{
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.032);
  border-radius:14px;
  padding:10px;
}
.depot-cash-main span,
.depot-cash-split span,
.depot-cash-empty span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.depot-cash-main strong,
.depot-cash-split strong,
.depot-cash-empty strong{
  display:block;
  margin-top:5px;
  font-size:17px;
  line-height:1.1;
}
.depot-cash-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.depot-line-item{
  position:relative;
  overflow:hidden;
  padding:11px 12px 10px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.075);
  background:linear-gradient(180deg,rgba(255,255,255,.034),rgba(255,255,255,.014));
}
.depot-line-item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:var(--depot-accent, var(--green));
}
.depot-line-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
}
.depot-line-name{
  min-width:0;
}
.depot-line-name strong{
  display:block;
  font-size:15px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.depot-line-name span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.depot-line-total{
  text-align:right;
  min-width:98px;
}
.depot-line-total strong{
  display:block;
  font-size:15px;
  line-height:1.15;
}
.depot-line-total span{
  display:block;
  margin-top:3px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.depot-line-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:9px;
}
.depot-line-details div{
  padding:7px 8px;
  border-radius:11px;
  background:rgba(255,255,255,.028);
  border:1px solid rgba(255,255,255,.055);
  min-width:0;
}
.depot-line-details span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}
.depot-line-details strong{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#depot .compact-depot-item,
#depot .item.compact-depot-item{
  display:none;
}
@media(max-width:520px){
  .depot-cash-summary{
    grid-template-columns:1fr;
  }
  .depot-line-item{
    padding:10px 10px 9px 13px;
  }
  .depot-line-main{
    grid-template-columns:minmax(0,1fr) 92px;
  }
  .depot-line-total{
    min-width:92px;
  }
  .depot-line-total strong{
    font-size:14px;
  }
  .depot-line-details{
    gap:6px;
  }
  .depot-line-details div{
    padding:7px 6px;
  }
}
@media(max-width:380px){
  .depot-line-details{
    grid-template-columns:1fr 1fr;
  }
  .depot-line-details div:last-child{
    grid-column:1 / -1;
  }
}


/* Depot: Zinsen-Reihenfolge + Inline Einkauf/Verkauf */
.depot-cash-summary{
  grid-template-columns:1.45fr .9fr !important;
}
.depot-cash-main{
  order:2;
}
.depot-cash-split{
  order:1;
}
.depot-inline-actions{
  display:flex;
  gap:7px;
  margin-top:9px;
}
.depot-inline-actions button{
  width:34px;
  height:32px;
  border-radius:11px;
  font-size:21px;
  font-weight:950;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.10);
}
.depot-trade-plus,
.depot-trade-minus,
.depot-trade-neutral{
  background:rgba(255,255,255,.045);
  color:var(--text);
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.depot-trade-plus:hover,
.depot-trade-minus:hover,
.depot-trade-neutral:hover{
  background:rgba(255,255,255,.075);
}
.depot-trade-plus:active,
.depot-trade-minus:active,
.depot-trade-neutral:active{
  transform:translateY(1px);
}
.depot-inline-trade{
  margin-top:9px;
  padding:10px;
  border-radius:14px;
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:8px;
  align-items:end;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
}
.depot-inline-trade.buy,
.depot-inline-trade.sell{
  border-color:rgba(255,255,255,.10);
}
.inline-trade-title{
  grid-column:1 / -1;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.depot-inline-trade label span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  margin-bottom:4px;
}
.depot-inline-trade input{
  min-height:38px;
  border-radius:12px;
  padding:0 10px;
  font-size:14px;
}
.depot-inline-trade button{
  min-height:38px;
  border-radius:12px;
  padding:0 12px;
  white-space:nowrap;
}
@media(max-width:520px){
  .depot-cash-summary{
    grid-template-columns:1fr !important;
  }
  .depot-cash-main{
    order:2;
  }
  .depot-inline-trade{
    grid-template-columns:1fr 1fr;
  }
  .depot-inline-trade button{
    grid-column:1 / -1;
  }
}


/* Depot: einfache Ansicht für Aktie / ETF / Bitcoin / Edelmetalle */
.simple-depot-line{
  padding:10px 11px 10px 13px !important;
}
.simple-depot-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:9px;
  align-items:center;
}
.simple-depot-name{
  min-width:0;
}
.simple-depot-name strong{
  display:block;
  font-size:15px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.simple-depot-name span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.simple-depot-total{
  text-align:right;
  min-width:76px;
}
.simple-depot-total strong{
  display:block;
  font-size:15px;
  line-height:1.15;
}
.simple-depot-actions{
  display:flex;
  gap:6px;
}
.simple-depot-actions button{
  margin:0;
}
.simple-depot-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:8px;
}
.simple-depot-details div{
  padding:7px 8px;
  border-radius:10px;
  background:rgba(255,255,255,.026);
  border:1px solid rgba(255,255,255,.05);
}
.simple-depot-details span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}
.simple-depot-details strong{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.simple-depot-line .depot-line-main,
.simple-depot-line .depot-line-details,
.simple-depot-line .depot-perf-row,
.simple-depot-line .depot-net-pill,
.simple-depot-line .depot-type-badge{
  display:none !important;
}
@media(max-width:430px){
  .simple-depot-top{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .simple-depot-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
  .simple-depot-total{
    min-width:82px;
  }
}


/* Depot: neutrale Plus/Minus Buttons + Tagesgeld/Festgeld inline */
.simple-depot-actions button,
.depot-cash-actions button{
  width:34px;
  height:32px;
  border-radius:12px;
  font-size:20px;
  font-weight:900;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.depot-cash-summary{
  align-items:start;
}
.depot-cash-rows{
  grid-column:1 / -1;
  display:grid;
  gap:8px;
}
.depot-cash-line{
  border:1px solid rgba(255,255,255,.075);
  background:rgba(255,255,255,.022);
  border-radius:14px;
  padding:10px;
}
.depot-cash-line-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
}
.depot-cash-line-name strong{
  display:block;
  font-size:14px;
  line-height:1.15;
}
.depot-cash-line-name span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.depot-cash-line-value strong{
  display:block;
  font-size:15px;
  line-height:1.1;
  white-space:nowrap;
}
.depot-cash-actions{
  display:flex;
  gap:6px;
}
.cash-inline-trade{
  margin-top:8px;
  grid-template-columns:1fr auto;
}
.cash-inline-trade button{
  min-width:110px;
}
@media(max-width:520px){
  .depot-cash-line-main{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .depot-cash-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
  .cash-inline-trade{
    grid-template-columns:1fr;
  }
  .cash-inline-trade button{
    min-width:0;
    width:100%;
  }
}


/* Tagesgeld/Festgeld Konten direkt im Depot */
.depot-cash-summary{
  align-items:start;
}
.cash-add-row{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.cash-add-row button{
  min-height:38px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900;
}
.cash-add-row button:active{
  transform:translateY(1px);
}
.cash-new-form{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr .8fr auto;
  gap:8px;
  align-items:end;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.032);
}
.cash-new-form .inline-trade-title{
  grid-column:1 / -1;
}
.cash-new-form label span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
  margin-bottom:4px;
}
.cash-new-form input{
  min-height:38px;
  border-radius:12px;
  padding:0 10px;
  font-size:14px;
}
.cash-new-form button{
  min-height:38px;
  border-radius:12px;
  padding:0 12px;
  white-space:nowrap;
}
.depot-trade-plus,
.depot-trade-minus,
.depot-trade-neutral{
  background:rgba(255,255,255,.045) !important;
  color:var(--text) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.depot-trade-plus:hover,
.depot-trade-minus:hover,
.depot-trade-neutral:hover{
  background:rgba(255,255,255,.075) !important;
}
.depot-inline-trade.buy,
.depot-inline-trade.sell{
  border-color:rgba(255,255,255,.10) !important;
}
@media(max-width:620px){
  .cash-new-form{
    grid-template-columns:1fr 1fr;
  }
  .cash-new-form button{
    grid-column:1 / -1;
  }
}
@media(max-width:420px){
  .cash-add-row{
    grid-template-columns:1fr;
  }
  .cash-new-form{
    grid-template-columns:1fr;
  }
}


/* Ring direkt um die Gesamtvermögen-Kachel */
.hero.hero-top-repair{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(220px,.92fr) minmax(0,1.18fr) !important;
  gap:14px !important;
  padding:18px !important;
  border:4px solid transparent !important;
  border-radius:24px !important;
  background:
    linear-gradient(180deg, rgba(19,33,29,.98), rgba(20,38,32,.98)) padding-box,
    conic-gradient(from -90deg,
      rgba(64,197,130,.95) 0deg,
      rgba(214,176,74,.95) var(--goal-progress-angle, 0deg),
      rgba(255,255,255,.12) var(--goal-progress-angle, 0deg),
      rgba(255,255,255,.12) 360deg) border-box !important;
  box-shadow:var(--shadow) !important;
  isolation:isolate;
}
.hero.hero-top-repair::before{display:none !important;content:none !important;}
.hero-top-repair .hero-wealth-block{
  display:flex !important;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
  padding:2px 2px 2px 4px !important;
}
.hero-top-repair .hero-wealth-block h2{
  margin:0 0 10px !important;
  font-size:clamp(30px,4vw,42px) !important;
  line-height:1.05;
}
.hero-top-repair .hero-total-chart-panel{
  min-height:auto !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  isolation:auto !important;
}
.hero-top-repair .hero-total-chart-panel::before{display:none !important;content:none !important;}
.hero-total-chart-panel .hero-chart-head{
  margin-bottom:8px;
}
.hero-total-chart-panel .hero-chart-head span{
  font-size:12px !important;
  color:var(--muted) !important;
}
.hero-total-chart-panel .hero-chart-head strong{
  font-size:22px !important;
}
.hero-total-chart-panel #homeWealthChart{
  width:100%;
  height:92px !important;
  max-height:92px !important;
  display:block;
  border-radius:16px;
  background:rgba(255,255,255,.03);
}
.hero-top-repair .hero-chart-range{
  margin-bottom:8px;
}
.hero-goal-summary,
.hero-goal-inline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.hero-goal-inline{
  margin-top:8px;
}
.hero-goal-summary small,
.hero-goal-inline small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--gold);
  font-weight:900;
}
.hero-goal-summary p,
.hero-goal-inline .muted{
  margin:0;
}
@media (max-width:820px){
  .hero.hero-top-repair{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
}
@media (max-width:640px){
  .hero.hero-top-repair{
    padding:15px !important;
    border-width:4px !important;
    border-radius:22px !important;
  }
  .hero-top-repair .hero-total-chart-panel #homeWealthChart{
    height:82px !important;
    max-height:82px !important;
  }
  .hero-top-repair .hero-wealth-block h2{
    font-size:34px !important;
  }
}


/* Cash/Metals simplification update */
.simple-cash-line .depot-cash-line-main{
  grid-template-columns:minmax(0,1fr) auto !important;
}
.simple-cash-line .depot-cash-line-value strong{
  font-size:16px;
}
.metal-pill-actionable{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.metal-pill-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.metal-pill-actions{
  display:flex;
  gap:6px;
  flex:0 0 auto;
}
.metal-pill-spot{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.metal-pill-total{
  justify-content:center;
}
.compact-gold-summary-card .metal-pill-actionable,
.compact-gold-summary-card .metal-pill-total{
  min-height:116px;
}
@media(max-width:430px){
  .metal-pill-head{align-items:center;}
}


/* Tagesgeld/Festgeld: einfache Konto-Liste */
.depot-cash-summary{
  display:block !important;
}
.cash-simple-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}
.cash-simple-header span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.cash-simple-header strong{
  display:block;
  margin-top:4px;
  font-size:21px;
  line-height:1.1;
}
.cash-simple-header small{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
.cash-simple-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.cash-simple-actions button{
  min-height:38px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900;
}
.cash-simple-list{
  display:grid;
  gap:7px;
  margin-top:8px;
}
.cash-simple-row{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  text-align:left;
  padding:10px;
  border-radius:13px;
  background:rgba(255,255,255,.024);
  border:1px solid rgba(255,255,255,.065);
  color:var(--text);
}
.cash-simple-row strong{
  display:block;
  font-size:14px;
  line-height:1.15;
}
.cash-simple-row small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.cash-simple-row b{
  font-size:15px;
  white-space:nowrap;
}
.cash-simple-empty{
  padding:11px;
  border-radius:13px;
  color:var(--muted);
  background:rgba(255,255,255,.025);
  border:1px dashed rgba(255,255,255,.10);
  font-size:13px;
}
.cash-simple-form{
  display:grid;
  grid-template-columns:1.15fr .85fr .7fr .7fr auto auto;
  gap:8px;
  align-items:end;
  margin-top:8px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
}
.cash-form-title{
  grid-column:1 / -1;
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.cash-simple-form label span{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:900;
}
.cash-simple-form input{
  min-height:38px;
  border-radius:12px;
  padding:0 10px;
  font-size:14px;
}
.cash-simple-form button{
  min-height:38px;
  border-radius:12px;
  padding:0 12px;
  white-space:nowrap;
}
.depot-cash-line,
.depot-cash-split,
.depot-cash-main,
.cash-add-row,
.cash-new-form,
.depot-cash-rows{
  display:none !important;
}
@media(max-width:620px){
  .cash-simple-form{
    grid-template-columns:1fr 1fr;
  }
  .cash-simple-form button{
    grid-column:auto;
  }
}
@media(max-width:420px){
  .cash-simple-actions,
  .cash-simple-form{
    grid-template-columns:1fr;
  }
}


/* Home: Gesamtvermögen nur einmal sichtbar */
.hero-total-chart-panel .hero-chart-head span{
  color:var(--muted) !important;
}


/* Immobilien: recherchierter Wert + fester Wert */
.property-value-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
@media(max-width:720px){
  .property-value-grid{
    grid-template-columns:1fr 1fr !important;
  }
}
@media(max-width:380px){
  .property-value-grid{
    grid-template-columns:1fr !important;
  }
}


/* Immobilien: Miete, Heizkosten, Nebenkosten */
.property-rent-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  margin-top:8px !important;
}
@media(max-width:720px){
  .property-rent-grid{
    grid-template-columns:1fr 1fr !important;
  }
}
@media(max-width:380px){
  .property-rent-grid{
    grid-template-columns:1fr !important;
  }
}


.immo-icon-action{
  width:42px;
  min-width:42px;
  height:42px;
  padding:0 !important;
  border-radius:12px;
  font-size:1.2rem;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.page-head .immo-icon-action{
  margin-left:auto;
}
.form-actions .immo-icon-action{
  min-height:42px;
}


/* Immo: Plus/Minus im Kopf + klare Einnahmen/Ausgaben */
.immo-page-head{
  align-items:center !important;
}
.immo-head-actions{
  display:flex;
  gap:8px;
  align-items:center;
  margin-left:auto;
}
.property-rent-grid{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  margin-top:8px !important;
}
@media(max-width:820px){
  .property-rent-grid{
    grid-template-columns:1fr 1fr !important;
  }
}
@media(max-width:420px){
  .property-rent-grid{
    grid-template-columns:1fr !important;
  }
}


/* Werte-Reiter unten entfernt: Navigation jetzt 4 Felder */
.bottom-nav,
.bottom-nav.app-tabbar{
  grid-template-columns:repeat(4,1fr) !important;
}


/* Home: Gesamtvermögen-Zahl nur einmal anzeigen */
.hero-total-chart-panel #chartCurrentValue,
.hero-total-chart-panel .is-hidden-total-value{
  display:none !important;
}
.hero-total-chart-panel .hero-chart-head{
  justify-content:flex-end !important;
}
.hero-total-chart-panel .hero-chart-head > div{
  display:none !important;
}


/* Mehr-Reiter: stark reduziert */
.compact-more-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.compact-more-grid .more-tile{
  min-height:86px !important;
}
@media(max-width:520px){
  .compact-more-grid{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .compact-more-grid .more-tile{
    min-height:78px !important;
    padding:12px !important;
  }
  .compact-more-grid .more-tile strong{
    font-size:14px !important;
  }
  .compact-more-grid .more-tile span{
    font-size:11px !important;
  }
}


/* Globaler + Kaufen Button oben entfernt */
.app-header .primary.small[onclick*="selectBuy"]{
  display:none !important;
}


/* Home Vermögensmix: Hinweis "ohne Immobilien" entfernt */
#mixCard .eyebrow,
.wealth-mix-card .eyebrow{
  white-space:normal;
}


/* Immo: verbliebene Zurückbuttons komplett ausblenden */
#properties .back-chart-button,
#properties .back-real-button,
#propertyDetail .back-chart-button,
#propertyDetail .back-real-button,
#addProperty .back-chart-button,
#addProperty .back-real-button{
  display:none !important;
}


/* Optionen: cleaner und gleichmäßiger */
#more .card{
  padding:14px !important;
}
.compact-more-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}
.compact-more-grid .more-tile{
  min-height:92px !important;
  height:92px !important;
  padding:14px !important;
  border-radius:18px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
}
.compact-more-grid .more-tile strong{
  font-size:15px !important;
  line-height:1.15 !important;
}
.compact-more-grid .more-tile span{
  font-size:11px !important;
  line-height:1.2 !important;
  color:var(--muted) !important;
}
@media(max-width:430px){
  .compact-more-grid{
    gap:10px !important;
  }
  .compact-more-grid .more-tile{
    min-height:86px !important;
    height:86px !important;
    padding:12px !important;
  }
}

/* Einstellungen: Immobilien Ja/Nein */
.settings-choice-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.settings-choice-btn{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:var(--text);
  border-radius:16px;
  min-height:72px;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:4px;
  text-align:left;
}
.settings-choice-btn strong{
  font-size:18px;
}
.settings-choice-btn span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.settings-choice-btn.active{
  border-color:rgba(64,197,130,.55);
  background:rgba(64,197,130,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}


/* Einstellungen: Startseite cleaner */
.clean-home-settings-card{
  overflow:hidden;
}
.clean-home-settings-form{
  margin-top:10px;
}
.clean-home-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.home-toggle-btn{
  min-height:82px;
  border-radius:18px;
  padding:13px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  text-align:left;
}
.home-toggle-btn strong{
  font-size:15px;
  line-height:1.15;
}
.home-toggle-btn span{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}
.home-toggle-btn.active{
  border-color:rgba(64,197,130,.58);
  background:rgba(64,197,130,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
.home-hidden-checks{
  display:none !important;
}
.clean-home-save{
  margin-top:12px;
}
@media(max-width:430px){
  .clean-home-grid{
    gap:9px;
  }
  .home-toggle-btn{
    min-height:76px;
    padding:11px;
    border-radius:16px;
  }
  .home-toggle-btn strong{
    font-size:14px;
  }
  .home-toggle-btn span{
    font-size:10.5px;
  }
}


/* Neuer Reiter: Kurve */
.bottom-nav,
.bottom-nav.app-tabbar{
  grid-template-columns:repeat(5,1fr) !important;
}


/* Optionen > Startseite: Beschreibungen entfernt */
.clean-home-grid .home-toggle-btn{
  min-height:62px !important;
  height:62px !important;
  justify-content:center !important;
}
.clean-home-grid .home-toggle-btn span{
  display:none !important;
}
.clean-home-grid .home-toggle-btn strong{
  font-size:15px !important;
}
@media(max-width:430px){
  .clean-home-grid .home-toggle-btn{
    min-height:58px !important;
    height:58px !important;
  }
}


/* Speicherbuttons: besser bedienbar, aber ruhiger */
button[type="submit"],
.form-actions .primary,
.clean-home-save,
button[onclick*="save"],
button[onclick*="Save"],
button[id*="save"],
button[id*="Save"]{
  min-height:48px !important;
  padding:12px 18px !important;
  border-radius:15px !important;
  font-size:15px !important;
  font-weight:850 !important;
  letter-spacing:.01em !important;
}

/* Speichern soll nicht zu grell herausstechen */
button[type="submit"].primary,
.form-actions .primary,
.clean-home-save{
  background:rgba(255,255,255,.075) !important;
  color:var(--text) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}

/* Antippen spürbarer */
button[type="submit"]:active,
.form-actions .primary:active,
.clean-home-save:active,
button[onclick*="save"]:active,
button[id*="save"]:active{
  transform:translateY(1px) !important;
}

/* Mobile: volle Breite in Formularen, damit Speichern leichter ist */
.form-actions button[type="submit"],
.form-actions .primary[type="submit"]{
  flex:1 1 auto !important;
}
@media(max-width:520px){
  .form-actions{
    gap:10px !important;
  }
  .form-actions button[type="submit"],
  .form-actions .primary[type="submit"],
  .clean-home-save{
    min-height:50px !important;
  }
}


/* Untere Reiter: Kacheln gleich groß und sauber ausgerichtet */
.bottom-nav,
.bottom-nav.app-tabbar{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:6px !important;
  align-items:stretch !important;
}

.bottom-nav button,
.bottom-nav.app-tabbar button{
  width:100% !important;
  min-width:0 !important;
  height:54px !important;
  min-height:54px !important;
  padding:6px 3px !important;
  border-radius:15px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.bottom-nav button span,
.bottom-nav.app-tabbar button span{
  font-size:18px !important;
  line-height:1 !important;
  height:20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.bottom-nav button small,
.bottom-nav.app-tabbar button small{
  font-size:10px !important;
  line-height:1.1 !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

@media(max-width:380px){
  .bottom-nav,
  .bottom-nav.app-tabbar{
    gap:4px !important;
    padding-left:8px !important;
    padding-right:8px !important;
  }
  .bottom-nav button,
  .bottom-nav.app-tabbar button{
    height:50px !important;
    min-height:50px !important;
    border-radius:13px !important;
    padding:5px 2px !important;
  }
  .bottom-nav button span,
  .bottom-nav.app-tabbar button span{
    font-size:17px !important;
  }
  .bottom-nav button small,
  .bottom-nav.app-tabbar button small{
    font-size:9.5px !important;
  }
}


/* Kurve-Seite: Snapshot und Zurückbuttons weg */
#history #saveSnapshotBtn,
#history .back-chart-button,
#history .back-real-button,
#history button[onclick*="ppOpen('more')"],
#history button[onclick*='ppOpen("more")']{
  display:none !important;
}
