/* Pauta · sistema de disseny: pastel tranquil, el color com a categoria. Dues fonts: Fraunces (suau) i Manrope. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400..700,0..100&display=swap');
:root {
  --bg: #EFECFA; --card: #fff; --ink: #2A2540; --ink2: #5F5A7A; --ink3: #5B5578; --line: #E4DFF5; --soft: #F6F4FD;
  --lav: #E8E4FA; --lav-ink: #4A3E96; --lav-bg: #F4F2FD;
  --man: #FAF0C8; --man-ink: #6A560E; --man-bg: #FDF8E4;
  --men: #D9F2E8; --men-ink: #1E6A50; --men-bg: #EDF8F3;
  --cel: #DCEBFA; --cel-ink: #21568C; --cel-bg: #EEF5FD;
  --pre: #FCE6D6; --pre-ink: #8A4520; --pre-bg: #FEF3EB;
  --ros: #F9DFE4; --ros-ink: #8E3148; --ros-bg: #FCEFF2;
  --shadow: 0 1px 2px rgba(42,37,64,.04), 0 16px 32px -24px rgba(42,37,64,.30);
  --shadow-s: 0 1px 2px rgba(42,37,64,.06), 0 6px 16px -10px rgba(42,37,64,.30);
  --serif: Fraunces, Georgia, serif; --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;   /* títols: Fraunces; text: provisional Helvetica (a Windows, Arial) */
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; scrollbar-width: none; -webkit-tap-highlight-color: transparent; }
*::-webkit-scrollbar { display: none; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); }
body { min-height: 100dvh; overscroll-behavior-y: none; }
a { color: var(--cel-ink); text-decoration: none; } a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-variation-settings: 'SOFT' 100; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--ink2); } .small { font-size: 13px; } .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; } .col { display: flex; flex-direction: column; } .grow { flex: 1; min-width: 0; }
.gap4 { gap: 4px; } .gap8 { gap: 8px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; } .wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }

/* Shell */
.shell { min-height: 100dvh; display: flex; }
.side { width: 264px; flex: none; padding: 28px 16px; background: #F8F6FD; box-shadow: inset -1px 0 0 var(--line); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; margin-bottom: 24px; font: 600 21px var(--serif); font-variation-settings: 'SOFT' 100; }
.nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink); font-weight: 600; transition: background .2s var(--ease), box-shadow .2s var(--ease); }

.nav a.on { background: #fff; box-shadow: var(--shadow-s); font-weight: 700; }
.nav .badge { margin-left: auto; }
.side .foot { margin-top: auto; }
.main { flex: 1; min-width: 0; padding: 36px clamp(16px, 4vw, 48px) 80px; }
.page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.avatar { width: 44px; height: 44px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-s); border: 0; cursor: pointer; font: 600 20px var(--serif); font-variation-settings: 'SOFT' 100; flex: none; transition: transform .15s var(--ease); }
.avatar:active { transform: scale(.94); }
.tabbar { display: none; }
@media (max-width: 899px) {
  .side { display: none; }
  .main { padding: 24px 16px 120px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 84px; padding: 8px 4px 24px; background: #FBFAFE; box-shadow: inset 0 1px 0 var(--line); z-index: 20; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink2); font-size: 11px; font-weight: 600; position: relative; }
  .tabbar a.on { color: var(--ink); font-weight: 700; }
  .tabbar .pill-ic { width: 56px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease); }
  .tabbar .tb { position: absolute; top: 0; left: calc(50% + 6px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cards */
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.card.tight { padding: 16px 24px 8px; }
.card-h { display: flex; justify-content: space-between; align-items: center; min-height: 32px; margin-bottom: 8px; }
@media (max-width: 899px) { .card { border-radius: 18px; padding: 16px; } .card.tight { padding: 16px 16px 4px; } }
.grid { display: grid; gap: 24px; } .grid.stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 899px) { .grid { gap: 16px; } .grid.stats { grid-template-columns: 1fr 1fr; } }
.ic-box { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.big { font: 600 32px/1.1 var(--serif); font-variation-settings: 'SOFT' 100; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .big { font-size: 26px; } }
.item { display: flex; align-items: center; gap: 16px; min-height: 68px; border-bottom: 1px solid #EEEAFB; padding: 8px 0; cursor: default; }
.item:last-child { border-bottom: 0; } .item.click { cursor: pointer; } 
.item .t { font-weight: 700; font-size: 15px; } .item .s { font-size: 13px; color: var(--ink2); }
.av { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }

/* Pills i botons */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill.bare::before { display: none; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--pre); color: var(--pre-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.c-lav { background: var(--lav); color: var(--lav-ink); } .c-man { background: var(--man); color: var(--man-ink); } .c-men { background: var(--men); color: var(--men-ink); }
.c-cel { background: var(--cel); color: var(--cel-ink); } .c-pre { background: var(--pre); color: var(--pre-ink); } .c-ros { background: var(--ros); color: var(--ros-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; transition: transform 160ms ease-out, opacity .2s, background .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; } .btn.block { width: 100%; height: 52px; border-radius: 14px; font-size: 17px; }
.btn.prim { background: var(--man); color: var(--man-ink); box-shadow: inset 0 0 0 1.5px var(--man-ink); }
.btn.ok { background: var(--men); color: var(--men-ink); } .btn.info { background: var(--cel); color: var(--cel-ink); }
.btn.money { background: var(--pre); color: var(--pre-ink); } .btn.neg { background: var(--ros); color: var(--ros-ink); }
.btn.ghost { background: transparent; color: var(--ink2); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.busy { pointer-events: none; } .btn.busy .lbl { opacity: 0; } .btn .spin { position: absolute; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 99px; animation: spin .7s linear infinite; }
.btn.done .lbl { opacity: 0; } .btn .tick { position: absolute; font-size: 18px; animation: pop .3s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.seg { display: inline-flex; padding: 4px; background: rgba(255,255,255,.7); border-radius: 14px; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 36px; padding: 0 16px; border: 0; background: transparent; border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--ink2); transition: background .2s var(--ease); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow-s); }

/* Formularis */
.f { display: flex; flex-direction: column; gap: 6px; } .f > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); outline: none; font-size: 16px; }
input:focus, select:focus, textarea:focus { box-shadow: inset 0 0 0 2px var(--cel-ink); background: #fff; }
textarea { resize: vertical; min-height: 88px; }
.form { display: flex; flex-direction: column; gap: 16px; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .two, .three { grid-template-columns: 1fr; } }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.choice { text-align: left; background: #fff; border: 0; border-radius: 14px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .2s, background .2s; }
.choice b { font-size: 15px; } .choice span { font-size: 13px; color: var(--ink2); }
.choice.on { background: var(--cel-bg); box-shadow: inset 0 0 0 2px var(--cel-ink); }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; } .check input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--cel-ink); }
.toggle { position: relative; width: 48px; height: 28px; flex: none; } .toggle input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; } .toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-s); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--men-ink); } .toggle input:checked + i::after { transform: translateX(20px); }

