:root {
  --bg: #100d10; --panel: #171318; --panel2: #201b21; --line: #332b33; --text: #f0eaf0; --muted: #a9a4ab; --accent: #f4a6c6; --ink: #1a0a12;
  /* The rest of what a theme sets (THEMES in app.js) : --deep the navigation, --line2 the borders of the controls, --soft a ground tinted by the accent,
     --accent2 the second colour of the theme, --pattern a layer drawn over the page ground. The rarity colours below never change with the theme */
  --deep: #130f13; --line2: #574d57; --soft: #2e1622; --accent2: #b0456f; --pattern: none;
  --Common: #4ccb7f; --Uncommon: #5aa2ff; --Rare: #b98af5; --SuperRare: #f5d042; --UltraRare: #ff9838; --Legendary: #ff5c66; --Shiny: #ffffff;
  --rainbow: #ff5c66, #ff9838, #f5d042, #4ccb7f, #5aa2ff, #b98af5, #ff5c66;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--pattern), var(--bg); color: var(--text); font: 15px/1.5 system-ui, "Segoe UI", sans-serif; overflow-wrap: break-word; }
[hidden] { display: none !important; }
a { color: var(--accent); }
h1 { margin: 0; font-size: clamp(22px, 4vw, 28px); letter-spacing: -.02em; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: 16px; }
.sub { margin: 4px 0 0; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Shell : a bar at the top with the burger, the logo, the wallet and the player ; the pages wait in a drawer on the left */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 18px;
  border-bottom: 1px solid var(--line); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent2, var(--accent)) 45%, transparent); background: color-mix(in srgb, var(--deep) 92%, transparent); backdrop-filter: blur(8px); }
