/* Palette relevée sur la maquette */
:root {
  --cream: #F9E9C9;
  --blue: #DDEAEC;
  --green: #DEEADC;
  --lav: #E4D6F5;
  --ink: #0E0C0D;
  --paper: #FFFFFF;
  --mute: #9A9A9A;
  --soft: #F3F3F2;
  --line: rgba(14, 12, 13, .16);
  --hair: rgba(14, 12, 13, .07);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 15px;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: inherit; }
a { color: inherit; }
input, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Le "téléphone" : plein écran sur mobile, cadre centré sur ordinateur */
#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--paper); }
@media (min-width: 640px) {
  body { background: var(--ink); }
  #viewport {
    inset: auto; left: 50%; top: 50%; width: 430px; height: min(932px, calc(100dvh - 40px));
    transform: translate(-50%, -50%); border-radius: 46px; box-shadow: 0 0 0 10px #2a2628, 0 30px 80px rgba(0, 0, 0, .5);
  }
}

/* Écrans */
.screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: calc(var(--safe-top) + 14px) 0 calc(var(--safe-bottom) + 32px);
  background: var(--paper); display: flex; flex-direction: column;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.enter { animation: enter .3s var(--ease); }
@keyframes enter { from { opacity: 0; } }
.screen[data-tone] { background: var(--tone); }
.screen[data-tone="cream"] { --tone: var(--cream); }
.screen[data-tone="blue"] { --tone: var(--blue); }
.screen[data-tone="green"] { --tone: var(--green); }
.screen[data-tone="lavender"] { --tone: var(--lav); }