/* Modal i calaix */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; color: var(--ink); }
dialog::backdrop { background: rgba(42,37,64,.38); animation: fade .25s; }
.sheet { background: var(--bg); border-radius: 24px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 24px; box-shadow: 0 30px 80px -20px rgba(42,37,64,.5); animation: sheet .35s var(--ease); display: flex; flex-direction: column; gap: 16px; margin: auto; }
.sheet.wide { width: min(760px, calc(100vw - 24px)); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); border-radius: 24px 0 0 24px; margin: 0; max-height: none; animation: drawer .4s var(--ease); }
@media (max-width: 640px) { dialog.sheetd { margin: auto 0 0; } .sheet:not(.drawer) { width: 100vw; border-radius: 24px 24px 0 0; margin: 0; } dialog.sheetd[open] { margin: auto 0 0; width: 100vw; } }
@keyframes fade { from { opacity: 0; } } @keyframes sheet { from { opacity: 0; transform: translateY(24px) scale(.98); } } @keyframes drawer { from { transform: translateX(100%); } }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 100; animation: toast 3s var(--ease) both; max-width: calc(100vw - 32px); }
.toast.err { background: var(--ros-ink); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 6px); } }

/* Salutació en dues fases */
.hello { font-size: 36px; line-height: 1.15; min-height: 1.15em; } @media (max-width: 899px) { .hello { font-size: 28px; } }
.hello a { color: var(--ink); } .hello .chev { display: inline-block; vertical-align: -.1em; margin-left: 6px; color: var(--cel-ink); }
.hello .ph { display: block; animation: up .6s var(--ease) both; } .hello .ph.out { animation: out .5s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } } @keyframes out { to { opacity: 0; transform: translateY(-14px); } }

