/* Panel · negre profund amb vidre líquid. Tot el color es defineix aquí. */
:root {
  --ink: #f5f5f7;
  --mute: rgba(235, 235, 245, .62);
  --faint: rgba(235, 235, 245, .34);
  --hair: rgba(255, 255, 255, .08);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .045) 55%, rgba(255, 255, 255, .06) 100%);
  --glass-solid: rgba(34, 34, 42, .92);
  --grad: linear-gradient(135deg, #8a97ff 0%, #5cc8ff 55%, #4de3d8 100%);
  --accent: #8a97ff;
  --accent-2: #4de3d8;
  --pos: #62e7b4;
  --neg: #ff7d93;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #000; }
body {
  margin: 0; background: #000; color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Fons ambiental: llums suaus darrere del vidre ---------- */
body::before {
  content: ''; position: fixed; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 28% at 12% 6%, rgba(99, 102, 241, .42), transparent 72%),
    radial-gradient(34% 26% at 92% 24%, rgba(34, 211, 238, .22), transparent 72%),
    radial-gradient(40% 30% at 78% 96%, rgba(217, 70, 239, .26), transparent 72%),
    radial-gradient(30% 24% at 6% 80%, rgba(56, 189, 248, .18), transparent 72%),
    radial-gradient(34% 22% at 96% 58%, rgba(99, 102, 241, .2), transparent 72%),
    radial-gradient(30% 20% at 2% 42%, rgba(217, 70, 239, .14), transparent 72%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(2.5%, -3%, 0) scale(1.1); } }

/* ---------- Vidre: superfície i vora especular ---------- */
.card, .rows, .kpi, .nav-month, .tabbar nav, .sheet, .login form, .iconbtn, .seg, .tile {
  position: relative; background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 40px rgba(0, 0, 0, .5);
}
/* El desenfocament només on hi ha poc elements (les llistes llargues no el porten, per anar fluides a l'iPhone) */
.nav-month, .iconbtn, .login form { -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); }
.card::after, .rows::after, .kpi::after, .nav-month::after, .tabbar nav::after, .sheet::after, .login form::after, .iconbtn::after, .seg::after, .tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .26));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .rows, .kpi, .nav-month, .tabbar nav, .sheet, .login form, .iconbtn, .seg, .tile { background: var(--glass-solid); }
}

/* ---------- Estructura ---------- */
.shell { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 14px) 16px calc(128px + var(--safe-b)); min-height: 100vh; }
.top { display: flex; align-items: flex-start; gap: 12px; padding: 8px 2px 18px; }
.top .ttl { flex: 1; min-width: 0; }
.top h1 { font-size: 34px; line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.035em; }
.top .avail { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.top .avail b { color: var(--ink); font-weight: 600; }
.iconbtn { border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--ease); }
.iconbtn:active { transform: scale(.9); }
.nav-month { display: flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px; margin-bottom: 14px; }
.nav-month .lbl { flex: 1; text-align: center; font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-transform: capitalize; cursor: pointer; }
.nav-month button { border: 0; background: transparent; width: 44px; height: 38px; border-radius: 999px; font-size: 26px; line-height: 1; font-weight: 300; color: var(--mute); transition: background .2s, color .2s; }
.nav-month button:active { background: rgba(255, 255, 255, .12); color: var(--ink); }
.card { border-radius: 26px; padding: 18px; margin-bottom: 14px; }
.card h2 { font-size: 14px; margin: 0 0 8px; color: var(--mute); font-weight: 600; letter-spacing: -.005em; }
.muted { color: var(--mute); }
.empty { text-align: center; color: var(--mute); padding: 38px 12px; }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 6px 8px; color: var(--mute); font-size: 14px; font-weight: 600; }
.grp-h .num { color: var(--ink); font-weight: 600; }

/* ---------- Resum del mes ---------- */
.kpis { display: grid; grid-template-columns: .92fr .98fr 1.2fr; gap: 8px; margin-bottom: 14px; }
.kpi { border-radius: 20px; padding: 12px 13px; min-width: 0; }
.kpi small { display: block; color: var(--mute); font-size: 12px; margin-bottom: 1px; }
.kpi b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.kpi .in, .in { color: var(--pos); }
.kpi .neg, .neg { color: var(--neg); }