/* Barre du haut */
.bar, .nav { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 40px; flex: none; }
.nav { font-size: 12px; }
.dots { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(2, 4px); gap: 4px; place-content: center; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px;
  display: grid; place-items: center; overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello { padding: 18px 20px 0; font-size: 12px; color: var(--mute); }
.display {
  padding: 2px 20px 0; font-size: clamp(40px, 13vw, 54px); font-weight: 300;
  letter-spacing: -.035em; line-height: .96; overflow-wrap: anywhere;
}
.sub { padding: 8px 20px 0; font-size: 11px; color: rgba(14, 12, 13, .45); }

/* Cartes projet */
.rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 20px 6px;
  scroll-padding-inline: 20px; scrollbar-width: none; flex: none;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(62%, 236px); aspect-ratio: 1 / 1.12; border-radius: 22px; padding: 12px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.card[data-color="cream"], .ghost[data-color="cream"] { background: var(--cream); }
.card[data-color="blue"], .ghost[data-color="blue"] { background: var(--blue); }
.card[data-color="green"], .ghost[data-color="green"] { background: var(--green); }
.card[data-color="lavender"], .ghost[data-color="lavender"] { background: var(--lav); }
.card-top { display: flex; justify-content: space-between; }
.badge { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.badge svg { width: 12px; height: 12px; }
.badge.outline { background: transparent; color: var(--ink); border: 1px solid rgba(14, 12, 13, .35); }
.card-title { font-size: 25px; font-weight: 400; letter-spacing: -.025em; line-height: 1; padding: 0 4px; overflow-wrap: anywhere; }
.card.serif .card-title { font-family: var(--serif); font-size: 29px; letter-spacing: -.01em; }
.chip {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 15px;
  background: rgba(14, 12, 13, .06); font-size: 10px; color: rgba(14, 12, 13, .5); white-space: nowrap;
}
.track { flex: 1; min-width: 20px; height: 3px; border-radius: 2px; background: rgba(14, 12, 13, .12); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--ink); }
.card.add {
  background: transparent; border: 1.5px dashed var(--line); align-items: center; justify-content: center;
  gap: 10px; color: var(--mute); font-size: 13px;
}
.card.add .badge { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.ghost { position: absolute; z-index: 40; overflow: hidden; pointer-events: none; }

/* Semaine + agenda */
.week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 22px 12px 0; text-align: center; font-size: 10px; color: #8b8b8b; flex: none; }
.week button { padding: 14px 0 6px; position: relative; text-align: center; }
.week button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.week button[aria-pressed="true"]::before { content: ""; position: absolute; top: 1px; left: 50%; width: 1px; height: 9px; background: var(--ink); }
.week button[aria-pressed="true"]::after { content: ""; position: absolute; top: -2px; left: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.ctrl { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; flex: none; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.check svg { width: 9px; height: 9px; stroke-width: 1.6; }
.check.off { background: transparent; border: 1px solid var(--line); color: transparent; }
.today { display: flex; align-items: center; height: 24px; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }
.today button { height: 100%; padding: 0 9px; display: flex; align-items: center; }
.today svg { width: 7px; height: 9px; }

.timeline { padding: 14px 20px 0; display: grid; gap: 10px; flex: none; }
.slot { display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: start; }
.hours-off .slot { grid-template-columns: 0 1fr; gap: 0; }
.hours-off .slot time { display: none; }
.slot time { font-size: 10px; color: #a0a0a0; padding-top: 10px; }
.event {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 16px; padding: 12px; min-height: 92px; background: var(--green); text-decoration: none;
}
.event[data-tone="blue"] { background: var(--blue); }
.event[data-tone="cream"] { background: var(--cream); }
.event[data-tone="lavender"] { background: var(--lav); }
.event .ico { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.event .ico svg { width: 10px; height: 10px; }
.event .rings { position: absolute; right: -34px; top: -26px; width: 150px; height: 150px; stroke: rgba(14, 12, 13, .16); pointer-events: none; }
.event .who { position: absolute; top: 10px; right: 10px; display: flex; }
.event .who .avatar { width: 18px; height: 18px; font-size: 7px; margin-left: -5px; border: 1.5px solid rgba(255, 255, 255, .85); }
.event h3 { font-size: 20px; font-weight: 400; letter-spacing: -.025em; line-height: 1.02; margin-top: 28px; position: relative; overflow-wrap: anywhere; }
.event small { font-size: 10px; color: rgba(14, 12, 13, .5); margin-top: 5px; position: relative; }
.empty { font-size: 13px; color: var(--mute); padding: 6px 0 2px; }
.actions {
  margin: 12px 20px 0; display: flex; align-items: center; justify-content: space-between; padding: 6px; border-radius: 16px;
  background: var(--soft); flex: none;
}
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 5px; border-radius: 15px; font-size: 11px; background: var(--lav); }
.pill .ico { width: 20px; height: 20px; border-radius: 50%; background: rgba(14, 12, 13, .14); display: grid; place-items: center; }
.pill .ico svg { width: 10px; height: 10px; }

/* Détail (Planning) */
#s-detail, #s-message { padding-bottom: 0; }
.arrow { width: 22px; height: 10px; }
.tiles { display: flex; padding: 22px 20px 0; flex: none; }
.tile { border-radius: 18px; height: 78px; padding: 10px 12px; position: relative; text-align: left; }
.tile.date { background: var(--ink); color: #fff; flex: 0 0 112px; display: flex; flex-direction: column; justify-content: space-between; }
.tile.date b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.tile.date span { font-size: 10px; opacity: .8; }
.tile.date .badge { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--tone); color: var(--ink); border: 1px solid var(--ink); }
.tile.date .badge svg { width: 9px; height: 9px; }
.tile.loc { flex: 1; min-width: 0; margin-left: 10px; border: 1px solid rgba(14, 12, 13, .18); font-size: 9px; color: rgba(14, 12, 13, .4); }
.tile.loc p { margin-top: 6px; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; max-width: 54%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile.share {
  flex: 0 0 92px; margin-left: -50px; background: var(--tone); border: 1px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-size: 9px; padding: 9px 6px;
}
.tile.share .badge { width: 26px; height: 26px; }
.sec { display: flex; justify-content: space-between; align-items: center; padding: 24px 20px 0; font-size: 13px; font-weight: 400; flex: none; }
.sec h2 { font-size: 13px; font-weight: 400; }
.sec button { width: 24px; height: 24px; display: grid; place-items: center; margin-right: -4px; }
.sec svg { width: 12px; height: 12px; }
.linked { display: flex; align-items: center; gap: 10px; padding: 12px 20px 0; flex: none; }
.stack { display: flex; }
.stack .avatar { width: 28px; height: 28px; margin-left: -8px; border: 2px solid var(--tone); font-size: 10px; }
.stack .avatar:first-child { margin-left: 0; }
.pill-line {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px;
  padding: 0 12px; border: 1px solid var(--ink); border-radius: 16px; font-size: 11px;
}
.pill-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-line svg { width: 6px; height: 9px; flex: none; }
.sheet-white {
  margin-top: 22px; flex: 1; background: #fff; border-radius: 28px 28px 0 0; padding: 4px 20px calc(var(--safe-bottom) + 18px);
  min-height: 240px;
}
.sheet-white .sec { padding: 20px 0 0; }
.goals { list-style: none; padding: 0; }
.goal { display: grid; grid-template-columns: 56px 1fr; padding-top: 22px; }
.goal .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.t-cream { background: var(--cream); } .t-blue { background: var(--blue); } .t-green { background: var(--green); } .t-lavender { background: var(--lav); }
.goal .tools { display: flex; gap: 10px; margin-top: 18px; }
.goal .tools button { width: 20px; height: 20px; display: grid; place-items: center; }
.goal .tools svg { width: 12px; height: 12px; }
.goal .cap { display: block; font-size: 11px; color: var(--mute); }
.goal .title { display: block; font-size: 28px; font-weight: 400; letter-spacing: -.03em; line-height: 1; margin-top: 5px; overflow-wrap: anywhere; }
.goal.done .title { text-decoration: line-through; opacity: .35; }
.goal .body { display: block; width: 100%; }

/* Mails */
.search { margin: 22px 20px 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 21px; flex: none; }
.search svg { width: 14px; height: 14px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.mlist { margin-top: 14px; flex: none; }
.mrow { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 16px 20px; width: 100%; border-top: 1px solid var(--hair); align-items: start; }
.mrow .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.mrow .from, .mrow .snip { display: block; }
.mrow .from { font-size: 11px; color: var(--mute); }
.mlist .empty { padding: 14px 20px; }
.mrow .subj { font-size: 20px; letter-spacing: -.025em; line-height: 1.05; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mrow .snip { font-size: 12px; color: var(--mute); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow time { font-size: 10px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.mrow.unread .subj { font-weight: 500; }
.mrow.unread time::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.mbody { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; padding-top: 22px; }
.reader-title { font-size: clamp(30px, 9vw, 38px); }
.btn { height: 46px; padding: 0 22px; border-radius: 23px; background: var(--ink); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.danger { background: transparent; color: #b4432b; border: 1px solid rgba(180, 67, 43, .4); }

/* Serveur */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 20px 0; flex: none; }
.stat { border-radius: 22px; padding: 14px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.stat b { font-size: 44px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.stat b small { font-size: 15px; color: rgba(14, 12, 13, .45); margin-left: 2px; letter-spacing: 0; }
.stat span { font-size: 11px; color: rgba(14, 12, 13, .55); }
.crow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--hair); }
.crow h4 { font-size: 17px; font-weight: 400; letter-spacing: -.02em; overflow-wrap: anywhere; }
.crow small { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; overflow-wrap: anywhere; }
.state { width: 8px; height: 8px; border-radius: 50%; background: #7bbf8a; flex: none; }
.state.bad { background: #e0856b; } .state.off { background: #cfcfcf; }
.note { margin: 14px 20px 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 12px; color: rgba(14, 12, 13, .6); line-height: 1.45; }

/* Connexion */
.login { justify-content: flex-end; padding-bottom: calc(var(--safe-bottom) + 36px); }
.login p.lead { padding: 14px 20px 0; font-size: 15px; line-height: 1.45; color: rgba(14, 12, 13, .6); max-width: 34ch; }
.login .row { padding: 26px 20px 0; }
.login .err { margin: 18px 20px 0; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 13px; line-height: 1.4; }

/* Menu */
#menu {
  position: absolute; inset: 0; z-index: 60; background: var(--ink); color: #fff; display: flex; flex-direction: column;
  padding: calc(var(--safe-top) + 14px) 20px calc(var(--safe-bottom) + 24px); transform: translateY(-102%); transition: transform .5s var(--ease); visibility: hidden;
}
#menu.open { transform: none; visibility: visible; }
#menu .top { display: flex; justify-content: space-between; align-items: center; height: 40px; margin: 0 -0px; }
#menu .dots i { background: #fff; }
#menu nav { margin-top: 28px; }
#menu nav a { display: block; font-size: clamp(44px, 14vw, 58px); font-weight: 300; letter-spacing: -.04em; line-height: 1.08; color: #fff; text-decoration: none; opacity: .45; }
#menu nav a[aria-current="page"] { opacity: 1; }
#menu .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: rgba(255, 255, 255, .55); }
#menu .foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#menu .foot button { color: #fff; text-decoration: underline; text-underline-offset: 3px; flex: none; }

/* Feuille de saisie */
#scrim { position: absolute; inset: 0; z-index: 70; background: rgba(14, 12, 13, .35); opacity: 0; pointer-events: none; transition: opacity .25s; }
#scrim.open { opacity: 1; pointer-events: auto; }
#sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 92%; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0;
  padding: 24px 20px calc(var(--safe-bottom) + 22px); transform: translateY(105%); transition: transform .4s var(--ease); visibility: hidden;
}
#sheet.open { transform: none; visibility: visible; }
#sheet h2 { font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1; margin-bottom: 18px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 11px; color: var(--mute); margin-bottom: 5px; }
.field input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: #fff; font-size: 16px; outline: 0; }
.field input:focus { border-color: var(--ink); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); }
.swatch[aria-pressed="true"] { border: 1.5px solid var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

#toast {
  position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 24px); transform: translate(-50%, 20px); z-index: 100; max-width: 88%;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}

/* ───────── Mouvement ─────────
   Chorégraphie relevée sur la maquette (voir docs/MOTION.md) : un écran arrive en cascade sur ~1,2 s.
   La classe .play est posée par le JS à l'arrivée sur l'écran, puis retirée : les rendus suivants
   (rafraîchissement des données) ne rejouent rien. */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes focusIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(42%); } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
@keyframes pillOpen { from { opacity: 0; transform: scaleX(.25); } }
@keyframes sheetUp { from { transform: translateY(72%); } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(0); opacity: .75; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
:root { --spring: cubic-bezier(.34, 1.5, .64, 1); }

/* Accueil */
#s-home.play .hello { animation: fade .4s .05s backwards; }
#s-home.play .display { animation: focusIn .6s var(--ease) .1s backwards; }
#s-home.play .rail { animation: slideIn .75s var(--ease) .15s backwards; }
#s-home.play .week { animation: fade .45s .4s backwards; }
#s-home.play .ctrl { animation: fade .45s .5s backwards; }
#s-home.play .slot time { animation: fade .4s calc(.6s + var(--i, 0) * 90ms) backwards; }
#s-home.play .slot .event { transform-origin: 0 0; animation: pop .6s var(--spring) calc(.55s + var(--i, 0) * 90ms) backwards; }
#s-home.play .actions { animation: rise .5s var(--ease) .8s backwards; }
#s-home.play .actions .pill { transform-origin: 0 50%; animation: pop .55s var(--spring) .95s backwards; }
.play .track i { transform-origin: left; animation: fill .9s var(--ease) .6s backwards; }

/* Détail d'un projet (démarre quand la carte a fini de s'agrandir) */
#s-detail.play .nav { animation: fade .4s .05s backwards; }
#s-detail.play .display { animation: focusIn .6s var(--ease) .05s backwards; }
#s-detail.play .sub { animation: fade .5s .25s backwards; }
#s-detail.play .sheet-white { animation: sheetUp .9s var(--ease) .1s backwards; }
#s-detail.play .tile.date { transform-origin: 25% 50%; animation: pop .6s var(--spring) .3s backwards; }
#s-detail.play .tile.share { transform-origin: 75% 50%; animation: pop .55s var(--spring) .45s backwards; }
#s-detail.play .tile.loc { animation: fade .5s .5s backwards; }
#s-detail.play .tiles ~ .sec, #s-detail.play .linked .stack { animation: fade .45s .65s backwards; }
#s-detail.play .linked .pill-line { transform-origin: 0 50%; animation: pillOpen .55s var(--ease) .75s backwards; }
#s-detail.play .goal { animation: rise .55s var(--ease) calc(.75s + var(--i, 0) * 80ms) backwards; }

/* Mails et serveur */
#s-mail.play .mrow { animation: rise .5s var(--ease) calc(.15s + var(--i, 0) * 45ms) backwards; }
#s-server.play .stat { transform-origin: 30% 40%; animation: pop .6s var(--spring) calc(.1s + var(--i, 0) * 80ms) backwards; }
#s-server.play .crow { animation: fade .4s .5s backwards; }

/* Menu */
#menu.open nav a { animation: rise .6s var(--ease) calc(.15s + var(--i, 0) * 70ms) backwards; }
#menu.open .foot { animation: fade .5s .45s backwards; }

/* Retour tactile et ondulation au toucher de la carte */
.card, .pill, .btn, .tile { transition: transform .18s var(--ease); }
.card:active, .pill:active, .btn:active, .tile:active { transform: scale(.97); }
.mrow:active { background: var(--soft); }
.ripple { position: absolute; border-radius: 50%; background: rgba(196, 180, 240, .7); animation: ripple .55s var(--ease) both; }