.burger { position: relative; width: 44px; padding: 0; font-size: 20px; }
.burger[aria-expanded=true] { border-color: var(--accent); color: var(--accent); background: var(--soft); }
/* Something waits in the drawer : messages, friend requests or exchanges */
.burger.alert::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--deep); }
.logo { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { position: fixed; inset: 0 auto 0 0; z-index: 25; width: min(260px, 86vw); display: flex; flex-direction: column; gap: 4px; padding: 76px 14px 20px; overflow-y: auto;
  background: var(--deep); border-right: 1px solid var(--line); box-shadow: 0 0 0 100vmax #0000;
  visibility: hidden; transform: translateX(-105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s, box-shadow .25s; }
/* The shadow dims the page behind the open drawer */
.nav.open { visibility: visible; transform: none; box-shadow: 0 0 0 100vmax #000a; }
.nav a.item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a.item:hover { background: var(--panel); color: var(--text); }
.nav a.item[aria-current] { background: var(--soft); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent2, var(--accent)); }
.nav a.item i { width: 22px; text-align: center; font-style: normal; }
.topbar .me { display: flex; align-items: center; gap: 10px; }
.topbar .me .who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; }
.topbar .me .user { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.topbar .me button { min-height: 34px; padding: 4px 12px; font-size: 13px; }
/* Profile picture : the top of the illustration of a card, where the faces are */
.avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(140deg, #b0456f, #33286e); color: #fff; font-size: 16px; font-weight: 800; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.nav .dot { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; text-align: center; }
.wallet { margin-left: auto; display: flex; gap: 8px; }
.pill { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums; }
.pill b { color: var(--accent); }
main { max-width: 1180px; margin: 0 auto; padding: 22px 28px 40px; }
main:focus { outline: none; }
.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin: 0 0 20px; }
footer.site { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: left; }
footer.site ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; }
footer.site a { display: inline-block; padding: 4px 0; }

/* Controls */
button, select, input[type=search], input[type=text] { font: inherit; color: var(--text); min-height: 40px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); padding: 8px 14px; }
button { font-weight: 600; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
button.danger { border-color: #a8544e; }
button.danger:hover:not(:disabled) { border-color: #ff8a80; color: #ffb4ae; }
/* A link that looks like a button, to another page */
a.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 600; text-decoration: none; }
a.button:hover { border-color: var(--accent); }
button.ghost { background: none; border-color: transparent; color: var(--accent); text-decoration: underline; }
button[aria-pressed=true]:not(.card) { border-color: var(--accent); color: var(--accent); background: var(--soft); }
input[type=search], input[type=text] { min-width: 0; }
input::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
label { font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 240px; }
.toolbar label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { --c: var(--muted); min-height: 32px; padding: 3px 12px; font-size: 13px; border-radius: 999px; border-color: var(--c); color: var(--c); background: none; }
.chip[aria-pressed=true]:not(.card) { background: var(--c); border-color: var(--c); color: var(--ink); }
.chip small { margin-left: 5px; font-variant-numeric: tabular-nums; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 18px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.warn { padding: 12px 16px; border: 1px solid #b98a1f; border-radius: 10px; background: #2b2410; color: #ffe7a8; }

/* Card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
ul.grid { list-style: none; margin: 0; padding: 0; }
.grid > li { display: grid; min-width: 0; }
.card { --c: var(--Common); position: relative; display: flex; flex-direction: column; aspect-ratio: 5 / 8; min-width: 0; min-height: 0; overflow: hidden; padding: 0; text-align: left; font-weight: 400;
  border-radius: 14px; border: 2px solid var(--c); background: var(--panel); color: var(--text); }
button.card { cursor: pointer; transition: transform .15s; }
button.card:hover { transform: translateY(-4px); border-color: var(--c); }
.card.r-SuperRare { box-shadow: 0 0 14px color-mix(in srgb, var(--c) 35%, transparent); }
.card.r-UltraRare { box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.card.r-Legendary { box-shadow: 0 0 24px color-mix(in srgb, var(--c) 55%, transparent); }
.card.r-UltraRare::after, .card.r-Legendary::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, #fff3 50%, transparent 65%); background-size: 250% 100%; animation: shine 2.8s linear infinite; }
.card .cover { position: relative; display: flex; flex: 1; min-height: 0; width: 100%; overflow: hidden; }
.card img, .card .nocover { width: 100%; height: 100%; flex: 1; min-height: 0; object-fit: cover; background: #222; }
.card .nocover { display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.card .info { padding: 8px 10px 9px; width: 100%; min-width: 0; background: var(--panel); border-top: 2px solid var(--c); }
.card .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .desc { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .numbers { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.card .numbers > span:first-child { color: #ff9a8c; }
.card .numbers > span:last-child { color: #8cc2ff; }
.badge { position: absolute; top: 8px; left: 8px; min-width: 30px; text-align: center; padding: 2px 7px; border-radius: 6px; background: var(--c); color: var(--ink); font-weight: 800; font-size: 12px; }
.tag { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 11px; background: #000d; color: #fff; border: 1px solid var(--line2); }
.tag.new { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.star { position: absolute; top: 36px; right: 8px; padding: 0 5px; border-radius: 6px; background: #000d; color: #f5d042; }
/* Shiny : a rarity apart, the manga edition. The picture printed in black ink on screentone, the paper of a manga page under the text,
   a frame of rainbow screentone between two lines of ink, focus lines around the picture and a « キラッ » stamped in the corner */
.card.r-Shiny { border: 6px solid transparent; outline: 2px solid #111; outline-offset: -2px; color: #111; box-shadow: 0 0 18px #b98af577, 0 0 40px #5aa2ff44;
  background: linear-gradient(#fbfaf5, #fbfaf5) padding-box, radial-gradient(circle, #0008 26%, transparent 31%) 0 0 / 5px 5px border-box, linear-gradient(120deg, var(--rainbow)) 0 0 / 300% 100% border-box;
  animation: holo 4s linear infinite; }
.card.r-Shiny .cover { box-shadow: inset 0 0 0 3px #111; }
.card.r-Shiny img { filter: grayscale(1) contrast(1.6) brightness(1.05); }
.card.r-Shiny .cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: radial-gradient(circle, #0006 30%, transparent 34%) 0 0 / 5px 5px; }
.card.r-Shiny .cover::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 42%, transparent 0 5deg, #0005 5deg 6deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, transparent 52%, #000 85%); mask-image: radial-gradient(ellipse at 50% 42%, transparent 52%, #000 85%); }
.card.r-Shiny::after { content: "キラッ"; position: absolute; z-index: 2; top: 34px; right: 6px; rotate: 12deg; pointer-events: none; font: 900 15px / 1 "Arial Black", "Yu Gothic", "Hiragino Sans", sans-serif;
  color: #fff; -webkit-text-stroke: 3px #111; paint-order: stroke fill; text-shadow: 2px 2px 0 #111; }
.card.r-Shiny .info { border-top: 3px solid #111; color: #111; background: #fbfaf5; }
.card.r-Shiny .desc { color: #444; }
.card.r-Shiny .numbers > span { color: #111; }
.card.r-Shiny .badge { border: 2px solid #111; }
/* Number of the shiny copy, stamped in ink at the foot of the picture */
.card .stamp { position: absolute; z-index: 2; right: 6px; bottom: 6px; padding: 1px 7px; rotate: -6deg; border: 2px solid #111; border-radius: 4px; background: #fbfaf5;
  color: #111; font-size: 11px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; box-shadow: 2px 2px 0 #111; }.card.r-Shiny .badge, .chip.r-Shiny[aria-pressed=true]:not(.card) { background: linear-gradient(90deg, #ff5c66, #f5d042, #4ccb7f, #5aa2ff, #b98af5); color: var(--ink); }
.card.missing { box-shadow: none; border-style: dashed; }
.card.missing img { filter: grayscale(1) brightness(.45); }
.card.missing::after { display: none; }
.card.selected { outline: 4px solid var(--accent); outline-offset: 2px; }
.card.selected::before { content: "✓"; position: absolute; z-index: 2; top: 68px; left: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 900; }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 22px; width: min(720px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: auto; }
dialog::backdrop { background: #000c; }
/* Detail of a card : the card on the left, on the right what it is, its numbers, then what can be done with it */
.cardDialog { position: relative; width: min(780px, calc(100vw - 24px)); padding: 26px; }
.cardDialog .close { position: absolute; top: 12px; right: 12px; width: 40px; padding: 0; }
.detail { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; align-items: flex-start; }
.detail .card { width: min(250px, 62vw); flex: none; }
.detail .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.detail h2 { font-size: clamp(22px, 4vw, 30px); line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-right: 44px; }
.kicker .badge { position: static; padding: 2px 10px; font-size: 13px; }
.kicker .chip { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 0; }
.tiles > div { padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); text-align: center; }
.tiles dd { margin: 0; font-size: 20px; font-weight: 800; }
.tiles dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.detail .more { font-size: 14px; }
.cardDialog .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cardDialog .actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 8px; border-radius: 12px; font-size: 13px; line-height: 1.2; }
.cardDialog .actions .glyph { font-size: 22px; }
.cardDialog .actions button.on { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.detail .discard { align-self: flex-start; min-height: 34px; padding: 4px 14px; font-size: 13px; background: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; color: var(--muted); }
.facts dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sell { display: grid; gap: 6px; margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.sell small, .field small { color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
input[type=number], input[type=password], input[type=email] { font: inherit; color: var(--text); min-height: 40px; min-width: 0; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); padding: 8px 14px; }
/* Player of an opening or an ending : the wave shows where the song is, and moves in it */
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.player .play { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: var(--accent); border-color: var(--accent); color: var(--ink); font-size: 16px; }
.player .mute { flex: none; width: 40px; padding: 0; background: none; border-color: transparent; }
.player .time { flex: none; color: var(--muted); font-size: 12px; }
.wave { flex: 1 1 150px; min-width: 0; height: 44px; display: flex; align-items: center; gap: 2px; border-radius: 6px; cursor: pointer; touch-action: none; }
.wave i { flex: 1; min-width: 1px; height: var(--h); border-radius: 2px; background: #7d727e; transform-origin: center; }
.wave i.on { background: var(--accent); }
.player.playing .wave i { animation: wave 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -137ms); }
/* Small picture of a pack, in the colours of its kind */
.packart { width: 96px; aspect-ratio: 7 / 12; flex: none; display: grid; place-content: center; justify-items: center; gap: 6px; border-radius: 6px; color: #fff; text-shadow: 0 1px 3px #000c;
  border-top: 10px solid #b9c2be; border-bottom: 8px solid #b9c2be; background: linear-gradient(150deg, var(--p1), var(--p2) 55%, var(--p3)); }
.packart span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: #1a0a12cc; font-weight: 900; }
.packart b { font-size: 12px; }
.rule { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 10px 0 16px; padding: 0; list-style: none; }
.rule li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--panel2); font-size: 13px; }
.rule .badge { position: static; flex: none; }

/* Legal pages */
.prose { max-width: 74ch; }
.prose h2 { margin: 30px 0 8px; font-size: 19px; }
.prose p, .prose li { color: #dcd5dd; }
.prose ul { padding-left: 22px; }
.prose dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 6px 16px; margin: 0; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--panel2); }
.scroll { overflow-x: auto; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100vw - 24px); background: #3a1717; border: 1px solid #c44; color: #ffd9d9; padding: 10px 16px; border-radius: 10px; }
#toast.ok { background: var(--soft); border-color: var(--accent); color: #ffe3ee; }

@keyframes wave { from { transform: scaleY(.7); } to { transform: scaleY(1.08); } }
@keyframes twinkle { from { opacity: .15; } to { opacity: .95; } }
@keyframes holo { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Phones and tablets : the navigation moves to the bottom of the screen */
@media (max-width: 900px) {
  .topbar { position: static; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: none; backdrop-filter: none; box-shadow: none; border: 0; }
  .topbar .burger, .topbar .me { display: none; }
  .nav { inset: auto 0 0 0; z-index: 20; width: auto; flex-direction: row; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); border-right: 0; border-top: 1px solid var(--line);
    visibility: visible; transform: none; transition: none; box-shadow: none; }
  .nav.open { box-shadow: none; }
  .nav a.item { flex: 1 0 74px; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; font-size: 11px; line-height: 1.2; text-align: center; }
  .nav a.item[aria-current] { box-shadow: inset 0 3px 0 var(--accent2, var(--accent)); }
  .nav .dot { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
  main { padding: 6px max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* Phones : the cards go three by row, everything a little tighter */
@media (max-width: 600px) { .topbar { padding-top: 6px; padding-bottom: 6px; } .logo { font-size: 19px; } .pill { padding: 3px 10px; font-size: 14px; } }
@media (max-width: 600px) {
  .head { margin-bottom: 12px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid .card .info { padding: 5px 6px 6px; }
  .grid .card .title { font-size: 12px; }
  .grid .card .desc { display: none; }
  .grid .card .numbers { margin-top: 2px; font-size: 11px; }
  .grid .card .badge, .grid .card .tag { top: 5px; font-size: 10px; padding: 1px 5px; min-width: 0; }
  .grid .card .badge { left: 5px; }
  .grid .card .tag { right: 5px; }
  .grid .card.r-Shiny { border-width: 4px; }
  .grid .card .stamp { right: 3px; bottom: 3px; padding: 0 3px; font-size: 8px; letter-spacing: 0; border-width: 1px; box-shadow: 1px 1px 0 #111; }
  .grid .card.r-Shiny::after { top: 22px; right: 3px; font-size: 11px; -webkit-text-stroke-width: 2px; }
  /* The filters stay on one line that slides sideways */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 8px; padding: 2px 16px 6px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .pager { gap: 10px; margin: 10px 0; }
  .pager .long { display: none; }
  .panel { padding: 12px; }
  .empty { padding: 30px 12px; }
  dialog { padding: 16px; }
  /* Detail of a card : a smaller card, the rest closer */
  .cardDialog { padding: 16px 12px; }
  .detail { gap: 14px; }
  .detail .card { width: min(190px, 50vw); }
  .detail h2 { font-size: 22px; }
  .tiles dd { font-size: 17px; }
  .tiles > div { padding: 6px 4px; }
  .cardDialog .actions button { min-height: 60px; }
  .cardDialog .actions .glyph { font-size: 20px; }
}
@media (max-width: 340px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card .info { padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .card, .pill, .panel, button { border: 1px solid CanvasText; } }