/* ---------- Filtres ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 6px; }
.filters select, .filters input {
  background-color: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
  padding: 11px 16px; min-width: 0; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.filters select { flex: 0 0 auto; max-width: 56%; }
.filters input { flex: 1; }
::placeholder { color: var(--faint); }

/* ---------- Llista de moviments ---------- */
.day { margin-bottom: 8px; }
.day-h { display: flex; justify-content: space-between; padding: 14px 8px 8px; color: var(--mute); font-size: 13px; letter-spacing: -.005em; }
.rows { border-radius: 26px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; border: 0; background: transparent; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .2s; }
.row:last-child { border-bottom: 0; }
.row:active { background: rgba(255, 255, 255, .08); }
.dot {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -9px 14px rgba(0, 0, 0, .2), 0 8px 18px rgba(0, 0, 0, .4);
}
.dot svg { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.dot.sm { width: 30px; height: 30px; }
.dot.sm svg { width: 16px; height: 16px; }
.dot.md { width: 38px; height: 38px; }
.dot.md svg { width: 19px; height: 19px; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .a { font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.row .a.in { color: var(--pos); }
.row .a.tr { color: var(--mute); }

/* ---------- Anell i barres de categories ---------- */
.ring { position: relative; width: min(100%, 270px); margin: 4px auto 6px; aspect-ratio: 1; }
.ringsvg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 15; }
.ring-seg { fill: none; stroke: currentColor; stroke-width: 14; animation: ringin 1.1s var(--ease) both; }
.ring.still .ring-seg { animation: none; }
@keyframes ringin { from { stroke-dasharray: 0 1000; } }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ring-c small { color: var(--mute); font-size: 13px; }
.big, .total { font-size: 40px; line-height: 1.1; font-weight: 200; letter-spacing: -.04em; }
.ring-c .big { font-size: 34px; }
.bars { display: grid; gap: 4px; }
.bar { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 0; }
.bar .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar .h span:first-child { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.bar .h span:last-child { color: var(--mute); font-size: 14px; }
.bar .track { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; }
.sub { margin: 2px 0 8px 40px; display: grid; gap: 8px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .14); }
.sub div { display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--faint); font-size: 10px; }
.chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--mute); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---------- Comptes i categories ---------- */
.acc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); width: 100%; background: transparent; text-align: left; transition: background .2s; }
.acc:last-child { border-bottom: 0; }
.acc:active { background: rgba(255, 255, 255, .08); }
.acc .t { flex: 1; min-width: 0; }
.acc .t b { font-weight: 600; letter-spacing: -.01em; }
.acc small { color: var(--mute); display: block; font-size: 13px; }
.acc .a { font-weight: 600; letter-spacing: -.015em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 999px; font-weight: 600; color: var(--mute); transition: background .25s var(--ease), color .2s; }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .1)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px rgba(0, 0, 0, .3); }
.catp { padding: 12px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.catp:last-child { border-bottom: 0; }
.catp .ph { display: flex; align-items: center; gap: 12px; }
.catp .ph b { flex: 1; font-weight: 600; letter-spacing: -.01em; }
.chip { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 5px 12px; font-size: 13px; margin: 8px 6px 0 0; transition: background .2s; }
.chip:active { background: rgba(255, 255, 255, .16); }
.chip.add { color: var(--accent); border-style: dashed; background: transparent; }
.linkbtn { border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 6px 4px; }

/* ---------- Barra inferior flotant ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: calc(10px + var(--safe-b)); padding: 0 14px; z-index: 20; pointer-events: none; }
.tabbar .brand { display: none; border: 0; background: transparent; text-align: left; color: var(--ink); }
.tabbar nav {
  pointer-events: auto; max-width: 520px; margin: 0 auto; height: 70px; padding: 6px; border-radius: 38px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: linear-gradient(160deg, rgba(62, 62, 76, .66), rgba(20, 20, 26, .72));
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 50px rgba(0, 0, 0, .65);
}
.tabbar nav::before {
  content: ''; position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 14px rgba(0, 0, 0, .35);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .55s cubic-bezier(.3, 1.35, .5, 1);
}
.tabbar button {
  position: relative; z-index: 1; border: 0; background: transparent; height: 58px; padding: 0; color: var(--mute); font-size: 10.5px; font-weight: 500; letter-spacing: .005em;
  display: grid; gap: 3px; justify-items: center; align-content: center; transition: color .25s;
}
.tabbar button svg { display: block; transition: transform .35s var(--ease); }
.tabbar button[aria-current="page"] { color: #fff; }
.tabbar button[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
.tabbar button.plus {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto; background: var(--grad); color: #04121c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 26px rgba(92, 200, 255, .5), 0 0 0 5px rgba(255, 255, 255, .06);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.tabbar button.plus:active { transform: scale(.9); }
.tabbar button.plus span { display: none; }

/* ---------- Escriptori: barra lateral de vidre ---------- */
@media (min-width: 1000px) {
  .shell { max-width: 860px; margin: 0 0 0 max(288px, calc(288px + (100vw - 288px - 860px) / 2)); padding-bottom: 60px; }
  .tabbar { top: 16px; bottom: 16px; left: 16px; right: auto; width: 248px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
  .tabbar .brand { display: flex; align-items: center; gap: 12px; padding: 14px 8px 0; font-size: 21px; font-weight: 700; letter-spacing: -.03em; pointer-events: auto; cursor: pointer; }
  
  .tabbar nav { width: 100%; max-width: none; margin: 0; height: auto; padding: 10px; border-radius: 30px; display: flex; flex-direction: column; gap: 4px; }
  .tabbar nav::before { left: 10px; right: 10px; width: auto; top: 10px; bottom: auto; height: 48px; border-radius: 20px; transform: translateY(calc(var(--j, 1) * 52px)); }
  .tabbar button { width: 100%; height: 48px; display: grid; grid-template-columns: 22px 1fr; justify-items: start; align-content: center; align-items: center; gap: 14px; padding: 0 16px; font-size: 14.5px; text-align: left; }
  .tabbar button.plus { order: -1; width: 100%; height: 48px; border-radius: 20px; margin: 0; padding: 0 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 24px rgba(92, 200, 255, .35); font-weight: 650; }
  .tabbar button.plus span { display: inline; }
  #toast { bottom: 28px !important; }
}

/* ---------- Fulls modals ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease-out; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 34px 34px 0 0; padding: 10px 20px calc(20px + var(--safe-b));
  background: linear-gradient(165deg, rgba(70, 70, 86, .62), rgba(22, 22, 28, .82) 55%);
  -webkit-backdrop-filter: blur(44px) saturate(190%); backdrop-filter: blur(44px) saturate(190%);
  animation: up .45s var(--ease);
}
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 0 auto 14px; }
@media (min-width: 640px) { .backdrop { align-items: center; } .sheet { border-radius: 34px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet h3 { margin: 2px 0 14px; font-size: 22px; letter-spacing: -.03em; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--mute); font-weight: 600; padding-left: 4px; }
.field input, .field select {
  background-color: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 13px 16px; width: 100%; min-width: 0; min-height: 48px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23b8b8c8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .filters select:focus, .filters input:focus { outline: none; border-color: rgba(138, 151, 255, .8); box-shadow: 0 0 0 4px rgba(138, 151, 255, .22); background-color: rgba(255, 255, 255, .1); }
.field input[type="date"] { text-align: left; }
.field input.amount { font-size: 54px; font-weight: 200; text-align: center; padding: 10px !important; letter-spacing: -.045em; background: transparent; border-color: transparent; caret-color: var(--accent-2); min-height: 84px; }
.field input.amount:focus { background: transparent; border-color: transparent; box-shadow: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns { display: flex; gap: 10px; margin-top: 8px; }
.btn {
  flex: 1; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 14px; font-weight: 650; letter-spacing: -.01em;
  background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); background: rgba(255, 255, 255, .14); }
.btn.primary { border-color: transparent; background: var(--grad); color: #03121c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 28px rgba(92, 200, 255, .38); }
.btn.danger { background: transparent; border-color: transparent; color: var(--neg); flex: 0 0 auto; }
.btn:disabled { opacity: .5; }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-2); }
.hint { color: var(--mute); font-size: 13px; margin: -6px 0 14px; padding-left: 4px; }

/* ---------- Login ---------- */
.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login form { width: 100%; max-width: 380px; border-radius: 34px; padding: 30px 26px 26px; }
.login .plate { margin-bottom: 18px; }
.login h1 { margin: 0 0 4px; font-size: 32px; letter-spacing: -.04em; }
.login p { margin: 0 0 20px; color: var(--mute); }
.err { color: var(--neg); font-size: 14px; min-height: 20px; margin: 0 0 8px; padding-left: 4px; }

#toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 12px) scale(.96); z-index: 60; max-width: 90vw; text-align: center;
  background: rgba(40, 40, 50, .8); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  color: var(--ink); padding: 11px 18px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
#toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.spin { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; color: var(--mute); padding: 40vh 0 0; }
.spin i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--accent-2); animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Inici ---------- */
.top .mark { flex: none; width: 46px; height: 46px; border-radius: 15px; background: var(--grad); margin-top: 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 24px rgba(92, 200, 255, .4); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini small { display: block; color: var(--mute); font-size: 13px; }
.mini b { font-size: 26px; font-weight: 300; letter-spacing: -.035em; white-space: nowrap; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border: 0; border-radius: 28px; padding: 16px; min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; color: var(--ink); transition: transform .25s var(--ease); }
.tile:active:not(:disabled) { transform: scale(.97); }
.tile b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.tile small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.tile.soon { opacity: .5; cursor: default; }
.tile .badge { position: absolute; top: 16px; right: 16px; font-size: 11px; color: var(--mute); border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; padding: 2px 9px; }
@media (min-width: 1000px) { .shell.home { margin: 0 auto; max-width: 760px; padding-bottom: 60px; } }

/* ---------- Logo IDROX (el PNG és per fons clar: va sobre una placa blanca) ---------- */
.plate { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .45), inset 0 -2px 6px rgba(0, 0, 0, .06); }
.plate img { display: block; width: auto; }
.plate.lg { border-radius: 18px; padding: 8px 14px; margin-bottom: 10px; }
.tabbar .brand .plate { padding: 7px 12px; }

/* ---------- Comptabilitat IDROX incrustada ---------- */
body.embedded::before { display: none; }
.embed { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #0B0E14; }
.embedbar { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 8px) 14px 8px; background: rgba(21, 27, 37, .92); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.embedbar b { font-weight: 600; letter-spacing: -.01em; }
.embed iframe { flex: 1; width: 100%; border: 0; background: #0B0E14; }