/* Calendari */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day-col { background: var(--card); border-radius: 16px; padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.day-col.today { box-shadow: inset 0 0 0 2px var(--man-ink), var(--shadow); } .day-col .dh { font-size: 12px; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; }
.blk { border: 0; text-align: left; border-radius: 10px; padding: 8px; font-size: 12px; line-height: 1.3; cursor: pointer; display: flex; flex-direction: column; gap: 2px; } .blk b { font-size: 13px; }
.blk.off { opacity: .55; text-decoration: line-through; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mcell { background: var(--card); border: 0; border-radius: 12px; min-height: 74px; padding: 8px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .mcell.out { opacity: .4; } .mcell.today { box-shadow: inset 0 0 0 2px var(--man-ink); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; } .dots i { width: 8px; height: 8px; border-radius: 99px; }
@media (max-width: 899px) { .week { grid-template-columns: 1fr; } .day-col { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .day-col .dh { width: 100%; } .day-col .blk { flex: 1 1 140px; } .mcell { min-height: 56px; padding: 6px; } }

/* Teselat */
.tess { display: block; width: 100%; height: auto; }
.tess polygon { stroke: var(--ink); stroke-linejoin: round; transition: opacity .5s var(--ease), transform .6s var(--ease), fill .4s; transform-box: fill-box; transform-origin: center; }
.tess polygon.ghost { fill: transparent; stroke: #CFC8EA; opacity: .55; transform: scale(1); }
.tess polygon.on { opacity: 1; transform: scale(1); }
.tess polygon.pre { opacity: 0; transform: scale(.6); }

/* Altres */
.crumbs { font-size: 14px; color: var(--ink2); } .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: rgba(255,255,255,.6); font-weight: 600; cursor: pointer; } .tab.on { background: #fff; box-shadow: var(--shadow-s); font-weight: 700; }
.empty { text-align: center; padding: 32px 16px; color: var(--ink2); }
.spinner { width: 32px; height: 32px; margin: 30vh auto 0; border: 3px solid var(--line); border-top-color: var(--man-ink); border-radius: 99px; animation: spin .8s linear infinite; }
.auth { min-height: 100dvh; display: flex; flex-direction: column; max-width: 440px; margin: 0 auto; padding: 56px 24px 32px; gap: 24px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 15px; } .kv dt { color: var(--ink2); } .kv dd { margin: 0; font-weight: 600; }
.cmdk { padding: 0; } .cmdk input { border-radius: 0; background: #fff; min-height: 56px; box-shadow: none; } .cmdk .res { max-height: 50vh; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.cmdk button { text-align: left; border: 0; background: transparent; border-radius: 10px; min-height: 44px; padding: 0 12px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 600; } .cmdk button:hover, .cmdk button.sel { background: #fff; }
.pull { position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; color: var(--ink2); font-size: 13px; font-weight: 600; }
.prep { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.prep ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; } .prep li { display: flex; gap: 12px; align-items: center; color: var(--ink3); transition: color .3s; } .prep li.go { color: var(--ink); } .prep li i { width: 22px; height: 22px; border-radius: 99px; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; transition: background .3s; } .prep li.done i { background: var(--men); color: var(--men-ink); }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.8); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--man-ink); border-radius: 99px; transition: width .5s var(--ease); }

#stage { flex: none; overflow: hidden; } #stage .tess { height: 100%; }
#pst .tess { height: auto; }
@media (max-width: 640px) { .item { flex-wrap: wrap; gap: 8px 12px; } .item .grow { flex: 1 1 calc(100% - 64px); } }
@media (max-width: 899px) { .grid.stats .card:last-child:nth-child(odd) { grid-column: 1 / -1; } .grid.stats .card { padding: 16px; gap: 12px; } }
/* Les targetes sempre porten color: el de la secció, o el de la seva categoria */
.page[data-sec="avui"] { --tint: var(--man-bg); } .page[data-sec="calendari"] { --tint: var(--cel-bg); } .page[data-sec="families"] { --tint: var(--ros-bg); }
.page[data-sec="cobraments"] { --tint: var(--men-bg); } .page[data-sec="avisos"] { --tint: var(--pre-bg); } .page[data-sec="gestio"], .page[data-sec="perfil"] { --tint: var(--lav-bg); }
.card { background: var(--tint, #fff); }
.card.c-cel { background: var(--cel); color: var(--cel-ink); } .card.c-men { background: var(--men); color: var(--men-ink); } .card.c-pre { background: var(--pre); color: var(--pre-ink); }
.card.c-ros { background: var(--ros); color: var(--ros-ink); } .card.c-man { background: var(--man); color: var(--man-ink); } .card.c-lav { background: var(--lav); color: var(--lav-ink); }
.card[class*="c-"] .muted, .card[class*="c-"] .small, .card[class*="c-"] .s { color: inherit; opacity: .8; }
.card[class*="c-"] .ic-box { background: rgba(255,255,255,.6) !important; }
.card.t-ros { background: var(--ros-bg); } .card.t-lav { background: var(--lav-bg); }
.item { border-bottom-color: rgba(42,37,64,.07); } .day-col, .mcell { background: var(--tint, #fff); }
.card .card, .card .choice:not(.on) { background: rgba(255,255,255,.65); }

/* ===== Moviment: orgànic, d'estil Apple, net ===== */
:root { --spring: cubic-bezier(.34, 1.35, .64, 1); }
/* Entrada: salta de sota amb un sol rebot suau, esglaonada (no tot alhora) */
@keyframes spring-up { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.page > *, .page .card .item, .week > .day-col, .tabs > *, .choices > .choice, .grid > * { animation: spring-up .6s var(--spring) both; }
.page > :nth-child(1) { animation-delay: 0ms; } .page > :nth-child(2) { animation-delay: 50ms; } .page > :nth-child(3) { animation-delay: 100ms; }
.page > :nth-child(4) { animation-delay: 150ms; } .page > :nth-child(5) { animation-delay: 200ms; } .page > :nth-child(n+6) { animation-delay: 250ms; }
.grid.stats > :nth-child(2) { animation-delay: 90ms; } .grid.stats > :nth-child(3) { animation-delay: 150ms; }
.card .item:nth-child(2) { animation-delay: 80ms; } .card .item:nth-child(3) { animation-delay: 120ms; } .card .item:nth-child(4) { animation-delay: 160ms; } .card .item:nth-child(n+5) { animation-delay: 200ms; }
.week > .day-col:nth-child(2) { animation-delay: 40ms; } .week > .day-col:nth-child(3) { animation-delay: 80ms; } .week > .day-col:nth-child(4) { animation-delay: 120ms; } .week > .day-col:nth-child(5) { animation-delay: 160ms; } .week > .day-col:nth-child(n+6) { animation-delay: 200ms; }
.choices > .choice:nth-child(2) { animation-delay: 50ms; } .choices > .choice:nth-child(3) { animation-delay: 100ms; } .choices > .choice:nth-child(n+4) { animation-delay: 150ms; }
.page[data-again] > *, .page[data-again] .card .item, .page[data-again] .day-col, .page[data-again] .grid > * { animation: none; }
.sheet { animation: spring-up .28s cubic-bezier(0.23, 1, 0.32, 1) both; } .sheet.drawer { animation: drawer .32s cubic-bezier(0.32, 0.72, 0, 1) both; }
.toast { animation-timing-function: var(--spring); }
/* Premuda amb resposta: 0,97 en 160 ms */
.btn, .choice, .tab, .seg button, .avatar, .tabbar a, .nav a, .blk, .mcell, .item.click { transition: transform 160ms ease-out, background-color .2s, filter .2s; }
.btn:active, .choice:active, .tab:active, .seg button:active, .avatar:active, .tabbar a:active, .nav a:active, .blk:active, .mcell:active, .item.click:active { transform: scale(.97); }
/* Hover discret: només un canvi de to, sense ombres ni salts */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(.96); } .choice:not(.on):hover, .tab:not(.on):hover, .seg button:not(.on):hover { background: rgba(42,37,64,.05); }
  .nav a:not(.on):hover, .item.click:hover { background: rgba(42,37,64,.04); } .blk:hover, .mcell:hover { filter: brightness(.97); }
}
/* Cantonades contínues, com les d'Apple */
@supports (corner-shape: squircle) { .card, .btn, .choice, .tab, .seg, .seg button, input, select, textarea, .sheet, .blk, .mcell, .day-col, .av, .ic-box, .toast, .nav a { corner-shape: squircle; } }
/* Respecte: sense moviment, només un fos suau; el contingut no es mou mentre es llegeix */
@media (prefers-reduced-motion: reduce) {
  @keyframes spring-up { from { opacity: 0; } to { opacity: 1; } }
  .page > *, .page .card .item, .week > .day-col, .tabs > *, .choices > .choice, .grid > *, .sheet { animation: spring-up .2s ease both !important; animation-delay: 0ms !important; }
  .sheet.drawer { animation: spring-up .2s ease both !important; } .btn:active, .choice:active, .tab:active, .avatar:active { transform: none; }
  .hello .ph, .tess polygon, .toast { animation-duration: .2s !important; transition-duration: .01ms !important; } .tess polygon.pre { transform: none; }
}
.auth > * { animation: spring-up .6s var(--spring) both; } .auth > :nth-child(2) { animation-delay: 60ms; } .auth > :nth-child(3) { animation-delay: 120ms; } .auth > :nth-child(n+4) { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) { .auth > * { animation: spring-up .2s ease both !important; animation-delay: 0ms !important; } }

/* ===== Targetes clicables i primer pla ===== */
[data-detail], [data-go] { cursor: pointer; transition: transform 160ms ease-out, filter .2s; } [data-detail]:active, [data-go]:active { transform: scale(.98); }
[data-detail]:focus-visible, [data-go]:focus-visible { outline: 2px solid var(--cel-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { [data-detail]:hover, [data-go]:hover { filter: brightness(.97); } }
dialog::backdrop { background: rgba(42,37,64,.52); }
dialog.detail::backdrop { background: rgba(32,27,52,.66); animation: fade .25s ease-out; } dialog.detail.leaving::backdrop { animation: fade-out .22s ease-in-out forwards; }
@keyframes fade-out { to { opacity: 0; } }
dialog.detail { margin: auto; } .dsheet { animation: none; width: min(600px, calc(100vw - 24px)); }
/* Canvi de pàgina */
.side { view-transition-name: side; } .tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vt-out 90ms ease-out both; } ::view-transition-new(root) { animation: vt-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } dialog.detail::backdrop { animation: none; } }

/* Preparant: cada ítem fet fa una pulsació (amb hàptic) */
.prep li.done i { animation: pulse .5s var(--spring); } .prep li.done { animation: pulse-row .5s var(--spring); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } } @keyframes pulse-row { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.prep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .prep-list li { background: var(--man-bg); border-radius: 14px; padding: 12px 14px; font-size: 15px; opacity: 0; transform: translateY(14px); transition: opacity .3s ease-out, transform .5s var(--spring); } .prep-list li.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .prep li.done i, .prep li.done { animation: none; } .prep-list li { transform: none; } }

/* Entrada coreografiada per JS (WAAPI): amb moviment permès, anul·la l'entrada senzilla de CSS */
@media (prefers-reduced-motion: no-preference) {
  .page > *, .page .card .item, .week > .day-col, .tabs > *, .choices > .choice, .grid > *, .auth > * { animation: none !important; }
}
.progress { overflow: visible; position: relative; } .progress i { border-radius: 99px; }
/* Preparant la teva app: targeta amb ítems que es completen d'un en un */
.prep-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 6px 18px; box-shadow: var(--shadow); }
.prep-row { display: flex; align-items: center; gap: 14px; min-height: 68px; border-bottom: 1px solid rgba(42,37,64,.07); } .prep-row:last-child { border-bottom: 0; }
.prep-row b { flex: 1; font-size: 16px; color: var(--ink3); font-weight: 500; transition: color .3s, font-weight .3s; } .prep-row.go b, .prep-row.done b { color: var(--ink); font-weight: 700; }
.prep-row .st { width: 28px; height: 28px; border-radius: 99px; flex: none; box-shadow: inset 0 0 0 2.5px var(--line); transition: box-shadow .3s; display: inline-flex; }
.prep-row.go .st { box-shadow: inset 0 0 0 2.5px var(--line); position: relative; } .prep-row.go .st::after { content: ''; position: absolute; inset: 0; border: 2.5px solid var(--cel-ink); border-right-color: transparent; border-radius: 99px; animation: spin .7s linear infinite; }
.prep-row.done .st { box-shadow: none; animation: pulse .5s var(--spring); } .prep-row.done { animation: pulse-row .5s var(--spring); }
.prep-row { text-align: left; }

.mosaic-card .tess { max-height: 230px; margin: 0 auto; }

.gear { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 40; width: 44px; height: 44px; border-radius: 99px; border: 1px solid rgba(42,37,64,.09); background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 160ms ease-out, background .2s, color .2s; }
.gear:hover { background: #fff; color: var(--ink); }
.gear:active { transform: scale(.97); }
/* Moviments reduïts triats a mà: mateix comportament que prefers-reduced-motion */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .2s !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] .spinner, html[data-motion="reduce"] .btn .spin, html[data-motion="reduce"] .prep-row.go .st::after { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
html[data-motion="reduce"] .tess polygon.pre { transform: none; }

/* Pantalles d'entrada: sense scroll, tot cap a la pantalla */
.fit { height: 100dvh; min-height: 0; overflow: hidden; } body:has(.fit) { overflow: hidden; }
#ob { padding-top: 20px; padding-bottom: 24px; } #stage { height: clamp(72px, 17dvh, 150px) !important; } #obody { min-height: 0; }
@media (max-height: 760px) { .fit h1 { font-size: 24px !important; } .fit .form { gap: 10px; } .fit input, .fit select { min-height: 44px; padding: 9px 12px; } .fit .btn.block { height: 48px; } .fit .choice { padding: 10px 14px; } #ob { gap: 14px; } #obody { gap: 14px; } }
@media (max-height: 700px) { .lstack { height: 170px !important; } .lstack > :nth-child(3) { display: none; } }
@media (max-height: 760px) { .fit .opt { display: none; } .fit .card.col { gap: 10px; padding: 14px; } }

/* Onboarding amb color: opcions pastel, xips seleccionables ben visibles, bola de progrés */
.choice.tn-0 { background: var(--lav-bg); } .choice.tn-1 { background: var(--men-bg); } .choice.tn-2 { background: var(--pre-bg); } .choice.tn-3 { background: var(--cel-bg); }
.choice.tn-0.on { background: var(--lav); box-shadow: inset 0 0 0 2px var(--lav-ink); } .choice.tn-1.on { background: var(--men); box-shadow: inset 0 0 0 2px var(--men-ink); }
.choice.tn-2.on { background: var(--pre); box-shadow: inset 0 0 0 2px var(--pre-ink); } .choice.tn-3.on { background: var(--cel); box-shadow: inset 0 0 0 2px var(--cel-ink); }
.chip { height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ci, var(--ink)); background: var(--cb, #fff); box-shadow: inset 0 0 0 1.5px transparent; transition: transform 160ms ease-out, box-shadow .2s ease-out, background-color .2s ease-out, color .2s; }
.chip:active { transform: scale(.97); } .chip.on { background: var(--ci); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ci); }
.card.t-cel { background: var(--cel-bg); }
.progress i { transition: width 620ms cubic-bezier(0.77, 0, 0.175, 1); }
.ball { position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; will-change: transform; } .ball em { display: block; width: 100%; height: 100%; border-radius: 99px; background: var(--man); box-shadow: inset 0 0 0 2.5px var(--man-ink); transform-origin: 50% 50%; }

/* Peces del teselat: l'arribada la porta WAAPI (squash i stretch); aquí només l'estat */
.tess polygon { transition: fill .4s; } .tess polygon.pre { transform: none; opacity: 0; } .tess polygon.on { opacity: 1; transform: none; }

/* Hover: la targeta sencera s'enfosqueix; en llistes dins d'una targeta, la fila s'amplia fins a les vores */
a.card.item { min-height: 0; border-bottom: 0; padding: 16px 20px; color: inherit; }
.card.tight .item.click { margin: 0 -24px; padding: 8px 24px; }
@media (max-width: 899px) { .card.tight .item.click { margin: 0 -16px; padding: 8px 16px; } }
.card.tight { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .item.click:hover { background: transparent; } .card.tight .item.click:hover { background: rgba(42,37,64,.05); }
  a.card.item.click { transition: transform 160ms ease-out, filter .2s ease; } a.card.item.click:hover { filter: brightness(.95); background: var(--tint, #fff); }
}
.avatar { display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }

/* Sortida de diàlegs: el fons s'aclareix mentre el full surt; el calaix es pot arrossegar */
dialog::backdrop { background: rgba(42,37,64,calc(.52 * var(--bd, 1))); }
dialog.leaving::backdrop { animation: fade-out .26s ease-in-out forwards; }
.sheet.drawer { touch-action: pan-y; }

/* Matèries: mostres de color i peces clicables del teselat */
.sw { width: 32px; height: 32px; border-radius: 99px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: transform 160ms ease-out, box-shadow .2s ease-out; } .sw:active { transform: scale(.97); } .sw.on { box-shadow: inset 0 0 0 2.5px var(--ci); }
.mosaic-card .tess polygon.on { cursor: pointer; } @media (hover: hover) and (pointer: fine) { .mosaic-card .tess polygon.on:hover { filter: brightness(.95); } }

/* Barra de progrés gruixuda amb vora marcada; la bola és només un pèl més gran que el gruix */
.progress { height: 18px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 2.5px var(--man-ink); overflow: visible; position: relative; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; height: auto; border-radius: 99px; background: var(--man); box-shadow: inset 0 0 0 2.5px var(--man-ink); }
.ball { width: 22px; height: 22px; margin-top: -11px; } .ball em { box-shadow: inset 0 0 0 2.5px var(--man-ink); background: #fff; }
/* Premuda immediata: entra en 70 ms (sense retard) i recupera en 160 ms */
.btn:active, .choice:active, .chip:active, .tab:active, .seg button:active, .avatar:active, .tabbar a:active, .nav a:active, .gear:active, .sw:active { transition-duration: 70ms; }

/* Contrast i radis coherents: els botons de rol porten vora visible sobre fons pastel; escala de radis única */
.btn.info, .btn.ok, .btn.money, .btn.neg { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent); }
.btn.ghost.sm[aria-label], .item .btn.ghost { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); }
.pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); }
.btn, .btn.block, .btn.sm, .chip, .tab, .seg button, input, select, textarea { border-radius: 12px; }
.seg { border-radius: 16px; } .choice, .mcell, .day-col, .ic-box, .av { border-radius: 14px; } .blk { border-radius: 10px; }
.card, .card.tight { border-radius: 20px; } .prep-card { border-radius: 24px; }
@media (max-width: 899px) { .card, .card.tight { border-radius: 20px; } }
@supports (corner-shape: squircle) { .btn, .chip, .tab, .choice, .card, .pill { corner-shape: squircle; } }

/* ===== Formes suaus i arrodonides (substitueix l'escala anterior, massa angulosa) ===== */
.btn, .btn.block, .btn.sm, .chip, .tab, .seg button, .gear { border-radius: 999px; }
.seg { border-radius: 999px; padding: 4px; }
input, select, textarea { border-radius: 18px; }
.card, .card.tight, a.card.item { border-radius: 28px; } .prep-card { border-radius: 32px; } .sheet { border-radius: 28px; } .sheet.drawer { border-radius: 28px 0 0 28px; }
.card .card, .card .choice:not(.tn-0):not(.tn-1):not(.tn-2):not(.tn-3) { border-radius: 20px; }
.choice { border-radius: 22px; } .day-col { border-radius: 22px; } .mcell { border-radius: 18px; } .blk { border-radius: 16px; }
.ic-box { border-radius: 16px; } .av { border-radius: 16px; } .toast { border-radius: 999px; padding: 12px 22px; }
.item.click:hover, .card.tight .item.click:hover { border-radius: 0; }
@media (max-width: 899px) { .card, .card.tight, a.card.item { border-radius: 26px; } .sheet:not(.drawer) { border-radius: 28px 28px 0 0; } }
.tab:not(.on) { box-shadow: inset 0 0 0 1.5px var(--line); } .tab.on { box-shadow: inset 0 0 0 1.5px var(--ink2), var(--shadow-s); }
@supports (corner-shape: squircle) { .btn, .chip, .tab, .pill, .gear, .seg, .seg button, .toast { corner-shape: round; } .card, .choice, .day-col, .mcell, .blk, .ic-box, .av, input, select, textarea, .sheet { corner-shape: squircle; } }
.blk { min-width: 0; overflow-wrap: anywhere; hyphens: auto; } .day-col, .week > * { min-width: 0; }

/* ===== Squircle complet: totes les formes amb cantonada contínua (corner-shape: squircle) ===== */
.btn, .btn.block, .btn.sm, .chip, .tab, .nav a, .tabbar .pill-ic, .toast { border-radius: 18px; }
.seg { border-radius: 24px; } .seg button { border-radius: 18px; }
.pill { border-radius: 12px; }
input, select, textarea { border-radius: 22px; }
.card, .card.tight, a.card.item { border-radius: 34px; } .prep-card { border-radius: 36px; } .sheet { border-radius: 34px; } .sheet.drawer { border-radius: 34px 0 0 34px; }
.card .card, .card .choice:not(.tn-0):not(.tn-1):not(.tn-2):not(.tn-3) { border-radius: 24px; }
.choice { border-radius: 22px; } .day-col { border-radius: 26px; } .mcell { border-radius: 20px; } .blk { border-radius: 18px; }
.ic-box { border-radius: 18px; } .av { border-radius: 18px; } .dsheet { border-radius: 34px; } .item.click:hover { border-radius: 0; }
.btn.ghost.sm[aria-label], .item .btn.ghost { border-radius: 18px; }
@media (max-width: 899px) { .card, .card.tight, a.card.item { border-radius: 30px; } .sheet:not(.drawer) { border-radius: 34px 34px 0 0; } }
.btn, .chip, .tab, .nav a, .tabbar .pill-ic, .toast, .seg, .seg button, .pill, input, select, textarea, .card, .prep-card, .sheet, .choice, .day-col, .mcell, .blk, .ic-box, .av, .tess-card, .gear-sq { corner-shape: squircle; }
.avatar, .gear, .sw, .ball, .ball em, .toggle i, .progress, .progress i { corner-shape: round; }

/* Contrast: dins de targetes de color el text secundari manté el color ple (sense transparència) */
.card[class*="c-"] .muted, .card[class*="c-"] .small, .card[class*="c-"] .s { color: inherit; opacity: 1; }
.card[class*="c-"] .small, .card[class*="c-"] .s { font-weight: 600; }
/* Botons desactivats: llegibles (sense transparència) però clarament inactius */
.btn[disabled], .btn[disabled]:hover { opacity: 1; background: #F3F1FB; color: #5F5A7A; box-shadow: inset 0 0 0 1.5px var(--line); cursor: not-allowed; filter: none; }

/* Barra de progrés lila: vora d'un to més fosc que el fons i farciment lila */
.progress { background: #F7F5FD; box-shadow: inset 0 0 0 2.5px #CBC3EA; }
.progress i { background: #B9ADF2; box-shadow: none; }
.ball em { background: #fff; box-shadow: inset 0 0 0 2.5px #8E80E0; }

/* Foto de perfil */
.avatar.has-photo { padding: 0; overflow: hidden; } .avatar img, .photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-big { width: 140px; height: 140px; } .photo-img { display: flex; width: 140px; height: 140px; border-radius: 40px; overflow: hidden; background: #fff; box-shadow: var(--shadow-s); align-items: center; justify-content: center; font: 600 56px var(--serif); corner-shape: squircle; }
.sheet > * { flex-shrink: 0; }

/* Disponibilitat per franges i mode prova */
.avday { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(42,37,64,.07); } .avday > b { width: 96px; line-height: 44px; flex: none; } .avday input[type=time] { width: 128px; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--lav); color: var(--lav-ink); border-radius: 22px; padding: 10px 14px 10px 18px; margin: 0 auto 18px; max-width: 1040px; font-size: 14px; corner-shape: squircle; }

/* Onboarding: les pantalles són una al costat de l'altra i lliscaren de costat */
.ob-view { position: relative; flex: 1; min-height: 0; overflow: hidden; } .ob-pane { position: absolute; inset: 0; will-change: transform; }

/* Onboarding: el moviment no es retalla a la columna ni a l'àrea de contingut (només a les vores de la finestra) */
.fit#ob, #ob.fit { overflow: visible; } .ob-view { overflow: visible; }

/* Onboarding: a cada pantalla tots els botons són del mateix color (el de la pantalla) */
.ob-pane .choice, .ob-pane .choice[class*="tn-"] { background: var(--tn-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tn-ink) 30%, transparent); color: var(--ink); }
.ob-pane .choice.on, .ob-pane .choice[class*="tn-"].on { background: var(--tn-bg); box-shadow: inset 0 0 0 2px var(--tn-ink); }
.ob-pane .chip { --cb: var(--tn-soft) !important; --ci: var(--tn-ink) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tn-ink) 30%, transparent); }
.ob-pane .chip.on { box-shadow: inset 0 0 0 1.5px var(--tn-ink); }
.ob-pane .btn.prim { background: var(--tn-bg); color: var(--tn-ink); box-shadow: inset 0 0 0 1.5px var(--tn-ink); }
.ob-pane .btn.prim[disabled] { background: var(--tn-soft); color: var(--ink2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tn-ink) 30%, transparent); }
.ob-pane .card.form, .ob-pane .card.form.t-ros, .ob-pane .card.form.t-lav, .ob-pane .card.form.t-cel { background: var(--tn-soft); }
/* Mateix to per a tots els botons de la pantalla (els triats es distingeixen pel contorn fosc) */
.ob-pane .choice, .ob-pane .choice[class*="tn-"] { background: var(--tn-bg); }
.ob-pane .choice.on, .ob-pane .choice[class*="tn-"].on { background: var(--tn-bg); box-shadow: inset 0 0 0 2.5px var(--tn-ink); }
.ob-pane .chip { --cb: var(--tn-bg) !important; }

/* Només la zona de contingut fa scroll (i rebota); la barra lateral i la de baix no es mouen */
body:has(.shell) { overflow: hidden; overscroll-behavior: none; }
.shell { height: 100dvh; min-height: 0; overflow: hidden; }
.side { position: relative; height: 100%; overflow: hidden; }
.main { height: 100dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; }

/* Targetes en columnes: s'omplen els buits en lloc de deixar una columna llarga i l'altra buida */
.masonry { columns: 2 320px; column-gap: 24px; } .masonry > * { break-inside: avoid; margin: 0 0 24px; width: 100%; animation: spring-up .6s var(--spring) both; }
@media (max-width: 899px) { .masonry { column-gap: 16px; } .masonry > * { margin-bottom: 16px; } }
.page[data-again] .masonry > * { animation: none; }

/* Permisos dels fills: files seleccionables */
.perm { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: background .2s, border-color .2s, transform 120ms; }
.perm:active { transform: scale(.985); } .perm.on { background: var(--men-bg, #EDF8F3); border-color: #b9e3d2; } .perm.locked { cursor: default; opacity: .75; }
.perm b { display: block; font-size: 15px; } .perm small { display: block; color: var(--ink2); font-size: 12.5px; line-height: 1.3; }
.perm .pk, .pk-ok { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfc8e3; position: relative; transition: background .2s, border-color .2s; }
.perm.on .pk, .pk-ok { background: var(--men-ink, #1E6A50); border-color: var(--men-ink, #1E6A50); }
.perm.on .pk::after, .pk-ok::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.gap12 { gap: 12px; }

/* Canvia l'hora: una columna per dia de la setmana */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wk-h { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; background: rgba(42,37,64,.05); line-height: 1.2; }
.wk-h b { font-size: 13px; } .wk-h span { font-size: 12px; color: var(--ink2); }
.wk-t { border: 0; border-radius: 10px; background: var(--cel); color: var(--cel-ink); font: 700 12.5px var(--sans); padding: 9px 0; cursor: pointer; transition: transform .12s var(--ease, ease); }
.wk-t:active { transform: scale(.94); } .wk-t.on { background: var(--ink); color: #fff; }
.wk-none { text-align: center; color: var(--ink2); opacity: .45; padding: 9px 0; font-size: 12px; }
@supports (corner-shape: squircle) { .wk-t, .wk-h { border-radius: 16px; corner-shape: squircle; } }

.wk-h.now b { color: var(--cel-ink); } .wk-h.now { background: var(--cel); }
.wk-none { min-height: 2px; }
.choice[disabled] { opacity: .5; cursor: not-allowed; }

/* Bons de classes: targetes iguals, el preu és el protagonista */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pack .big { font-size: 26px; } .pack-price { font: 600 22px/1 var(--serif); color: var(--men-ink); }
.pack .btn { margin-top: 6px; }
.choice.on { box-shadow: inset 0 0 0 2px var(--ink); }

/* Revisió d'una petició de canvi */
.rv-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.rv-from, .rv-to { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; } .rv-from { background: var(--pre); color: var(--pre-ink); } .rv-to { background: var(--men); color: var(--men-ink); }
.rv-from b, .rv-to b { font-size: 16px; } .rv-arrow { align-self: center; font-size: 20px; color: var(--ink2); }
.rv-s { display: flex; justify-content: space-between; gap: 4px; padding: 6px 7px; border-radius: 9px; background: rgba(42,37,64,.06); font-size: 11.5px; line-height: 1.2; color: var(--ink2); } .rv-s b { font-weight: 700; } .rv-s span { font-size: 10px; }
.rv-s.out { background: var(--pre); color: var(--pre-ink); text-decoration: line-through; } .rv-s.in { background: var(--men); color: var(--men-ink); } .rv-s.in.clash { background: var(--ros); color: var(--ros-ink); }
@media (max-width: 520px) { .rv-cmp { grid-template-columns: 1fr; } .rv-arrow { transform: rotate(90deg); justify-self: center; } .rv-s span { display: none; } }
.rv-n { text-align: center; font-size: 11px; color: var(--ink2); opacity: .7; padding: 4px 0; }
